autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`--prefix /foo' mishandled in sub-configure invocation


From: Alexandre Duret-Lutz
Subject: `--prefix /foo' mishandled in sub-configure invocation
Date: 04 Nov 2001 21:47:09 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I've found the following bug when configuring AutoGen
with a configure generated by Autoconf 2.52e (2001-10-26).

~/projs/cvs/autogen/autogen % ./configure --prefix ~/usr
[... skiping until we configure the subdirectory ...]
configure: configuring in snprintfv
configure: running /bin/sh './configure' --prefix=/home/adl/usr  /home/adl/usr 
--enable-snprintfv-convenience --cache-file=/dev/null --srcdir=.
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: /home/adl/usr
[...]

Note the prefix argument (/home/adl/usr) appears twice in the
sub-configure invocation.

Index: ChangeLog
--- ChangeLog
+++ ChangeLog
@@ -1,1 +1,6 @@
+2001-11-04  Alexandre Duret-Lutz  <address@hidden>
+
+       * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): When removing
+       the --prefix option, also remove it's argument.
+

Index: lib/autoconf/status.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v
retrieving revision 1.15
diff -u -r1.15 status.m4
--- lib/autoconf/status.m4 2001/10/20 06:57:21 1.15
+++ lib/autoconf/status.m4 2001/11/04 20:46:23
@@ -1069,7 +1069,7 @@
     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
       ;;
     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
-      ;;
+      ac_prev=prefix ;;
     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
       ;;
     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;

-- 
Alexandre Duret-Lutz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]