]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
26 years ago* doc/autoconf.texi (Writing configure.in): Explain what Autoconf
Akim Demaille [Mon, 3 Apr 2000 11:59:27 +0000 (11:59 +0000)] 
* doc/autoconf.texi (Writing configure.in): Explain what Autoconf
is.  Explain how to use the quotation scheme used in Autoconf.
(Quoting): Update.  Do not advocate changequote.

26 years agoFix typo.
Akim Demaille [Mon, 3 Apr 2000 11:19:22 +0000 (11:19 +0000)] 
Fix typo.

26 years agoFix F77 name-mangling macros to work with cached values (so
Akim Demaille [Mon, 3 Apr 2000 08:47:05 +0000 (08:47 +0000)] 
Fix F77 name-mangling macros to work with cached values (so
they don't break the second time you run configure).

* aclang.m4 (AC_F77_NAME_MANGLING): Extract f77_case,
f77_underscore from cache variable.
(AC_F77_WRAPPERS): Get rid of ac_cv_f77_wrappers, it's useless.
Simplify the nested case-esac into a single one.
Simplify the documentation strings of CPP symbols.

26 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the accumulation in
Akim Demaille [Fri, 31 Mar 2000 15:47:30 +0000 (15:47 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Fix the accumulation in
CONFIG_HEADERS.

26 years ago* autoheader.sh: Catch up with the `mktemp -d' changes in
Akim Demaille [Fri, 31 Mar 2000 08:20:09 +0000 (08:20 +0000)] 
* autoheader.sh: Catch up with the `mktemp -d' changes in
autoconf.sh.
* autoupdate.sh: Likewise.

26 years ago* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): bug fix in F77 test program
Akim Demaille [Fri, 31 Mar 2000 08:06:38 +0000 (08:06 +0000)] 
* aclang.m4 (AC_F77_LIBRARY_LDFLAGS): bug fix in F77 test program
(missing whitespace--F77 requires program statements to start in
column 7).

26 years agoRewrite the autoheader chain on top of `autoconf --trace'.
Akim Demaille [Wed, 29 Mar 2000 16:48:00 +0000 (16:48 +0000)] 
Rewrite the autoheader chain on top of `autoconf --trace'.

* autoheader.m4: Dispatch the prototypes next to there AC_
siblings.
(AH_TEMPLATE, AH_VERBATIM): Move to...
* acgeneral.m4: here.
(AH_OUTPUT): New macro.
* autoheader.sh: Run `autoconf --trace' instead of `m4 autoheader.m4'.
* autoheader.m4: Remove.
* Makefile.am: Adjust.
* tests/tools.m4 (AH_DEFUN): Remove, no longer makes sense.
* tests/actests.m4 (autoheader::AC_TATOOINE): Remove, was used by
the test above.

26 years agosilent.m4 depends upon the current quotation in m4, which changes
Akim Demaille [Wed, 29 Mar 2000 16:18:52 +0000 (16:18 +0000)] 
silent.m4 depends upon the current quotation in m4, which changes
if `-i' is used or not.

* autoconf.sh (trace::silent.m4): Removed.
(trace::run_m4_trace): Pass -Derrprint.

26 years agoFix the call to umask in the previous checkin.
Akim Demaille [Wed, 29 Mar 2000 16:15:22 +0000 (16:15 +0000)] 
Fix the call to umask in the previous checkin.

26 years agoUse `mktemp -d' when possible to create securely a tmp work dir.
Akim Demaille [Wed, 29 Mar 2000 11:09:59 +0000 (11:09 +0000)] 
Use `mktemp -d' when possible to create securely a tmp work dir.

* autoconf.sh: Use it when possible to create the dir $tmp.
Stop using variables for tmp files, use their names in $tmp.
[install]: Use the new features of autoconf --trace.

26 years agoProbably all the versions of bash up to 2.04 fail on
Akim Demaille [Tue, 28 Mar 2000 14:48:56 +0000 (14:48 +0000)] 
Probably all the versions of bash up to 2.04 fail on
  fnmatch ("/tmp", "[/\\]")
The backslash must not be last.

* acgeneral.m4 (_AC_INIT_HELP, AC_PATH_PROG, _AC_OUTPUT_FILES,
_AC_OUTPUT_LINKS, _AC_OUTPUT_SUBDIRS): Always make `\' be the
first character in all the `[]' of `case' patterns.

26 years agoUpdate NEWS.
Akim Demaille [Tue, 28 Mar 2000 13:36:43 +0000 (13:36 +0000)] 
Update NEWS.

26 years ago* acgeneral.m4 (_AC_CHECK_TOOL_PREFIX): Rename back as
Akim Demaille [Mon, 27 Mar 2000 15:47:35 +0000 (15:47 +0000)] 
* acgeneral.m4 (_AC_CHECK_TOOL_PREFIX): Rename back as
AC_CHECK_TOOL_PREFIX since some packages rely on it.

26 years agoMove all the language dependent macros into aclang.m4.
Akim Demaille [Mon, 27 Mar 2000 12:26:33 +0000 (12:26 +0000)] 
Move all the language dependent macros into aclang.m4.

* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.

26 years ago* autoconf.sh (trace): Let translate_awk do the whole translation
Akim Demaille [Mon, 27 Mar 2000 12:19:01 +0000 (12:19 +0000)] 
* autoconf.sh (trace): Let translate_awk do the whole translation
from `$trace' to the m4 program.

26 years ago* acgeneral.m4 (AC_PACKAGE): Also define AC_PACKAGE_STRING.
Akim Demaille [Mon, 27 Mar 2000 12:03:56 +0000 (12:03 +0000)] 
* acgeneral.m4 (AC_PACKAGE): Also define AC_PACKAGE_STRING.
Use it here and there.

26 years ago* acgeneral.m4 (_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Fix the DOS
Akim Demaille [Mon, 27 Mar 2000 11:44:22 +0000 (11:44 +0000)] 
* acgeneral.m4 (_AC_INIT_HELP, _AC_OUTPUT_SUBDIRS): Fix the DOS
absolute path pattern: s/?:[[/\]]/?:[[/\]]*/.

26 years ago* acgeneral.m4 (_AC_CANONICAL_TARGET, _AC_CANONICAL_BUILD): Rename
Akim Demaille [Sat, 25 Mar 2000 09:24:16 +0000 (09:24 +0000)] 
* acgeneral.m4 (_AC_CANONICAL_TARGET, _AC_CANONICAL_BUILD): Rename
as (AC_CANONICAL_TARGET, AC_CANONICAL_BUILD), although internal,
too much foreign code depends upon them.

26 years ago* autoconf.sh (translate_awk): `> "/dev/stderr"' is not portable
Akim Demaille [Sat, 25 Mar 2000 09:17:40 +0000 (09:17 +0000)] 
* autoconf.sh (translate_awk): `> "/dev/stderr"' is not portable
to systems without a real /dev/stderr in the file system or if not
using one of the three free awks.  Use
print message | "cat >&2"
...
END { close("cat >&2") }
From Aharon Robbins.

26 years ago* autoheader.sh (checking completeness): Be ready to recognize
Akim Demaille [Sat, 25 Mar 2000 09:16:53 +0000 (09:16 +0000)] 
* autoheader.sh (checking completeness): Be ready to recognize
patterns with a value, and spaces between `#' and the directive, e.g.
# define FOO FIXME:
Reported by John Fortin.

26 years ago* acgeneral.m4 (AC_RUN_IFELSE): New macro.
Akim Demaille [Sat, 25 Mar 2000 09:12:59 +0000 (09:12 +0000)] 
* acgeneral.m4 (AC_RUN_IFELSE): New macro.
(AC_TRY_RUN_NATIVE): Remove.
(AC_TRY_RUN): Use AC_RUN_IFELSE, not AC_TRY_RUN_NATIVE.

26 years ago* acgeneral.m4 (AC_CHECK_LIB): Ah ah! I recognized you, even
Akim Demaille [Sat, 25 Mar 2000 09:07:37 +0000 (09:07 +0000)] 
* acgeneral.m4 (AC_CHECK_LIB): Ah ah!  I recognized you, even
masked: you are AC_TRY_LINK_FUNC.
Fix quotation.
(AC_SEARCH_LIBS): Use AC_SHELL_IFELSE.

26 years ago* tests/semantics.m4 (AC_TRY_LINK_FUNC, AC_CHECK_LIB): New tests.
Akim Demaille [Sat, 25 Mar 2000 09:06:24 +0000 (09:06 +0000)] 
* tests/semantics.m4 (AC_TRY_LINK_FUNC, AC_CHECK_LIB): New tests.

26 years ago* acgeneral.m4 (AC_LANG_CALL, AC_LANG_CALL(C), AC_LANG_CALL(C++),
Akim Demaille [Sat, 25 Mar 2000 09:05:22 +0000 (09:05 +0000)] 
* acgeneral.m4 (AC_LANG_CALL, AC_LANG_CALL(C), AC_LANG_CALL(C++),
AC_LANG_CALL(FORTRAN77)): New macros.
(AC_TRY_LINK_FUNC): Use it.
(AC_TRY_CPP): Argument was output twice.
(AC_COMPILE_IFELSE, AC_LINK_IFELSE): Output $3 only if needed.

26 years ago* acgeneral.m4 (AC_TRY_COMPILER): Use AC_LINK_IFELSE.
Akim Demaille [Sat, 25 Mar 2000 09:04:13 +0000 (09:04 +0000)] 
* acgeneral.m4 (AC_TRY_COMPILER): Use AC_LINK_IFELSE.
(AC_TRY_LINK_FUNC, AC_CHECK_LIB, AC_CHECK_FUNC): Don't check that
the current language is C++ to output `extern "C"': the CPP
condition is enough.

26 years ago* acgeneral.m4 (AC_LINK_IFELSE, AC_COMPILE_IFELSE): New macros.
Akim Demaille [Sat, 25 Mar 2000 09:00:53 +0000 (09:00 +0000)] 
* acgeneral.m4 (AC_LINK_IFELSE, AC_COMPILE_IFELSE): New macros.
(AC_TRY_LINK, AC_TRY_COMPILE): Use them.
(AC_CHECK_MEMBER, AC_COMPILE_CHECK, AC_CHECK_DECL,
_AC_CHECK_TYPE_NEW): Adjust.
* acspecific.m4 (AC_DECL_YYTEXT, AC_PATH_XTRA): Adjust.

26 years ago* acspecific.m4 (AC_F77_NAME_MANGLING): Need to use
Akim Demaille [Fri, 24 Mar 2000 09:03:56 +0000 (09:03 +0000)] 
* acspecific.m4 (AC_F77_NAME_MANGLING): Need to use
AC_F77_LIBRARY_LDFLAGS when linking C and Fortran code.

26 years ago* acgeneral.m4 (AC_LANG_PROGRAM, AC_LANG_PROGRAM(C),
Akim Demaille [Thu, 23 Mar 2000 18:15:28 +0000 (18:15 +0000)] 
* acgeneral.m4 (AC_LANG_PROGRAM, AC_LANG_PROGRAM(C),
AC_LANG_PROGRAM(C++), AC_LANG_PROGRAM(FORTRAN77)): New macros.
(AC_TRY_COMPILE, AC_TRY_LINK): Use them.

26 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Support --help={long, short,
Akim Demaille [Thu, 23 Mar 2000 18:10:42 +0000 (18:10 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Support --help={long, short,
recursive}.
(_AC_INIT_HELP): Propagate --help=recursive to CONFIG_SUBDIRS.
Code stolen from...
(AC_OUTPUT_SUBDIRS): s/ac_config_dir/ac_subdir/g.

26 years ago* libm4.m4 (m4_do): New macro.
Akim Demaille [Thu, 23 Mar 2000 16:14:57 +0000 (16:14 +0000)] 
* libm4.m4 (m4_do): New macro.

26 years agoTypos in ChangeLog
Akim Demaille [Thu, 23 Mar 2000 16:11:19 +0000 (16:11 +0000)] 
Typos in ChangeLog

26 years agoProvide a language independent means to generate language specific
Akim Demaille [Tue, 21 Mar 2000 12:41:22 +0000 (12:41 +0000)] 
Provide a language independent means to generate language specific
programs.

* acgeneral.m4 (_AC_LANG_DISPATCH): New macro.
(AC_LANG): Use it.
(AC_LANG_SOURCE, AC_LANG_SOURCE(C), AC_LANG_SOURCE(C++),
AC_LANG_SOURCE(FORTRAN77)): New macros.
(AC_TRY_COMPILER, AC_EGREP_CPP, AC_TRY_RUN_NATIVE): Use
AC_LANG_SOURCE.

26 years agoFix a bug: some macros (e.g., AC_REVISION, AC_COPYRIGHT etc.) can
Akim Demaille [Tue, 21 Mar 2000 12:33:37 +0000 (12:33 +0000)] 
Fix a bug: some macros (e.g., AC_REVISION, AC_COPYRIGHT etc.) can
be used before AC_INIT, but they do require it.  But then, the
argument of the explicit AC_INIT call is lost.

* acgeneral.m4 (AC_CONFIG_SRCDIR): New macro.
(_AC_INIT_SRCDIR): Adjust.
(_AC_INIT): Pass your argument to AC_CONFIG_SRCDIR.

26 years ago* tests/semantics.m4 (AC_PATH_PROG, AC_PATH_PROGS): New tests.
Akim Demaille [Tue, 21 Mar 2000 12:22:27 +0000 (12:22 +0000)] 
* tests/semantics.m4 (AC_PATH_PROG, AC_PATH_PROGS): New tests.

26 years agoStart the language support overhaul: Introduce AC_LANG().
Akim Demaille [Tue, 21 Mar 2000 12:15:54 +0000 (12:15 +0000)] 
Start the language support overhaul: Introduce AC_LANG().

* acgeneral.m4 (AC_LANG): Renamed as _AC_LANG_CURRENT.
(AC_LANG, AC_LANG(C), AC_LANG(C++), AC_LANG(FORTRAN77)): New
macros.
(AC_LANG_C, AC_LANG_CPLUSPLUS, AC_LANG_FORTRAN): AU_DEFUN'ed.
Adjust all callers.
* acspecific.m4 (AC_F77_NAME_MANGLING): Remove the exceeding
AC_LANG_RESTORE.
* tests/Makefile.am (FILTER_MACROS): Add AC_LANG.

26 years agoSpeed ups.
Akim Demaille [Tue, 21 Mar 2000 12:09:31 +0000 (12:09 +0000)] 
Speed ups.

* libm4.m4 (m4_append, m4_list_append): Use m4_define, not define.
On my machine the former implementation takes 4mn 40s to run the
test suite.  Using m4_define leads to 4mn 15s.
* acgeneral.m4 (_AC_SUBST): Use AC_EXPAND_ONCE (which uses
m4_define, not define).  4mn.
(_AC_DIVERT): Don't use m4_case.  Starting from those 4mn, if you
just move NORMAL* first in m4_case, the test suite is run in 3mn.
If instead of using m4, you use an `associative array' plus a
wrapper (current implementation), it falls to 2mn.

26 years ago* tests/tools.m4 (autoconf --trace): New test.
Akim Demaille [Tue, 21 Mar 2000 12:08:24 +0000 (12:08 +0000)] 
* tests/tools.m4 (autoconf --trace): New test.

26 years ago* autoconf.sh (task trace): Pipe the output of the first m4 into
Akim Demaille [Tue, 21 Mar 2000 12:06:30 +0000 (12:06 +0000)] 
* autoconf.sh (task trace): Pipe the output of the first m4 into
the second one, instead of saving to a tmp file, so that we can
trace endless configure.in expansion.

26 years agoUniform idioms.
Akim Demaille [Tue, 21 Mar 2000 12:03:55 +0000 (12:03 +0000)] 
Uniform idioms.

* acgeneral.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
_AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Prefer
for i in : $is; do test $i = : && continue
over
for i in .. $is; do if test $i != ..; then

26 years ago* acgeneral.m4 (_AC_INIT_PREPARE, _AC_INIT_PARSE_ARGS): Move more
Akim Demaille [Tue, 21 Mar 2000 11:13:50 +0000 (11:13 +0000)] 
* acgeneral.m4 (_AC_INIT_PREPARE, _AC_INIT_PARSE_ARGS): Move more
initializations to...
(_AC_INIT_DEFAULTS): here.

26 years agoGive a means to compute `srcdir' earlier in configure.
Akim Demaille [Tue, 21 Mar 2000 10:01:40 +0000 (10:01 +0000)] 
Give a means to compute `srcdir' earlier in configure.

* acgeneral.m4 (_AC_INIT_SRCDIR): New macro, pulled out from...
(_AC_INIT_PREPARE): No longer compute `srcdir'.
(_AC_INIT): Use _AC_INIT_SRCDIR.
(AC_INIT): Don't forget to pass the argument to _AC_INIT.

26 years ago* acgeneral.m4 (AC_OUTPUT_SUBDIRS): Rename as _AC_OUTPUT_SUBDIRS.
Akim Demaille [Tue, 21 Mar 2000 09:20:40 +0000 (09:20 +0000)] 
* acgeneral.m4 (AC_OUTPUT_SUBDIRS): Rename as _AC_OUTPUT_SUBDIRS.
No argument, use AC_LIST_SUBDIRS.
Adjust callers.

26 years ago* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Double quote the head
Akim Demaille [Tue, 21 Mar 2000 09:18:31 +0000 (09:18 +0000)] 
* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH): Double quote the head
of the help snippet.

26 years agoGive an identity to `configure' scripts.
Akim Demaille [Tue, 21 Mar 2000 09:07:15 +0000 (09:07 +0000)] 
Give an identity to `configure' scripts.

* acgeneral.m4 (AC_PACKAGE): New macro.
(_AC_COPYRIGHT_SEPARATOR): Remove.
(AC_COPYRIGHT): Adjust.
(_AC_INIT_HELP, _AC_INIT_VERSION): Name the package you configure
when you want.
(_AC_INIT): Adjust.
* configure.in (AC_PACKAGE): Add.

26 years ago.
Jim Meyering [Mon, 20 Mar 2000 11:16:58 +0000 (11:16 +0000)] 
.

26 years ago(AC_SYS_LONG_FILE_NAMES): Don't test for existence
Jim Meyering [Mon, 20 Mar 2000 11:16:40 +0000 (11:16 +0000)] 
(AC_SYS_LONG_FILE_NAMES): Don't test for existence
of $ac_xdir.  Not only is `test -e' not portable, but the test isn't
necessary at all;  the following mkdir ends up accomplishing the
same goal.  Suggestion from Alexandre Oliva.

26 years ago.
Jim Meyering [Mon, 20 Mar 2000 11:07:49 +0000 (11:07 +0000)] 
.

26 years ago(_AC_INIT_PREPARE_ENVIRONMENT) [setting IFS]: Be careful
Jim Meyering [Mon, 20 Mar 2000 11:06:51 +0000 (11:06 +0000)] 
(_AC_INIT_PREPARE_ENVIRONMENT) [setting IFS]: Be careful
to use space, tab and new line, in precisely that order.

26 years ago* acgeneral.m4: Formatting changes.
Akim Demaille [Mon, 20 Mar 2000 10:35:53 +0000 (10:35 +0000)] 
* acgeneral.m4: Formatting changes.

26 years agoDon't rely on RS = "0" to swallow the whole input as a single
Akim Demaille [Mon, 20 Mar 2000 10:30:54 +0000 (10:30 +0000)] 
Don't rely on RS = "0" to swallow the whole input as a single
record, this is not portable: mawk and nawk understand it as RS =
"".  gawk understands it as expected.

* autoconf.sh (translate_awk::BEGIN): No longer change RS.
(translate_awk::body): Move to the END.
Instead, accumulate the input in `request'.

26 years ago* doc/autoconf.texi (Testing Values and Files): Be a subsection of
Akim Demaille [Mon, 20 Mar 2000 10:10:06 +0000 (10:10 +0000)] 
* doc/autoconf.texi (Testing Values and Files): Be a subsection of
`Portable Shell Programming'.
(Shell Substitutions, Limitations of Usual Tools): New subsections.

26 years agoUse a single tool to reformat the raw `configure' script output by
Akim Demaille [Mon, 20 Mar 2000 10:06:36 +0000 (10:06 +0000)] 
Use a single tool to reformat the raw `configure' script output by
m4.
Suggested by Paul Eggert.

* autoconf.sh: Stop playing with 2 seds and an AWK to finalize
`configure', a single AWK program is enough.

26 years agoAdd details to a ChangeLog entry
Akim Demaille [Fri, 17 Mar 2000 10:24:06 +0000 (10:24 +0000)] 
Add details to a ChangeLog entry

26 years agoIn Autoconf 2.13, although AC_OUTPUT_COMMANDS did double quote its
Akim Demaille [Fri, 17 Mar 2000 10:07:56 +0000 (10:07 +0000)] 
In Autoconf 2.13, although AC_OUTPUT_COMMANDS did double quote its
arguments, AC_OUTPUT arguments 2 and 3 were not!  Currently,
AC_OUTPUT over quotes too: stop that.
Reported by Martin Buchholz.

* doc/autoconf.texi (Output): Don't expand on the ternary
AC_OUTPUT.
* acgeneral.m4 (AC_OUTPUT): Don't over quote $2 and $3.

26 years ago* acspecific.m4 (AC_SYS_LONG_FILE_NAMES): Security fixes: create
Akim Demaille [Fri, 17 Mar 2000 08:40:27 +0000 (08:40 +0000)] 
* acspecific.m4 (AC_SYS_LONG_FILE_NAMES): Security fixes: create
the temp files in a private temporary directory, not directly in
TMPDIR.

26 years agoInstall the IFS we need once for all.
Akim Demaille [Fri, 17 Mar 2000 08:37:50 +0000 (08:37 +0000)] 
Install the IFS we need once for all.

* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): New macro.
Handle the NLS envvars, and IFS.
(_AC_INIT_PREPARE): Use it, no longer set the NLS envvars.
(_AC_WHICH_A, AC_PATH_PROG): Rely on the default IFS.
* acspecific.m4 (AC_PROG_INSTALL, AC_FUNC_SELECT_ARGTYPES):
Likewise.

26 years ago* acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP, AC_TRY_COMPILE,
Akim Demaille [Fri, 17 Mar 2000 08:31:49 +0000 (08:31 +0000)] 
* acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP, AC_TRY_COMPILE,
AC_TRY_LINK, AC_TRY_RUN_NATIVE): Simplify the removal of the
contest files: don't remove them before running the actions, just
remove them at the end of the macro.

26 years ago* acspecific.m4 (AC_FUNC_SELECT_ARGTYPES): Use
Akim Demaille [Thu, 16 Mar 2000 18:12:58 +0000 (18:12 +0000)] 
* acspecific.m4 (AC_FUNC_SELECT_ARGTYPES): Use
  : ${foo='some words'}
not
  : ${foo=some words}
since this is not portable: Digital Unix v5.0: `bad substitution'.
From Nicolas Joly.

26 years ago* libm4.m4 (m4_assert, m4_shiftn): New macros.
Akim Demaille [Thu, 16 Mar 2000 15:17:26 +0000 (15:17 +0000)] 
* libm4.m4 (m4_assert, m4_shiftn): New macros.
(m4_case,m4_match): Rewrite to use m4_shiftn (for readability reasons).
(m4_for): Add the STEP argument and some argument-verifying asserts.
(m4_split): Correct spaces to tabulator in regexp.

26 years agoRevamp AC_FUNC_SELECT_ARGTYPES.
Akim Demaille [Wed, 15 Mar 2000 09:55:21 +0000 (09:55 +0000)] 
Revamp AC_FUNC_SELECT_ARGTYPES.

* acspecific.m4 (AC_FUNC_SELECT_ARGTYPES): Use a single cache
variable instead of three.
Use AC_CACHE_CHECK.
Shorten the name of the var loops, they are no longer cached.
Include sys/types.h unconditionally.
`select' returns an int, fixes Autoconf/46.
Don't display parens in the user messages.

26 years ago* autoheader.sh: Use run_m4f, not run_m4.
Akim Demaille [Tue, 14 Mar 2000 09:34:42 +0000 (09:34 +0000)] 
* autoheader.sh: Use run_m4f, not run_m4.

26 years agoTypos in ChangeLog.
Akim Demaille [Tue, 14 Mar 2000 09:32:11 +0000 (09:32 +0000)] 
Typos in ChangeLog.

26 years ago* tests/actest.m4 (AC_ENV_SAVE): Don't consider RANDOM and LINENO
Akim Demaille [Tue, 14 Mar 2000 08:59:11 +0000 (08:59 +0000)] 
* tests/actest.m4 (AC_ENV_SAVE): Don't consider RANDOM and LINENO
which some shells update.

26 years ago* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH): No use for @%:@ here,
Akim Demaille [Tue, 14 Mar 2000 08:47:48 +0000 (08:47 +0000)] 
* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH): No use for @%:@ here,
no need to over quote $1 in the comments.

26 years ago* acgeneral.m4: Replace some ifelse with ifval or m4_default, or
Akim Demaille [Tue, 14 Mar 2000 08:41:15 +0000 (08:41 +0000)] 
* acgeneral.m4: Replace some ifelse with ifval or m4_default, or
even nothing when not needed.
* acspecific.m4: Likewise.

26 years ago* acgeneral.m4 (_AC_INIT_PREPARE): Insert the Autoconf version in
Akim Demaille [Tue, 14 Mar 2000 08:37:27 +0000 (08:37 +0000)] 
* acgeneral.m4 (_AC_INIT_PREPARE): Insert the Autoconf version in
config.log, and the command line which ran configure.
Kill a couple of useless quote around dollars.

26 years ago* acgeneral.m4 (_AC_INIT_PREPARE): Kill a changequote in the
Akim Demaille [Tue, 14 Mar 2000 08:34:21 +0000 (08:34 +0000)] 
* acgeneral.m4 (_AC_INIT_PREPARE): Kill a changequote in the
building of `ac_configure_args'.

26 years ago* acgeneral.m4 (AC_DIVERT): Rename _AC_DIVERT.
Akim Demaille [Tue, 14 Mar 2000 08:33:21 +0000 (08:33 +0000)] 
* acgeneral.m4 (AC_DIVERT): Rename _AC_DIVERT.
(AC_DIVERT): New macro.
Spread its use where better than a pair of AC_DIVERT_PUSH/POP.

26 years ago* acgeneral.m4 (_AC_INIT_BINSH): Remove, useless now that...
Akim Demaille [Tue, 14 Mar 2000 08:32:35 +0000 (08:32 +0000)] 
* acgeneral.m4 (_AC_INIT_BINSH): Remove, useless now that...
(AC_REVISION): Require AC_INIT, not _AC_INIT_BINSH.
(AC_INIT): Do what _AC_INIT_BINSH used to.
Don't require _AC_INIT_VERSION, just call it.
Rename as _AC_INIT.
(AC_INIT): New macro, single expansion wrapper around _AC_INIT.
(_AC_COPYRIGHT_SEPARATOR): New.
(AC_COPYRIGHT): Use it.
Require AC_INIT, not _AC_INIT_VERSION.
* doc/autoconf.texi (Versions): Promote as first section of
`Setup'.
Rename as `Notices'.
Document AC_COPYRIGHT.
Don't give false reasons for placing AC_REVISION before AC_INIT,
the place no longer matters.

26 years ago* autoconf.sh (trace_m4::smash): Double quote, we don't want the
Akim Demaille [Tue, 14 Mar 2000 08:30:41 +0000 (08:30 +0000)] 
* autoconf.sh (trace_m4::smash): Double quote, we don't want the
result to be evaluated.

26 years ago* acgeneral.m4: s/@%:@line __oline__/#line __oline__/g. __oline__
Akim Demaille [Tue, 14 Mar 2000 08:28:20 +0000 (08:28 +0000)] 
* acgeneral.m4: s/@%:@line __oline__/#line __oline__/g. __oline__
is not a macro, so there is just no use in avoiding `#'.

26 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): When there were no
Akim Demaille [Tue, 14 Mar 2000 08:27:19 +0000 (08:27 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): When there were no
CONFIG_FILES, we had to expand _AC_OUTPUT_FILES into the KILL
diversion, because it is AC_OUTPUT_FILES which undiverted the
AC_SUBST sed script at its proper place, otherwise it would have
been undiverted at the end of `configure', leading to an sh syntax
error.
Now that we no longer use a diversion, we don't need to call
AC_OUTPUT_FILES if useless.
(AC_OUTPUT_FILES): Rename as _AC_OUTPUT_FILES.
(AC_OUTPUT_LINKS): Rename as _AC_OUTPUT_LINKS.

26 years agoFormatting changes.
Akim Demaille [Tue, 14 Mar 2000 08:21:48 +0000 (08:21 +0000)] 
Formatting changes.

26 years agoAC_ARG_PROGRAM must not be expanded twice, which is likely since
Akim Demaille [Tue, 14 Mar 2000 08:20:25 +0000 (08:20 +0000)] 
AC_ARG_PROGRAM must not be expanded twice, which is likely since
Automake calls it, and usually users do too.  If it happens,
`--program-prefix=g' actually prepend two (or more) `g'.

* acgeneral.m4 (AC_DEFUN_ONCE): New macro.
(AC_ARG_PROGRAM): AC_DEFUNed_ONCE.  Or is it AC_DEFUN_ONCE'd? :).
No longer AC_EXPAND_ONCE the help string, the macro itself is
expanded at most once.
Rename the here-doc tag EOF_SED as EOF.

26 years agoGet rid of the ICMDS diversion.
Akim Demaille [Tue, 14 Mar 2000 08:19:53 +0000 (08:19 +0000)] 
Get rid of the ICMDS diversion.

* acgeneral.m4 (AC_DIVERT): Remove ICMDS.
(_AC_OUTPUT_COMMANDS_INIT): New growing string.
(_AC_CONFIG_COMMANDS_INIT, _AC_OUTPUT_CONFIG_STATUS): Adjust.

26 years agoTypo in ChangeLog.
Akim Demaille [Tue, 14 Mar 2000 08:14:41 +0000 (08:14 +0000)] 
Typo in ChangeLog.

26 years ago* autoheader.sh: Use run_m4f, not run_m4.
Akim Demaille [Tue, 14 Mar 2000 08:11:55 +0000 (08:11 +0000)] 
* autoheader.sh: Use run_m4f, not run_m4.

* autoheader.sh (syms):

26 years agoIntroduce AC_SUBST(VAR, VAL).
Akim Demaille [Tue, 14 Mar 2000 08:09:32 +0000 (08:09 +0000)] 
Introduce AC_SUBST(VAR, VAL).

* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Stop global double quoting,
failed experiment.
Merge all the var=val AC_SUBST(var) into AC_SUBST(var, val).
(AC_SUBST): Implement support for 2nd arg.
* doc/autoconf.texi (Setting Output Variables): Adjust.

26 years agoSimplify the diversions naming system.
Akim Demaille [Mon, 13 Mar 2000 17:52:26 +0000 (17:52 +0000)] 
Simplify the diversions naming system.
Suggested by Alexandre Oliva and Lars J. Aas

* libm4.m4 (ifndef): New macro.
* acgeneral.m4 (AC_DIVERT): New macro, maps a diversion name to
its value.  The diversions now have a short name, e.g., `NOTICE',
instead of the former macros which had long names, e.g.,
`AC_DIVERSION_NOTICE'.
(AC_DIVERT_PUSH): Adjust.
(AC_DIVERT_POP): Use ifndef.
(AC_DIVERSION_CURRENT): Rename as `AC_DIVERT_DIVERSION' to stay
within the `AC_DIVERT' name domain.
Adjust all callers.
* acspecific.m4: Adjust all callers.

26 years ago* doc/autoconf.texi (Invoking autoconf): Update documentation of
Akim Demaille [Mon, 13 Mar 2000 17:39:23 +0000 (17:39 +0000)] 
* doc/autoconf.texi (Invoking autoconf): Update documentation of
`autoconf --trace'.

26 years agoTypos in ChangeLog.
Akim Demaille [Mon, 13 Mar 2000 17:32:10 +0000 (17:32 +0000)] 
Typos in ChangeLog.

26 years ago* autoconf.sh (tmpbase): New var. Adjust trap code and other tmp
Akim Demaille [Mon, 13 Mar 2000 17:30:32 +0000 (17:30 +0000)] 
* autoconf.sh (tmpbase): New var.  Adjust trap code and other tmp
file names.
(translate_awk::BEGIN): Set RS to "0" so that the whole file be a
single record.
(translate_awk::trans): Convert from array to function.
(translate_awk::error): New function.
(translate_awk::main action): Implement support for ${sep}@ and
${sep}*.  Use trans() and error().
(translate_awk): Don't put space before user functions call, it is
not portable.
Remove trailing `;', this is not C :).
(task trace): Quote `$traces' when you eval it, to protect the
white spaces.
Propagate `translate_awk' failures to `autoconf.sh'.
Translate the quadrigraphs.

26 years agoTrap on 0 is not executed when `exit' is called without argument.
Akim Demaille [Mon, 13 Mar 2000 17:28:06 +0000 (17:28 +0000)] 
Trap on 0 is not executed when `exit' is called without argument.

* autoheader.sh (trap 1 2 13 15): s/exit/exit $?/.
* autoconf.sh: Likewise.
Remove translate_awk too.
* autoupdate.sh: Likewise.
Handle `--debug'.

26 years agoMore uniform style is scripts.
Akim Demaille [Mon, 13 Mar 2000 17:26:21 +0000 (17:26 +0000)] 
More uniform style is scripts.

* autoheader.sh: s/-eq/=/.
Uniform ordering of variable initializations, option handling.
Don't use quotes where useless (foo=$1, not foo="$1").
Propagate `run_m4' and `run_m4f'.
Use `$0' in --help.
* autoconf.sh: Likewise.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* ifnames.sh: Likewise.
* autoupdate.m4: Small bug: at the end `dnl' is disabled, so use
`m4_dnl'.

26 years agoTypos in ChangeLog.
Akim Demaille [Mon, 13 Mar 2000 15:31:26 +0000 (15:31 +0000)] 
Typos in ChangeLog.

26 years ago`autoconf --trace': faster.
Akim Demaille [Mon, 13 Mar 2000 15:28:55 +0000 (15:28 +0000)] 
`autoconf --trace': faster.

* autoconf.sh (initialization): New var, new option.
(option loop): When you need an arg, make sure there is one.
(run_m4f): New var, which content is that of the former...
(run_m4): Don't use m4 frozen state files.
Change all callers.
Don't pass AC_LOCALDIR, not documented, and unused.
(task trace): Honor `--verbose' and `--initialization'.
(globally): Send `--verbose' messages in stderr.
Fix random typos.

26 years ago* acspecific.m4 (AC_PROG_BINSH): Removed.
Akim Demaille [Mon, 13 Mar 2000 15:25:36 +0000 (15:25 +0000)] 
* acspecific.m4 (AC_PROG_BINSH): Removed.

26 years agoStart revamping `autoconf --trace'.
Akim Demaille [Mon, 13 Mar 2000 15:18:20 +0000 (15:18 +0000)] 
Start revamping `autoconf --trace'.

* autoconf.sh (debug): New var, new option.
Adjust the trap code.
(task trace): Instead of decoding `m4 --trace' with sed, decode it
with m4 itself.
($silent_m4): New file, which disables m4's `errprint'.
($trace_m4): New file.  Logistic for the m4 which is in charge of
decoding the traces of the first.
($translate_awk): Transform a user trace request into $trace_m4
code.

26 years agoFix typos in ChangeLog.
Akim Demaille [Fri, 10 Mar 2000 16:10:34 +0000 (16:10 +0000)] 
Fix typos in ChangeLog.

26 years agoMultiple `-e' to egrep are not portable. On IRIX 6.5 and Solaris
Akim Demaille [Fri, 10 Mar 2000 15:22:13 +0000 (15:22 +0000)] 
Multiple `-e' to egrep are not portable.  On IRIX 6.5 and Solaris
2.5.1 only the last one is honored:
  > echo "foonbar" | egrep -e 'foo' -e 'bar'
  bar
  > echo "foonbar" | egrep -e 'bar' -e 'foo'
  foo
Reported by Nicolas Joly.
An alternative would have to use `sed', unfortunately alternation
is not portable.

* tests/actest.m4 (join): New macro.
(AC_ENV_SAVE): Join the egrep patterns into a single big one.
* tests/Makefile.am (EGREP_EXCLUDE): Rename as FILTER_MACROS.
Join the egrep patterns into a single big one.

26 years ago*** empty log message ***
Jim Meyering [Fri, 10 Mar 2000 11:32:52 +0000 (11:32 +0000)] 
*** empty log message ***

26 years ago(_AC_CHECK_TOOL_PREFIX): Correct typos in definition:
Jim Meyering [Fri, 10 Mar 2000 11:32:08 +0000 (11:32 +0000)] 
(_AC_CHECK_TOOL_PREFIX): Correct typos in definition:
add `_' prefix to make the function name match comments and existing
uses.  Remove leading prefix from _AC_CANONICAL_HOST.

26 years ago* acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Added some missing
Akim Demaille [Thu, 9 Mar 2000 15:44:40 +0000 (15:44 +0000)] 
* acspecific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Added some missing
headers if they exist (needed for some missing prototypes) and
corrects the signal handler prototype/definition.  The signal
handler prototype is now prepended with an `extern "C"' for C++
compilers since some platforms explicitly require an `extern "C"'
signal handler.

26 years ago* autoheader.m4 (autoheader::AC_CHECK_HEADERS_DIRENT): Renamed as
Akim Demaille [Wed, 8 Mar 2000 18:38:53 +0000 (18:38 +0000)] 
* autoheader.m4 (autoheader::AC_CHECK_HEADERS_DIRENT): Renamed as
(autoheader::_AC_CHECK_HEADERS_DIRENT): to cope with the new name
of the autoconf:: macro.
Fixes autoconf/119, reported by Raja R Harinath.

26 years ago* acgeneral.m4 (AC_PATH_PROG, AC_OUTPUT_FILES, AC_OUTPUT_SUBDIRS):
Akim Demaille [Wed, 8 Mar 2000 17:32:40 +0000 (17:32 +0000)] 
* acgeneral.m4 (AC_PATH_PROG, AC_OUTPUT_FILES, AC_OUTPUT_SUBDIRS):
Fix quotation problems in DOS path handling.

26 years agoFix a typo in ChangeLog.
Akim Demaille [Wed, 8 Mar 2000 16:58:54 +0000 (16:58 +0000)] 
Fix a typo in ChangeLog.
Regenerate configure

26 years ago* acspecific.m4 (AC_FUNC_MMAP, AC_FUNC_ALLOCA): Make them C++
Akim Demaille [Wed, 8 Mar 2000 16:44:55 +0000 (16:44 +0000)] 
* acspecific.m4 (AC_FUNC_MMAP, AC_FUNC_ALLOCA): Make them C++
safe: include the right headers, cast the allocations etc.

26 years agoThe argument of AC_COPYRIGHT should be plain text, not an sh
Akim Demaille [Wed, 8 Mar 2000 16:13:32 +0000 (16:13 +0000)] 
The argument of AC_COPYRIGHT should be plain text, not an sh
comment.

* libm4.m4 (m4_quote): s/$@/$*/.
* acgeneral.m4 (AC_COPYRIGHT): Prepend `# ' to the lines that goes
on the top of `configure'.  Actually, prepend `@%:@ ' so that
there are as many evaluations on both sides.
(_AC_INIT_VERSION): No longer strip `# '.

26 years ago* tests/Makefile.am (all-local): Remove. It wastes time to have
Akim Demaille [Wed, 8 Mar 2000 16:12:09 +0000 (16:12 +0000)] 
* tests/Makefile.am (all-local): Remove.  It wastes time to have
testsuite rebuilt each time an ac*.m4 file changes.  It is enough
to build it for each `make check'.

26 years agoProvide a means to specify more Copyright information in
Akim Demaille [Wed, 8 Mar 2000 13:22:42 +0000 (13:22 +0000)] 
Provide a means to specify more Copyright information in
`configure'.  And after all, it suits to `configure --version' too.

* acgeneral.m4 (AC_DIVERSION_DEFAULTS, AC_DIVERSION_INIT_PREPARE):
New diversion numbers.
(AC_DIVERSION_INIT): Renamed as...
(AC_DIVERSION_INIT_PARSE_ARGS): this.
(AC_DIVERT_POP): Instead of going into wild endless loops when
there are more pops than pushes, die with dignity.
(AC_COPYRIGHT): New macro.
(_AC_INIT_NOTICE): Move definition of `ac_includes_default' from
here...
(_AC_INIT_PREPARE): to here.
(_AC_INIT_NOTICE): Remove.
(AC_INIT): Use it to install Autoconf's Copyright.
(_AC_INIT_DEFAULTS): New macro.
(AC_INIT): Use it.
(AC_PREFIX_DEFAULTS): Dump in AC_DIVERSION_DEFAULTS.
(_AC_INIT_PARSE_ARGS): Dump in AC_DIVERSION_INIT_PREPARE.