logo       

configure --help=recursive and subdir/configure.gnu: msg#00066

sysutils.autoconf.general

Subject: configure --help=recursive and subdir/configure.gnu

Hi,

I'm preparing a package with autoconf 2.57, but the little problem I'm reporting
here is also found in 2.59 .

My package contains subdirectories holding their own 3rd-party configure script
which are wrapped with a configure.gnu so as to e.g. preprocess command-line
arguments. The problem I have is that calling ./configure --help=recursive in
the root directory does not pass --srcdir to the various configure.gnu in the
subdirectories, but only --help=recursive . Therefore, in this particular case,
configure.gnu fails to find its configure when builddir != srcdir .

The patch is straightforward:

--- lib/autoconf/general.m4 2003-10-27 12:10:56.000000000 +0100
+++ new/autoconf/general.m4 2004-04-16 18:54:11.000000000 +0200
@@ -1004,7 +1004,7 @@
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
- $SHELL $ac_srcdir/configure.gnu --help=recursive
+ $SHELL $ac_srcdir/configure.gnu --help=recursive --srcdir=$ac_srcdir
elif test -f $ac_srcdir/configure; then
echo
$SHELL $ac_srcdir/configure --help=recursive

Hopefully it should not harm to add it in 2.60.

- Nicolas





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise