]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
25 years ago.
Jim Meyering [Mon, 20 Mar 2000 11:07:49 +0000 (11:07 +0000)] 
.

25 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.

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

25 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'.

25 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.

25 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.

25 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

25 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.

25 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.

25 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.

25 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.

25 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.

25 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.

25 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.

25 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.

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

25 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.

25 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.

25 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.

25 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.

25 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'.

25 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.

25 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.

25 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.

25 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 `#'.

25 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.

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

25 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.

25 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.

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

25 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):

25 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.

25 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.

25 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'.

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

25 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.

25 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'.

25 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'.

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

25 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.

25 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.

25 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.

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

25 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.

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

25 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.

25 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.

25 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.

25 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.

25 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

25 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.

25 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 `# '.

25 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'.

25 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.

25 years agoLeave a diversion exclusively for Copyright notices.
Akim Demaille [Wed, 8 Mar 2000 11:15:14 +0000 (11:15 +0000)] 
Leave a diversion exclusively for Copyright notices.

* acgeneral.m4 (AC_DIVERSION_DEFAULTS): New diversion number.
(_AC_INIT_NOTICE): Move definition of `ac_includes_default' from
here...
(_AC_INIT_PREPARE): to here.
(_AC_INIT_NOTICE): Play with your diversion yourself, don't let
(AC_INIT): do it for you.
(_AC_INIT_DEFAULTS): New macro.
(AC_INIT): Use it.

25 years agoWe don't need _AC_ARG_*_HELP_PROLOGUE.
Akim Demaille [Wed, 8 Mar 2000 11:14:09 +0000 (11:14 +0000)] 
We don't need _AC_ARG_*_HELP_PROLOGUE.

* acgeneral.m4 (AC_EXPAND_ONCE): AC_PROVIDE yourself, in case
there is no AC_DEFUN associated with the text to expand.
(_AC_ARG_ENABLE_HELP_PROLOGUE, _AC_ARG_WITH_HELP_PROLOGUE,
_AC_ARG_VAR_HELP_PROLOGUE): Remove, instead...
(AC_ARG_ENABLE, AC_ARG_WITH, AC_ARG_VAR): do it yourself.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Fix copy n' paste typos in
Akim Demaille [Wed, 8 Mar 2000 11:13:31 +0000 (11:13 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Fix copy n' paste typos in
`--with-*', `--without-*' and `*' decoding.
Reported by Raja R Harinath.
Fixes autoconf/119.

25 years agoDon't dump AC_ARG_PROGRAM help messages if not used.
Akim Demaille [Wed, 8 Mar 2000 11:11:37 +0000 (11:11 +0000)] 
Don't dump AC_ARG_PROGRAM help messages if not used.

* acgeneral.m4 (_AC_INIT_HELP): Don't.
(AC_ARG_PROGRAM): Do.

25 years agoDon't dump X help messages when `configure' does not check for X.
Akim Demaille [Wed, 8 Mar 2000 11:09:59 +0000 (11:09 +0000)] 
Don't dump X help messages when `configure' does not check for X.

* acgeneral.m4 (_AC_INIT_HELP): Don't dump X help messages.
* acspecific.m4 (AC_PATH_X): Do it.

25 years agoNo longer rely on /bin/sh to compose the optional parts of
Akim Demaille [Wed, 8 Mar 2000 11:08:29 +0000 (11:08 +0000)] 
No longer rely on /bin/sh to compose the optional parts of
`configure --help'.

* acgeneral.m4 (AC_DIVERSION_HELP_BEGIN, AC_DIVERSION_HELP_ENABLE,
AC_DIVERSION_HELP_WITH, AC_DIVERSION_HELP_VAR,
AC_DIVERSION_HELP_END): New diversion numbers.
(AC_EXPAND_ONCE): New macro.
(AC_PROVIDE_IF): New macro.
(AC_BEFORE, AC_REQUIRE): Use it.
(AC_REQUIRE): Don't use indir.
(_AC_ARG_ENABLE_HELP_PROLOGUE, _AC_ARG_WITH_HELP_PROLOGUE,
_AC_ARG_VAR_HELP_PROLOGUE): New macros.
(AC_ARG_ENABLE, AC_ARG_WITH, AC_ARG_VAR): Expand once the
_HELP_PROLOGUE macro which corresponds.
(_AC_INIT_HELP): Adjust to AC_DIVERSION_HELP_BEGIN and
AC_DIVERSION_HELP_END.
(_AC_INIT_NOTICE, _AC_INIT_HELP): Remove the sh code which handled
the optional help strings.

25 years agoAC_OUTPUT_COMMANDS no longer uses a diversion.
Akim Demaille [Wed, 8 Mar 2000 11:05:26 +0000 (11:05 +0000)] 
AC_OUTPUT_COMMANDS no longer uses a diversion.

* acgeneral.m4 (AC_DIVERSION_CMDS): Removed.
(_AC_OUTPUT_CONFIG_STATUS): Don't undivert it.

25 years ago* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Fix quoted/non quoted here
Akim Demaille [Wed, 8 Mar 2000 11:04:55 +0000 (11:04 +0000)] 
* acgeneral.m4 (_AC_INIT_PARSE_ARGS): Fix quoted/non quoted here
document problems.

25 years ago* acgeneral.m4 (AC_INIT_BINSH, AC_INIT_NOTICE, AC_INIT_PREPARE):
Akim Demaille [Wed, 8 Mar 2000 11:03:59 +0000 (11:03 +0000)] 
* acgeneral.m4 (AC_INIT_BINSH, AC_INIT_NOTICE, AC_INIT_PREPARE):
Rename as...
(_AC_INIT_BINSH, _AC_INIT_NOTICE, _AC_INIT_PREPARE): this.
All callers adjusted.

25 years ago* acgeneral.m4 (AC_INIT_PARSE_ARGS): Rename as...
Akim Demaille [Wed, 8 Mar 2000 11:03:33 +0000 (11:03 +0000)] 
* acgeneral.m4 (AC_INIT_PARSE_ARGS): Rename as...
(_AC_INIT_PARSE_ARGS): this.
Move the display of help and version strings to...
(_AC_INIT_HELP, _AC_INIT_VERSION): here.
(AC_INIT): Adjust.  Also, fix quotation.

25 years agoSome tests are failing with srcdir != builddir, because they can't
Akim Demaille [Wed, 8 Mar 2000 11:02:30 +0000 (11:02 +0000)] 
Some tests are failing with srcdir != builddir, because they can't
find config.guess, install-sh etc.
Reported by Erez Zadok.

* tests/atspecific.m4 (AT_TEST_MACRO): Set AC_CONFIG_AUX_DIR to
top_srcdir in configure.in, and pass the value of top_srcdir to
configure.

25 years ago* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH, AC_PATH_PROG,
Akim Demaille [Wed, 8 Mar 2000 11:00:10 +0000 (11:00 +0000)] 
* acgeneral.m4 (AC_ARG_ENABLE, AC_ARG_WITH, AC_PATH_PROG,
AC_PATH_PROGS, AC_PATH_TOOL, AC_CHECK_TOOL, AC_PREFIX_PROGRAM,
AC_EGREP_CPP, AC_TRY_LINK, AC_COMPILE_CHECK, AC_TRY_RUN_NATIVE):
Use ifval instead of ifelse.

25 years agoSupport absolute DOS-style paths.
Akim Demaille [Tue, 7 Mar 2000 14:24:49 +0000 (14:24 +0000)] 
Support absolute DOS-style paths.

Any character before the colon is accepted because network drives
can be assigned characters outside the [a-zA-Z] range. DOS-style
relative paths (?:foo/bar) are also considered absolute for
Autoconf's purposes since the path '../?:foo/bar' is invalid.

* acgeneral.m4 (AC_OUTPUT_FILES): Treat DOS-style paths (?:*') as
absolute.
(AC_OUTPUT_SUBDIRS): Likewise.
(AC_PATH_PROG): Make pattern for matching DOS-style paths the same
as that used in AC_OUTPUT_FILES and AC_OUTPUT_SUBDIRS.

25 years ago* tests/atspecific.m4 (m4_match): Remove, no longer used.
Akim Demaille [Mon, 6 Mar 2000 08:48:48 +0000 (08:48 +0000)] 
* tests/atspecific.m4 (m4_match): Remove, no longer used.

25 years ago.
Jim Meyering [Sat, 4 Mar 2000 08:46:54 +0000 (08:46 +0000)] 
.

25 years agoUse `rm -f', not just `rm' when removing temporaries.
Jim Meyering [Sat, 4 Mar 2000 08:46:31 +0000 (08:46 +0000)] 
Use `rm -f', not just `rm' when removing temporaries.
Preserve exit status in trap handler.
Based on suggestions from Paul Eggert.

25 years agoFixed mistakes in README-alpha.
Akim Demaille [Fri, 3 Mar 2000 16:45:19 +0000 (16:45 +0000)] 
Fixed mistakes in README-alpha.

25 years agoMove the quadrigraphs out of the user name space.
Akim Demaille [Fri, 3 Mar 2000 14:25:03 +0000 (14:25 +0000)] 
Move the quadrigraphs out of the user name space.

* acgeneral.m4: 's/@BKL@/@<:@/g', 's/@BKR@/@:>@/g',
's/@DLR@/@S|@/g', 's/@PND@/@%:@/g'.
* acspecific.m4: Likewise.
* autoconf.sh: Likewise.

25 years ago* acgeneral.m4 (_AC_WHICH_A): New macro.
Akim Demaille [Fri, 3 Mar 2000 14:15:41 +0000 (14:15 +0000)] 
* acgeneral.m4 (_AC_WHICH_A): New macro.
(AC_CHECK_PROG): Use it.  Use ifval.
(AC_CHECK_PROGS): Use ifval.  Fix the quoting.
* tests/semantics.m4: Test AC_CHECK_PROG.
* tests/Makefile.am (EGREP_EXCLUDE): Add /AC_CHECK_PROGS?/.

25 years ago* autoscan.pl (parse_args): Add support for -m <macrodir>.
Akim Demaille [Thu, 2 Mar 2000 18:25:34 +0000 (18:25 +0000)] 
* autoscan.pl (parse_args): Add support for -m <macrodir>.

25 years agoThe whole family supports -V = --version.
Akim Demaille [Thu, 2 Mar 2000 18:17:26 +0000 (18:17 +0000)] 
The whole family supports -V = --version.

* acgeneral.m4 (AC_INIT_PARSE_ARGS): Report and support -V.
* autoconf.sh: Likewise.
* autoreconf.sh: Likewise.
* autoupdate.sh: Likewise.
* autoheader.sh: Likewise.
* autoscan.pl: Likewise.
* ifnames.sh: Likewise.
In addition, don't dump --help on invalid options.
* doc/autoconf.texi: Adjusted.
* doc/install.texi: Likewise.

25 years ago* libm4.m4 (m4_noquote): New macro.
Akim Demaille [Thu, 2 Mar 2000 17:11:31 +0000 (17:11 +0000)] 
* libm4.m4 (m4_noquote): New macro.

25 years ago* acspecific.m4 (AC_PATH_X_DIRECT): Moved all the shell variable
Akim Demaille [Thu, 2 Mar 2000 17:03:30 +0000 (17:03 +0000)] 
* acspecific.m4 (AC_PATH_X_DIRECT): Moved all the shell variable
into the ac_ name space.
Reported by Nicolas Joly.

25 years ago* acspecific.m4: Move some macros to a better place.
Akim Demaille [Thu, 2 Mar 2000 16:48:06 +0000 (16:48 +0000)] 
* acspecific.m4: Move some macros to a better place.

25 years agoInternal macros are named `_AC_'.
Akim Demaille [Thu, 2 Mar 2000 16:36:16 +0000 (16:36 +0000)] 
Internal macros are named `_AC_'.

* acgeneral.m4 (AC_CANONICAL_TARGET, AC_CANONICAL_BUILD,
AC_CANONICAL_THING, AC_CHECK_TOOL_PREFIX, AC_CONFIG_UNIQUE):
Prepend `_' to their names.
* acspecific.m4 (AC_CHECK_HEADER_DIRENT, AC_CHECK_HEADERS_DIRENT,
AC_PATH_X_XMKMF, AC_PATH_X_DIRECT): Prepend `_' to their names.
* doc/autoconf.texi (Macro Names): Adjusted.

25 years ago* acgeneral.m4: Formatting changes.
Akim Demaille [Thu, 2 Mar 2000 16:27:51 +0000 (16:27 +0000)] 
* acgeneral.m4: Formatting changes.
* acspecific.m4: Likewise.

25 years agoFixed typos in ChangeLog :-(.
Akim Demaille [Wed, 1 Mar 2000 17:06:40 +0000 (17:06 +0000)] 
Fixed typos in ChangeLog :-(.

25 years agoThe empty regexp cannot be portably used in egrep's alternation.
Akim Demaille [Wed, 1 Mar 2000 17:01:29 +0000 (17:01 +0000)] 
The empty regexp cannot be portably used in egrep's alternation.
For instance with Digital Unix v5.0:
   > echo "foo"  | egrep -e "^(|foo|bar)$"
   > echo "|foo" | egrep -e "^(|foo|bar)$"
   |foo
   > echo "|bar" | egrep -e "^(|foo|bar)$"
   > echo "bar"  | egrep -e "^(|foo|bar)$"
   bar
Reported by Nicolas Joly.

* src/actest.m4 (AC_ENV_SAVE): s/(|EXTRA_|PRE_)/(EXTRA_|PRE_)?/.

25 years agoFixed a mistake in ChangeLog, and moved a few more addresses from acspecific to THANKS.
Akim Demaille [Wed, 1 Mar 2000 15:54:37 +0000 (15:54 +0000)] 
Fixed a mistake in ChangeLog, and moved a few more addresses from acspecific to THANKS.

25 years ago* acspecific.m4: Removed a few addresses, the correspondence is...
Akim Demaille [Wed, 1 Mar 2000 12:29:26 +0000 (12:29 +0000)] 
* acspecific.m4: Removed a few addresses, the correspondence is...
* THANKS: here.

25 years ago* acspecific.m4 (AC_PATH_XTRA): On LynxOS 3.0.1/i386,
Akim Demaille [Wed, 1 Mar 2000 12:25:02 +0000 (12:25 +0000)] 
* acspecific.m4 (AC_PATH_XTRA): On LynxOS 3.0.1/i386,
gethostbyname(), getservbyname(), and inet_addr() are in -lbsd.

25 years ago* tests/actest.m4 (AC_ENV_SAVE): Use multiple -e instead of
Akim Demaille [Wed, 1 Mar 2000 11:28:02 +0000 (11:28 +0000)] 
* tests/actest.m4 (AC_ENV_SAVE): Use multiple -e instead of
multiple egrep.

25 years agoFixed typo in a date in ChangeLog
Akim Demaille [Wed, 1 Mar 2000 10:12:19 +0000 (10:12 +0000)] 
Fixed typo in a date in ChangeLog

25 years ago* config.guess: Updated for master repository.
Akim Demaille [Wed, 1 Mar 2000 10:11:19 +0000 (10:11 +0000)] 
* config.guess: Updated for master repository.
* config.sub: Likewise.

25 years agoUpdated TODO.
Akim Demaille [Wed, 1 Mar 2000 08:23:08 +0000 (08:23 +0000)] 
Updated TODO.

25 years agoTest suite: instead of using a full list of the AC macros and an
Akim Demaille [Wed, 1 Mar 2000 08:22:40 +0000 (08:22 +0000)] 
Test suite: instead of using a full list of the AC macros and an
AT macro with selects which are the AC macros to test, just
produce the list of the AC macros we want to test.

* tests/atspecific.m4 (TEST_MACRO): Removed.
* tests/Makefile.am (EGREP_EXCLUDE): New variable, performing the
selection TEST_MACRO used to do.
(macros.m4): Use it.  Use AT_TEST_MACRO, not TEST_MACRO.  Check
also AU macros.

25 years ago* doc/autoconf.texi: Tune the use of quotes, add missing
Akim Demaille [Wed, 1 Mar 2000 08:20:29 +0000 (08:20 +0000)] 
* doc/autoconf.texi: Tune the use of quotes, add missing
@noindents, remove dead FIXME:s, promote #if ! over #ifndef,
simplify duplicated text.

25 years ago* doc/autoconf.texi (Configuration Commands): Document
Akim Demaille [Wed, 1 Mar 2000 08:18:47 +0000 (08:18 +0000)] 
* doc/autoconf.texi (Configuration Commands): Document
AC_CONFIG_COMMANDS_PRE and _POST.

* doc/autoconf.texi (Configuration Commands): Document
AC_CONFIG_COMMANDS_PRE and _POST.

25 years agoTest suite: more debugging information.
Akim Demaille [Tue, 29 Feb 2000 08:51:42 +0000 (08:51 +0000)] 
Test suite: more debugging information.

* tests/atspecific.m4 (AT_TEST_MACRO): When verbose, report the
content of config.log.

25 years ago* Makefile.am (MAKEINFO): Removed.
Akim Demaille [Tue, 29 Feb 2000 08:49:17 +0000 (08:49 +0000)] 
* Makefile.am (MAKEINFO): Removed.
(INSTALL.txt): Call $(MAKEINFO) with --no-split.
Reported by Nicolas Joly.

25 years agoFixed a few English mistakes in ChangeLog.
Akim Demaille [Mon, 28 Feb 2000 14:41:46 +0000 (14:41 +0000)] 
Fixed a few English mistakes in ChangeLog.

25 years agoFixed typo in ChangeLog.
Akim Demaille [Mon, 28 Feb 2000 14:35:11 +0000 (14:35 +0000)] 
Fixed typo in ChangeLog.

25 years ago* doc/Makefile.am (MAKEINFO): s/makefino/@MAKEINFO@/.
Akim Demaille [Mon, 28 Feb 2000 10:20:50 +0000 (10:20 +0000)] 
* doc/Makefile.am (MAKEINFO): s/makefino/@MAKEINFO@/.
* missing: chmod +x.

25 years ago* tests/Makefile.am (testsuite): Use $(M4), not m4.
Akim Demaille [Mon, 28 Feb 2000 08:54:23 +0000 (08:54 +0000)] 
* tests/Makefile.am (testsuite): Use $(M4), not m4.
From Patrick Tullmann.

25 years agoMoved email addresses of contributors from ChangeLog to THANKS.
Akim Demaille [Mon, 28 Feb 2000 08:49:34 +0000 (08:49 +0000)] 
Moved email addresses of contributors from ChangeLog to THANKS.

25 years ago* src/acgeneral.texi (AC_INIT_NOTICE): Include inttypes.h in the
Akim Demaille [Fri, 25 Feb 2000 17:49:29 +0000 (17:49 +0000)] 
* src/acgeneral.texi (AC_INIT_NOTICE): Include inttypes.h in the
ac_includes_default.
* doc/autoconf.texi (Default Includes): Adjust.