]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
24 years ago* acgeneral.m4 (_AC_INIT_DEFAULTS_ENVIRONMENT): Rename as...
Akim Demaille [Tue, 14 Nov 2000 11:01:44 +0000 (11:01 +0000)] 
* acgeneral.m4 (_AC_INIT_DEFAULTS_ENVIRONMENT): Rename as...
* m4sh.m4 (AS_SHELL_SANITIZE): this.

24 years ago* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't neutralize
Akim Demaille [Tue, 14 Nov 2000 10:57:12 +0000 (10:57 +0000)] 
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't neutralize
autoconf's warnings.

24 years agoSet AC_LANG_PREPROC_REQUIRE which replaces AC_REQUIRE_CPP.
Akim Demaille [Tue, 14 Nov 2000 10:44:27 +0000 (10:44 +0000)] 
Set AC_LANG_PREPROC_REQUIRE which replaces AC_REQUIRE_CPP.
The main difference is that the former requires AC_LANG_COMPILER.
* aclang (AC_LANG_PREPROC, AC_LANG_PREPROC(C), AC_LANG_PREPROC(C++))
(AC_LANG_PREPROC(Fortran 77), AC_LANG_PREPROC_REQUIRE): New
macros.  Issue a warning when looking for the Fortran 77
preprocessor instead of an error.
(AC_LANG_COMPILER): Check that it is run before the corresponding
AC_LANG_PREPROC.
(AC_PROG_C
(AC_LANG_COMPILER_REQUIRE): Don't call directly
AC_LANG_COMPILER(_AC_LANG), rather invoke AC_LANG_COMPILER so that
the generic code in AC_LANG_COMPILER is run.
(AC_REQUIRE_CPP): Use AC_LANG_PREPROC_REQUIRE.
(AC_PROG_CC, AC_PROG_CXX): Don't require being run before the
corresponding AC_LANG_PREPROC: AC_LANG_COMPILER does it.
Propagate AC_LANG_PREPROC_REQUIRE.
* acgeneral.m4 (AC_TRY_CPP, AC_EGREP_CPP): Use it instead of
AC_REQUIRE_CPP.
* acspecific.m4 (_AC_DECL_YYTEXT, AC_PATH_X): Don't
AC_REQUIRE_CPP, inner macro will do it.
* aclang.m4 (AC_PROG_GCC_TRADITIONAL, AC_C_STRINGIZE)
(AC_C_PROTOTYPES): Likewise.
(AC_C_STRINGIZE): Yeeks!  The body of AC_CACHE_CHECK was not
quoted.  Use @%:@ do assist Emacs.
For some reason (don't ask), this revamping revealed that
AC_PROG_CC_STDC, because of the `break', does not clean its tmp
files.
* aclang.m4 (AC_PROG_CC_STDC): Extract the creation of conftest.c
out of AC_COMPILE_IFELSE.
Be sure to clean the tmp files.

24 years ago* tests/m4sh.at (AS_DIRNAME & AS_DIRNAME_SED): Simplify.
Akim Demaille [Tue, 14 Nov 2000 10:40:42 +0000 (10:40 +0000)] 
* tests/m4sh.at (AS_DIRNAME & AS_DIRNAME_SED): Simplify.

24 years ago* acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
Akim Demaille [Tue, 14 Nov 2000 10:38:57 +0000 (10:38 +0000)] 
* acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
since (i) you actually need a compiler, (ii) AC_TRY_LINK handles
it.
* acheaders.m4 (AC_HEADER_STDC): Don't require AC_PROG_CPP,
AC_TRY_CPP does it.

24 years agoCreate acheaders.m4.
Akim Demaille [Tue, 14 Nov 2000 10:31:39 +0000 (10:31 +0000)] 
Create acheaders.m4.
* acgeneral.m4 (AC_CHECK_HEADER, AC_CHECK_HEADERS)
(AH_CHECK_HEADERS): Move to...
* acheaders.m4: here, a new file.
* acspecific.m4 (_AC_CHECK_HEADER_DIRENT, AH_CHECK_HEADERS_DIRENT)
(AC_HEADER_DIRENT, AC_HEADER_MAJOR, AC_HEADER_STAT, AC_HEADER_STDC)
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME)
(_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H)
(_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL, AC_HEADER_TIOCGWINSZ): Move
to...
* acheaders.m4: here.

24 years agoMove AC_MSG_* into M4sh.
Akim Demaille [Tue, 14 Nov 2000 10:11:43 +0000 (10:11 +0000)] 
Move AC_MSG_* into M4sh.
* acgeneral.m4 (_AC_SH_QUOTE, _AC_SH_QUOTE_IFELSE, _AC_ECHO): Move
to...
* m4sh.m4 (_AS_QUOTE, _AS_QUOTE_IFELSE, _AS_ECHO): here.
(AS_MESSAGE, AS_WARN, AS_ERROR): New.
* acgeneral.m4 (AC_MSG_NOTICE, AC_MSG_WARN, AC_MSG_ERROR): Use them.
(AC_FD_MSG, AC_FD_LOG): Be AU_ALIAS'es of...
(AS_MESSAGE_FD, AS_MESSAGE_LOG_FD): new.
Adjust all dependencies.

24 years ago* acgeneral.m4: Spread some AS_EXIT and AC_MSG_ERROR.
Akim Demaille [Tue, 14 Nov 2000 10:09:20 +0000 (10:09 +0000)] 
* acgeneral.m4: Spread some AS_EXIT and AC_MSG_ERROR.
(AC_OUTPUT): Don't play with trap, use ac_clean_files.

24 years agoUse AC_MSG_ERROR in `config.status', but adjust AC_MSG_* to use $0
Akim Demaille [Tue, 14 Nov 2000 10:05:14 +0000 (10:05 +0000)] 
Use AC_MSG_ERROR in `config.status', but adjust AC_MSG_* to use $0
instead of hard coded `configure'.
* acgeneral.m4 (AC_COPYRIGHT): s/configure.in/__file__/.
(_AC_INIT_DEFAULTS_FDS): Append to AC_FD_LOG instead of creating
it.  No longer insert the configure banner.
(_AC_INIT_DEFAULTS): Create config.log with the banner.
Define `as_me'.
(_AC_INIT_PARSE_ARGS, _AC_INIT_PREPARE, AC_MSG_NOTICE)
(AC_MSG_CHECKING, AC_MSG_RESULT, AC_MSG_RESULT_UNQUOTED)
(AC_MSG_WARN, AC_MSG_ERROR, AC_MSG_ERROR, AC_TRY_CPP)
(_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
(_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS, _AC_PROG_F77_V_OUTPUT): Use
`$as_me' instead of `configure'.
(AC_OUTPUT): Get rid of the UCA, and of the empty line when
dumping confdefs.h into config.log.
(_AC_OUTPUT_CONFIG_STATUS): Use _AC_INIT_DEFAULTS_FDS.
Print a banner.
Use AC_MSG_ERROR and AC_MSG_NOTICE.
* acgeneral.m4 (AC_CACHE_LOAD, _AC_OUTPUT_FILES, _AC_OUTPUT_LINKS)
(_AC_OUTPUT_HEADERS):  Use AC_MSG_NOTICE.
* tests/semantics.at (missing templates): Adjust.

24 years ago* doc/autoconf.texi (autoconf Invocation): Explain `-W error'
Akim Demaille [Tue, 14 Nov 2000 10:00:25 +0000 (10:00 +0000)] 
* doc/autoconf.texi (autoconf Invocation): Explain `-W error'
gives back traces.

24 years ago* acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.
Pavel Roskin [Sat, 11 Nov 2000 07:05:02 +0000 (07:05 +0000)] 
* acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.
(AC_FUNC_GETPGRP): Likewise.
* acspecific.m4 (AC_AIX): Likewise.
* m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
* m4/missing.m4 (AM_MISSING_PROG): Likewise.
* m4/sanity.m4 (AM_SANITY_CHECK): Likewise.

24 years ago* acfunctions.m4: Always quote first argument of AC_MSG_ERROR,
Pavel Roskin [Sat, 11 Nov 2000 05:59:21 +0000 (05:59 +0000)] 
* acfunctions.m4: Always quote first argument of AC_MSG_ERROR,
AC_MSG_WARN, AC_MSG_CHECKING, AC_MSG_RESULT,
AC_MSG_RESULT_UNQUOTED.
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* configure.in: Likewise.
* doc/autoconf.texi: Likewise.

24 years ago* doc/autoconf.texi (Particular Structures): Fix examples for
Pavel Roskin [Sat, 11 Nov 2000 04:24:29 +0000 (04:24 +0000)] 
* doc/autoconf.texi (Particular Structures): Fix examples for
AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV.

24 years agoIgnore PS and PDF files.
Pavel Roskin [Sat, 11 Nov 2000 04:15:57 +0000 (04:15 +0000)] 
Ignore PS and PDF files.

24 years ago* doc/autoconf.texi (Limitations of Usual Tools): Don't use
Pavel Roskin [Fri, 10 Nov 2000 17:14:14 +0000 (17:14 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools): Don't use
uncommon abbreviations.

24 years ago* doc/autoconf.texi (Limitations of Builtins): Some information
Akim Demaille [Fri, 10 Nov 2000 16:56:22 +0000 (16:56 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): Some information
about `trap'.
Document the Free BSD bug observed by Pavel.

24 years ago* autoscan.pl (scan_files): Eliminate a warning if no C files
Pavel Roskin [Fri, 10 Nov 2000 15:49:15 +0000 (15:49 +0000)] 
* autoscan.pl (scan_files): Eliminate a warning if no C files
are found.
(output): Likewise. Use AC_CONFIG_SRCDIR and AC_CONFIG_FILES
instead of old-style arguments for AC_INIT and AC_OUTPUT.

24 years ago* doc/autoconf.texi (Limitations of Usual Tools): `&' in sed's rhs
Akim Demaille [Fri, 10 Nov 2000 15:04:10 +0000 (15:04 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools): `&' in sed's rhs
is portable.

24 years ago* doc/autoconf.texi (Shell Substitutions): Some information about
Akim Demaille [Fri, 10 Nov 2000 14:55:37 +0000 (14:55 +0000)] 
* doc/autoconf.texi (Shell Substitutions): Some information about
Solaris' sh handling of ``foo=${foo='}'}'' collected by Alexandre,
reported by David Taylor.

24 years agoTypos.
Akim Demaille [Fri, 10 Nov 2000 14:44:30 +0000 (14:44 +0000)] 
Typos.

24 years ago* tests/m4sh.at (Negated classes in globbing): New test.
Akim Demaille [Fri, 10 Nov 2000 14:43:33 +0000 (14:43 +0000)] 
* tests/m4sh.at (Negated classes in globbing): New test.

24 years ago* doc/autoconf.texi (Limitations of Builtins): `for i; do'.
Akim Demaille [Fri, 10 Nov 2000 14:24:46 +0000 (14:24 +0000)] 
* doc/autoconf.texi (Limitations of Builtins): `for i; do'.

24 years ago* doc/autoconf.texi (Shellology): Some about /usr/xpg4/bin/sh on
Akim Demaille [Fri, 10 Nov 2000 12:10:13 +0000 (12:10 +0000)] 
* doc/autoconf.texi (Shellology): Some about /usr/xpg4/bin/sh on
Solaris.
Sort the entries.
Some words about POSIX vs Bourne shell.
From Russ Allbery and Robert Lipe.

24 years agoTypo.
Akim Demaille [Fri, 10 Nov 2000 11:45:45 +0000 (11:45 +0000)] 
Typo.

24 years ago* doc/autoconf.texi (Shell Substitutions): Split into...
Akim Demaille [Fri, 10 Nov 2000 11:43:23 +0000 (11:43 +0000)] 
* doc/autoconf.texi (Shell Substitutions): Split into...
(Shell Substitutions, Assignments): these.
Move them before `Special Shell Variables'.
(Shell Substitutions): Include information on `$()' from Russ
Allbery.

24 years agoWhen running
Akim Demaille [Fri, 10 Nov 2000 10:57:34 +0000 (10:57 +0000)] 
When running
AC_INIT
AC_PROG_CC
AC_LANG_COMPILER_REQUIRE
AC_PROG_CC is expanded twice, because AC_PROG_CC provides
`AC_PROG_CC', and not `AC_LANG_COMPILER(C)' as expected by
AC_LANG_COMPILER_REQUIRE.
* aclang.m4 (AC_LANG_COMPILER(C)): Instead of calling AC_PROG_CC,
require it.
(AC_LANG_COMPILER(C++), AC_LANG_COMPILER(Fortran 77)): Likewise.

24 years ago* m4sh.m4 (AS_MKDIR_P, AS_DIRNAME_SED): Don't shell quote $1.
Akim Demaille [Fri, 10 Nov 2000 10:14:44 +0000 (10:14 +0000)] 
* m4sh.m4 (AS_MKDIR_P, AS_DIRNAME_SED): Don't shell quote $1.
Adjust callers.
Reported by Paul Eggert.
* tests/m4sh.at: Sort.

24 years ago* install-sh: Use ":" instead of "true".
Pavel Roskin [Thu, 9 Nov 2000 20:59:26 +0000 (20:59 +0000)] 
* install-sh: Use ":" instead of "true".

24 years ago* tests/tools.at (Syntax of the scripts): Check "autoreconf"
Pavel Roskin [Thu, 9 Nov 2000 19:13:23 +0000 (19:13 +0000)] 
* tests/tools.at (Syntax of the scripts): Check "autoreconf"
only once. Check "install-sh", "mkinstalldirs" and "missing".

24 years ago * acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Use ":" instead of
Pavel Roskin [Thu, 9 Nov 2000 18:59:18 +0000 (18:59 +0000)] 
    * acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Use ":" instead of
        "true".
        * tests/atgeneral.m4 (AT_INIT): Likewise.
        * tests/tools.at (Syntax of the scripts): Likewise.

24 years ago* tests/m4sugar.at (m4_warn): Adjusted to accept stack dump when
Pavel Roskin [Thu, 9 Nov 2000 18:50:55 +0000 (18:50 +0000)] 
* tests/m4sugar.at (m4_warn): Adjusted to accept stack dump when
-Werror is used.

24 years ago* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
Akim Demaille [Wed, 8 Nov 2000 17:54:11 +0000 (17:54 +0000)] 
* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
(m4_expansion_stack_dump): this.

24 years ago* aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
Akim Demaille [Wed, 8 Nov 2000 17:46:24 +0000 (17:46 +0000)] 
* aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
a value.
Reported by Paul Martinolich.
(_AC_LANG_COMPILER_GNU): Pass the test as the body of
AC_LANG_PROGRAM, not the prologue.

24 years ago* autoconf.sh: Temporarily disable recognizing of abbreviated
Pavel Roskin [Tue, 7 Nov 2000 17:58:43 +0000 (17:58 +0000)] 
* autoconf.sh: Temporarily disable recognizing of abbreviated
long options - it's hard to maintain them by hand.
* autoheader.sh: Likewise.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* ifnames.sh: Likewise.

24 years ago* aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77):
Akim Demaille [Tue, 7 Nov 2000 14:16:54 +0000 (14:16 +0000)] 
* aclang.m4 (ac_cv_prog_gcc, ac_cv_prog_gxx, ac_cv_prog_g77):
Be AU_DEFUN'd, not AU_ALIAS'd.
Reported by Ralf Corsepius.
* tests/mktests.sh (exclude_list): Skip these variables.

24 years agom4_syscmd was reestablished as `syscd' intead of `syscmd' because
Akim Demaille [Tue, 7 Nov 2000 11:49:35 +0000 (11:49 +0000)] 
m4_syscmd was reestablished as `syscd' intead of `syscmd' because
instead of `s/^m4_//', m4_copy_unm4 was running `s/[m4_]//'.
* m4sugar.m4 (m4_copy_unm4): Fix.

24 years ago* acgeneral.m4 (AC_CHECKING): Is not an alias of AC_MSG_NOTICE,
Akim Demaille [Tue, 7 Nov 2000 10:50:29 +0000 (10:50 +0000)] 
* acgeneral.m4 (AC_CHECKING): Is not an alias of AC_MSG_NOTICE,
hence use AU_DEFUN, not AU_ALIAS.

24 years ago.
Jim Meyering [Sat, 4 Nov 2000 22:08:13 +0000 (22:08 +0000)] 
.

24 years ago(AC_FUNC_FNMATCH): Add a test to detect the d*/*1 vs d/s/1 bug.
Jim Meyering [Sat, 4 Nov 2000 22:07:50 +0000 (22:07 +0000)] 
(AC_FUNC_FNMATCH): Add a test to detect the d*/*1 vs d/s/1 bug.
Add a couple more test cases to catch bugs in glibc 2.1.95.
Include fnmatch.h unconditionally
Mention the GNU C library.
From Paul Eggert.

24 years agoAC_CONFIG_AUX_DIR_DEFAULTS overrides AC_CONFIG_AUX_DIR. Ouch.
Akim Demaille [Fri, 3 Nov 2000 16:02:54 +0000 (16:02 +0000)] 
AC_CONFIG_AUX_DIR_DEFAULTS overrides AC_CONFIG_AUX_DIR.  Ouch.
Reported by Paul Martinolich.
* acgeneral.m4 (AC_PROVIDE): Don't forget to `m4_provide'!!!
Tss, novice...
* tests/base.at (AC_REQUIRE & AC_PROVIDE): New test.

24 years ago* m4sugar.m4 (m4_location): When using its value, don't use
Akim Demaille [Fri, 3 Nov 2000 15:21:14 +0000 (15:21 +0000)] 
* m4sugar.m4 (m4_location): When using its value, don't use
`m4_defn', since m4_location is not a variable, it's a macro which
expands to __file__:__line__.
* tests/m4sugar.at (m4_warn): New test.

24 years ago* tests/tools.at (unexpanded macros): Strengthen.
Akim Demaille [Fri, 3 Nov 2000 15:08:28 +0000 (15:08 +0000)] 
* tests/tools.at (unexpanded macros): Strengthen.
* autoconf.sh (finalize.awk): Use `sub' instead of `index' +
`substr'.
More comments.

24 years ago* Makefile.am (.m4.m4f): Check that processing produces only
Akim Demaille [Fri, 3 Nov 2000 14:01:58 +0000 (14:01 +0000)] 
* Makefile.am (.m4.m4f): Check that processing produces only
comments and empty lines.
Check that freezing produced no output.
* m4sugar.m4: Commentize what was not.
* m4sh.m4: Likewise.
* aclang.m4: Formatting changes.

24 years ago* autoconf.m4 (define): Reestablish only after having read the
Akim Demaille [Fri, 3 Nov 2000 13:41:40 +0000 (13:41 +0000)] 
* autoconf.m4 (define): Reestablish only after having read the
`ac' files.
Adjust all the Autoconf code to use `m4_define', not `define'.

24 years ago* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
Akim Demaille [Fri, 3 Nov 2000 11:59:39 +0000 (11:59 +0000)] 
* acgeneral.m4 (AU_ALIAS): Don't forget to pass the arguments to
the new macro...
Reported by Ezra Peisach.
* tests/semantics.m4 (AC_HAVE_FUNCS): New test.
* tests/tools.at (autoupdate): As a benign side effect, updating a
macro that takes no argument produces `UPDATED([])', no longer
`UPDATED()'.  Adjust the test.

24 years ago* autoconf.m4: Instead of reactivating the macros before reading
Akim Demaille [Fri, 3 Nov 2000 11:14:48 +0000 (11:14 +0000)] 
* autoconf.m4: Instead of reactivating the macros before reading
Autoconf's file, do it afterwards, so that Autoconf promotes the
right use, but users still can use the old names.
Of course this revealed numerous non updated uses of old macros in
Autoconf's files.  Adjust them.
But for the time being, keep `define' alive for Autoconf.

24 years agoAC_REQUIRE and AC_DEFUN_ONCE don't work properly together. This
Akim Demaille [Fri, 3 Nov 2000 10:39:27 +0000 (10:39 +0000)] 
AC_REQUIRE and AC_DEFUN_ONCE don't work properly together. This
caused strange messages about AC_ARG_PROGRAM.
Reported by Jim Meyering.
* acgeneral.m4 (AC_DEFUN_ONCE): Fix the indirection to
m4_defun_once.
* m4sugar.m4 (m4_defun_once): Also define
`m4_location(MACRO-NAME)'.  s/ac_warn/m4_warn/.
Use `m4_defn' to read `m4_location'.
* tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE): Two new tests.

24 years agoSet up config.log earlier so that AC_MSG_ERROR and AC_MSG_WARN can
Akim Demaille [Fri, 3 Nov 2000 10:07:40 +0000 (10:07 +0000)] 
Set up config.log earlier so that AC_MSG_ERROR and AC_MSG_WARN can
be used early.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Call `_AC_INIT_PREPARE_FDS'.
(_AC_INIT_PREPARE): Don't.
(_AC_INIT_PREPARE_ENVIRONMENT, _AC_INIT_PREPARE_FDS): Rename as...
(_AC_INIT_DEFAULTS_ENVIRONMENT, _AC_INIT_DEFAULTS_FDS): these,
since they are called from `_AC_INIT_DEFAULTS', not
`_AC_INIT_PREPARE'.
(_AC_INIT_DEFAULTS_FDS): Dump `$@' in config.log, not
`$ac_configure_args' which is not computed yet.

24 years agoFormatting changes.
Akim Demaille [Fri, 3 Nov 2000 09:43:33 +0000 (09:43 +0000)] 
Formatting changes.

24 years agoRegenerate configure.
Akim Demaille [Fri, 3 Nov 2000 09:24:49 +0000 (09:24 +0000)] 
Regenerate configure.

24 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
Akim Demaille [Fri, 3 Nov 2000 09:22:14 +0000 (09:22 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
`-'.
Reported by Andreas Jaeger.

24 years ago* m4sh.m4 (_AS_UNSET_PREPARE): New macro, eved from
Akim Demaille [Fri, 3 Nov 2000 09:16:21 +0000 (09:16 +0000)] 
* m4sh.m4 (_AS_UNSET_PREPARE): New macro, eved from
_AC_INIT_PREPARE_ENVIRONMENT, and fixed: set `FOO' before trying
to unset it: `unset' exits 1 if the variable is not defined.
(AS_UNSET): Require it.  Use `as_unset' not `ac_unset'.
* acgeneral.m4 (_AC_INIT_PREPARE_ENVIRONMENT): Use it.

24 years ago* m4sugar.m4 (builtin, changecom, changequote, decr, dumpdef)
Akim Demaille [Fri, 3 Nov 2000 09:08:02 +0000 (09:08 +0000)] 
* m4sugar.m4 (builtin, changecom, changequote, decr, dumpdef)
(incr, index, indir, len, syscmd, sysval, traceoff, traceon):
Rename as...
(m4_builtin, m4_changecom, m4_changequote, m4_decr, m4_dumpdef)
(m4_incr, m4_index, m4_indir, m4_len, m4_syscmd, m4_sysval)
(m4_traceoff, m4_traceon): these.
* autoconf.m4 (builtin, changecom, decr, incr, index, indir, len)
(syscmd, sysval, traceoff, traceon): Reactivate.

24 years ago* m4sugar.m4 (m4_rename_m4, m4_copy_unm4): New macros.
Akim Demaille [Fri, 3 Nov 2000 08:53:26 +0000 (08:53 +0000)] 
* m4sugar.m4 (m4_rename_m4, m4_copy_unm4): New macros.
Use them.
(debugfile, debugmode, m4exit, m4wrap, maketemp, patsubst, regexp)
(substr, translit, m4_wrap): Rename as...
(m4_debugfile, m4_debugmode, m4_exit, m4_wrap, m4_maketemp)
(m4_patsubst, m4_regexp, m4_substr, m4_translit, m4_text_wrap): these.
Adjust all dependencies.
* acgeneral.m4: Adjust.
* tests/m4sugar.at: Adjust.
* autoconf.m4 (m4exit, patsubst, regexp, substr, translit):
Reestablish them.

24 years agoThe documentation is not clear about the obsoleteness of
Akim Demaille [Thu, 2 Nov 2000 17:44:02 +0000 (17:44 +0000)] 
The documentation is not clear about the obsoleteness of
`acconfig.h', `config.h.top', and `config.h.bot'.
Reported by Aharon Robbins.
* doc/autoconf.texi (Making configure Scripts)
(Automatic Remaking, Defining Symbols, Distributing): Forget about
these files.
(acconfig.h): Reword.
Display the old scheme presenting the dependencies between input
and output files.
(Changed File Names): Clarify.

24 years ago* doc/autoconf.texi (Limitations of Usual Tools): Some about
Akim Demaille [Thu, 2 Nov 2000 17:35:53 +0000 (17:35 +0000)] 
* doc/autoconf.texi (Limitations of Usual Tools): Some about
dirname.

24 years ago * ifnames.sh: Put the opening brace on the same line with
Pavel Roskin [Thu, 2 Nov 2000 17:03:32 +0000 (17:03 +0000)] 
    * ifnames.sh: Put the opening brace on the same line with
        patterns. Reported by Paul Martinolich.
        * tests/tools.at (AWK portability): Check ifnames.
        (ifnames): New test for ifnames.
        * THANKS: Updated.

24 years ago * m4/atconfig.m4 (AT_CONFIG): s/AT_TESTPATH/AUTOTEST_PATH/
Pavel Roskin [Thu, 2 Nov 2000 16:12:15 +0000 (16:12 +0000)] 
    * m4/atconfig.m4 (AT_CONFIG): s/AT_TESTPATH/AUTOTEST_PATH/
        because AT_TESTPATH looks like a macro.
        * tests/atconfig.in: Likewise.

24 years ago* autoconf.sh (trace.m4): Move all the M4 builtins into `at_'.
Akim Demaille [Thu, 2 Nov 2000 16:03:58 +0000 (16:03 +0000)] 
* autoconf.sh (trace.m4): Move all the M4 builtins into `at_'.
Catch the failures of the big pipe.

24 years ago* tests/tools.at (Tracing M4 builtins): New test.
Akim Demaille [Thu, 2 Nov 2000 15:32:23 +0000 (15:32 +0000)] 
* tests/tools.at (Tracing M4 builtins): New test.
* autoconh.sh (trace_format): Fix its computation.

24 years ago* tests/atgeneral.m4 (AT_CHECK): Check stderr first, since if both
Akim Demaille [Thu, 2 Nov 2000 15:21:04 +0000 (15:21 +0000)] 
* tests/atgeneral.m4 (AT_CHECK): Check stderr first, since if both
stdout and stderr fail, differences on the latter are probably
more significant than on the former.

24 years ago* autoconf.sh (task trace) [debug]: Instead of a long pipe, extend
Akim Demaille [Thu, 2 Nov 2000 15:06:02 +0000 (15:06 +0000)] 
* autoconf.sh (task trace) [debug]: Instead of a long pipe, extend
trace.m4.

24 years ago* autoupdate.sh (m4.txt): Use `dumpdef' and m4 to build it.
Akim Demaille [Thu, 2 Nov 2000 14:38:08 +0000 (14:38 +0000)] 
* autoupdate.sh (m4.txt): Use `dumpdef' and m4 to build it.

24 years agoImprove tests/README.
Akim Demaille [Thu, 2 Nov 2000 14:36:16 +0000 (14:36 +0000)] 
Improve tests/README.

24 years ago* m4sugar.m4 (popdef, pushdef): Rename as...
Akim Demaille [Thu, 2 Nov 2000 14:12:18 +0000 (14:12 +0000)] 
* m4sugar.m4 (popdef, pushdef): Rename as...
(m4_popdef, m4_pushdef): these.
Adjust dependencies.
* acgeneral.m4: Adjust.
* aclang.m4: Likewise.
* autoconf.m4 (popdef, pushdef): Reactivate them.

24 years ago* tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when
Akim Demaille [Thu, 2 Nov 2000 12:23:42 +0000 (12:23 +0000)] 
* tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when
`-v' is passed.

24 years ago * autoconf.sh: Using trap-safe "exit".
Pavel Roskin [Wed, 1 Nov 2000 19:57:54 +0000 (19:57 +0000)] 
    * autoconf.sh: Using trap-safe "exit".
        * autoreconf.sh: Likewise.
        * autoupdate.sh: Likewise.
        * tests/base.at: Use AS_EXIT instead of exit in configure.in.
        * tests/m4sh.at: Likewise.
        * tests/semantics.at: Likewise.

24 years agoIn M4sugar, move `define', `undefine', and `defn' into the `m4_'
Akim Demaille [Wed, 1 Nov 2000 17:32:17 +0000 (17:32 +0000)] 
In M4sugar, move `define', `undefine', and `defn' into the `m4_'
name space.
* m4sugar.m4 (m4_define, m4_defn, m4_undefine): New macros.
(define, defn, undefine): Undefine.
Adjust all uses.
* m4sh.m4: Adjust.
* autoconf.m4: Reenable these builtins.
* m4sugar.m4 (m4_expansion_stack_dump): Use m4_copy.

24 years agoGNU M4 1.4 improperly handle the traces of copies of builtins.
Akim Demaille [Wed, 1 Nov 2000 17:02:34 +0000 (17:02 +0000)] 
GNU M4 1.4 improperly handle the traces of copies of builtins.
* autoconf.sh (task trace): When tracing `BUILTIN' also trace
`m4_BUILTIN'.

24 years agoAutoupdate should not depend upon foreign macros.
Akim Demaille [Wed, 1 Nov 2000 16:49:47 +0000 (16:49 +0000)] 
Autoupdate should not depend upon foreign macros.
* autoupdate.sh (ac.m4): Use `_au_define', not `define'.
(input.m4): Use `_au_BUILTIN' not `BUILTIN'.

24 years ago* m4sugar.m4 (m4_fatal): Dump the expansion stack.
Akim Demaille [Wed, 1 Nov 2000 16:33:18 +0000 (16:33 +0000)] 
* m4sugar.m4 (m4_fatal): Dump the expansion stack.
* acgeneral.m4 (AC_FATAL): Use m4_fatal.

24 years agoMove the `defun' handling into M4sugar.
Akim Demaille [Wed, 1 Nov 2000 15:56:37 +0000 (15:56 +0000)] 
Move the `defun' handling into M4sugar.
* m4sugar.m4 (_m4_divert(GROW), _m4_expansion_stack_dump)
_m4_defun_pro, _m4_defun_epi, m4_defun, $1, m4_defun_once)
m4_before, _m4_require, m4_require, m4_expand_once, m4_provide)
m4_provide_ifelse): New macros.
* acgeneral.m4 (_AC_EXPANSION_STACK_DUMP, _AC_DEFUN_PRO)
_AC_DEFUN_EPI): Removed.
(AC_DEFUN, AC_DEFUN_ONCE, _AC_REQUIRE, AC_REQUIRE)
AC_PROVIDE_IFELSE, AC_FATAL): Reimplement atop M4sugar.

24 years ago * tests/tools.at (autoupdating AC_LINK_FILES): Invoke autoconf
Pavel Roskin [Wed, 1 Nov 2000 15:20:46 +0000 (15:20 +0000)] 
    * tests/tools.at (autoupdating AC_LINK_FILES): Invoke autoconf
        like in the rest of the tests.

24 years ago* autoconf.sh: Typo: s/m4__warnings/m4_warnings/.
Pavel Roskin [Wed, 1 Nov 2000 15:01:54 +0000 (15:01 +0000)] 
* autoconf.sh: Typo: s/m4__warnings/m4_warnings/.

24 years ago * autoupdate.sh: Check that $sed understands the meaning of "\b"
Pavel Roskin [Tue, 31 Oct 2000 18:07:33 +0000 (18:07 +0000)] 
    * autoupdate.sh: Check that $sed understands the meaning of "\b"
        instead of checking "--version".

24 years agoMove the handling of classified warnings into M4sugar.
Akim Demaille [Tue, 31 Oct 2000 15:20:15 +0000 (15:20 +0000)] 
Move the handling of classified warnings into M4sugar.
* m4sugar.m4 (m4_diagnose): Remove.
(m4_warning): New.
* acgeneral.m4 (AC_WARNING_IFELSE, _AC_WARNING_IFELSE)
(_AC_WARNING_ERROR_IFELSE, __AC_WARNING_ERROR_IFELSE)
(_AC_DIAGNOSE, AC_DIAGNOSE): Rename as...
* m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse)
(_m4_warn, m4_warn): these.
* acgeneral.m4 (AC_DIAGNOSE): Wrapper around `m4_warn'.
* autoconf.sh: Define `m4_warnings' instead of `_AC_WARNINGS'.

24 years ago * acspecific.m4 (AC_PATH_XTRA): Use AC_LANG_PROGRAM() as the
Pavel Roskin [Tue, 31 Oct 2000 04:47:23 +0000 (04:47 +0000)] 
    * acspecific.m4 (AC_PATH_XTRA): Use AC_LANG_PROGRAM() as the
        argument to AC_LINK_IFELSE.

24 years ago * m4sh.m4 (AS_EXIT): Use "false" for exit code 1, ":" for 0.
Pavel Roskin [Mon, 30 Oct 2000 19:47:58 +0000 (19:47 +0000)] 
    * m4sh.m4 (AS_EXIT): Use "false" for exit code 1, ":" for 0.
        * acgeneral.m4 (AC_MSG_ERROR): Don't use m4_default for the
        second argument - AS_EXIT takes care of it.

24 years ago* m4sugar.m4: Formatting changes.
Akim Demaille [Mon, 30 Oct 2000 19:02:23 +0000 (19:02 +0000)] 
* m4sugar.m4: Formatting changes.

24 years agoMove the handling of diversions into M4sugar.
Akim Demaille [Mon, 30 Oct 2000 19:01:24 +0000 (19:01 +0000)] 
Move the handling of diversions into M4sugar.
* acgeneral.m4 (_AC_DIVERT, AC_DIVERT, AC_DIVERT_PUSH)
(AC_DIVERT_POP): Move to...
* m4sugar.m4 (_m4_divert, m4_divert, m4_divert_push)
(m4_divert_pop): here.
* acgeneral.m4: Adjust to use only the M4sugar macros.
Nevertheless...
(AC_DIVERT_PUSH, AC_DIVERT_POP): New wrappers around the M4sugar
macros.
(_AC_DIVERT(...)): Rename all the diversions names as...
(_m4_divert(...)): these.

24 years agoMore stuff to ignore: config.h config.hin experr expout state*
Pavel Roskin [Mon, 30 Oct 2000 16:47:42 +0000 (16:47 +0000)] 
More stuff to ignore: config.h config.hin experr expout state*

24 years ago * m4sh.m4 (AS_EXIT): New macro that exits and makes sure that $?
Pavel Roskin [Mon, 30 Oct 2000 12:29:36 +0000 (12:29 +0000)] 
    * m4sh.m4 (AS_EXIT): New macro that exits and makes sure that $?
        is set correctly within the exit trap.
        (AS_TMPDIR): Use it.
        * acgeneral.m4 (AC_MSG_ERROR): Likewise,

24 years ago * acgeneral.m4 (AC_CHECK_TOOL): Set VARIABLE also when using the
Pavel Roskin [Mon, 30 Oct 2000 04:04:18 +0000 (04:04 +0000)] 
    * acgeneral.m4 (AC_CHECK_TOOL): Set VARIABLE also when using the
        cache. From Jim Meyering.
        (AC_PATH_TOOL): Likewise.

24 years ago * tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status
Pavel Roskin [Mon, 30 Oct 2000 03:24:44 +0000 (03:24 +0000)] 
    * tests/atgeneral.m4 (AT_CHECK): Warn if the expected exit status
        is different from what we got. Don't preserve exit status other
        than 77.

24 years ago * autoconf.sh: When scanning for unexpanded macros match only
Pavel Roskin [Mon, 30 Oct 2000 03:20:00 +0000 (03:20 +0000)] 
    * autoconf.sh: When scanning for unexpanded macros match only
        words beginning with "A?_" and "m4_" or containing "_A?_".
        Strip the comments before the matching. Don't use character
        ranges.

24 years ago * acgeneral.m4 (_AC_INIT_PREPARE): Don't use a newline before
Pavel Roskin [Mon, 30 Oct 2000 00:59:45 +0000 (00:59 +0000)] 
    * acgeneral.m4 (_AC_INIT_PREPARE): Don't use a newline before
        accessing $? - newlines in "trap" reset $? to 0 on FreeBSD 4.0.

24 years ago*** empty log message ***
Jim Meyering [Sun, 29 Oct 2000 19:44:45 +0000 (19:44 +0000)] 
*** empty log message ***

24 years ago(AC_MSG_WARN): Now that this macro expands to
Jim Meyering [Sun, 29 Oct 2000 19:43:53 +0000 (19:43 +0000)] 
(AC_MSG_WARN): Now that this macro expands to
two stmts, enclose them in `{' ... `}'.

24 years ago * aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
Pavel Roskin [Sat, 28 Oct 2000 16:33:19 +0000 (16:33 +0000)] 
    * aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
        for unsupported languages.

24 years ago * acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
Pavel Roskin [Fri, 27 Oct 2000 23:10:18 +0000 (23:10 +0000)] 
    * acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
        shell, not from the test program.

24 years ago * doc/autoconf.texi (Limitations of Builtins): Recommend using
Pavel Roskin [Fri, 27 Oct 2000 17:29:23 +0000 (17:29 +0000)] 
    * doc/autoconf.texi (Limitations of Builtins): Recommend using
        AC_MSG_ERROR instead of exit.
        (Autoconf Language): Fix examples.

24 years ago* tests/suite.at: Move "-*- Autoconf -*-" to the second line.
Pavel Roskin [Fri, 27 Oct 2000 14:43:44 +0000 (14:43 +0000)] 
* tests/suite.at: Move "-*- Autoconf -*-" to the second line.

24 years agoUse AC_MSG_ERROR in the test suite, not just `exit'.
Akim Demaille [Fri, 27 Oct 2000 14:15:28 +0000 (14:15 +0000)] 
Use AC_MSG_ERROR in the test suite, not just `exit'.
* tests/README: New file.
* tests/semantics.at: Don't just `exit 1' or `exit 77' from
configure.in: call AC_MSG_ERROR.
* tests/base.m4: Likewise.
* tests/m4sh.at: Likewise.
* tests/semantics.at (AT_CHECK_PROGS_PREPARE): New macro, eved
out of...
(AC_CHECK_PROG & AC_PATH_PROG): here.
Split into two individual tests...
(AC_CHECK_PROG & AC_CHECK_PROGS, AC_PATH_PROG & AC_PATH_PROGS): these.

24 years ago * autoconf.sh: Recognize short options followed by arguments
Pavel Roskin [Fri, 27 Oct 2000 13:47:54 +0000 (13:47 +0000)] 
    * autoconf.sh: Recognize short options followed by arguments
        without separators.
        * autoheader.sh: Likewise.
        * autoreconf.sh: Likewise. Recognize abbreviations for
        "--autoconf-dir" and "--m4dir"
        * autoupdate.sh: Likewise. Recognize abbreviations for
        "--autoconf-dir"

24 years ago * autoconf.sh: Don't show obsolete options on "--help". Report
Pavel Roskin [Thu, 26 Oct 2000 22:27:48 +0000 (22:27 +0000)] 
    * autoconf.sh: Don't show obsolete options on "--help". Report
        obsolete options to stderr. Adjust list of options. Correct
        processing of options. Process options with values separated by
        "=" first, so that abbreviations work. Don't accept "=" with
        short options.
        * autoheader.sh: Likewise.
        * autoreconf.sh: Likewise.
        * autoupdate.sh: Likewise.
        * ifnames.sh: There is no "--verbose" option.
        * doc/autoconf.texi: Option "-A" requires an argument.
        (autoreconf Invocation): Document "--install", "--symlink",
        "--m4dir" and the options passed to Automake.

24 years ago* shell.m4: Rename as...
Akim Demaille [Thu, 26 Oct 2000 09:52:34 +0000 (09:52 +0000)] 
* shell.m4: Rename as...
* m4sh.m4: this.
* tests/m4sugar.m4, tests/shell.m4, tests/torture.m4: Rename as...
* tests/m4sugar.at, tests/m4sh.at, tests/torture.at: these.
* tests/semantics.m4, tests/base.m4, tests/suite.m4: Rename as...
* tests/semantics.at, tests/base.at, tests/suite.at: these.
* tests/tools.m4, tests/update.m4, tests/syntax.m4: Rename as...
* tests/tools.at, tests/update.at, tests/syntax.at: these.
* tests/mktests.sh: Adjust the output file names.

24 years ago* autoupdate.sh: Redirect stdin for sed to /dev/null to avoid
Pavel Roskin [Wed, 25 Oct 2000 21:10:24 +0000 (21:10 +0000)] 
* autoupdate.sh: Redirect stdin for sed to /dev/null to avoid
hangs with non-GNU versions of sed.

24 years agoMove the Autoconf independent shell macros into the file
Akim Demaille [Wed, 25 Oct 2000 17:51:10 +0000 (17:51 +0000)] 
Move the Autoconf independent shell macros into the file
`shell.m4' and the name space `AS_*'.

* acgeneral.m4 (AC_SHELL_IFELSE, _AC_SHELL_TMPDIR, AC_SHELL_UNSET)
(AC_SHELL_MKDIR_P, AC_SHELL_DIRNAME): Rename and move to...
* shell.m4 (AS_IFELSE, AS_TMPDIR, AS_UNSET, AS_MKDIR_P)
(AS_DIRNAME): here, a new file.
Adjust all dependencies.

* tests/base.m4 (m4_wrap): Eve out into...
* tests/shell.m4: here, new file.
* tests/base.m4 (AC_SHELL_MKDIR_P)
(AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): Eve out into...
* tests/m4sugar.m4 (AS_MKDIR_P, AS_DIRNAME & AS_DIRNAME_SED):
here, new file.
Adjust the test suite.

24 years ago* acgeneral.m4 (AC_SHELL_DIRNAME): Split its code into...
Akim Demaille [Wed, 25 Oct 2000 15:04:29 +0000 (15:04 +0000)] 
* acgeneral.m4 (AC_SHELL_DIRNAME): Split its code into...
(AC_SHELL_DIRNAME_EXPR, AC_SHELL_DIRNAME_SED): these new macros.
* tests/base.m4 (AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): New
test.

24 years ago * tests/aclocal.m4 (AC_ENV_SAVE): Rename to ...
Pavel Roskin [Wed, 25 Oct 2000 11:47:20 +0000 (11:47 +0000)] 
    * tests/aclocal.m4 (AC_ENV_SAVE): Rename to ...
        (AC_STATE_SAVE): ... this.  Save the list of all files
        in the current directory.
        * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Compare lists of
        files created by AC_ENV_SAVE. Remove state* before and after
        the test.