From: David MacKenzie Date: Sun, 27 Mar 1994 05:44:01 +0000 (+0000) Subject: (AC_NOTICE): Don't save original args or initialize options here. X-Git-Tag: fsf-origin~741 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad1842ffb710631de9045bc2d20ff3c6903eccba;p=thirdparty%2Fautoconf.git (AC_NOTICE): Don't save original args or initialize options here. (AC_PARSEARGS): Do them here. (AC_PREPARE): Save a copy of original args here, if it hasn't been done yet. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index adc8ec9c1..80403766c 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -79,39 +79,38 @@ dnl [#] by AC_USER@AC_HOST on AC_DATE # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -# Save the original args to write them into config.status later. -ac_configure_args="[$]*" -ac_prog=[$]0 - -# Initialize some variables set by options. -exec_prefix= -floating_point=yes -norecursion= -prefix= -program_prefix= -program_suffix= -ac_silent= -srcdir= -ac_verbose= ])dnl dnl define(AC_PARSEARGS, -[changequote(,)dnl +[# Save the original args to write them into config.status later. +ac_configure_args="[$]*" + # Only options that might do something get documented. +changequote(,)dnl ac_usage="Usage: configure [options] [host] Options: [defaults in brackets] ---enable-FEATURE[=VAL] enable FEATURE (optional parameter VAL) +--enable-FEATURE[=VAL] include FEATURE [VAL=yes] --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local] --help print this message --prefix=PREFIX install host independent files in PREFIX [/usr/local] --quiet, --silent do not print \`checking for...' messages ---srcdir=DIR find the sources in DIR [. or ..] +--srcdir=DIR find the sources in DIR [configure dir or ..] --verbose print results of checks --version print the version of autoconf that created configure ---with-PACKAGE[=VAL] external PACKAGE is available (optional parameter VAL)" +--with-PACKAGE[=VAL] external PACKAGE is available [VAL=yes]" changequote([,])dnl +# Initialize some variables set by options. +exec_prefix= +floating_point=yes +norecursion= +prefix= +program_prefix= +program_suffix= +ac_silent= +srcdir= +ac_verbose= + # Get the option argument from the current or next ARGV element. ac_get_optarg=' case "$ac_option" in @@ -299,6 +298,9 @@ define(AC_PREPARE, [trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 trap 'rm -fr confdefs* $ac_clean_files' 0 +# Save the original args if we used an alternate arg parser. +ac_configure_args="${ac_configure_args-[$]*}" + # NLS nuisances. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). @@ -318,6 +320,7 @@ ac_unique_file=$1 if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then `..'. + ac_prog=[$]0 changequote(,)dnl ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` changequote([,])dnl diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index adc8ec9c1..80403766c 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -79,39 +79,38 @@ dnl [#] by AC_USER@AC_HOST on AC_DATE # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -# Save the original args to write them into config.status later. -ac_configure_args="[$]*" -ac_prog=[$]0 - -# Initialize some variables set by options. -exec_prefix= -floating_point=yes -norecursion= -prefix= -program_prefix= -program_suffix= -ac_silent= -srcdir= -ac_verbose= ])dnl dnl define(AC_PARSEARGS, -[changequote(,)dnl +[# Save the original args to write them into config.status later. +ac_configure_args="[$]*" + # Only options that might do something get documented. +changequote(,)dnl ac_usage="Usage: configure [options] [host] Options: [defaults in brackets] ---enable-FEATURE[=VAL] enable FEATURE (optional parameter VAL) +--enable-FEATURE[=VAL] include FEATURE [VAL=yes] --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local] --help print this message --prefix=PREFIX install host independent files in PREFIX [/usr/local] --quiet, --silent do not print \`checking for...' messages ---srcdir=DIR find the sources in DIR [. or ..] +--srcdir=DIR find the sources in DIR [configure dir or ..] --verbose print results of checks --version print the version of autoconf that created configure ---with-PACKAGE[=VAL] external PACKAGE is available (optional parameter VAL)" +--with-PACKAGE[=VAL] external PACKAGE is available [VAL=yes]" changequote([,])dnl +# Initialize some variables set by options. +exec_prefix= +floating_point=yes +norecursion= +prefix= +program_prefix= +program_suffix= +ac_silent= +srcdir= +ac_verbose= + # Get the option argument from the current or next ARGV element. ac_get_optarg=' case "$ac_option" in @@ -299,6 +298,9 @@ define(AC_PREPARE, [trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15 trap 'rm -fr confdefs* $ac_clean_files' 0 +# Save the original args if we used an alternate arg parser. +ac_configure_args="${ac_configure_args-[$]*}" + # NLS nuisances. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). @@ -318,6 +320,7 @@ ac_unique_file=$1 if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then `..'. + ac_prog=[$]0 changequote(,)dnl ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` changequote([,])dnl