]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
authorAkim Demaille <akim@epita.fr>
Fri, 10 Aug 2001 07:18:28 +0000 (07:18 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 10 Aug 2001 07:18:28 +0000 (07:18 +0000)
current $prefix to the sub-configures.

ChangeLog
NEWS
doc/autoconf.texi
lib/autoconf/general.m4

index 0403e6fd52d5bc981087721abaae358b3d22da79..458bba955f5944ce7262b926fe05222f1c09bb8f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-10  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
+
+       * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
+       current $prefix to the sub-configures.
+
 2001-08-09  Tim Van Holder  <tim.van.holder@pandora.be>
 
        * lib/autoconf/lang.m4: Ignore *.xSYM when looking for an executable
diff --git a/NEWS b/NEWS
index 0821e5d2ec073344e6f889d803831eb51f368c70..d41b3b0a1f55d8fd14c5dc9d41eb86a60fae0041 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@
 - --force, -f
 ** autoheader
 - --force, -f
+** Bug fixes
+- The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures.
 \f
 * Major changes in Autoconf 2.52
 ** Documentation
index 5afea92952cb905e1ddc862255c35391eb428437..57fca80f4f0510a0bb8beaf364902af64f3469d7 100644 (file)
@@ -2671,12 +2671,25 @@ script found by @code{AC_CONFIG_AUX_DIR} is used.
 
 The subdirectory @code{configure} scripts are given the same command
 line options that were given to this @code{configure} script, with minor
-changes if needed (e.g., to adjust a relative path for the cache file or
-source directory).  This macro also sets the output variable
-@code{subdirs} to the list of directories @samp{@var{dir} @dots{}}.
-@file{Makefile} rules can use this variable to determine which
-subdirectories to recurse into.  This macro may be called multiple
-times.
+changes if needed, which include:
+
+@itemize @minus
+@item
+adjusting a relative path for the cache file;
+
+@item
+adjusting a relative path for the source directory;
+
+@item
+propagating the current value of @code{$prefix}, including if it was
+defaulted, and if default values of the top level and of sub directory
+@file{configure} differ.
+@end itemize
+
+This macro also sets the output variable @code{subdirs} to the list of
+directories @samp{@var{dir} @dots{}}.  @file{Makefile} rules can use
+this variable to determine which subdirectories to recurse into.  This
+macro may be called multiple times.
 @end defmac
 
 @node Default Prefix,  , Subdirectories, Setup
index 732bbb0863cf56d48babf8307a07241d7a8186ec..da785adafea1e0de28770146da2547aad3cc5860 100644 (file)
@@ -4377,10 +4377,18 @@ if test "$no_recursion" != yes; then
       ac_prev=srcdir ;;
     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
       ;;
+    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+      ;;
+    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+      ;;
     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
     esac
   done
 
+  # Always prepend --prefix to ensure using the same prefix
+  # in subdir configurations.
+  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
+
   for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
 
     # Do not complain, so a configure script can configure whichever