Commit Graph

2051 Commits

Author SHA1 Message Date
Akim Demaille
eb6a72ebf4 * doc/autoconf.texi (Limitations of Usual Tools) <expr>:
expr 'a' : '(b)'.
From Paul Eggert.
2000-11-16 16:30:39 +00:00
Akim Demaille
f4ab635fa6 Reorder the test suite so that low level features are tested
before high level ones.
* tests/semantics.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
(missing templates): Move to...
* tests/torture.at: here.
Reorder the file so that the torture test is last.
* tests/semantics.at (AC_TRY_LINK_FUNC, AC_PROG_CPP with warnings)
(AC_PROG_CPP without warnings): Move to...
* tests/compile.at: here, new file.
* tests/suite.at: Run `torture' and then `compile' before
`semantics'.
2000-11-16 14:56:17 +00:00
Akim Demaille
eb0f047bb5 * acspecific.m4 (AC_SYS_LARGEFILE): _AC_SYS_LARGEFILE_SOURCE no
longer exist.
2000-11-16 10:30:02 +00:00
Akim Demaille
5eb1d8aeb6 POSIX doesn't require s/[^/]// to work.
From Paul Eggert and Johan Danielsson.
* doc/autoconf.texi (Limitations of Usual Tools) <sed>:
Reorganize.  Document this issue.
* autoupdate.sh (dir): Use `,' as separator instead of `/'
* autoreconf.sh: Likewise.
* autoupdate.sh: Ditto.
2000-11-16 10:12:50 +00:00
Akim Demaille
ae4c79d264 * m4/largefile.m4 (_AC_SYS_LARGEFILE_SOURCE): Remove, replaced by...
(_AC_SYS_LARGEFILE_TEST_INCLUDES): this.
(AC_SYS_LARGEFILE_MACRO_VALUE): Use AC_LANG_PROGRAM instead of
_AC_SYS_LARGEFILE_SOURCE, i.e., don't pass
_AC_SYS_LARGEFILE_TEST_INCLUDES by default: this isn't desirable
when checking for fseeko.
(AC_SYS_LARGEFILE): Pass AC_SYS_LARGEFILE_TEST_INCLUDES to
_AC_SYS_LARGEFILE_MACRO_VALUE, since it no longer does this for us.
2000-11-16 08:52:54 +00:00
Akim Demaille
e62a041a2f Provide a means for escaping the forbidden patterns test.
* tests/tools.at (Forbidden tokens): Test m4_token_allow.
* m4sugar.m4 (m4_file_append, m4_token_allow): New macros.
* autoconf.sh (task script): Pass `tmp' and `verbose' to
finalize.awk.
(finalize.awk::check_patterns): Eve out from the body.
(finalize.awk): Read `$tmp/tokens_allowed', and don't complain for
these exceptions.
2000-11-16 08:33:46 +00:00
Akim Demaille
143dcb381c s/Free BSD/FreeBSD/. 2000-11-14 16:26:02 +00:00
Akim Demaille
d286d1d41e * acspecific.m4 (AC_SYS_LARGEFILE): Don't worry about
whether fseeko and ftello are properly declared.
* acfunctions.m4 (AC_FUNC_FSEEKO): New macro, which worries about
fseeko (and presumably ftello).  Do not set _XOPEN_SOURCE; that
causes too many problems in practice.
* acfunctions (fteelo, fseeko): Trigger AC_FUNC_FSEEKO.
* doc/autoconf.texi: Adjust.
2000-11-14 16:01:05 +00:00
Akim Demaille
2014a4b07e * doc/autoconf.texi (Limitations of Builtins): Comment `true'. 2000-11-14 14:22:13 +00:00
Akim Demaille
175bb016dd * BUGS: New file.
Be sure to read this file if you're using a non released Autoconf.
* tests/tools.at (Syntax of the scripts): The non built tools are
in `$top_srcdir', not `..'.
(autoconf --trace): When using `-i' we need the src tree, not the
build tree.
2000-11-14 13:25:35 +00:00
Akim Demaille
3e56675bc8 A single m4_require is enough.
* m4sugar.m4 (_m4_require): $2 defaults to $1.
Rename as...
(m4_require): this.
* acgeneral.m4 (_AC_REQUIRE): Remove, use m4_require if you want
to get into the gory details.
2000-11-14 11:06:37 +00:00
Akim Demaille
d18e3cbb57 * acgeneral.m4 (_AC_INIT_DEFAULTS_ENVIRONMENT): Rename as...
* m4sh.m4 (AS_SHELL_SANITIZE): this.
2000-11-14 11:01:44 +00:00
Akim Demaille
1448e443fa * tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't neutralize
autoconf's warnings.
2000-11-14 10:57:12 +00:00
Akim Demaille
300fbf12d3 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.
2000-11-14 10:44:27 +00:00
Akim Demaille
34376f9301 * tests/m4sh.at (AS_DIRNAME & AS_DIRNAME_SED): Simplify. 2000-11-14 10:40:42 +00:00
Akim Demaille
a8ce12b0d6 * 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.
2000-11-14 10:38:57 +00:00
Akim Demaille
e555c2fb78 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.
2000-11-14 10:31:39 +00:00
Akim Demaille
cc2c99e90b 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.
2000-11-14 10:11:43 +00:00
Akim Demaille
2487c47037 * acgeneral.m4: Spread some AS_EXIT and AC_MSG_ERROR.
(AC_OUTPUT): Don't play with trap, use ac_clean_files.
2000-11-14 10:09:20 +00:00
Akim Demaille
371ebd560e 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.
2000-11-14 10:05:14 +00:00
Akim Demaille
774e64915e * doc/autoconf.texi (autoconf Invocation): Explain `-W error'
gives back traces.
2000-11-14 10:00:25 +00:00
Pavel Roskin
edf0d70863 * 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.
2000-11-11 07:05:02 +00:00
Pavel Roskin
03d06c0d47 * 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.
2000-11-11 05:59:21 +00:00
Pavel Roskin
fa48839ba3 * doc/autoconf.texi (Particular Structures): Fix examples for
AC_STRUCT_ST_BLKSIZE and AC_STRUCT_ST_RDEV.
2000-11-11 04:24:29 +00:00
Pavel Roskin
9e7be4c525 Ignore PS and PDF files. 2000-11-11 04:15:57 +00:00
Pavel Roskin
00a0e79b34 * doc/autoconf.texi (Limitations of Usual Tools): Don't use
uncommon abbreviations.
2000-11-10 17:14:14 +00:00
Akim Demaille
443972e0fc * doc/autoconf.texi (Limitations of Builtins): Some information
about `trap'.
Document the Free BSD bug observed by Pavel.
2000-11-10 16:56:22 +00:00
Pavel Roskin
fddcd13579 * 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.
2000-11-10 15:49:15 +00:00
Akim Demaille
6b14324407 * doc/autoconf.texi (Limitations of Usual Tools): `&' in sed's rhs
is portable.
2000-11-10 15:04:10 +00:00
Akim Demaille
b621286c09 * doc/autoconf.texi (Shell Substitutions): Some information about
Solaris' sh handling of ``foo=${foo='}'}'' collected by Alexandre,
reported by David Taylor.
2000-11-10 14:55:37 +00:00
Akim Demaille
ac2ea1b00c Typos. 2000-11-10 14:44:30 +00:00
Akim Demaille
8ced8eb0a4 * tests/m4sh.at (Negated classes in globbing): New test. 2000-11-10 14:43:33 +00:00
Akim Demaille
d2329b45d3 * doc/autoconf.texi (Limitations of Builtins): `for i; do'. 2000-11-10 14:24:46 +00:00
Akim Demaille
ab3629569e * 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.
2000-11-10 12:10:13 +00:00
Akim Demaille
c0ab107534 Typo. 2000-11-10 11:45:45 +00:00
Akim Demaille
ea5e4b0457 * 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.
2000-11-10 11:43:23 +00:00
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
Jim Meyering
5111c57c37 (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.
2000-11-04 22:07:50 +00:00