+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
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
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