]> git.ipfire.org Git - thirdparty/autoconf.git/log
thirdparty/autoconf.git
26 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

26 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?/.

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

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

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

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

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

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

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

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

26 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_)?/.

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

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

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

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

26 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

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

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

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

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

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

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

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

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

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

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

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

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

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

26 years ago2000-02-25 Akim Demaille <akim@epita.fr>
Akim Demaille [Fri, 25 Feb 2000 13:19:35 +0000 (13:19 +0000)] 
2000-02-25  Akim Demaille  <akim@epita.fr>

* doc/autoconf.texi (Default Includes):

Export the knowledge on disabling echo's trailing new line.

* acspecific.m4 (AC_PROG_ECHO_N): Renamed as...
(_AC_PROG_ECHO): this.
Set ECHO_N, ECHO_C, ECHO_T instead of ac_n, ac_c and ac_t.
All dependencies changed.
* doc/autoconf.texi (Preset Output Variables): Document ECHO_C,
ECHO_N and ECHO_T.
* m4/atconfig.m4 (fp_PROG_ECHO): Removed.
(AT_CONFIG): Don't use it.

26 years ago* autoconf.sh (AC_ACLOCALDIR): Use `(aclocal) 2>/dev/null`, not
Akim Demaille [Thu, 24 Feb 2000 18:25:03 +0000 (18:25 +0000)] 
* autoconf.sh (AC_ACLOCALDIR): Use `(aclocal) 2>/dev/null`, not
`aclocal 2>/dev/null` if you want no complains for missing
aclocal.
From Nicolas Joly.

26 years ago* configure.in (HELP2MAN): Specify the third argument of
Akim Demaille [Tue, 22 Feb 2000 08:46:29 +0000 (08:46 +0000)] 
* configure.in (HELP2MAN): Specify the third argument of
AM_MISSING_PROG.  Fixes autoconf/116.

26 years ago* tests/tools.m4 (syntax.sh): The logic of the previous patch was
Akim Demaille [Mon, 21 Feb 2000 12:57:47 +0000 (12:57 +0000)] 
* tests/tools.m4 (syntax.sh): The logic of the previous patch was
twisted.  Fix it so that it performs what claims the entry below.
From Nicolas Joly.

26 years ago* tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the
Akim Demaille [Mon, 21 Feb 2000 09:18:01 +0000 (09:18 +0000)] 
* tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the
child, since it means `/bin/sh -n' went loopy.

26 years agoSome `diff' refuse to diff with /dev/null, such as Tru64's.
Akim Demaille [Fri, 18 Feb 2000 13:44:17 +0000 (13:44 +0000)] 
Some `diff' refuse to diff with /dev/null, such as Tru64's.
Reported by Nicolas Joly.

* tests/atgeneral.m4 (empty): New dummy file.
Changed various `diff /dev/null' as `diff empty'.

26 years ago* tests/atspecific.m4 (TEST_MACRO): Don't run AC_PATH_TOOL and
Akim Demaille [Fri, 18 Feb 2000 10:22:29 +0000 (10:22 +0000)] 
* tests/atspecific.m4 (TEST_MACRO): Don't run AC_PATH_TOOL and
AC_PATH_PROG.

26 years ago* tests/atgeneral.m4 (at_diff): Don't use `cmp -s', on DOS it
Akim Demaille [Fri, 18 Feb 2000 10:01:25 +0000 (10:01 +0000)] 
* tests/atgeneral.m4 (at_diff): Don't use `cmp -s', on DOS it
makes the difference between Unix and DOS EOL. `diff' does not.
Reported by Eli Zaretski.
Also, be ready to use a diff that does not support `-u'.

26 years ago* tests/tools.m4 (Syntax of the scripts): Be robust to shells that
Akim Demaille [Fri, 18 Feb 2000 09:25:46 +0000 (09:25 +0000)] 
* tests/tools.m4 (Syntax of the scripts): Be robust to shells that
never return on some `/bin/sh -n foo.sh'.
Reported by Nicolas Joly.

26 years agoMove the documentation into doc/.
Akim Demaille [Thu, 17 Feb 2000 10:57:00 +0000 (10:57 +0000)] 
Move the documentation into doc/.
Some CVS tricks were used so that history is kept in both the top
directory, and in doc/.

* doc/Makefile.am: New file.
* Makefile.am: Adjusted.
* configure.in: Adjusted.
* autoconf.texi: Moved from here to...
* doc/autoconf.texi: here.
* make-stdts.texi: Likewise.
* install.texi: Likewise.
* texinfo.tex: Likewise.

26 years ago* tests/actest.m4 (AC_ENV_SAVE): Added ALLOCA.
Akim Demaille [Thu, 17 Feb 2000 09:50:51 +0000 (09:50 +0000)] 
* tests/actest.m4 (AC_ENV_SAVE): Added ALLOCA.

26 years ago* tests/semantics.m4 (AC_CHECK_TYPES): `addr, addr' is not
Akim Demaille [Thu, 17 Feb 2000 09:38:08 +0000 (09:38 +0000)] 
* tests/semantics.m4 (AC_CHECK_TYPES): `addr, addr' is not
portable sed: use `addr,addr'.

26 years agoFix the `missing dummy.in' reported by the test suite.
Akim Demaille [Thu, 17 Feb 2000 09:31:34 +0000 (09:31 +0000)] 
Fix the `missing dummy.in' reported by the test suite.
Reported by Erez Zadok.

* tests/torture.m4 (config.status under extreme conditions):
Reorganized.  Because files required by this test were created
outside the pair AT_SETUP/AT_CLEANUP, when the test fails and
autotest extracts this test, the `debug' script does not contain
the files it needs.  Now AT_SETUP/AT_CLEANUP encloses the full
auto contained section.

26 years ago* tests/actest.m4 (AC_ENV_SAVE): X_EXTRA_LIBS can be changed by
Akim Demaille [Thu, 17 Feb 2000 09:27:58 +0000 (09:27 +0000)] 
* tests/actest.m4 (AC_ENV_SAVE): X_EXTRA_LIBS can be changed by
AC_PATH_EXTRA.
Reported by Erez Zadok.

26 years agoDefine HAVE_DECL_FOO both to 1 if found and 0 otherwise.
Akim Demaille [Tue, 15 Feb 2000 09:33:59 +0000 (09:33 +0000)] 
Define HAVE_DECL_FOO both to 1 if found and 0 otherwise.

* acgeneral.m4 (AC_CHECK_DECLS): Define HAVE_DECL_FOO to 1 instead
of NEED_FOO_DECL if found.  Define to 0 if not found.
* autoheader.m4 (AC_CHECK_DECLS): Template HAVE_DECL_FOO.
* tests/semantics.m4 (AC_CHECK_DECLS): Adjusted.
* doc/autoconf.texi (Generic Declarations): Adjusted.

26 years ago* doc/autoconf.texi (Generic Structures):
Akim Demaille [Tue, 15 Feb 2000 09:16:48 +0000 (09:16 +0000)] 
* doc/autoconf.texi (Generic Structures):
s/AC_FATAL/AC_MSG_ERROR.

26 years agoautoreconf had a silly syntax error, test it and fix it.
Akim Demaille [Tue, 15 Feb 2000 09:15:22 +0000 (09:15 +0000)] 
autoreconf had a silly syntax error, test it and fix it.
Reported by Franc,ois Pinard and Rainer Orth.

* autoreconf.sh: Removed spurious `;;'.
Formatting changes.
* tests/tools.m4 (Syntax of the scripts): Run `sh -n' on all the
shell scripts.

26 years agoCVS added tests/Makefile.in
Akim Demaille [Tue, 15 Feb 2000 09:12:36 +0000 (09:12 +0000)] 
CVS added tests/Makefile.in

26 years ago* autoconf.sh (options handling): --v* of --version was shadowing
Akim Demaille [Tue, 15 Feb 2000 09:10:23 +0000 (09:10 +0000)] 
* autoconf.sh (options handling): --v* of --version was shadowing
--verbose.

26 years ago* tests/torture.m4: Nuke the trailing space in defs.
Akim Demaille [Tue, 15 Feb 2000 09:03:36 +0000 (09:03 +0000)] 
* tests/torture.m4: Nuke the trailing space in defs.

26 years ago* tests/atspecific.m4: Really added to the CVS repository.
Akim Demaille [Fri, 11 Feb 2000 09:01:24 +0000 (09:01 +0000)] 
* tests/atspecific.m4: Really added to the CVS repository.

26 years agoDon't use `cat -s' to single out new-lines, it is not portable.
Akim Demaille [Fri, 11 Feb 2000 08:59:52 +0000 (08:59 +0000)] 
Don't use `cat -s' to single out new-lines, it is not portable.
Also remove trailing blanks.

* tests/Makefile.am (testsuite): Use sed instead of cat.
* tests/torture.m4: No longer check for a trailing space.
* autoconf.sh: Likewise.

26 years ago* tests/actest.m4 (AC_ENV_SAVE): OpenBSD-2.3's /bin/sh defines an
Akim Demaille [Thu, 10 Feb 2000 16:57:55 +0000 (16:57 +0000)] 
* tests/actest.m4 (AC_ENV_SAVE): OpenBSD-2.3's /bin/sh defines an
envvar SECONDS which does change with time.
KMEM_GROUP is set by AC_FUNC_GETLOADAVG.
Reported by Volker Borchert.

26 years ago* tests/Makefile.am (macros.m4): Better regex to build `macro'.
Akim Demaille [Thu, 10 Feb 2000 16:30:17 +0000 (16:30 +0000)] 
* tests/Makefile.am (macros.m4): Better regex to build `macro'.
Depend upon acgeneral.m4.

26 years ago* autoheader.sh: Remove the duplicate trap code.
Akim Demaille [Thu, 10 Feb 2000 16:27:35 +0000 (16:27 +0000)] 
* autoheader.sh: Remove the duplicate trap code.

26 years ago* acgeneral.m4 (AC_OUTPUT): When dispatching your arguments, use
Akim Demaille [Thu, 10 Feb 2000 16:25:47 +0000 (16:25 +0000)] 
* acgeneral.m4 (AC_OUTPUT): When dispatching your arguments, use
ifval, not ifset!
Dispatch actions to AC_CONFIG_COMMANDS not AC_OUTPUT_COMMANDS, to
avoid unneeded warnings for obsolete use of AC_OUTPUT_COMMANDS.

26 years ago* acgeneral.m4 (AC_VERBOSE): This is a tab, not spaces.
Akim Demaille [Thu, 10 Feb 2000 16:21:42 +0000 (16:21 +0000)] 
* acgeneral.m4 (AC_VERBOSE): This is a tab, not spaces.

26 years agoChangequote busters II.
Akim Demaille [Thu, 10 Feb 2000 13:14:58 +0000 (13:14 +0000)] 
Changequote busters II.
They're back to save the world.

* acspecific.m4 (AC_PROG_CC_C_O, AC_PROG_F77_C_O,
AC_PROG_MAKE_SET, AC_TYPE_GETGROUPS, AC_FUNC_GETLOADAVG,
AC_FUNC_MKTIME, AC_STRUCT_TIMEZONE, AC_F77_LIBRARY_LDFLAGS): Blast
that jelly o' changequote.  Set the quotes free.

26 years agoInterrupting autoheader left temp files.
Akim Demaille [Thu, 10 Feb 2000 13:12:04 +0000 (13:12 +0000)] 
Interrupting autoheader left temp files.
From Jim Meyering.

* autoheader.sh (usage): The usage is to use $0 here.
(ah_base): Be in TMPDIR.
Install the `trap' before creating the first tmp file.
Also trap on 0.

26 years ago* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): This is a routine of
Akim Demaille [Thu, 10 Feb 2000 13:08:33 +0000 (13:08 +0000)] 
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS): This is a routine of
`configure', not `config.status', hence use `conftest' for tmp
files, not `$ac_cs_root'.
Removed forgotten developer comment.
Double quoting the whole body is nicer than just the part that
needs to be.

26 years ago* tests/torture.m4: Also check the value of @DEFS@ when no
Akim Demaille [Thu, 10 Feb 2000 10:41:52 +0000 (10:41 +0000)] 
* tests/torture.m4: Also check the value of @DEFS@ when no
CONFIG_HEADER is used.

26 years agoChangequote-busters!
Akim Demaille [Thu, 10 Feb 2000 10:40:19 +0000 (10:40 +0000)] 
Changequote-busters!
From Dan Ackroyd.

* acgeneral.m4 (AC_INIT_PARSE_ARGS, AC_INIT_PREPARE,
AC_CACHE_SAVE, AC_PREFIX_PROGRAM, AC_OUTPUT,
_AC_OUTPUT_CONFIG_STATUS, AC_OUTPUT_MAKE_DEFS, AC_OUTPUT_FILES,
_AC_OUTPUT_HEADERS, AC_OUTPUT_LINKS, AC_OUTPUT_SUBDIRS): Quit
playing with changequotes, @BKL@ and Co.!  Just quote properly.

26 years agoHonor properly the `#define' config.h.in templates.
Akim Demaille [Thu, 10 Feb 2000 10:38:59 +0000 (10:38 +0000)] 
Honor properly the `#define' config.h.in templates.
Test it.

* acgeneral.m4 (AC_OUTPUT_HEADERS): Renamed as...
(_AC_OUTPUT_HEADERS): this.  All callers changed.
Don't mess with changequote, just quote properly.
Bug 1.  Because of the `#' in `ac_dA', the quotes <<>> were not
removed, and therefore the sed script contained `<<define>>'
instead of `define'.  Now that the block is properly quoted, there
is no need to quote `define'.
Bug 2.  Once a `#define' substitution performed, we were branching
to the top of the sed script (`t top').  This resulted in an
endless substitution of `#define foo 1' to `#define foo 1'.
Branching is not enough: you also have to fetch the next input
line, i.e., use `t' instead of `t t' in ac_dD, and don't output
`: top' in `config.defines'.
Though it was correct for `#undef' templates, just apply the same
transformation to `ac_uD' and `config.undefs'.
Bug 3.  Don't try to preserve what was behind the value in the
template, since on
#define NAME "bar baz"
it leads to
#define NAME 1 baz"
Now `ac_dB' catches everything behind the NAME (making sure there
is at least a space) and `ac_dC' only outputs a space.
* tests/torture.m4: Check that various forms of `#define' header
templates are properly handled.

26 years agoAvoid calling `rm' without arguments.
Akim Demaille [Thu, 10 Feb 2000 10:37:03 +0000 (10:37 +0000)] 
Avoid calling `rm' without arguments.

* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): It is smarter to use a
quoted here doc to output the section providing defaults for
CONFIG_*.
Don't rm the CONFIG_FILES here but in..
(AC_OUTPUT_FILES) [test -n "$CONFIG_FILES"]: here.
Hm, actually, no, just don't remove them at all, let the newly
created files replace the old ones, exactly as in
AC_OUTPUT_HEADERS.
From Graham Jenkins.

26 years ago* acgeneral.m4 (AC_LIST_MEMBER_OF): s/ac_$exists/$ac_exists/!
Akim Demaille [Thu, 10 Feb 2000 10:36:13 +0000 (10:36 +0000)] 
* acgeneral.m4 (AC_LIST_MEMBER_OF): s/ac_$exists/$ac_exists/!

26 years ago* acgeneral.m4: Formatting changes.
Akim Demaille [Thu, 10 Feb 2000 10:35:18 +0000 (10:35 +0000)] 
* acgeneral.m4: Formatting changes.
* acspecific.m4: Likewise.

26 years ago* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't
Akim Demaille [Thu, 10 Feb 2000 10:25:23 +0000 (10:25 +0000)] 
* acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't
  : ${FOO="$foo"}
but
  : ${FOO=$foo}
Since Ultrix will also assign the quotes to FOO.
Reported by Harlan Stenn.

26 years agoKeep `AC_CHECK_TYPE' backward compatibility and provide a proper
Akim Demaille [Thu, 10 Feb 2000 10:24:10 +0000 (10:24 +0000)] 
Keep `AC_CHECK_TYPE' backward compatibility and provide a proper
`AC_CHECK_TYPE',
Based on ideas from Paul Eggert and Alexandre Oliva.

* acgeneral.m4 (AC_CHECK_TYPE_INTERNAL): Renamed as
(_AC_CHECK_TYPE_NEW): this.
(AC_CHECK_TYPES): Adjusted.
(AC_CHECK_TYPE): Renamed as
(_AC_CHECK_TYPE_OLD): This.  Adjusted to _AC_CHECK_TYPE_NEW.
No longer support extra includes, stick to 2.13's interface.
(_AC_CHECK_TYPE_BUILTIN_P): New macro.
(AC_CHECK_TYPE): New macro.
* autoheader.m4 (autoheader::AC_CHECK_TYPE): Renamed as...
(autoheader::_AC_CHECK_TYPE_OLD): this.
* tests/atspecific.m4 (TEST_MACRO): Skip /^_AC_/ macros.
* tests/semantics.m4: Test the choices of AC_CHECK_TYPE (wrt _NEW
or _OLD implemenation).
* doc/autoconf.texi (Generic Types): Reorganized.  Explain
everything about AC_CHECK_TYPE and Co.

26 years ago* libm4.m4 (near m4_split): Remove the buggy additional
Akim Demaille [Thu, 10 Feb 2000 09:46:57 +0000 (09:46 +0000)] 
* libm4.m4 (near m4_split): Remove the buggy additional
changequote.
Quote properly `m4_split' when registering it.

26 years agoThe AU-glue code for AC_LINK_FILES was not fully compatible: in
Akim Demaille [Thu, 10 Feb 2000 09:45:25 +0000 (09:45 +0000)] 
The AU-glue code for AC_LINK_FILES was not fully compatible: in
  AC_LINK_FILES($from, $to)
`$from' and `$to' can be lists, hence `AC_CONFIG_LINKS($to:$from)'
is wrong.
Reported by H.J. Lu.

* acgeneral.m4 (AC_LINK_FILES): Replace the m4-glue code from
AC_LINK_FILES to AC_CONFIG_LINKS, with sh-glue code.
Give a detailed update message.
(_AC_LINK_FILES_CNT): New variable.  Initialize.
* tests/tools.m4 (autoupdate): No longer exercise `autoupdate'
with AC_LINK_FILES.

26 years ago* acspecific.m4 (AC_PROG_SED): Removed.
Akim Demaille [Thu, 10 Feb 2000 09:42:36 +0000 (09:42 +0000)] 
* acspecific.m4 (AC_PROG_SED): Removed.

26 years agoAC_CHECK_FILES has never worked properly.
Akim Demaille [Thu, 10 Feb 2000 09:40:55 +0000 (09:40 +0000)] 
AC_CHECK_FILES has never worked properly.

* acgeneral.m4 (AC_CHECK_FILE): Use AC_CACHE_CHECK.
* autoheader.m4 (AC_CHECK_FILES): AH-define.
* tests/semantics.m4: Test AC_CHECK_FILES.
* tests/atspecific.m4 (TEST_MACRO): Don't.

26 years agoNo longer use a diversion to store the sed program implementing
Akim Demaille [Thu, 10 Feb 2000 09:40:09 +0000 (09:40 +0000)] 
No longer use a diversion to store the sed program implementing
AC_SUBST.

* acgeneral.m4 (_AC_SUBST): New macro.
(_AC_SUBST_SED_PROGRAM): Initialize.
(AC_SUBST): Use _AC_SUBST.
(AC_SUBST_FILE): Likewise.
(AC_DIVERSION_SED): Removed.  Renumber the AC_DIVERSIONs.
(AC_OUTPUT_FILES): Instead on undiverting AC_DIVERSION_SED, output
_AC_SUBST_SED_PROGRAM.

26 years agoStandardize the error messages in the options handling of
Akim Demaille [Thu, 10 Feb 2000 09:37:37 +0000 (09:37 +0000)] 
Standardize the error messages in the options handling of
`configure' and `config.status'.

* acgeneral.m4 (AC_OUTPUT_CONFIG_STATUS): Renamed as...
(_AC_OUTPUT_CONFIG_STATUS): this.
Change the error messages from
  value: invalid feature name
to
  invalid feature: value
Invite the user to try --help for invalid options.
(AC_INIT_PARSE_ARGS): Likewise.

26 years ago* acgeneral.m4 (AC_OUTPUT_COMMANDS_COMMANDS): Renamed as...
Akim Demaille [Thu, 10 Feb 2000 09:35:00 +0000 (09:35 +0000)] 
* acgeneral.m4 (AC_OUTPUT_COMMANDS_COMMANDS): Renamed as...
(_AC_OUTPUT_COMMANDS): This.  All callers changed.
Disable the verbose message until Automake uses the new features
of `config.status'.
Reported by Jim Meyering.

26 years agoClean up a few changequotes.
Akim Demaille [Thu, 10 Feb 2000 08:52:56 +0000 (08:52 +0000)] 
Clean up a few changequotes.

* acgeneral.m4 (AC_INIT_PARSE_ARGS): Instead of using changequote
to protect a few `[ ]', double quote the constant sections.

26 years agoRestore AC_HAVE_LIBRARY.
Akim Demaille [Thu, 10 Feb 2000 08:42:26 +0000 (08:42 +0000)] 
Restore AC_HAVE_LIBRARY.

* acgeneral.m4 (AC_HAVE_LIBRARY): AU_DEFUNed in terms of
AC_CHECK_LIB.
* doc/autoconf.texi (Libraries): Document.

26 years agoFix the handling of `./configure foo=bar' and test it.
Akim Demaille [Wed, 9 Feb 2000 18:24:24 +0000 (18:24 +0000)] 
Fix the handling of `./configure foo=bar' and test it.

* acgeneral.m4 (AC_INIT_PARSE_ARGS, getopt loop): Always define
ac_optarg as the rhs of the first `=', not only on `-.*=', so that
`configure var=val' defines ac_optarg=val.
Improve the robustness to shell special characters:
 - Use grep when checking that shell variable names are valid.
 - Quote the quotes in ac_optarg before `eval var='$ac_optarg''.
 - Quote the quotes when building ac_configure_args.

* tests/torture.m4: Test that `./configure foo=bar' works properly.

26 years agoResynchronize `INSTALL' with the current `configure', and
Akim Demaille [Wed, 9 Feb 2000 18:19:58 +0000 (18:19 +0000)] 
Resynchronize `INSTALL' with the current `configure', and
conversely...

* acgeneral.m4 (AC_INIT_PARSE_ARGS): Let `configure' support `-h =
--help' and `-n = --no-create'.
Document -h, -n and -q in configure's help message.
* install.texi (Operation Controls): Formatting changes.
Document `configure -h'.

26 years agoSpell checked ChangeLog.
Akim Demaille [Wed, 9 Feb 2000 18:17:50 +0000 (18:17 +0000)] 
Spell checked ChangeLog.

26 years agoSpell checked ChangeLog.
Akim Demaille [Wed, 9 Feb 2000 18:16:34 +0000 (18:16 +0000)] 
Spell checked ChangeLog.

26 years ago* ChangeLog.1: Formatting changes.
Akim Demaille [Wed, 9 Feb 2000 18:09:50 +0000 (18:09 +0000)] 
* ChangeLog.1: Formatting changes.

26 years ago* Makefile.am (CLEANFILES): Added autoupdate.m4f and autoconf.tmp.
Akim Demaille [Wed, 9 Feb 2000 18:08:37 +0000 (18:08 +0000)] 
* Makefile.am (CLEANFILES): Added autoupdate.m4f and autoconf.tmp.

26 years agoTest `autoupdate'.
Akim Demaille [Wed, 9 Feb 2000 18:02:18 +0000 (18:02 +0000)] 
Test `autoupdate'.

* tests/tools.m4 (AH_DEFUN): Fix the comments.
Quote properly.
(autoupdate): New test.