* acgeneral.m4 (AC_HELP_STRING): Rewrite in m4. Have m4 work, and
give a break to sh.
(_AC_FOREACH): Be careful not to evaluate the arguments. A loop
over *quoted* macro names should loop over the macro names, not
upon their expansion.
(_AC_COMMATIZE): Also swallow end of lines.
* autoconf.texi (Pretty Help Strings): Updated to reflect the
changes.
1999-09-13 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (ifset): New helpy tiny macro.
(AC_OUTPUT): Improved --help of config.status.
(AC_OUTPUT): Remove inconditionaly all the files to be updated.
(AC_OUTPUT): Use pid to define the temporary file names in order
to allow parallel builds.
* autoconf.sh: Substitute also /@BKL@/[/ /@BKR@/]/ /@DLR@/$/ so
that these characters are more easily accessible from m4 without
turning changequote juggling into a nightmare.
* acgeneral.m4 (AC_WRAP): New macro, for word wrapping.
* autoconf.texi: Update the direntry for more modern Texinfos.
Add pointer to configure and config.status.
Remove the dots from the menus: horizontal space is precious.
(Invoking config.status): More traditional presentation of the options.
* acgeneral.m4 (AC_ACVERSION): Bump to 2.14.1 to differenciate the
experimental branch from the main trunk.
* acgeneral.m4 (AC_FOREACH_COMMA): New macro, to perform m4 loops
on m4 lists (i.e., list='(item_1, item_2, ..., item_n)').
(AC_FOREACH): New macro, to perform m4 loops on shell lists (i.e.,
list='item_1 item_2 ... item_n').
* acgeneral.m4 (AC_DEFUN): Now accept two other optionnal
parameters: the name of the macro which is specialized here, and
the name of the first argument. For instance `AC_CHECK_FNMATCH'
should be declared as specializing `AC_CHECK_FUNC' for `fnmatch'
as first argument.
* acgeneral.m4 (AC_CHECK_FILES): Use AC_FOREACH for looping,
instead of the shell's loop.
* acgeneral.m4 (AC_TR): In addition to transliteration, provide a
mean to specify the valid destination alphabet and a default
character for aliens characters. This is in order to remove
characters such as `+:-' etc. that may appear in file names,
but are not valid for shell variables or #defines.
(AC_TR_DEFINE): New macro, maps anything to a valid uppercase
#define rhs.
(AC_TR_UPCASE_NAME): Replaced by AC_TR_DEFINE. All callers
changed.
(AC_TR_UPCASE_FILE): Likewise.
* acgeneral.m4 (AC_TR_SH): Don't use the generic AC_TR: there is a
difficult problem of quoting between m4 and sh. Use the variable
$ac_tr_sh to work around this difficulty.
(AC_VAR_TEST_SET): New macro, which tests if a variable is set.
(AC_VAR_IF_SET): New `ifelse' macro.
(AC_CACHE_VAL): Use AC_VAR_IF_SET.
(AC_INIT_NOTICE): Define $ac_tr_sh.
* acgeneral.m4 (AC_CHECK_FILE): Converted to use AC_TR and AC_VAR
families.
* acgeneral.m4: Fixed the regular expressions: `$' shall not be
portably in a sed \(\) group.
as a last resort.
(AC_PROG_F77): Add more Fortran 77 compilers to the search list.
Contributed by Steven G. Johnson <stevenj@alum.mit.edu>.
(AC_PROG_CC): Likewise.
(AC_PROG_CXX): Likewise.
(AC_PROG_F77): Add an optional first argument which gives the user an
opportunity to specify an alternative search list for the compiler.
(AC_HAVE_LIBRARY): Likewise.
(AC_CHECK_FUNCS): Likewise.
(AC_CHECK_FILES): Likewise.
(AC_CHECK_SIZEOF): Likewise.
(AC_TR): New macro which performs transliteration by m4 when possible,
or by `tr' at configure time.
(AC_TR_UPCASE_NAME): New macro, transliteration 'a-z' to 'A-Z'.
(AC_TR_UPCASE_FILE): New macro, transliteration 'a-z./-' to 'A-Z___'.
(AC_TR_SH): New macro, transliteration to valid sh var name.
(_AC_SH_QUOTE): New macro which protects non protected backquotes
against shell expansion.
(AC_MSG_CHECKING): Use it.
(AC_CHECKING): Use it.
(AC_MSG_RESULT): Use it.
(AC_VERBOSE): Use it.
(AC_MSG_WARN): Use it.
(AC_MSG_ERROR): Use it.
(_AC_MESSAGE): New macro to report message at m4 time.
(AC_WARNING): New macro to report warnings at m4 runtime.
(AC_FATAL): New macro, to report fatal error at m4 runtime.
(AC_VAR_IF_INDIR): New macro.
(AC_VAR_SET): Likewise.
(AC_VAR_GET): Likewise.
and F77_FUNC_ CPP macros to properly mangle the names of C identifiers
so that they match the name mangling scheme used by the Fortran 77
compiler.
(AC_F77_NAME_MANGLING): New macro to test for the name mangling scheme
used by the Fortran 77 compiler.
* acspecific.m4 (AC_PROG_INSTALL): set INSTALL_SCRIPT to
${INSTALL} so that automake doesn't propogate install time flags
for INSTALL_PROGRAM into INSTALL_SCRIPT.
* acspecific.m4 (AC_EXEEXT): Do not consider `.xcoff' as a
possible executable filename extension. Contributed by Robert
S. Maier <rsm@math.arizona.edu>.
* standards.texi: Update from FSF.
* acspecific.m4 (AC_PROG_INSTALL): Avoid using the installation
script belonging to HP `pwplus' when running the install
program. Contributed by Steven G. Johnson <stevenj@alum.mit.edu>
and Dave Adams <adams@hpesdwa.fc.hp.com>.
* acgeneral.m4 (AC_CANONICAL_SYSTEM): Explicitly require
AC_CANONICAL_HOST, AC_CANONICAL_TARGET and AC_CONICAL_BUILD.
(AC_CONFIG_AUX_DIR): Run auxillary shell scripts through $SHELL.
Do not rely on their magic number.
(AC_CANONICAL_THING): New macro. Cache results.
(AC_CANONICAL_HOST): Reimplement; use AC_CANONICAL_THING.
(AC_CANONICAL_TARGET): Likewise.
(AC_CANONICAL_BUILD): Likewise.
(AC_OUTPUT): Use $SHELL.
(AC_OUTPUT_SUBDIRS): Likewise.
* acgeneral.m4 (AC_CACHE_VAL): Don't need backticks. This is a
performance enhancement for about a 5% reduction in the runtime of
the generated configure script.
* acspecific.m4 (AC_PROG_CXXCPP): Substitute @CXXCPP@ correctly
when $CXXCPP is overridden in the supervisory shell. Contributed
by Michael Schoene <mrs@mlc.de>.
* acgeneral.m4 (AC_LANG_FORTRAN77): Remove [] (i.e. the m4 quotes)
since it was confusing the testsuite. Also make `f77' the default
for FC, otherwise the testsuite fails.
* autoconf.texi (Fortran 77 Compiler Characteristics): Added new
node documenting the new AC_F77_LIBRARY_LDFLAGS macro.
* acspecific.m4 (AC_F77_LIBRARY_LDFLAGS): New macro to determine
the linker flags (e.g. `-L' and `-l') for the Fortran 77 intrinsic
and run-time libraries.
* acspecific.m4 (AC_FUNC_SELECT_ARGTYPES): New macro. Detects the
types of formal arguments to select(). Contributed by Lars Hecking
<lhecking@nmrc.ucc.ie>.
* acconfig.h (SELECT_TYPE_ARG1): Add.
(SELECT_TYPE_ARG234): Likewise.
(SELECT_TYPE_ARG5): Likewise.
* autoconf.texi (Defining Symbols): Documented third argument to
AC_DEFINE.
* autoheader.m4 (AC_DEFINE_UNQUOTED): Generate `verbatim'
assignment if third argument given.
(AC_DEFINE): Likewise.
* acgeneral.m4 (AC_DEFINE): Handle case where $# is 3.
(AC_DEFINE_UNQUOTED): Likewise.
* autoheader.sh: Echo $verbatim if not empty.
* acconfig.h (FC_NO_MINUS_C_MINUS_O): Add to complete the Fortran
77 support.
Tue Sep 8 14:06:04 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* acgeneral.m4: Make the following macros Fortran 77 aware
(i.e. conditionalize whether to `#include "confdefs.h"', etc.):
(AC_TRY_COMPILE)
(AC_TRY_LINK)
(AC_CHECK_LIB)
* acgeneral.m4 (AC_LANG_FORTRAN77): Rename `AC_LANG_FORTRAN' to
`AC_LANG_FORTRAN77'. Change the Fortran 77 language macro from
`FORTRAN' to `FORTRAN77'.
(AC_LANG_RESTORE): Change the Fortran 77 language macro from
`FORTRAN' to `FORTRAN77'
* autoconf.texi: Updated Fortran 77 documentation, particularly
for `AC_TRY_COMPILE', `AC_TRY_LINK' and `AC_CHECK_LIB'.
Thu Sep 3 09:34:39 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* autoconf.texi: Added Fortran 77 documentation.
* acspecific.m4 (AC_PROG_FC): New macro. Determine a Fortran
compiler to use.
(AC_PROG_FC_WORKS): New macro.
(AC_PROG_FC_GNU): New macro.
(AC_PROG_FC_G): New macro.
(AC_PROG_FC_C_O): New macro.
* acgeneral.m4: Add FFLAGS (Fortran 77 flags).
(AC_LANG_FORTRAN): New macro.
(AC_LANG_RESTORE): Make Fortran 77 aware.
(AC_TRY_COMPILER): Make Fortran 77 aware (i.e. conditionalize
whether to `#include "confdefs.h"').
* acgeneral.m4 (AC_VALIDATE_CACHED_SYSTEM_TUPLE): New macro. This
macro can be used to ensure that a configure script will not run
on a second system without removing the cache and re-running
configure. Contributed by Alexandre Oliva <oliva@dcc.unicamp.br>.
* acgeneral.m4 (AC_SEARCH_LIBS): New macro. Searches a series of
libraries for a given function. Contributed by Jim Blandy
<jimb@cygnus.com>.
(AC_TRY_LINK_FUNC): New macro. Again, from Jim.
* acgeneral.m4 (AC_CHECK_PROG): Fix a bug if the supplied path
contains colons. This was observed with some versions of NetBSD
`sh' and some versions of `bash'.
(AC_PATH_PROG): Likewise. Contributed by Tom Yu <tlyu@mit.edu>.
* acspecific.m4 (AC_C_STRINGIZE): New macro to test the
availability of the stringizing operator in the C preprocessor.
Contributed by Arnold Robbins <arnold@gnu.org> on behalf of the
GNU AWK project.
* acconfig.h (HAVE_STRINGIZE): Add for the AC_C_STRINGIZE macro.
* acgeneral.m4 (AC_CHECK_FILE): New macro. Checks for the
existence of a file in the file system (native only).
Contributed by Theodore Y. Ts'o <tytso@mit.edu>.
(AC_CHECK_FILES): Likewise.