Commit Graph

1889 Commits

Author SHA1 Message Date
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