+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
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
# 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
debug=false
# Trace Autoconf's initialization?
initialization=false
-localdir=
+localdir=.
outfile=
# Exit status.
status=0
}
# 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
debug=false
# Trace Autoconf's initialization?
initialization=false
-localdir=
+localdir=.
outfile=
# Exit status.
status=0
}
# 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
debug=false
# Trace Autoconf's initialization?
initialization=false
-localdir=
+localdir=.
outfile=
# Exit status.
status=0
}
# 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
# 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