[Top][All Lists]

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


From: Akim Demaille
Date: 10 Aug 2001 09:22:30 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

>>>>> "Akim" == Akim Demaille <address@hidden> writes:

>>>>> "Ralf" == Ralf Corsepius <address@hidden> writes:
Ralf> Below is a patch, which is supposed to fix this issue.

Akim> Thanks Ralf, it looks good.  May I ask you a ChangeLog & NEWS
Akim> entry, and maybe a fix of the documentation if you think it is
Akim> needed?

This is what I'm applying.  Correct me if I was wrong.

Index: ChangeLog
from  Ralf Corsepius  <address@hidden>

        * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Propagate the
        current $prefix to the sub-configures.

Index: NEWS
RCS file: /cvs/autoconf/NEWS,v
retrieving revision 1.182
diff -u -u -r1.182 NEWS
--- NEWS 2001/08/07 07:55:07 1.182
+++ NEWS 2001/08/10 07:16:08
@@ -8,6 +8,8 @@
 - --force, -f
 ** autoheader
 - --force, -f
+** Bug fixes
+- The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures.
 * Major changes in Autoconf 2.52
 ** Documentation
Index: doc/autoconf.texi
RCS file: /cvs/autoconf/doc/autoconf.texi,v
retrieving revision 1.497
diff -u -u -r1.497 autoconf.texi
--- doc/autoconf.texi 2001/08/07 07:55:07 1.497
+++ doc/autoconf.texi 2001/08/10 07:16:12
@@ -2671,12 +2671,25 @@
 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
address@hidden to the list of directories @address@hidden @dots{}}.
address@hidden rules can use this variable to determine which
-subdirectories to recurse into.  This macro may be called multiple
+changes if needed, which include:
address@hidden @minus
+adjusting a relative path for the cache file;
+adjusting a relative path for the source directory;
+propagating the current value of @code{$prefix}, including if it was
+defaulted, and if default values of the top level and of sub directory
address@hidden differ.
address@hidden itemize
+This macro also sets the output variable @code{subdirs} to the list of
+directories @address@hidden @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: lib/autoconf/general.m4
RCS file: /cvs/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.744
diff -u -u -r1.744 general.m4
--- lib/autoconf/general.m4 2001/07/04 15:12:58 1.744
+++ lib/autoconf/general.m4 2001/08/10 07:16:13
@@ -4377,9 +4377,17 @@
       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" ;;
+  # 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

reply via email to

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