Akim Demaille
41ec08f9ed
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.
2000-11-10 10:57:34 +00:00
Akim Demaille
f9fd1e4edc
* m4sh.m4 (AS_MKDIR_P, AS_DIRNAME_SED): Don't shell quote $1.
...
Adjust callers.
Reported by Paul Eggert.
* tests/m4sh.at: Sort.
2000-11-10 10:14:44 +00:00
Pavel Roskin
ef0983118d
* install-sh: Use ":" instead of "true".
2000-11-09 20:59:26 +00:00
Pavel Roskin
a885ca5436
* tests/tools.at (Syntax of the scripts): Check "autoreconf"
...
only once. Check "install-sh", "mkinstalldirs" and "missing".
2000-11-09 19:13:23 +00:00
Pavel Roskin
1d03fe1675
* acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Use ":" instead of
...
"true".
* tests/atgeneral.m4 (AT_INIT): Likewise.
* tests/tools.at (Syntax of the scripts): Likewise.
2000-11-09 18:59:18 +00:00
Pavel Roskin
167526b3b2
* tests/m4sugar.at (m4_warn): Adjusted to accept stack dump when
...
-Werror is used.
2000-11-09 18:50:55 +00:00
Akim Demaille
97cdb56113
* m4sugar.m4 (_m4_expansion_stack_dump): Really rename as...
...
(m4_expansion_stack_dump): this.
2000-11-08 17:54:11 +00:00
Akim Demaille
6a1fe22942
* 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.
2000-11-08 17:46:24 +00:00
Pavel Roskin
603fad0c9c
* 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.
2000-11-07 17:58:43 +00:00
Akim Demaille
a9102fbdf9
* 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.
2000-11-07 14:16:54 +00:00
Akim Demaille
674d4eef25
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.
2000-11-07 11:49:35 +00:00
Akim Demaille
b4ae99995f
* acgeneral.m4 (AC_CHECKING): Is not an alias of AC_MSG_NOTICE,
...
hence use AU_DEFUN, not AU_ALIAS.
2000-11-07 10:50:29 +00:00
Jim Meyering
860977669c
.
2000-11-04 22:08:13 +00:00
Akim Demaille
b4a8fae52b
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.
2000-11-03 16:02:54 +00:00
Akim Demaille
43703ea9aa
* 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.
2000-11-03 15:21:14 +00:00
Akim Demaille
f1ba26c218
* tests/tools.at (unexpanded macros): Strengthen.
...
* autoconf.sh (finalize.awk): Use `sub' instead of `index' +
`substr'.
More comments.
2000-11-03 15:08:28 +00:00
Akim Demaille
e927749bb5
* 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.
2000-11-03 14:01:58 +00:00
Akim Demaille
ded24ff599
* autoconf.m4 (define): Reestablish only after having read the
...
`ac' files.
Adjust all the Autoconf code to use `m4_define', not `define'.
2000-11-03 13:41:40 +00:00
Akim Demaille
3c3853ced4
* 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.
2000-11-03 11:59:39 +00:00
Akim Demaille
7e4f776a09
* 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.
2000-11-03 11:14:48 +00:00
Akim Demaille
1c614b9e79
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.
2000-11-03 10:39:27 +00:00
Akim Demaille
9fe2458f8d
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.
2000-11-03 10:07:40 +00:00
Akim Demaille
9fe8a5d0c2
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): TRIPLET can include `_' and
...
`-'.
Reported by Andreas Jaeger.
2000-11-03 09:22:14 +00:00
Akim Demaille
3f580f38ab
* 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.
2000-11-03 09:16:21 +00:00
Akim Demaille
75390304e0
* 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.
2000-11-03 09:08:02 +00:00
Akim Demaille
d95de46af1
* 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.
2000-11-03 08:53:26 +00:00
Akim Demaille
528a6b7122
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.
2000-11-02 17:44:02 +00:00
Akim Demaille
5243fda44e
* doc/autoconf.texi (Limitations of Usual Tools): Some about
...
dirname.
2000-11-02 17:35:53 +00:00
Pavel Roskin
48f158e039
* 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.
2000-11-02 17:03:32 +00:00
Pavel Roskin
7bb9bdc360
* m4/atconfig.m4 (AT_CONFIG): s/AT_TESTPATH/AUTOTEST_PATH/
...
because AT_TESTPATH looks like a macro.
* tests/atconfig.in: Likewise.
2000-11-02 16:12:15 +00:00
Akim Demaille
5b4f860940
* autoconf.sh (trace.m4): Move all the M4 builtins into `at_'.
...
Catch the failures of the big pipe.
2000-11-02 16:03:58 +00:00
Akim Demaille
ff03218ac3
* tests/tools.at (Tracing M4 builtins): New test.
...
* autoconh.sh (trace_format): Fix its computation.
2000-11-02 15:32:23 +00:00
Akim Demaille
e015643d3f
* 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.
2000-11-02 15:21:04 +00:00
Akim Demaille
648bf798eb
* autoconf.sh (task trace) [debug]: Instead of a long pipe, extend
...
trace.m4.
2000-11-02 15:06:02 +00:00
Akim Demaille
294a6233c8
* autoupdate.sh (m4.txt): Use `dumpdef' and m4 to build it.
2000-11-02 14:38:08 +00:00
Akim Demaille
2353e0d366
* 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.
2000-11-02 14:12:18 +00:00
Akim Demaille
f2a537cc26
* tests/atgeneral.m4 (AT_CHECK, AT_CLEANUP): Be more verbose when
...
`-v' is passed.
2000-11-02 12:23:42 +00:00
Pavel Roskin
33de71ca28
* 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.
2000-11-01 19:57:54 +00:00
Akim Demaille
15e4d38025
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.
2000-11-01 17:32:17 +00:00
Akim Demaille
701a1dde55
GNU M4 1.4 improperly handle the traces of copies of builtins.
...
* autoconf.sh (task trace): When tracing `BUILTIN' also trace
`m4_BUILTIN'.
2000-11-01 17:02:34 +00:00
Akim Demaille
bbccbf1adb
Autoupdate should not depend upon foreign macros.
...
* autoupdate.sh (ac.m4): Use `_au_define', not `define'.
(input.m4): Use `_au_BUILTIN' not `BUILTIN'.
2000-11-01 16:49:47 +00:00
Akim Demaille
429b2e9e9d
* m4sugar.m4 (m4_fatal): Dump the expansion stack.
...
* acgeneral.m4 (AC_FATAL): Use m4_fatal.
2000-11-01 16:33:18 +00:00
Akim Demaille
4b19491f44
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.
2000-11-01 15:56:37 +00:00
Pavel Roskin
ae60935d08
* tests/tools.at (autoupdating AC_LINK_FILES): Invoke autoconf
...
like in the rest of the tests.
2000-11-01 15:20:46 +00:00
Pavel Roskin
a63489da61
* autoconf.sh: Typo: s/m4__warnings/m4_warnings/.
2000-11-01 15:01:54 +00:00
Pavel Roskin
3d52971e81
* autoupdate.sh: Check that $sed understands the meaning of "\b"
...
instead of checking "--version".
2000-10-31 18:07:33 +00:00
Akim Demaille
82756f7543
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'.
2000-10-31 15:20:15 +00:00
Pavel Roskin
a462c5c75e
* acspecific.m4 (AC_PATH_XTRA): Use AC_LANG_PROGRAM() as the
...
argument to AC_LINK_IFELSE.
2000-10-31 04:47:23 +00:00
Pavel Roskin
a24439a762
* 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.
2000-10-30 19:47:58 +00:00
Akim Demaille
16f55c53ab
* m4sugar.m4: Formatting changes.
2000-10-30 19:02:23 +00:00
Akim Demaille
4c40aa086f
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.
2000-10-30 19:01:24 +00:00
Pavel Roskin
acf30e3fb0
* 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,
2000-10-30 12:29:36 +00:00
Pavel Roskin
c27f9181bd
* acgeneral.m4 (AC_CHECK_TOOL): Set VARIABLE also when using the
...
cache. From Jim Meyering.
(AC_PATH_TOOL): Likewise.
2000-10-30 04:04:18 +00:00
Pavel Roskin
03bbc0e52b
* 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.
2000-10-30 03:24:44 +00:00
Pavel Roskin
80f8404bec
* 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.
2000-10-30 03:20:00 +00:00
Pavel Roskin
733ac61725
* acgeneral.m4 (_AC_INIT_PREPARE): Don't use a newline before
...
accessing $? - newlines in "trap" reset $? to 0 on FreeBSD 4.0.
2000-10-30 00:59:45 +00:00
Jim Meyering
102df92319
*** empty log message ***
2000-10-29 19:44:45 +00:00
Pavel Roskin
3ab42e94a3
* aclang.m4 (AC_REQUIRE_CPP): Don't default to C++ - call AC_FATAL
...
for unsupported languages.
2000-10-28 16:33:19 +00:00
Pavel Roskin
599b982dbd
* acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
...
shell, not from the test program.
2000-10-27 23:10:18 +00:00
Pavel Roskin
69a9124176
* doc/autoconf.texi (Limitations of Builtins): Recommend using
...
AC_MSG_ERROR instead of exit.
(Autoconf Language): Fix examples.
2000-10-27 17:29:23 +00:00
Pavel Roskin
6cb5583f10
* tests/suite.at: Move "-*- Autoconf -*-" to the second line.
2000-10-27 14:43:44 +00:00
Akim Demaille
7eadb5fda3
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.
2000-10-27 14:15:28 +00:00
Pavel Roskin
c46d9d8480
* 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"
2000-10-27 13:47:54 +00:00
Pavel Roskin
0dd3144b2e
* 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.
2000-10-26 22:27:48 +00:00
Akim Demaille
5ec791a2d5
* 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.
2000-10-26 09:52:34 +00:00
Pavel Roskin
bbc5dca3df
* autoupdate.sh: Redirect stdin for sed to /dev/null to avoid
...
hangs with non-GNU versions of sed.
2000-10-25 21:10:24 +00:00
Akim Demaille
a14a5e7ca5
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.
2000-10-25 17:51:10 +00:00
Akim Demaille
35853557ac
* 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.
2000-10-25 15:04:29 +00:00
Pavel Roskin
4796034df3
* 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.
2000-10-25 11:47:20 +00:00
Pavel Roskin
95e65e1662
* Makefile.am: Add acversion.m4.in to EXTRA_DIST.
2000-10-25 11:30:23 +00:00
Akim Demaille
27366d34e5
* acgeneral.m4 (AC_SHELL_DIRNAME): The sed fall back was producing
...
twice the output for it was not using `-n' and used `p'. Remove
the latter.
2000-10-25 10:25:15 +00:00
Akim Demaille
1cc2c50bf6
* acgeneral.m4 (_AC_INIT_PREPARE_FDS): Give some information on
...
the host in config.log.
2000-10-25 09:14:22 +00:00
Pavel Roskin
56331bc9e6
Typo and style fixes in my entries.
2000-10-25 05:14:02 +00:00
Pavel Roskin
f4f898452d
* tests/mktests.sh: set locale to C to make sure that syntax.m4
...
and update.m4 are locale-independent
2000-10-24 19:30:00 +00:00
Pavel Roskin
be4dbe29de
* acgeneral.m4 (_AC_CACHE_DUMP): Add a missing separator for sed
...
commands.
2000-10-24 19:24:40 +00:00
Akim Demaille
4bf20a4eb1
* acgeneral.m4 (AT_FILE_DEPENDENCY): Rename as...
...
(AC_FILE_DEPENDENCY_TRACE): this.
2000-10-24 18:39:06 +00:00
Akim Demaille
b60b89ed66
* m4sugar.m4: (m4_tolower, m4_toupper): New macros.
...
* acgeneral.m4 (AC_PREFIX_PROGRAM): Use m4_toupper().
* aclang.m4 (AC_F77_FUNC): Use m4_toupper()/m4_tolower().
2000-10-24 17:25:18 +00:00
Pavel Roskin
a2f945e4c0
* m4sugar.m4 (m4_quote): Comment change.
2000-10-24 17:03:41 +00:00
Akim Demaille
a8801b4f24
Start avoiding dependence upon character ranges.
...
* acgeneral.m4 (_AC_INIT_DEFAULTS): Introduce `ac_cr_AZ',
`ac_cr_az', `ac_cr_09', `ac_cr_alnum' and `ac_hostname'.
Spread their use.
2000-10-24 16:54:48 +00:00
Akim Demaille
1684245454
* acgeneral.m4 (AC_OUTPUT): Don't play with `trap'.
...
(_AC_INIT_PREPARE): Trap after having created config.log.
Also trap on 0.
When trapped, report why in config.log.
(AC_MSG_WARN, AC_MSG_ERROR): Also output the message in
config.log.
2000-10-24 16:37:14 +00:00
Akim Demaille
6c4993c5a5
* acgeneral.m4 (_AC_SHELL_DIRNAME): Rename as...
...
(AC_SHELL_DIRNAME): this.
s/X$1/X[]$1/ so that when $1 is a macro, it's given a chance to be
expanded.
(AC_PREFIX_PROGRAM): Use AC_SHELL_DIRNAME.
Quote properly.
2000-10-24 11:59:45 +00:00
Akim Demaille
e2879ff558
* tests/tools.m4 (Syntax of the scripts): Specify the path to the
...
tested program, some shells don't honor the PATH with `sh PROG'.
2000-10-24 11:28:20 +00:00
Akim Demaille
6e09a63ca2
Since GNU M4 now comes with its libm4 (binary), to avoid
...
ambiguities let's rename `libm4' (M4 code) as `m4sugar':
Readability And Greater Understanding Stands 4 M4sugar
name coined by Lars J. Aas.
* libm4.m4: Rename as...
* m4sugar.m4: this.
All dependencies adjusted.
2000-10-23 19:13:37 +00:00
Akim Demaille
7994b48d70
* tests/mktests.sh (update_exclude_list, syntax_exclude_list): Add
...
`AC_PREREQ'.
* tests/tools.m4: Globally, don't use `../' to invoke the tested
tools, since the PATH is properly set, and in most cases it
obfuscates the test code.
(autoupdating AC_PREREQ): New tests.
2000-10-23 18:58:43 +00:00
Akim Demaille
161112fd78
In order to check that all the CPP symbols which are AC_DEFINE'd
...
are properly templated, autoheader traces
AC_DEFINE/AC_DEFINE_UNQUOTED. Only literals can be traced, and
actually tracing non literals produces invalid autoheader input.
Hence, provide a means to trace calls to
AC_DEFINE/AC_DEFINE_UNQUOTED with literals.
* acgeneral.m4 (AC_DEFINE_TRACE, AC_DEFINE_TRACE_LITERAL): New
macros.
(AC_DEFINE, AC_DEFINE_UNQUOTED): Use AC_DEFINE_TRACE.
* autoheader.sh: Trace AC_DEFINE_TRACE_LITERAL, not
AC_DEFINE/AC_DEFINE_UNQUOTED.
2000-10-23 18:32:17 +00:00
Akim Demaille
7009796166
Let autoupdate change AC_PREREQ to require the current version of
...
Autoconf.
* acgeneral.m4 (_AC_VERSION_UNLETTER, _AC_VERSION_COMPARE): Move
to...
* libm4.m4 (m4_version_unletter, m4_version_compare): here.
Adjust dependencies.
* acgeneral.m4 (AU::AC_PREREQ): New macro.
* autoupdate.sh: Fail when `m4 input.m4' fails.
2000-10-23 17:41:27 +00:00
Pavel Roskin
0c101b88ae
* acfunctions.m4 (AC_FUNC_CHOWN): Remove temporary files on exit.
...
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
(AC_FUNC_SELECT_ARGTYPES): Likewise.
(AC_FUNC_UTIME_NULL): Likewise.
* acgeneral.m4 (_AC_COMPUTE_INT): Likewise.
* aclang.m4 (_AC_F77_NAME_MANGLING): Likewise.
* acspecific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2000-10-23 04:07:42 +00:00
Pavel Roskin
2c965f419d
* tests/tools.m4 (autoupdating AC_LINK FILES): Clean up "src1"
...
and "src2" at the end of the test.
2000-10-23 04:01:41 +00:00
Pavel Roskin
1328e61cb7
* NEWS: Documented changes in AC_PROG_CPP and AC_TRY_CPP.
...
* doc/autoconf.texi (Compilers and Preprocessors): Likewise.
* acgeneral.m4 (AC_TRY_CPP): Comment changes.
2000-10-20 00:15:34 +00:00
Pavel Roskin
247e1d11ad
* doc/autoconf.texi (Shellology): Documented quirks in ash-0.2.
2000-10-19 21:30:29 +00:00
Pavel Roskin
cd54fcce81
Removed all my "regenerate" entries.
2000-10-19 13:11:18 +00:00
Akim Demaille
45e50b9385
Spell check ChangeLog.
...
By Morten Eriksen.
2000-10-19 07:55:54 +00:00
Pavel Roskin
bab2798aa8
* mdate-sh: Removed, its copy remains in the doc/ directory.
...
* Makefile.in: Regenerate.
* tests/Makefile.in: Likewise.
2000-10-18 22:48:02 +00:00
Akim Demaille
1ff3f472d8
* acgeneral.m4 (AC_CHECK_TOOLS): Use `$' when reading a variable.
2000-10-18 17:16:10 +00:00
Akim Demaille
e9021957ad
* aclang.m4 (_AC_PROG_CC_G): Use the _AC_COMPILE_IFELSE macro
...
instead of reinventing the wheel. This also takes care of a bug
where the "-g" option was accepted if the compiler silently exits
with status unequal to 0.
(_AC_PROG_CXX_G): Likewise.
(AC_PROG_CC): As _AC_PROG_CC_G depends on $ac_objext and
$ac_exeext, move the expansion of _AC_OBJEXT and _AC_EXEEXT in
front of _AC_PROG_CC_G.
(AC_PROG_CXX, AC_PROG_F77): Likewise.
2000-10-18 16:18:18 +00:00
Akim Demaille
1521bce8be
Let ChangeLog conform the standard.
...
From Lars J. Aas.
2000-10-18 14:19:58 +00:00
Akim Demaille
c27236bff5
* tests/atgeneral.m4 (AT_INIT): Avoid foo="bar
", foo=bar
is
...
enough.
Use grep to check the presence of a string in a stream.
* m4/atconfig.m4: Quote.
2000-10-18 12:42:20 +00:00
Akim Demaille
1747d743aa
Typos and missing entry for the latest checkin.
2000-10-18 12:27:27 +00:00
Akim Demaille
11090b5d3c
* acspecific.m4 (AC_PROG_LN_S): If neither ln -s' nor
ln' work,
...
fall back to `cp'.
2000-10-18 11:05:32 +00:00
Akim Demaille
27acf968e7
* acgeneral.m4 (AC_CHECK_TOOL): As AC_CHECK_PROG first tests the
...
value of the VARIABLE argument when looking for executables, we
need to set it to the correct value from AC_CHECK_TOOL when not
just passing on the incoming VARIABLE directly.
(AC_CHECK_TOOLS, AC_PATH_TOOL): Likewise.
2000-10-17 16:34:10 +00:00