Commit Graph

4506 Commits

Author SHA1 Message Date
Stepan Kasal
13324b1dfd Removed BIN_SH=xpg4, moved DUALCASE=1 to AS_SHELL_SANITIZE. 2006-03-17 19:32:53 +00:00
Stepan Kasal
8219ba6af6 do not check for ac_delim 2006-03-17 19:19:16 +00:00
Stepan Kasal
d2d7871702 (_AC_PATH_PROG): Store the result to VARIABLE. 2006-03-17 19:05:27 +00:00
Stepan Kasal
2991e096f8 Add AT_CHECK_MACRO_CROSS. 2006-03-17 18:03:01 +00:00
Ralf Wildenhues
c5982aeff4 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Prepend
the directory `/usr/bin/posix' in the shell search, to prefer
the Posix shell not only in subsequent spawns as with `$BIN_SH'
on Tru64.
2006-03-17 17:09:21 +00:00
Ralf Wildenhues
2b052b0538 * doc/autoconf.texi (contents): To fix texi2html output, hide
`@setcontentsaftertitlepage' for HTML.
(Writing Autoconf Macros): Likewise, insert space after `@c'.
(Leviticus, Numbers, Deuteronomy): Likewise, change `@,c' to
`@,{c}'.
2006-03-17 03:59:05 +00:00
Stepan Kasal
a7791c7782 Move the IFS setup and CDPATH sanitizing to AS_SHELL_SANITIZE. 2006-03-16 13:33:18 +00:00
Stepan Kasal
4889a3742d Do not use cache vars. 2006-03-15 14:02:36 +00:00
Stepan Kasal
ca608a72f9 Cleaned up documentation for macros in erlang.m4. 2006-03-14 16:55:26 +00:00
Ralf Wildenhues
c36fc65ca5 * tests/autotest.at (AT_NO_CMDSUBST): New macro to determine
failure condition for `$(cmd)' style command substitutions.
(Parenthetical command substition, Multiline parenthetical
command substition): Use it.
2006-03-14 07:20:14 +00:00
Ralf Wildenhues
1e50e55ff9 * doc/autoconf.texi (Special Shell Variables): Missing word.
Reported by Keith Marshall <keith.marshall@total.com>.
2006-03-14 07:19:27 +00:00
Ralf Wildenhues
6f4a6a0740 * lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Do not forget to reset
IFS even in case of empty `$PATH'.
2006-03-14 07:18:18 +00:00
Ralf Wildenhues
e1d5a93433 * lib/autotest/general.m4 (AT_INIT) <at_optarg>: Optimize
`expr' away if there is nothing to do.
< --keywords >: Simplify and robustify argument handling.
Revert erroneous comment from 2005-08-23.  Extend to allow
keyword negation with `!'.
Update help message.  Remove broken code to prevent running
tests multiple times.
* doc/autoconf.texi (testsuite Invocation) < --keywords >:
Update and fix the documentation accordingly.
* tests/autotest.at (Keywords): Renamed to..
(Keywords and ranges): .. this.  Extended to make sure negated
keywords, keywords taken from AT_SETUP arguments, and numeric
test ranges work, and that matching is case-insensitive.
2006-03-12 19:58:31 +00:00
Ralf Wildenhues
17bb2b9ac8 * lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW): Use a typedef to
allow to pass unnamed structs even in C++.
(AC_CHECK_SIZEOF):  Likewise.
Also fix quoting error in `AC_MSG_FAILURE' arguments.
* tests/semantics.at (AC_CHECK_ALIGNOF struct, AC_CHECK_SIZEOF
struct): New tests for unnamed structs, each both native and
cross-compiling.
2006-03-11 13:22:42 +00:00
Ralf Wildenhues
c8ad4b48ac * lib/autoconf/c.m4 (AC_C_TYPEOF): Use typedef to avoid defining
a structure inside a cast, for C++ conformance.
* lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Likewise.
Also fix quoting error in `AC_MSG_FAILURE' arguments.
2006-03-11 13:21:32 +00:00
Ralf Wildenhues
4bed79349d * lib/autoconf/c.m4 (AC_PROG_CC_STDC): If we cannot enable C99
nor C89 mode, set `$ac_cv_prog_cc_stdc' to `no' instead of
trying to execute the command `no'.
2006-03-11 13:20:14 +00:00
Ralf Wildenhues
df1fe4b493 * lib/autoconf/lang.m4 (AC_LANG_CONFTEST): AC_DEFUN this, not
m4_define, so that the requirements of `AC_INCLUDES_DEFAULT' are
expanded outside.
2006-03-11 13:17:23 +00:00
Ralf Wildenhues
608e17bde8 * doc/autoconf.texi (autoconf Invocation): Fix typos in trace
example.  Do not emphasize `$%', it is hardly new and special.
Reported by Edouard Bechetoille <ebecheto@ens-lyon.fr>.
2006-03-11 13:15:55 +00:00
Ralf Wildenhues
cd0f024086 * doc/autoconf.texi (Limitations of Usual Tools): Document
OpenBSD and traditional `grep' failure to handle multiple
patterns separated by newlines.
2006-03-11 13:13:47 +00:00
Paul Eggert
0527671a06 * doc/autoconf.texi (several sections): Add documentation for macros
in erlang.m4.
2006-03-11 08:07:31 +00:00
Paul Eggert
abc44c1c57 * doc/autoconf.texi (Obsolete Macros): Fix wording of
AC_TRY_LINK_FUNC.
2006-03-10 20:59:18 +00:00
Paul Eggert
60a9e484c6 * doc/autoconf.texi: Use @acronym more consistently for acronyms
like BSD, GPL, LGPL.  Fix minor English typos.
(AC_STDC_HEADERS, AC_PROG_GCC_TRADITIONAL):
Mention that these macros are becoming obsolete.
(AC_STDC_HEADERS, AC_PROG_CC, AC_C_CONST, AC_C_VOLATILE):
Use more modern terminology for which standard is what.
(AC_PROG_CC): Mention gcc first, and remove obsolete references to egcs
and to ansi2knr.
(AC_PROG_CXX): Likewise.
(AC_C_PROTOTYPES, Test Functions, AC_LIBOBJ vs LIBOBJS):
Remove obsolete discussion about how to port to K&R.
(Guidelines for Test Programs): Suggest AC_HEADER_STDBOOL rather than
the obsolescent AC_HEADER_STDC.
(AC_FOO_IFELSE vs AC_TRY_FOO): Don't use #error; test programs
can't rely on it.
2006-03-10 20:54:53 +00:00
Ralf Wildenhues
f1fb11eb87 * tests/c.at (AC_PROG_CPP without warnings, AC_PROG_CPP via CC):
Remove stdin redirection from /dev/null to allow pipe to work.
2006-03-08 20:48:22 +00:00
Paul Eggert
70e18e4ea9 Fix typo in previous checkin. 2006-03-08 19:23:36 +00:00
Paul Eggert
31c38363f1 * tests/c.at (AC_PROG_CPP without warnings): Require that
/lib/cpp include stdio.h correctly.  Solaris 10's doesn't.
2006-03-08 19:21:26 +00:00
Ralf Wildenhues
2602ca4aa5 * lib/autoconf/status.m4 (_AC_SED_CMD_LIMIT): The limit for
HP-UX sed is 99 commands, not 100.
(_AC_OUTPUT_FILES_PREPARE): Do not count the `}' of an
_AC_SUBST_FILES fragment.  Separate `{' and `r' commands by
newline for portability.
* tests/torture.at (Torturing config.status): Also test 100
AC_SUBST_FILE invocations.  Fix test to actually verify the
AC_CONFIG_FILES output.
* doc/autoconf.texi (Limitations of Usual Tools): Document HP-UX
command, label, and read-file `r' limits.  Unify HP-UX spelling.
2006-03-06 22:34:34 +00:00
Ralf Wildenhues
8db7a98480 Regenerated. 2006-03-06 22:06:09 +00:00
Ralf Wildenhues
66bf4ecdc9 * tests/Makefile.am (edit, $(wrappers)): Do not use `$<' in
non-suffix rule.
($(TESTSUITE_GENERATED_AT)): Use `$(srcdir)` for the benefit of
non-GNU make.
(autoconfdir, $(AUTOCONF_FILES)): Likewise.
* tests/mktests.sh: Small shell portability fixes.
2006-03-06 21:13:21 +00:00
Ralf Wildenhues
bb44ff85bc * doc/autoconf.texi (Caching Results): Fix the examples to use a
recommended quoting style and discard unwanted output.
2006-03-05 09:09:47 +00:00
Paul Eggert
2e38fe93be * lib/autotest/general.m4 (_AT_NORMALIZE_TEST_GROUP_NUMBER): New macro.
(AT_INIT): Use it, to remove arbitrary limit of 999,999 test
cases, and to work around Tru64 expr bug.
* doc/autoconf.texi (Limitations of Usual Tools): Mention Tru64
expr bug that turns the result of a regex match into a number if
possible.
2006-03-05 08:29:49 +00:00
Ralf Wildenhues
5c8afca5a6 * lib/autoconf/types.m4 (AC_CHECK_ALIGNOF): Work around
HPUX compiler bug, similarly to AC_CHECK_SIZEOF, as documented
in section `Specific Compiler Characteristics'.
2006-03-04 17:28:34 +00:00
Paul Eggert
3ddd7fba50 * lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Avoid unused
variable warning.
2006-03-03 20:41:40 +00:00
Ralf Wildenhues
f4d628245a * lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): Force correct
order of variable initialization, so even the Solaris 2.6 shell
can create a config header correctly.  Fixes lots of test suite
failures.
2006-03-01 19:54:33 +00:00
Ralf Wildenhues
65b3b33be3 * doc/autoconf.texi (Text processing Macros): New node to
document the m4sugar macros m4_re_escape, m4_tolower,
m4_toupper, m4_split, m4_normalize, m4_append, m4_append_uniq.
2006-02-22 20:18:23 +00:00
Paul Eggert
c53065d39a * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Fix typo:
XrmInitialize (0) -> XrmInitialize ().
Reported by Toshio Kuratomi.
2006-02-22 19:37:40 +00:00
Ralf Wildenhues
a628e04465 * lib/m4sugar/m4sh.m4 (AS_IF): Extend to allow more than one
test, as in `if tests; then cmd1; elif ...; else ...; fi'.
* doc/autoconf.texi (Programming in M4sh): Adjusted.
* tests/m4sh.at (AS_IF and AS_CASE): Test this.  Also make sure
both macros are defun'ed so that required macros are evaluated
outside.
2006-02-21 09:30:01 +00:00
Ralf Wildenhues
8ff7792b2a * doc/autoconf.texi (Prerequisite Macros): State more precisely
where a required macro will be expanded.
(Coding Style): Another reason not to use `m4_define'.
2006-02-21 09:28:34 +00:00
Ralf Wildenhues
5ff8a3d39a * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization. 2006-02-21 07:16:33 +00:00
Ralf Wildenhues
14f61daa3c * doc/autoconf.texi (Looping constructs): New node, to
document m4_for, m4_foreach, m4_foreach_w, and mention
obsolete AC_FOREACH.
(Obsolete Macros): Document AC_FOREACH.
* lib/m4sugar/m4sugar.m4 (_m4_for): Fix declaration comment.
(m4_for): Fix to never loop (almost) endlessly, work correctly
with arithmetic expressions in arguments, a step of zero or
non-integer multiple of the interval, and avoid integer
overflow.
* tests/m4sugar.at: New test for m4_for, m4_foreach, and
m4_foreach_w.
2006-02-20 21:43:05 +00:00
Paul Eggert
cf77d083f0 Regenerate. 2006-02-20 19:46:52 +00:00
Paul Eggert
79fcd7c3c2 * lib/autoconf/erlang.m4: Rename macros from ERLANG_* to
AC_ERLANG_*.  All uses changed.
* lib/freeze.mk (autoconf_m4f_dependencies): Add erlang.m4
* NEWS: Add short description of new macros.
2006-02-20 19:45:30 +00:00
Paul Eggert
b7484c4c76 Regenerate. 2006-02-20 08:59:37 +00:00
Paul Eggert
40e3987ab0 Initial revision. 2006-02-20 08:56:25 +00:00
Paul Eggert
e0703407fc Add basic support for Erlang, both for configuring Erlang/OTP
tools, and Erlang as a conf test language.
* lib/autoconf/erlang.m4: New file.
* lib/autoconf/autoconf.m4
* lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add erlang.m4.
* THANKS: Add Romain Lenglet.
2006-02-20 08:50:33 +00:00
Ralf Wildenhues
cff03cfc50 * doc/autoconf.texi (Shellology) <pdksh>: Document that pdksh as
native /bin/sh may not set KSH_VERSION (seen on OpenBSD).
2006-02-20 08:41:53 +00:00
Paul Eggert
f5a64f3738 * lib/autoconf/general.m4 (AC_CHECK_DECL): Avoid unused variable warning. 2006-02-15 22:07:12 +00:00
Ralf Wildenhues
6fab15fe41 * lib/m4sugar/m4sh.m4 (AS_CASE): New macro.
(_AS_CASE): Private helper macro.
* tests/m4sh.at: Basic tests for AS_IF and AS_CASE.
* doc/autoconf.texi (Programming in M4sh): Document AS_CASE.
Fix syntax of AS_IF description
(Prerequisite Macros): Mention AS_IF and AS_CASE as workarounds
for the AC_REQUIRE mess.
* NEWS: Mention AS_CASE, AS_BOURNE_COMPATIBLE, and
AS_SHELL_SANITIZE.
2006-02-15 07:00:29 +00:00
Paul Eggert
cbb28abf85 * doc/autoconf.texi: Minor style cleanup.
Be consistent about spaces after commas.
Insert [] where empty args look a bit funny.
Fix some "i.e." and "e.g." usages.
Try to avoid "X/Y" usages.
Don't be pedantic about "ISO C99"; just say C99.
Prefer GNU style for spaces in front of parens.
(Function Portability): Comment about C89 versus C99
signed integer division.
(Particular Headers): Use current gnulib style for dirent
includes.
2006-02-15 06:42:16 +00:00
Ralf Wildenhues
8d75399149 * bin/autoupdate.in (handle_autoconf_macros): Fix updating of
macros without parameters.
* lib/autoconf/autoupdate.m4 (AU_ALIAS): Likewise.
* doc/autoconf.texi (Obsoleting Macros): Document AU_ALIAS.
* tests/tools.at (autoupdating AU_ALIAS): New test for AU_ALIAS
`$#' bug.
(autoupdate): Updated to match AU_ALIAS fix.
2006-02-14 23:18:51 +00:00
Paul Eggert
9a0e3a3558 * doc/autoconf.texi (Programming in M4sh): Document
AS_BOURNE_COMPATIBLE and AS_SHELL_SANITIZE.
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Renamed to..
(AS_BOURNE_COMPATIBLE): ..this.
(_AS_RUN, AS_SHELL_SANITIZE): Adjusted all callers.
2006-02-13 18:46:04 +00:00