Commit Graph

2110 Commits

Author SHA1 Message Date
Ralf Wildenhues
96aa2c31b2 * lib/autoconf/c.m4 (AC_LANG(Objective C), AC_LANG_OBJC)
(_AC_LANG_ABBREV(Objective C), _AC_LANG_PREFIX(Objective C))
(AC_LANG_SOURCE(Objective C), AC_LANG_PROGRAM(Objective C))
(AC_LANG_CALL(Objective C), AC_LANG_FUNC_LINK_TRY(Objective C))
(AC_LANG_BOOL_COMPILE_TRY(Objective C))
(AC_LANG_INT_SAVE(Objective C), AC_LANG_PREPROC(Objective C))
(AC_PROG_OBJCPP, AC_LANG_COMPILER(Objective C), AC_PROG_OBJC)
(_AC_PROG_OBJC_G): New macros.
(_AC_ARG_VAR_CPPFLAGS): Adjusted.
* doc/autoconf.texi (Objective C Compiler): New node.
(Preset Output Variables): Document OBJCFLAGS.
(Language Choice): Document `Objective C' language.
(Fortran Compiler): Fix typo.
* NEWS: Updated.
Inspired by a patch from David M. Lloyd <dmlloyd@tds.net>.
2006-03-20 20:28:55 +00:00
Stepan Kasal
2ea44d31c2 typos 2006-03-20 14:46:12 +00:00
Stepan Kasal
8900df9ae0 * lib/autoconf/programs.m4 (AC_PATH_TOOL, AC_CHECK_TOOL, AC_CHECK_TOOLS):
Factor out the warning to...
	(_AC_TOOL_WARN): ... this new macro; use `cross_compiling'.
	* tests/local.at (AT_CHECK_MACRO_CROSS): Avoid this warning.
	* tests/semantics.at (AC_C_BIGENDIAN): Likewise.
2006-03-17 20:37:26 +00:00
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
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
Stepan Kasal
a7791c7782 Move the IFS setup and CDPATH sanitizing to AS_SHELL_SANITIZE. 2006-03-16 13:33:18 +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
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
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
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
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
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
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
Paul Eggert
cec2431f10 * lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE): Look at the output
of (set -o) rather than testing whether (set -o posix) succeeds,
to work around a bug in the AIX 5.3 shell.
2006-02-13 07:45:03 +00:00
Paul Eggert
8ad993c7d0 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS, _AC_FC_DUMMY_MAIN):
(_AC_FC_MAIN, __AC_FC_NAME_MANGLING): Use _AC_LANG in check
messages to differentiate Fortran and Fortran 77 tests.
(AC_FC_SRCEXT, AC_FC_FREEFORM): Use AC_LANG_PUSH/POP instead of
AC_LANG_ASSERT, to allow use in mixed-language projects.
2006-01-24 00:28:29 +00:00
Paul Eggert
0ec30df603 * lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): Prefer "defined
FOO" to "defined (FOO)".
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_XENIX_DIR): Likewise.
* tests/tools.at (ifnames): Likewise.
2006-01-24 00:20:15 +00:00
Ralf Wildenhues
72c832bf54 * lib/m4sugar/m4sh.m4 (AS_TMPDIR): Do not pass `-q' to mktemp.
* lib/Autom4te/General.pm (mktmpdir): Likewise.
(END): Improve error message a bit.
Reported by Bruce Korb <bkorb@gnu.org>.
2006-01-21 09:09:46 +00:00
Ralf Wildenhues
9aa4f267b4 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
`-LIST:' and `-LNO:', for PathScale 2.3 compilers.
2006-01-12 19:43:29 +00:00
Ralf Wildenhues
2fcca28cc4 * lib/autotest/general.m4 (AT_INIT): When ensuring writability
before the removals of test dirs, use `find' to avoid modification
of symlinked directories.
2006-01-11 08:33:16 +00:00
Ralf Wildenhues
a92cf9ac57 * lib/autoconf/fortran.m4 (AC_F77_DUMMY_MAIN, AC_FC_DUMMY_MAIN):
Don't ignore the macro arguments.
2006-01-11 08:21:13 +00:00
Ralf Wildenhues
051cbf8f48 * lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Add `exit'
declaration that works for MSVC.
2006-01-11 08:17:17 +00:00
Ralf Wildenhues
2769bf9b11 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
Add `*.map' and `.inf' for Green Hills compiler.
Reported by Stefan Seefeld <stefan@codesourcery.com>.
2006-01-11 08:10:50 +00:00
Ralf Wildenhues
f124168ce6 * lib/m4sugar/m4sugar.m4 (m4_text_wrap): Handle quadrigraphs
correctly: pad with spaces after FIRST_PREFIX if necessary,
and compute string lenghts with `m4_qlen' instead of `m4_len'.
* lib/m4sugar/m4sh.m4 (AS_HELP_STRING): Comments updated.
* tests/m4sh.at (AS_HELP_STRING): Test extended.
* NEWS: Updated.
Reported by numerous people, numerous times.
2006-01-11 08:05:55 +00:00
Paul Eggert
1fabda990f * bin/autoconf.as, bin/autoheader.in, bin/autom4te.in
* bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in:
* lib/autoconf/general.m4, lib/autoconf/status.m4:
* lib/autotest/general.m4:
Update copyright year to 2006.
2006-01-06 00:10:37 +00:00
Paul Eggert
f292fd9dd5 * Makefile.maint (sc_root_tests): Use recommend style s/a/b/ for
sed substitutions.
* doc/autoconf.texi (Installation Directory Variables): Use s|a|b|
for file names, again.  Reported by Noah Misch.
(Coding Style): Explain that s|a|b| is preferred for file names.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Prefer s/a/b/.
(AC_OUTPUT_MAKE_DEFS): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Likewise.
* tests/local.at (AT_CHECK_AUTOM4TE): Likewise.
2006-01-06 00:02:26 +00:00
Paul Eggert
0ee621917a Fix Posix-conformance bugs re use of { command in sed scripts,
and improve the sed-related documentation a bit.
* doc/autoconf.texi (Installation Directory Variables): Use
our own style advice re 's,a,b,' versus 's|a|b|'.  Use "Sed"
rather than "sed" when talking about Sed in general.
(Particular Programs): Likewise.
(Coding Style): y is like s with respect to / and ,.
(Limitations of Usual Tools): Document the weird restrictions
that Posix has about { }.  Use better quoting.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE, _AC_OUTPUT_HEADER):
Rewrite to conform to Posix rules about { } in sed scripts.
* lib/m4sugar/m4sh.m4 (AS_DIRNAME_SED, AS_BASENAME_SED): Likewise.
* tests/foreign.at (Libtool): Likewise.
* tests/semantics.at (AC_CHECK_PROG & AC_CHECK_PROGS):
Use our own style advice re 's,a,b,' versus 's|a|b|'.
2006-01-05 21:43:44 +00:00
Ralf Wildenhues
a3195854a5 * lib/autoconf/status.m4: Fix typo. 2006-01-05 15:17:47 +00:00
Ralf Wildenhues
f4dd19c75b * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Ignore
singly- or doubly-quoted arguments to `-cmdline', `-ignore',
`-def', for the benefit of Portland `pgf90 -Mipa'.
Reported by Christopher Hulbert <cchgroupmail@gmail.com>.
2006-01-05 10:11:22 +00:00
Stepan Kasal
0869a285c6 Use $PATH_SEPARATOR 2005-12-31 16:44:22 +00:00
Paul Eggert
93f53cfee7 (_AS_BOURNE_COMPATIBLE): Try `set -o
posix' unconditionally, for pdksh in `native sh' emulation.
2005-12-02 19:22:49 +00:00
Ralf Wildenhues
fffd9421d8 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Pass
CONFIG_SHELL in the environment of the configure rerun.
* doc/autoconf.texi (Here-Documents, config.status Invocation):
Suggest passing CONFIG_SHELL absolute, and in the environment
rather than as option.
2005-11-10 18:57:58 +00:00
Ralf Wildenhues
3dfefba322 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE):
Fix quoting of output line (triggered for many AC_SUBST_FILEs).
Fix macro quoting.  Fix output for n*100 substituted variables.
2005-11-09 20:34:41 +00:00
Ralf Wildenhues
96410b4a9d * lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Initialize
`tmp' to avoid file removal race.
2005-11-08 07:11:58 +00:00
Ralf Wildenhues
4d2acc6228 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Initialize
ac_clean_files and LIBOBJS.
2005-11-07 20:31:09 +00:00
Ralf Wildenhues
6acdc7d882 * lib/autoconf/programs.m4 (AC_CHECK_PROG, AC_PATH_PROG):
Factor functionality to..
(_AC_CHECK_PROG, _AC_PATH_PROG): these new macros, but only
`AC_SUBST($1)' in the public version.
(AC_CHECK_TOOL, AC_PATH_TOOL, AC_PATH_TARGET_TOOL)
(AC_CHECK_TARGET_TOOL): Use internal versions for ac_ct_* and
ac_pt_* variables.
2005-11-06 19:24:37 +00:00
Stepan Kasal
85bf75ac80 Remove the comment about 8+3 fs. 2005-11-01 07:26:52 +00:00
Stepan Kasal
76d6383e5a "conftst2" -> "conftest2" 2005-10-27 06:16:02 +00:00
Stepan Kasal
de4b7ec7bb rm -f conftst2.*, not only conftst2.$ac_objext 2005-10-25 07:55:30 +00:00
Stepan Kasal
f799d47ad6 Fix AC_PROG_CC_C_O for VC++. 2005-10-24 10:56:01 +00:00
Stepan Kasal
6c46e64ab3 _AC_OUTPUT_FILES_PREPARE: fix quoting and optimize 2005-10-21 07:36:31 +00:00
Paul Eggert
f50d0bd4c7 * doc/autoconf.texi (Generating Sources): AC_LANG_PROGRAMS ->
AC_LANG_PROGRAM, fixing a typo.  Don't give details about
the inner workings of AC_LANG_FUNC_LINK_TRY.
* lib/autoconf/c.m4 (AC_LANG_CALL(C)): Reformat to match
AC_LANG_FUNC_LINK_TRY.  This involves returning the value returned
by the function rather than ignoring it.
(AC_LANG_FUNC_LINK_TRY(C)): Call the function rather than simply
comparing its address.  Intel's interprocedural optimization was
outsmarting the old heuristic.  Problem reported by
Mikulas Patocka.
2005-10-19 22:35:51 +00:00
Stepan Kasal
e56f3ffe24 Remove an obsolete comment. 2005-10-19 05:21:21 +00:00
Paul Eggert
cf3b3ede92 * lib/m4sugar/m4sugar.m4 (_m4_map): New macro.
(m4_map, m4_map_sep): Use it.  Handle the empty list correctly.
2005-10-05 21:27:43 +00:00
Stepan Kasal
51f6f59761 (AT_INIT): Make the test dir writable... really, in all 3 cases. 2005-10-04 09:14:11 +00:00
Stepan Kasal
f073f1e44e (AT_INIT): Make the test dir writable... IF it exists. 2005-10-03 10:43:55 +00:00
Stepan Kasal
2ae20df5b3 (AT_INIT): Make test dir writable before removing. 2005-10-03 10:25:53 +00:00
Paul Eggert
1028b09a3f * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Balance parentheses. 2005-10-02 21:36:29 +00:00
Paul Eggert
356092a89c * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Look for X11/Xlib.h
and XrmInitialize rather than X11/Intrinsic.h and XtMalloc
(which belong to Xt, not X itself).  See Debian bug 327655.
* NEWS: Mention this.
2005-09-18 17:10:24 +00:00
Stepan Kasal
f384105745 (AC_LANG_SOURCE(C)): Remove an incorrect comment. 2005-09-07 14:43:14 +00:00
Stepan Kasal
824052b6c8 Use AS_IF where appropriate. 2005-09-06 15:38:56 +00:00
Stepan Kasal
d8e678e2d0 (AS_IF): Use m4_default. 2005-09-06 15:37:55 +00:00
Stepan Kasal
8e555fe7d0 Fix AC_SEARCH_LIBS. 2005-09-06 15:34:06 +00:00
Paul Eggert
47b5ca26b1 * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Use shell variable
XMKMF to locate xmkmf.  Make XMKMF precious.  Export CC when
running xmkmf.
2005-08-26 19:42:23 +00:00
Paul Eggert
7385854c54 (_AS_VERSION_COMPARE_PREPARE):
The previous patch didn't work, so try a better one.
2005-08-26 18:49:23 +00:00
Stepan Kasal
f9f3b51d6f Define AC_CANONICAL_* by AC_DEFUN, not AC_DEFUN_ONCE. 2005-08-26 16:36:25 +00:00
Paul Eggert
7753b867c0 Regenerate. 2005-08-25 21:33:19 +00:00
Paul Eggert
ffea2f0089 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
Work around bug in Solaris 9 (and 10) /usr/xpg4/bin/awk.
2005-08-25 21:29:54 +00:00
Stepan Kasal
7f5083c932 Simplify _AC_CANONICAL_SPLIT 2005-08-25 08:49:01 +00:00
Stepan Kasal
78b5c18a91 config.status now opens log after option processing 2005-08-23 09:26:03 +00:00
Stepan Kasal
83c3e6f9a0 Strip the parameter list before passing the macro name to AH_TEMPLATE. 2005-08-23 09:22:14 +00:00
Stepan Kasal
9ab43905c2 (AT_INIT): Process multiple --keywords correctly. 2005-08-23 08:57:24 +00:00
Stepan Kasal
9b3a6b5e1d Implement AH_HEADER 2005-08-23 08:50:54 +00:00
Stepan Kasal
11372ddb46 (AC_ARG_ENABLE, AC_ARG_WITH): Factor out common code 2005-08-22 14:49:01 +00:00
Stepan Kasal
597bc15a76 When building in place, set srcdir=".". 2005-08-16 09:11:06 +00:00
Stepan Kasal
cabbfa68fa a cosmetic change in _AT_CHECK 2005-07-27 14:20:32 +00:00
Stepan Kasal
992d1ef0b8 fix a doubled pushdef 2005-07-27 13:46:20 +00:00
Stepan Kasal
5e1fc7afa3 (_AC_OUTPUT_SUBDIRS): The message is now prefixed by mere "===", not "configure: === ". 2005-07-26 10:14:24 +00:00
Paul Eggert
4e0329a533 Rewrite substantial part of lib/autoconf/status.m4.
The main change is that CONFIG_FILES, CONFIG_HEADERS, CONFIG_LINKS,
and CONFIG_COMMANDS are not processed in four separate loops.
Instead, there is one main loop.  This alows that the common code
is expanded only once, thus config.status (and configure) is smaller.

The registration mechnism in AC_CONFIG_FILES and cousins also changed;
the AC_LIST_FILES and cousins macros are no longer used.

* lib/autoconf/status.m4 (_AC_OUTPUT_FILES, _AC_OUTPUT_HEADERS,
_AC_OUTPUT_LINKS, _AC_OUTPUT_COMMANDS): Renamed to ...
(_AC_OUTPUT_FILE, _AC_OUTPUT_HEADER, _AC_OUTPUT_LINK,
_AC_OUTPUT_COMMAND): ..., respectively.  These macros no longer
contains the initialization, nor the for loop, nor the associated
commands; all these go to ...
(_AC_OUTPUT_MAIN_LOOP): ... this new macro, called from
_AC_OUTPUT_CONFIG_STATUS.
(_AC_CONFIG_SPLIT, _AC_CONFIG_SPLIT_SOURCE_DEST, _AC_CONFIG_SPLIT_FILE_IN):
Nuked; the code was merged into _AC_OUTPUT_MAIN_LOOP.
(_AC_OUTPUT_FILE): The creation of the sed script ...
(AC_OUTPUT): ... and the setup of ac_vpsub goes to ...
(_AC_OUTPUT_FILES_PREPARE): ... a new macro, also called from
_AC_OUTPUT_MAIN_LOOP.
(_AC_CONFIG_FILES, _AC_CONFIG_HEADERS, _AC_CONFIG_LINKS,
_AC_CONFIG_COMMANDS): Use ...
(_AC_CONFIG_FOOS): ... this new macro, which uses these ...
(_AC_CONFIG_REGISTER, _AC_CONFIG_REGISTER_DEST): ... new macros.
(_AC_CONFIG_FILE, _AC_CONFIG_HEADER, _AC_CONFIG_LINK,
_AC_CONFIG_COMMAND, _AC_CONFIG_DEPENDENCIES): No longer needed.
(_AC_CONFIG_DEPENDENCY): Update, it uses these ...
(_AC_CONFIG_DEPENDENCY_DEFAULT, _AC_FILE_DEPENDENCY_TRACE_COLON):
... new macros.
(_AC_CONFIG_UNIQUE): Update.
(AC_LIST_FILES, AC_LIST_HEADERS, AC_LIST_LINKS, AC_LIST_COMMANDS):
Replaced by this ...
(_AC_LIST_TAGS): ... new common macro.
(AC_LIST_FILE_COMMANDS, AC_LIST_HEADER_COMMANDS, AC_LIST_LINK_COMMANDS,
AC_LIST_COMMAND_COMMANDS): Replaced by this ...
(_AC_LIST_TAG_COMMANDS): ... new common macro.
(_AC_CONFIG_COMMANDS_INIT): Moved top to the `registration' section;
this didn't belong to the `config commands' section.
(_AC_OUTPUT_COMMANDS_INIT): Don't initialize, m4_ifdef is our friend.
(AC_CONFIG_COMMANDS_PRE, AC_OUTPUT_COMMANDS_PRE,
AC_CONFIG_COMMANDS_POST): Moved to a new section, these didn't belong
to the `config commands' section either.
(AC_CONFIG_SUBDIRS): Don't touch diversion DEFAULTS.
(_AC_LIST_SUBDIRS): Don't initialize, m4_ifdef is our friend.

... and many changes to the comments nearby.

* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): At the end of the day,
set ac_subdirs_all='_AC_LIST_SUBDIRS'.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
AC_CONFIG_COMMANDS(command:input,...) is no longer allowed.
(#define header templates): The comment at the top of the generated
header now includes the name(s) of the source file(s).

Several unrelated small changes:

* lib/autoconf/general.m4 (AC_CACHE_VAL): Be didactic, quote the first
parameter to AC_DIAGNOSE.
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Likewise.
(_AC_LINK_FILES_CNT): Don't AU_DEFUN this; it causes confusing messages
with autoupdate; use m4_define_default inside AU_DEFUNed AC_LINK_FILES.
(AC_OUTPUT): In the compatibility code, use m4_ifvaln, to be consistent
with AU::AC_OUTPUT.
(AU::AC_OUTPUT): Don't double-quote $2 and $3, the compatibility code
in AC_OUTPUT doesn't double-quote it either.
* tests/tools.at (autoupdate): AU::AC_OUTPUT no longer double-quotes the
parameters.
2005-07-25 18:10:25 +00:00
Paul Eggert
3774d96668 Comment fix: change tab to "<tab>" in comment, so that the point is
understandable.
2005-07-25 17:47:08 +00:00
Stepan Kasal
d21c6cb2ca Document which versions of PGI compiler uses single and double quotes. 2005-07-10 16:02:44 +00:00
Stepan Kasal
999e7f781b Changed the title above subst files dump. 2005-07-07 11:24:35 +00:00
Stepan Kasal
6f3a1c1a14 Keep a list of all precious variables. 2005-07-07 11:09:51 +00:00
Stepan Kasal
a24c03c7c7 Move the AC_SUBST call from _AC_ARG_VAR_PRECIOUS to AC_ARG_VAR. 2005-07-07 11:08:14 +00:00
Stepan Kasal
770de4a07b Simplify AC_CANONICAL_*. 2005-07-07 11:06:59 +00:00
Stepan Kasal
26c59b650a (_AC_OUTPUT_SUBDIRS): Report the full path and insert "===". 2005-07-07 10:58:22 +00:00
Paul Eggert
7d9430d8b1 * NEWS: New macro AC_C_TYPEOF.
* doc/autoconf.texi (C Compiler): Document AC_C_TYPEOF.
* lib/autoconf/c.m4 (AC_C_TYPEOF): New macro.
* tests/c.at (C keywords): Test AC_C_TYPEOF.
2005-07-06 21:39:30 +00:00
Stepan Kasal
e5e52a1a2c Fix my previous m4_foreach_w patch. 2005-07-05 11:25:47 +00:00
Stepan Kasal
aa0351ed19 Improve compatibility when the versions of Autoconf and Autotest don't match. 2005-07-05 11:08:41 +00:00
Paul Eggert
7d8d078148 * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
sed substitution command, so that we allow | in program prefixes
and program suffixes.  (& is a problem anyway; we're not fixing
that here.)
* lib/autoconf/status.m4 (AC_CONFIG_FILES): Likewise, for
configure_input, top_builddir, srcdir, etc.
* lib/autotest/general.m4 (AT_INIT): Likewise, for
PATH_SEPARATOR in AUTOTEST_PATH.
2005-07-04 06:33:56 +00:00
Paul Eggert
3792cba6e8 * lib/autoconf/general.m4 (AC_SITE_LOAD): Rewrite the
for loop over config.site files using `set', to allow
directory names containing IFS characters.
2005-07-04 05:22:35 +00:00
Paul Eggert
fac859f174 * lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Remove the tests for
directories with weird names.  Apparently some people like living
on the edge.  However, improve the test that "pwd" actually does
report a name for the working directory.
* NEWS: Remove the claim that we test for funny chars in dir names.
2005-07-01 22:20:56 +00:00
Stepan Kasal
8c60c99222 Obsolete AC_FOREACH. 2005-07-01 08:45:22 +00:00
Stepan Kasal
dec2180d09 Fix the order of the macros. 2005-06-30 18:42:08 +00:00
Stepan Kasal
c4f2d3d01e (_AC_OUTPUT_CONFIG_STATUS): Use a here document to output the default
config_* lists to config.status.
   Don't recognize option --file, if the functionality is not there.
   Likewise for --header; moreover, recognize --he and --h as shortcuts
   for --help in that case.
2005-06-30 18:27:40 +00:00
Stepan Kasal
4e9da906ff fix parsing of Fortran -v output in Portland-Group compiler again 2005-06-30 12:59:13 +00:00
Alexandre Duret-Lutz
ddc3dab4f8 * lib/autom4te.in (Automake-preselections): Preselect AC_SUBST_TRACE. 2005-06-30 11:09:37 +00:00
Stepan Kasal
1b9326bc9e Introduce AC_SUBST_TRACE 2005-06-29 09:33:21 +00:00
Stepan Kasal
5864b9b4fa Move AC_ARG_VAR up. 2005-06-29 06:37:47 +00:00
Paul Eggert
e32eb1d0fe * NEWS: Don't worry about spaces in bindir etc. Only srcdir and working
directory have inherent problems with special characters like spaces,
due to limitations in Make syntax.  Problem reported by Alexandre
Duret-Lutz.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Implement the above.
Also, fix Tru64 porting problem with shell patterns,
reported by Ralf Wildenhues.
2005-06-24 02:13:39 +00:00
Paul Eggert
124c037f3d Regenerate. 2005-06-23 20:11:18 +00:00
Paul Eggert
88865d83e1 Fix some more shell quoting problems. Prompted by a bug report
from Justace Clutter.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): Put name of invalid
variable into diagnostic.  Make the diagnostic an error, not a warning,
because we really don't support spaces and suchlike in dir names.
(_AC_INIT_SRCDIR): Allow special characters in $ac_unique_file.
Don't worry about backslashes in srcdir; it can't happen now.
(_AC_INIT_PARSE_ARGS): Allow weird characters in ac_optarg.
Simplify ac_optarg handling.
(_AC_ARG_VAR_VALIDATE): Remove unnecessary and inconsistent quotes.
2005-06-23 20:09:25 +00:00
Stepan Kasal
91ac8c668f fix AT_CONFIG_CMP 2005-06-22 12:13:59 +00:00
Stepan Kasal
134ab734ea typo in _AC_CANONICAL_SPLIT 2005-06-22 09:10:50 +00:00
Stepan Kasal
79539e6fbf No blanks after sed command ":" and other minor fixes. 2005-06-21 16:03:58 +00:00
Stepan Kasal
0ed02e1aa5 fix m4split([]) 2005-06-21 15:38:24 +00:00
Derek Price
0066149a8b * lib/m4/programs.m4 (AC_PROG_YACC): Declare YACC & YFLAGS precious. 2005-06-20 14:48:09 +00:00
Paul Eggert
f149ecd2b8 * lib/m4sugar/m4sh.m4 (as_awk_strverscmp): Port to Solaris /bin/awk.
* doc/autoconf.texi:
Don't mention Solaris versions so much, if a
problem is common to all extant versions of Solaris.  Say "SunOS
4" instead of "SunOS" for SunOS 4.
(awk): Mention more of the limitations of traditional Awk.
(cat): Don't talk about cat -v.
2005-06-17 20:37:36 +00:00
Paul Eggert
9e1a1f1400 * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
(AS_VERSION_COMPARE): New macro.  The API is taken from CVS,
but the implementation is entirely different and is designed
to be compatible with glibc strverscmp.
* tests/m4sh.at (AS_VERSION_COMPARE): New test.
2005-06-16 21:03:47 +00:00
Paul Eggert
7a2fe7a963 * doc/autoconf.texi (Limitations of Usual Tools): Mention expr bug
on Mac OS X 10.4 reported by Peter O'Gorman in:
http://lists.gnu.org/archive/html/autoconf-patches/2005-06/msg00041.html
* lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT):
Use shell builtins rather than 'expr', to work around expr bug.
2005-06-16 07:24:42 +00:00
Paul Eggert
2fb1b97ad0 * doc/autoconf.texi: "filesystem" -> "file system".
"behavior" -> "behavior".
Warn about \(...\)* in Solaris sed (written by Ralf Menzel).
* lib/autoconf/general.m4: Omit blank after ":" sed command,
as per POSIX.
* lib/m4sugar/m4sh.m4: Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Work around problem
with Solaris sed.  Fix by Stepan Kasal.
2005-06-11 06:05:11 +00:00
Paul Eggert
bf9df8d65a * lib/m4sugar/m4sh.m4 (AS_VAR_TEST_SET): Work even if $1 contains
quotes and backslashes.  Patch from Derek Price.
2005-06-10 17:19:02 +00:00
Paul Eggert
7c4b2f464d (AT_INIT): Don't accept Solaris 9's diff -u, since it outputs chatter
if the input files are the same.  Problem reported by Ralf Menzel.
2005-06-08 20:22:39 +00:00
Derek Price
505d062d8f * lib/m4sugar/m4sugar.m4: Undefine include & sinclude rather than
renaming them since they are about to be redefined anyhow.
2005-06-08 18:54:23 +00:00
Stepan Kasal
bc31277f07 typo 2005-06-07 13:03:09 +00:00
Stepan Kasal
14b38a86c3 fix typo 2005-06-06 09:36:11 +00:00
Stepan Kasal
d354edbe65 Fix m4_cdr for one-member lists. 2005-06-06 08:47:02 +00:00
Stepan Kasal
160577c29c Simplify _AC_OUTPUT_HEADERS. 2005-06-06 08:21:08 +00:00
Stepan Kasal
1a56364377 Simplify _AC_OUTPUT_HEADERS. 2005-06-06 08:15:47 +00:00
Stepan Kasal
74a787af12 Solaris' awk cannot take more than 99 fields. 2005-06-06 08:01:30 +00:00
Steven G. Johnson
b95e76c6da check for g95 in addition to gfortran 2005-06-05 18:46:03 +00:00
Stepan Kasal
153958d92b AIX awk cannot swallow literals longer than 399. 2005-06-04 07:30:05 +00:00
Paul Eggert
756608a3c3 (AT_INIT): Don't create a regular
expression of unbounded size when processing the --list
option.  This runs afoul of a limit of 399 bytes per regular
expression on AIX.  Problem reported by Ralf Wildenhues.
2005-06-02 23:30:13 +00:00
Paul Eggert
4157a11dd9 * lib/autoconf/status.m4 (_AC_OUTPUT_FILES): Output variables may
now contain newlines, and substituted files must be referenced on
a line alone; the sed scripts to substitute them are now very
different.
(_AC_SED_CMD_LIMIT): Added; single place to store limit on how many
commands can be put in a sed script portably.
* doc/autoconf.texi (Setting Output Variables): Document above
changes.  (Particular Header Checks) <AC_HEADER_STDBOOL>: Give exaple
use of multiline substitution.
* tests/torture.at: No longer expect substitution of newline to fail.
2005-06-01 06:54:45 +00:00
Paul Eggert
102586d8e0 * lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Fix diagnostics.
From Ralf Menzel (trivial change).
2005-05-27 22:21:44 +00:00
Stepan Kasal
7799e704a2 (AC_MSG_CHECKING, AC_MSG_RESULT): Put braces around the two echo commands 2005-05-24 07:32:13 +00:00
Stepan Kasal
e96830f886 (_AS_ECHO_LOG): New macro 2005-05-24 07:29:57 +00:00
Stepan Kasal
9f639eb48d (AS_ESCAPE): Make the pattern a bit simpler 2005-05-24 07:27:55 +00:00
Stepan Kasal
e7d74c4c5d Move _AS_ECHO_UNQUOTED lower; no code change. 2005-05-24 07:27:15 +00:00
Stepan Kasal
f014f06e6b (m4_ifset): Use m4_ifval. 2005-05-24 07:25:32 +00:00
Stepan Kasal
fbcb298898 Merge the two error messages when ac_unique_file is not found. 2005-05-24 07:24:49 +00:00
Stepan Kasal
220d13fef6 Simplify end of AC_CONFIG_MACRO_DIR 2005-05-24 07:21:43 +00:00
Stepan Kasal
457e247cc7 Make AC_MSG_RESULT_UNQUOTED obsolete 2005-05-24 06:12:10 +00:00
Stepan Kasal
53466e6d2b typo 2005-05-20 12:07:02 +00:00
Stepan Kasal
8641b608b5 make top_builddir consistent with Automake 2005-05-20 08:13:15 +00:00
Stepan Kasal
661cc613b0 Simplify the init of confdefs.h 2005-05-20 07:58:42 +00:00
Stepan Kasal
ae53380796 (m4_text_wrap): Don't m4_quote the second argument to m4_foreach. 2005-05-17 09:49:36 +00:00
Stepan Kasal
0a2545966e Use expr where possible. 2005-05-17 09:29:05 +00:00
Alexandre Duret-Lutz
0f41ecbc90 * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
as on 2005-05-02.
* doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
Mention LIBOBJDIR.
2005-05-14 18:33:30 +00:00
Paul Eggert
681d17dce2 Update FSF postal mail address. 2005-05-14 07:00:38 +00:00
Stepan Kasal
90e4ad679a (AC_CONFIG_LIBOBJ_DIR): Remove the broken check. 2005-05-13 09:17:15 +00:00
Stepan Kasal
4a38c32eb8 (m4_bmatch): Check the number of args. 2005-05-13 09:16:44 +00:00
Paul Eggert
d2e7431e9e * lib/autoconf/status.m4 (_AC_SRCDIRS): Simplify the computation
of absolute paths.
2005-05-12 23:46:42 +00:00
Stepan Kasal
9ce265f05c * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Make the check
for absolute directory names in one loop.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Handle
  abbreviations of --version and --debug.
2005-05-12 11:26:07 +00:00
Paul Eggert
f5b265430a Fix C++ related problems reported by Werner Lemberg.
* doc/autoconf.texi (C++ Compiler): Mention .cpp extension.
* lib/autoconf/c.m4 (AC_LANG(C++)): Set ac_ext to .cpp, not .cc.
* lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Simplify test, to
avoid problems with C++ and throw.
* tests/compile.at: .cpp, not .cc.
2005-05-06 05:34:43 +00:00
Gary V. Vaughan
1dab064d21 * lib/autoconf/general.m4 (_AC_LIBOBJS_NORMALIZE): Prepend each
object named in LIBOBJS and LTLIBOBJS with the ${LIBOBJDIR}, as
set by latest automake.
2005-05-02 20:14:49 +00:00
Paul Eggert
a96d9ad685 (AT_KEYWORDS): Separate by space, not newline. 2005-04-29 21:16:07 +00:00
Stepan Kasal
4ca5cf6fd2 A tiny optimization in _AC_OUTPUT_HEADERS. 2005-04-27 10:04:36 +00:00
Stepan Kasal
5adc3cae53 FIXMEs about quadrigraphs in help text. 2005-04-22 06:37:24 +00:00
Paul Eggert
54cb4d63c8 * lib/autoconf/general.m4 (_AC_INIT_PREPARE, _AC_RUN_IFELSE):
Remove core.conftest.* too; it's generated by Tru64 5.1.
* lib/autoconf/functions.m4
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
Don't bother to remove core files; AC_RUN_IFELSE should do that for you.
2005-04-20 05:34:25 +00:00
Stepan Kasal
edb835c2ff typo 2005-04-19 06:20:37 +00:00
Alexandre Duret-Lutz
75912460a6 * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Handle --docdir.
Report from Horst Wente.
2005-04-19 06:00:35 +00:00
Stepan Kasal
37482b404d typo 2005-04-15 08:36:56 +00:00
Paul Eggert
b09065e337 * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Look for configure.ac
as well as configure.in.  Problem reported by Gregorio Guidi.
2005-04-13 17:01:41 +00:00
Stepan Kasal
76aa0e4c11 a typo 2005-04-04 10:19:10 +00:00
Paul Eggert
da9ffbaaaf (AT_INIT): Don't assume that "date +%s" fails if %s isn't supported. 2005-04-01 07:27:53 +00:00
Paul Eggert
1ab98b87ae * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS):
Merge `-z option' as well for the benefit of Solaris link flags.
2005-03-23 19:41:13 +00:00
Paul Eggert
392b17e203 Regenerate. 2005-03-23 01:04:17 +00:00
Paul Eggert
789f0bf6ff * NEWS: The configure command now warns you if you attempt to use
a directory whose name contains a special character like space,
newline, or "\".
* doc/autoconf.texi (Installation Directory Variables): Allow
"," in file names.  Do not use \@; it's not a portable regexp.
* bin/Makefile.am (edit): Likewise.
* lib/Makefile.am (edit): Likewise.
* tests/Makefile.am (edit): Likewise.
* tests/semantics.at: Likewise.
* tests/torture.at: Likewise.
* lib/autoconf/general.m4 (AC_ARG_PROGRAM): Likewise.
* lib/autoconf/status.m4 (_AC_SRCDIRS): Likewise.
* doc/autoconf.texi (File System Conventions): Warn about
unportable file names.
* lib/autoconf/general.m4 (_AC_INIT_DIRCHECK): New macro.
(AC_INIT): Use it.
(_AC_INIT_SRCDIR): Use ac_pwd rather than invoking pwd.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Propagate
ac_pwd, and quote srcdir.
* lib/autotest/general.m4 (AT_INIT): Quote file name args.
2005-03-23 01:01:58 +00:00
Stepan Kasal
4cb653bd0d improve AC_PROG_CC and AC_PROG_CXX 2005-02-25 08:52:48 +00:00
Paul Eggert
10cd1172b4 Regenerate. 2005-02-23 23:26:05 +00:00
Paul Eggert
29373c6512 * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin from
/dev/null, as "configure" shouldn't read stdin, and this insulates
us from problems (e.g., when testing for "cl").  Also, do this
redirection before invoking "hostname" or "uname", and keep the
original input stream available via...
(AS_ORIGINAL_STDIN_FD): ... this new macro.
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE): Don't
bother with "</dev/null" since it's now done at the top of
'configure'.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Likewise.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
* doc/autoconf.texi (File Descriptor Macros): New section.
(Printing Messages): Mention it.
* tests/base.at (Input/Output): New test.
2005-02-23 23:24:49 +00:00
Paul Eggert
9912fcca7e (_AS_ECHO_N_PREPARE): Don't set ECHO_C to
newline if neither \c nor -n work, as that would output two
newlines.  Prefer -n to \c.
2005-02-23 19:26:35 +00:00
Stepan Kasal
7192963509 m4_defun([AS_IF], [...]) 2005-02-15 06:40:21 +00:00
Paul Eggert
c5c40b0e69 Undo previous change, except keep the change to
lib/autoconf/programs.m4 that replaced grep with shell
pattern-matching.  This is because net-snmp configure reads stdin.
2005-02-13 07:38:31 +00:00
Paul Eggert
5c70aeca3f * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Redirect stdin
from /dev/null, as "configure" shouldn't read stdin, and this
insulates us from problems (e.g., when testing for "cl").
Suggested by Alexandre Duret-Lutz.  Also, do this redirection
before invoking "hostname" or "uname".
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
_AC_LINK_IFELSE): Undo previous change, as it's no longer needed.
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX): Don't bother with
"</dev/null" since it's now done at the top of 'configure'.
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): Likewise.
Also, replace grep with shell pattern-matching, to save a process.
2005-02-11 19:12:29 +00:00
Paul Eggert
9ade719a76 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
_AC_LINK_IFELSE): Redirect stdin to /dev/null, in an attempt to
avoid thinking that Allegro Common Lisp's "cl" command is a C++
compiler.
2005-02-11 00:40:31 +00:00
Jim Meyering
fa3247125c (_AC_FUNC_REALLOC_IF, AC_FUNC_REALLOC): Fix typo in comment. 2005-02-06 18:06:32 +00:00
Paul Eggert
c28abf84de * lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Update for 2005.
(AC_COPYRIGHT): Factor header comment portion out and move into...
* lib/m4sugar/m4sh.m4 (AS_COPYRIGHT): This.
* lib/autotest/general.at (AT_COPYRIGHT): New macro.
(AT_INIT): Add Autotest copyright notice.  Display copyright notices in
--version output.
* tests/local.at: Add Autoconf test suite copyright notice.
* doc/autoconf.texi (Writing testsuite.at): Document AT_COPYRIGHT.
* NEWS: Mention AT_COPYRIGHT.
2005-02-05 07:58:43 +00:00
Paul Eggert
cf968fa7db (_AC_C_STD_TRY): New macro.
(_AC_PROG_CC_C89, _AC_PROG_CC_C99): Use it.
2005-02-05 07:04:08 +00:00
Paul Eggert
bd448c0b7b (AC_LANG(Fortran), AC_FC_SRCEXT):
s/FC_SRCEXT/ac_fc_srcext/; s/FCFLAGS_SRCEXT/ac_fcflags_srcext/.
2005-02-05 05:09:44 +00:00
Paul Eggert
341d9d604c * lib/m4sugar/m4sugar.m4 (m4_re_string, m4_re_word): Revert 2002-03-04.
* tests/local.at (AT_CHECK_M4SUGAR): Add `m4sugar' to keywords.
(AT_CHECK_ENV): Ignore LTLIBOBJS, FC variables, EGREP, FGREP, and SED.
* tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT, AT_CHECK_M4RE): New macros.
(Standard regular expressions): New test.
(m4_warn, m4_require: circular dependencies, m4_text_wrap): Strip
excess test name quoting.
* tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADERS_NEW): Pass
CPPFLAGS to `configure' instead of setting it in `configure'.
2005-02-05 04:55:08 +00:00
Paul Eggert
0279b45903 (AS_UNAME): Try only /usr/bin/hostinfo, not
any `hostinfo' in $PATH, since hostinfo.exe is a popular file name
on some platforms.
2005-02-05 00:44:44 +00:00
Paul Eggert
4260bd6847 (AC_PROG_SED): Don't look in
/usr/xpg4/bin since that sed dumps core (at least on Solaris 8).
2005-02-04 22:21:18 +00:00
Paul Eggert
2d6b67fdf0 (AT_TESTED, AT_KEYWORDS): Use newline as a separator, not space.
(AT_CAPTURE_FILE): Use space-backslash-newline as a separator, not space.
2005-02-04 07:35:55 +00:00
Paul Eggert
d224e0682a (AC_SUBST, AC_SUBST_FILE): Use newline as a separator, not space. 2005-02-04 07:35:12 +00:00
Paul Eggert
1f45d61a00 (m4_re_escape): Escape ?, ^, \, $ too. 2005-02-04 07:32:15 +00:00
Paul Eggert
2926779832 (_AS_SHELL_FN_WORK): Move func_* to as_func_*. Add test to check
whether positional parameters are restored after function return.
2005-02-03 22:52:04 +00:00
Paul Eggert
3c751297e4 (_AC_PROG_FC): Try cf77 before fort77
to get the option-enhanced interface on older Crays.  Try ftn for
Fortran 95 (newer Crays).
2005-02-02 23:46:31 +00:00
Paul Eggert
c7761f20ad * bin/autoconf.as: Don't exit with status 0 after write failure
with --help or --version.
* lib/autoconf/general.m4 (_AC_INIT_HELP, _AC_INIT_VERSION): Likewise.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
2005-02-02 23:31:16 +00:00
Paul Eggert
5ed6babbee Regenerate. 2005-02-01 00:59:56 +00:00
Paul Eggert
b5b8b59870 Simplify the implementation of m4_require (a.k.a. AC_REQUIRE).
Update the long comment explaining it.

m4_require no longer writes an ``is required by'' line to the
execution stack.  It contains only one bit of non-redundant
information: that the macro was required, not called.  And even
this bit is useless in most situations: have you ever met a macro
which both calls and requires the same macro?

* lib/m4sugar/m4sugar.m4 (_m4_defun_pro): Don't push a diversion...
(_m4_defun_pro_outer): ... only via this macro, for the outermost
  macro.
(_m4_defun_epi, _m4_defun_epi_outer): Complementarily.
(m4_expansion_stack_pop): Remove the misplaced comment.
(m4_require): Don't put the ``is required by'' line to the
  execution stack; slightly improve the out-of-a-defun error message.
(_m4_divert_grow): New macro, counter for the temporary diversions.
(_m4_require_call): Use it.
* tests/m4sugar.at (m4_require): Expect output without the
  ``is required by'' messages.
2005-01-31 23:52:49 +00:00
Paul Eggert
8afb8f8e62 * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT): Avoid subshells when this is safe.
* lib/autoconf/programs.m4 (AC_PROG_EGREP, AC_PROG_FGREP): Likewise.
* lib/autoconf/specific.m4 (AC_SYS_LONG_FILE_NAMES): Likewise.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Likewise.
* tests/mktests.sh: Likewise.
2005-01-28 21:21:32 +00:00
Akim Demaille
cdd416b0fe Have autoheader honor --force.
* doc/make-stds.texi, doc/standards.texi: Update from masters.
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm
* lib/Autom4te/FileUtils.pm, lib/Autom4te/XFile.pm: Update
from masters, so that FileUtils.pm's update_file provide --force
support.
* bin/autoheader.in: Pass $force to update_file so that
config.h.in is always recreated when --force.
2005-01-27 10:53:41 +00:00
Stepan Kasal
230ad18242 fix a comment and typos 2005-01-06 10:02:45 +00:00
Paul Eggert
1e77951874 (AC_LANG_INT_SAVE(C)): Declare longval and
ulongval to be static, to avoid unwanted GCC warning.  Problem
reported by Michael Jennings via Daniel Reed; see
<https://bugzilla.redhat.com/beta/show_bug.cgi?id=143852>.
2005-01-05 14:03:06 +00:00
Alexandre Duret-Lutz
cebb4afe8c * lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Define datarootdir,
docdir, htmldir, dvidir, pdfdir, psdir, and localdir.  Update
datadir, infodir, and mandir.  Adjust argument parsing code.
(_AC_INIT_HELP): Update help text.
* doc/autoconf.texi (Installation Directory Variables): Document
new variables.
2005-01-05 07:53:52 +00:00
Paul Eggert
ef8419581f * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): If the Make program does
not seem to work, assume it does set $(MAKE).
* doc/autoconf.texi (AC_PROG_MAKE_SET): Update.
2005-01-04 23:50:00 +00:00
Stepan Kasal
dcc0cb5d67 * lib/m4sugar/m4sh.m4 (AS_REQUIRE): Add a comment about nesting. 2005-01-03 23:32:35 +00:00
Stepan Kasal
1ab31b92c5 A cleanup of the diversion support in m4sugar. 2005-01-03 22:54:21 +00:00
Paul Eggert
23095ccde0 (_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
Workarounds for documented `case' limitations.
2005-01-03 21:54:43 +00:00
Paul Eggert
3271f2121a Patch from Roger Leigh (with some minor changes) as follows:
* NEWS: New macros AC_PROG_CC_C89, AC_PROG_CC_C99.
Resurrect AC_PROG_CC_STDC.
* doc/autoconf.texi (C Compiler): Add AC_PROG_CC_STDC,
AC_PROG_CC_C89, AC_PROG_CC_C99.
(Obsolete Macros): Remove AC_PROG_CC_STDC; it's no longer obsolete.
* lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, AC_PROG_CC_C89,
AC_PROG_CC_C99): New macros.
(AC_PROG_CC_STDC): Use them.
(_AC_PROG_CC_STDC): Remove.
(AC_C_PROTOTYPES): Use ac_cv_prog_cc_c89, not ac_cv_prog_cc_stdc.
* THANKS: Add Roger Leigh.
2005-01-03 07:35:21 +00:00