Rick Scott wrote:
> 
> On 30-Apr-00 at 19:17, Ralf Corsepius ([EMAIL PROTECTED]) wrote:

> > The behavior you describe is the default behavior, but it can be
> > overriden with AC_CONFIG_AUX_DIR. Adding AC_CONFIG_AUX_DIR(.) to the
> > toplevel configure.in should force automake to look into . and $srcdir/.
> > only.
> >
> > You already seemed to have trying this, but AC_CONFIG_AUX_DIR(.) is
> > invoked too late . This will force some other macro to pull in
> > AC_CONFIG_AUX_DIR_DEFAULT which will cause the default rules to take
> > effect instead of the desired ones. (search for install-sh in configure
> > and you will see).
> 
> Yes, that was my first thought, and I was a little surprized when it didn't
> work. It does make sense that something like that should be done very early,
> now that you mention it.
> 
> > Another, similar flaky spot in the toplevel configure.in is not using an
> > argument in the call to AC_INIT().
> > The argument is used to detect srcdir - not setting it can cause nasty
> > effects. The observation of having to set ac_aux_dir=test could be an
> > indication of such a side-effect.
> >
> > Please try the patch below.
> 
> Certainly will, thanks.

The patch below contains some more analogous fixes.

It also contains a patch to lib/Makefile.am which will add the lib/Xlt
and lib/Xbae subdirectories into a lesstif tarball generated by make
dist, regardless which configuration options have been used to configure
lesstif before a "make dist" - I am not sure if this is desired, but I
think it should be done.

BTW: Setting AC_CONFIG_AUX_DIR(.) in subdirectory configure.ins isn't
really necessary. This only forces automake -a to put automake -a add
files into this directories. If the AC_CONFIG_AUX_DIR(.) lines were
removed, automake would use the toplevel automake -a added files
instead. However these AC_CONFIG_AUX_DIR(.) lines also don't desturb, so
it doesn't really matter.

Ralf

-- 
Ralf Corsepius 
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany     Tel: +49/731/501-8690
mailto:[EMAIL PROTECTED]           FAX: +49/731/501-999  
http://www.faw.uni-ulm.de
? INSTALL
? lesstif-0.90.3
? lesstif-patch
? doc/www.lesstif.org/Install
Index: lib/Makefile.am
===================================================================
RCS file: /cvsroot/hungry/lesstif/lib/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- Makefile.am 1999/08/10 21:36:25     1.3
+++ Makefile.am 2000/05/02 13:37:42
@@ -8,3 +8,10 @@
                Xm-2.1 Mrm-2.1 \
                Xm-CDE Mrm-CDE \
                @BuildXltDir@ @BuildXbaeDir@
+
+DIST_SUBDIRS =         config \
+               Xm Mrm Uil \
+               Xm-2.0 Mrm-2.0 Uil-2.0 \
+               Xm-2.1 Mrm-2.1 \
+               Xm-CDE Mrm-CDE \
+               Xlt Xbae
Index: lib/Xbae/configure.in
===================================================================
RCS file: /cvsroot/hungry/lesstif/lib/Xbae/configure.in,v
retrieving revision 1.16
diff -u -r1.16 configure.in
--- configure.in        2000/04/29 15:11:52     1.16
+++ configure.in        2000/05/02 13:37:45
@@ -2,7 +2,8 @@
 # $Id: configure.in,v 1.16 2000/04/29 15:11:52 danny Exp $
 #
 
-AC_INIT()
+AC_INIT(ac_find_xbae.m4)
+AC_CONFIG_AUX_DIR(.)
 
 #
 #  1. Start with version information of `0:0:0' for each libtool library.
@@ -58,7 +59,6 @@
 dnl if pulled from CVS with LessTif
 dnl
 
-AC_CONFIG_AUX_DIR(.)
 AM_CONFIG_HEADER(include/XbaeConfig.h)
 
 dnl
Index: lib/Xlt/configure.in
===================================================================
RCS file: /cvsroot/hungry/lesstif/lib/Xlt/configure.in,v
retrieving revision 1.49
diff -u -r1.49 configure.in
--- configure.in        2000/01/09 12:25:19     1.49
+++ configure.in        2000/05/02 13:37:48
@@ -2,7 +2,8 @@
 # $Id: configure.in,v 1.49 2000/01/09 12:25:19 rwscott Exp $
 #
 
-AC_INIT()
+AC_INIT(ac_find_xlt.m4)
+AC_CONFIG_AUX_DIR(.)
 
 #
 #  1. Start with version information of `0:0:0' for each libtool library.
@@ -55,7 +56,6 @@
 dnl if pulled from CVS with LessTif
 dnl
 
-AC_CONFIG_AUX_DIR(.)
 AM_CONFIG_HEADER(config.h)
 
 dnl
Index: test/configure.in
===================================================================
RCS file: /cvsroot/hungry/lesstif/test/configure.in,v
retrieving revision 1.30
diff -u -r1.30 configure.in
--- configure.in        2000/01/14 22:10:23     1.30
+++ configure.in        2000/05/02 13:37:54
@@ -5,7 +5,7 @@
 dnl $Id: configure.in,v 1.30 2000/01/14 22:10:23 jon Exp $
 dnl
 
-AC_INIT()
+AC_INIT(LTTconfig.h.in)
 
 AC_CANONICAL_SYSTEM
 

Reply via email to