]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Load the additions *before* running AC_INIT.
authorAkim Demaille <akim@epita.fr>
Tue, 23 May 2000 09:52:05 +0000 (09:52 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 23 May 2000 09:52:05 +0000 (09:52 +0000)
This is important if you want to redefine AC_INIT or some of its
sub macros (eeerk!), or if you want to use user defined macros
before AC_INIT.
Suggested by Didier Verna.

* acgeneral.m4 (_AC_INIT): Don't include `acsite.m4' and
`aclocal.m4'.
* autoconf.sh (run_m4, run_m4f): Do it.

ChangeLog
THANKS
acgeneral.m4
autoconf.in
autoconf.sh
bin/autoconf.in
lib/autoconf/general.m4

index 1fa262d3ae1ad713b2e1feb3339abe19da173585..75c7f0b2bf85546abb5852b87e0a636bb555fac4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2000-05-22  Akim Demaille  <akim@epita.fr>
+
+       Load the additions *before* running AC_INIT.
+       This is important if you want to redefine AC_INIT or some of its
+       sub macros (eeerk!), or if you want to use user defined macros
+       before AC_INIT.
+       Suggested by Didier Verna.
+
+       * acgeneral.m4 (_AC_INIT): Don't include `acsite.m4' and
+       `aclocal.m4'.
+       * autoconf.sh (run_m4, run_m4f): Do it.
+
 2000-05-22  Akim Demaille  <akim@epita.fr>
 
        Reading the ChangeLog revealed that the recent update of
diff --git a/THANKS b/THANKS
index 1593cb9c5770e132256374e350bc0e859151dc51..5c13db3529d333035c4798b2492bdde8e080bd22 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -24,7 +24,7 @@ Cort Dougan           cort@cs.nmt.edu
 Dave Adams             adams@hpesdwa.fc.hp.com
 Dave Love              fx@gnu.org
 Didier Desseaux                didess@infonie.fr
-Didier Verna           verna@inf.enst.fr
+Didier Verna           didier@xemacs.org
 Dietmar P. Schindler   schd@mra.man.de
 Doug Evans             dje@canuck.cygnus.com
 Eli Zaretskii          eliz@gnu.org
index 0221d8b3815ab36ec5e2fa88e69a330fd5324701..7618cfb4191ebd6d6e0f229e7747e49588390472 100644 (file)
@@ -1577,9 +1577,7 @@ AC_DIVERT_POP()dnl
 # Include the user macro files, prepare the diversions, and output the
 # preamble of the `configure' script.
 define([_AC_INIT],
-[m4_sinclude(acsite.m4)dnl
-m4_sinclude(./aclocal.m4)dnl
-AC_DIVERT([BINSH], [@%:@! /bin/sh])
+[AC_DIVERT([BINSH], [@%:@! /bin/sh])
 _AC_INIT_DEFAULTS()dnl
 AC_DIVERT_POP()dnl to NORMAL
 _AC_INIT_PARSE_ARGS
index 31d7cfccdbdcf018a941b22ea04d40de18cabf68..46e2472e14c70042c5799cee2005a19ac56141c7 100644 (file)
@@ -105,7 +105,7 @@ esac
 debug=false
 # Trace Autoconf's initialization?
 initialization=false
-localdir=
+localdir=.
 outfile=
 # Exit status.
 status=0
@@ -231,9 +231,11 @@ $debug ||
 }
 
 # Running m4.
-test -n "$localdir" && use_localdir="-I$localdir"
-run_m4="$M4 $use_localdir -I $AC_MACRODIR autoconf.m4"
-run_m4f="$M4 $use_localdir --reload $AC_MACRODIR/autoconf.m4f"
+test -f "$AC_MACRODIR/acsite.m4" && acsite_m4="$AC_MACRODIR/acsite.m4"
+test -f "$localdir/aclocal.m4"   && aclocal_m4="$localdir/aclocal.m4"
+m4_common="$acsite_m4 $aclocal_m4 -I $AC_MACRODIR -I $localdir"
+run_m4="$M4           $AC_MACRODIR/autoconf.m4  $m4_common"
+run_m4f="$M4 --reload $AC_MACRODIR/autoconf.m4f $m4_common"
 
 # Find the input file.
 case $# in
index 31d7cfccdbdcf018a941b22ea04d40de18cabf68..46e2472e14c70042c5799cee2005a19ac56141c7 100644 (file)
@@ -105,7 +105,7 @@ esac
 debug=false
 # Trace Autoconf's initialization?
 initialization=false
-localdir=
+localdir=.
 outfile=
 # Exit status.
 status=0
@@ -231,9 +231,11 @@ $debug ||
 }
 
 # Running m4.
-test -n "$localdir" && use_localdir="-I$localdir"
-run_m4="$M4 $use_localdir -I $AC_MACRODIR autoconf.m4"
-run_m4f="$M4 $use_localdir --reload $AC_MACRODIR/autoconf.m4f"
+test -f "$AC_MACRODIR/acsite.m4" && acsite_m4="$AC_MACRODIR/acsite.m4"
+test -f "$localdir/aclocal.m4"   && aclocal_m4="$localdir/aclocal.m4"
+m4_common="$acsite_m4 $aclocal_m4 -I $AC_MACRODIR -I $localdir"
+run_m4="$M4           $AC_MACRODIR/autoconf.m4  $m4_common"
+run_m4f="$M4 --reload $AC_MACRODIR/autoconf.m4f $m4_common"
 
 # Find the input file.
 case $# in
index 31d7cfccdbdcf018a941b22ea04d40de18cabf68..46e2472e14c70042c5799cee2005a19ac56141c7 100644 (file)
@@ -105,7 +105,7 @@ esac
 debug=false
 # Trace Autoconf's initialization?
 initialization=false
-localdir=
+localdir=.
 outfile=
 # Exit status.
 status=0
@@ -231,9 +231,11 @@ $debug ||
 }
 
 # Running m4.
-test -n "$localdir" && use_localdir="-I$localdir"
-run_m4="$M4 $use_localdir -I $AC_MACRODIR autoconf.m4"
-run_m4f="$M4 $use_localdir --reload $AC_MACRODIR/autoconf.m4f"
+test -f "$AC_MACRODIR/acsite.m4" && acsite_m4="$AC_MACRODIR/acsite.m4"
+test -f "$localdir/aclocal.m4"   && aclocal_m4="$localdir/aclocal.m4"
+m4_common="$acsite_m4 $aclocal_m4 -I $AC_MACRODIR -I $localdir"
+run_m4="$M4           $AC_MACRODIR/autoconf.m4  $m4_common"
+run_m4f="$M4 --reload $AC_MACRODIR/autoconf.m4f $m4_common"
 
 # Find the input file.
 case $# in
index 0221d8b3815ab36ec5e2fa88e69a330fd5324701..7618cfb4191ebd6d6e0f229e7747e49588390472 100644 (file)
@@ -1577,9 +1577,7 @@ AC_DIVERT_POP()dnl
 # Include the user macro files, prepare the diversions, and output the
 # preamble of the `configure' script.
 define([_AC_INIT],
-[m4_sinclude(acsite.m4)dnl
-m4_sinclude(./aclocal.m4)dnl
-AC_DIVERT([BINSH], [@%:@! /bin/sh])
+[AC_DIVERT([BINSH], [@%:@! /bin/sh])
 _AC_INIT_DEFAULTS()dnl
 AC_DIVERT_POP()dnl to NORMAL
 _AC_INIT_PARSE_ARGS