Commit Graph

177 Commits

Author SHA1 Message Date
Ralf Wildenhues
656660af9f Add index for config.site.
* doc/autoconf.texi (Site Defaults): Add index for config.site.
* THANKS: Update.
Report by Stephen P. Schaefer.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-02-14 21:17:07 +01:00
Eric Blake
20dd02aa3f Document lib64 in config.site.
* doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
Mention use of lib64.
* THANKS: Update.
Reported by Tom Browder, with help from Peter Breitenlohner.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-02-03 09:01:52 -07:00
Eric Blake
aa30765d64 Fix AC_C_RESTRICT for Sun Studio 12 C++.
* lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
__restrict__ rather than _Restrict, which still trips up Sun
Studio 12 C++.
* THANKS: Update.
Reported by Rolf Vandevaart.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-01-28 09:59:24 -07:00
Peter Breitenlohner
9f28c6e656 Quote traced macros passed from autom4te to M4.
* bin/autom4te (handle_m4): Apply shell_quote to macro names.
* tests/tools.at (autom4te --trace and unusual macro names): New
test.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
2009-01-27 09:28:27 -07:00
Eric Blake
af7366502f Avoid MacOS readdir bug in testsuite.
* tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
duplicated ls entries.
* THANKS: Update.
Reported by Bruce Dugan and others.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-12-02 11:15:55 -07:00
Alfred G. de Wijn
f8185b3938 For consistency, make temporary variable match language name.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
Match the save/test variables' names to the FFLAGS/FCFLAGS being
saved.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-11-20 05:57:14 -07:00
Clinton Roy
44fbeef86d Pass autoreconf -I to aclocal -I
* bin/autoreconf.in (parse_args): Pass --include to aclocal.
* doc/autoconf.texi (autoreconf Invocation): Updates for above.
* NEWS: Document it.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-11-10 10:34:59 -07:00
Ralf Wildenhues
b83aa7ee0d Fix parallel test execution output lossage.
* lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
standard output and standard error before the test, use append
mode for writing.
* THANKS: Update.
Caught by Bob Proulx' build daemons, analysis and suggested fix
by Stéphane Chazelas.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-10-28 22:45:12 +01:00
Eric Blake
cb34ecf15c Avoid raw carriage return in scripts.
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
via tr, rather than with literal byte.
* THANKS: Update.
Reported by Steven R. Loomis; patch suggested by Thomas Dickey.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-10-27 16:34:58 -06:00
Chikama Masaki
3f38aadc7c For gfortran on sh, ignore -little.
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
list of ignored arguments.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-10-23 19:52:05 -06:00
Eric Blake
d2d24b537f Improve wording related to automake and autotest.
* doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
relation to automake.  Mention dependency on package.m4.
Consolidate examples.  Define AUTOM4TE.
* THANKS: Update.
Reported by William Pursell.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-10-21 21:20:02 -06:00
Eric Blake
f91f917602 Fix sample isinf definition.
* doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
first.
* THANKS: Update.
Reported by David Cournapeau.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-09-20 16:21:17 -06:00
Eric Blake
20c24928ab Fix Erlang regression, introduced 2006-11-17.
* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
caused by underquoting.
* NEWS: Mention this fix.
* THANKS: Update.
Reported by BJ Terry.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-09-16 06:41:46 -06:00
Eric Blake
9e9aa529b1 Mention that Automake already supports VPATH.
* doc/autoconf.texi (Build Directories): Details in this section
only apply to users avoiding automake.
* THANKS: Update.
Reported by Matej Tyc.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-09-06 14:05:09 -06:00
Eric Blake
69a905148d Relax tone when warning about cross-compiler names.
* lib/autoconf/programs.m4 (_AC_TOOL_WARN): Support cross-compiles
with poorly named tools; the issue has been reported too many
times in the last four years to pull support.
* doc/autoconf.texi (Specifying Names, Generic Programs): Update
documentation accordingly.
* THANKS: Update.
Reported by Josef Tran and others, wording suggested by Ralf
Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-09-06 13:51:00 -06:00
Ralf Wildenhues
9379b7024c Fix AC_*_TARGET_TOOL macros.
* lib/autoconf/programs.m4 (AC_PATH_TARGET_TOOL)
(AC_CHECK_TARGET_TOOL, AC_CHECK_TARGET_TOOLS): Require, do not
warn about previous AC_CANONICAL_TARGET.
(AC_CHECK_TARGET_TOOL): Add missing `$' making the macro
unusable in the non-cross-compiling case.
* NEWS, THANKS: Update.
Report by Dave Erickson.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-08-14 23:30:45 +02:00
Eric Blake
58ebb72b32 AC_C_CHAR_UNSIGNED is not strictly necessary.
* doc/autoconf.texi (C Compiler) <AC_C_CHAR_UNSIGNED>: Mention a
portable alternative to this macro.
* THANKS: Update.
Reported by Hallvard B Furuseth.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-08-06 09:24:09 -06:00
Ralf Wildenhues
22efb81e0a Fix AC_CONFIG_FILES([$var]) 2.62 regression.
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Flatten
whitespace in $ac_config_files and $ac_config_headers.
* tests/torture.at (Parameterized AC_CONFIG_FILES): New test.
Report by Andreas Schwab and Per Øyvind Karlsen.
* THANKS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-08-04 08:02:53 +02:00
Eric Blake
7758a34286 Allow lib64 as a default X library location.
* lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
* NEWS: Mention the change.
* THANKS: Update.
Reported by Brad Walker.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-06-09 06:19:17 -06:00
Eric Blake
3ac7ceb0c2 Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
* lib/autotest/general.m4 (AT_KEYWORDS): Expand argument prior to
converting it to lower case.
* tests/autotest.at (Keywords and ranges): Test this.
* NEWS: Document the fix.
* THANKS: Update.
Reported by Karsten Hopp.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-06-05 15:18:11 -06:00
Slava Sysoltsev
1ee48b2c8b Flush buffered output before exit.
* bin/autom4te.in (handle_output): Explicitly close file.
* THANKS: Update.
See http://lists.gnu.org/archive/html/autoconf/2008-04/msg00026.html.
2008-04-09 10:46:08 -06:00
Jim Meyering
237cb75c4b Work around CR EOL markers on OS/2 (www.ecomstation.com Ecs v2 rc4)
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When CR
is the EOL marker, skip a step that would remove and translate
carriage return bytes.
* THANKS: Update.
Reported by Elbert Pol.
2008-04-05 09:48:35 -06:00
Peter O'Gorman
b8c342a6c0 Find X11 on Mac OS X too.
* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT,_AC_PATH_X_XMKMF):
Check for libX11 with extensions dylib la and dll too.
* THANKS: Update.
Reported by Martin Costabel.
2008-03-28 22:33:58 +01:00
Eric Blake
7b93a8c8f6 Document Automake interaction with AC_CONFIG_MACRO_DIR.
* doc/autoconf.texi (Input): Mention ACLOCAL_AMFLAGS for automake
users.
* THANKS: Update.
Reported by Chris Pickett.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-25 20:51:07 -06:00
Ralf Wildenhues
ec3a1f2269 Fix Fortran testsuite failures with gfortran 4.3.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): When scanning
verbose compiler output, skip lines that set variables; gfortran
4.3 sets LIBRARY_PATH, COMPILER_PATH, COLLECT_GCC_OPTIONS.
* THANKS: Update.
Report by Vincent Lefèvre.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-03-24 11:44:36 +01:00
Eric Blake
6893b8be8a Document more uses of $cross_compiling.
* doc/autoconf.texi (Runtime): Document that a temporary override
is permissible.
* THANKS: Update.
Reported by Ineiev, example by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-21 13:27:34 -06:00
Eric Blake
593340005e AC_CONFIG_HEADERS replaced AC_CONFIG_HEADER.
* bin/autoscan.in (output): Avoid obsolete spelling.
* tests/local.at (AC_STATE_SAVE): Update usage.
* THANKS: Update.
Reported by John Calcote.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-18 20:54:31 -06:00
Eric Blake
a5406903ab Emphasize that ease of configure triumphs over ease of autoconf.
* doc/autoconf.texi (Introduction): Expand on primary
vs. secondary goal of autoconf.
* THANKS: Update.
Inspired by Paul Smith.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-03-18 19:19:54 -06:00
Eric Blake
52a9605272 Describe a config.site that can be used for FHS compliance.
* doc/autoconf.texi (Site Defaults): Fix typo.  Add new example
for FHS.
* THANKS: Update.
Reported by Jules Colding and Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
2008-02-08 08:15:22 -07:00
Ralf Wildenhues
fa8beeb3dc Avoid warnings about conftest.dSYM directories on Mac OS X Leopard.
* lib/autoconf/general.m4 (_AC_LINK_IFELSE, _AC_RUN_IFELSE):
Remove conftest.dSYM directory.
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT)
(_AC_LANG_PROGRAM_C_, _AC_FC_MAIN, __AC_FC_NAME_MANGLING):
Remove `conftest.*' recursively.
* lib/autoconf/lang.m4 (AC_LINK_IFELSE): Likewise.
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE):
Likewise.
(_AC_COMPILER_OBJEXT_REJECT): Reject *.dSYM.
* THANKS: Update.
Report and analysis by Jeff Squyres and Peter O'Gorman.
2007-11-12 20:38:08 +01:00
Ralf Wildenhues
bbb9c9628d Fix `configure --help=recursive' in unconfigured/read-only trees.
* lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
is not writable, use 'cp -p' in this case, in the hope that it
will not actually be needed.  Still try removing files, in case
of other write errors.
* lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
use $as_myself, not $0.
(_AC_INIT_HELP): For --help=recursive, if the subdir does not
exist, try again in the the source tree.  This change assumes
that the subpackage configure script is capable of running
--help=recursive in the source tree.
* tests/torture.at (Configuring subdirectories, Deep Package):
Adjust tests to expose both issues, also try invocation as
`sh configure ...' and plain `configure ...' with PATH adjusted.
* NEWS, THANKS: Update.
Report by Hans Ulrich Niedermann.
2007-10-16 23:50:03 +02:00
Eric Blake
baa0ce0978 Config header generation followup.
* lib/autoconf/general.m4 (_AC_DEFINE_Q): Check for raw newlines,
which won't work with the preprocessor nor with the awk
implementation.
* tests/torture.at (Define a newline): Test raw newline detection,
removing the XFAIL.
* doc/autoconf.texi (Defining Symbols): Document recent change to
allow backslash-newline.
* THANKS: Update.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-11 08:06:35 -06:00
Eric Blake
35b65ec05c Resolve Python issue 1676135 regarding configure directory args.
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Strip trailing
slashes from directory arguments.
* tests/base.at (configure directories): New test.
* doc/autoconf.texi (Installation Directory Variables): Document
the change.
* NEWS: Likewise.
* THANKS: Update.
Reported by Björn Lindqvist.
http://bugs.python.org/issue1676135

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-05 11:57:09 -06:00
Eric Blake
50306359a4 Improve C99 detection.
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Add support for HP cc, and
avoid deprecation warning with icc.
* THANKS: Update.
Reported by Ted Bullock.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-09-25 06:24:55 -06:00
Eric Blake
4abe9e321c More contribution housekeeping.
* THANKS: Sort.
* AUTHORS: Sort, reflect recent assignment from Helge Deller.

Signed-off-by: Eric Blake <ebb9@byu.net>
2007-09-20 09:51:48 -06:00
Eric Blake
6add6e92a6 Centralize all system extensions checks.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
from AC_AIX, AC_GNU_SOURCE, AC_MINIX.  Add Interix support.
(AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
AC_USE_SYSTEM_EXTENSIONS.
(AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
(AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
* doc/autoconf.texi (Posix Variants): Reword this section,
emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
rather than a series of system-specific checks.
(Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
AC_MINIX.
* NEWS: Document this change.
* THANKS: Update.
Reported by Martin Koeppe.
2007-09-11 17:13:13 +00:00
Eric Blake
f3aee13bfa Improve M4 path searching during configure.
* lib/autoconf/programs.m4 (AC_PATH_PROGS_FEATURE_CHECK): New
macro.
(_AC_PATH_PROG_FEATURE_CHECK): Rename...
(_AC_PATH_PROGS_FEATURE_CHECK): ...to this, add defaulted action
parameter, and kill side effects.
(_AC_PROG_GREP, AC_PROG_SED): Adjust callers.
(_AC_FEATURE_CHECK_LENGTH): Kill extra whitespace.
* m4/m4.m4 (AC_PROG_GNU_M4): Don't stop searching until working m4
is found.
(AC_PATH_PROGS_FEATURE_CHECK): Add backwards compatibility hack to
allow bootstrapping with autoconf 2.61.
* configure.ac (M4): AC_PROG_GNU_M4 now exits on failure.
* configure: Regenerate.
* doc/autoconf.texi (Generic Programs): Document new macro.
* tests/mktests.sh (au_exclude_script): Exclude auto-testing new
macro.
* tests/semantics.at (AC_PATH_PROGS_FEATURE_CHECK): New test.
* NEWS: Document the change.
* THANKS: Update.
Reported by Hans Aberg.
2007-09-08 14:48:49 +00:00
Eric Blake
afe4515438 Housekeeping.
* THANKS: Update, and convert to UTF-8 encoding.
* AUTHORS: Likewise.
2007-09-03 21:49:28 +00:00
Ralf Wildenhues
673d7738a4 * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@"
here, this macro is expanded by AC_INIT.  Fixes 2.60 regression.
* tests/base.at (configure arguments): New test.
* THANKS: Update.
Report by Olaf Lenz.
2007-08-21 20:23:16 +00:00
Noah Misch
fdb749cd8a * lib/autotest/general.m4 (AT_INIT): Compute $srcdir correctly.
* tests/autotest.at (srcdir propagation): New test.
* THANKS: Update.
Reported by Mike Frysinger.
2007-06-14 01:32:28 +00:00
Eric Blake
82bce5064f * THANKS (people): Update. 2007-01-31 23:49:25 +00:00
Eric Blake
0ae1775302 * THANKS: Update.
* doc/autoconf.texi (Evaluation Macros): Improve the example to
show effect on macros that expand with commas.
Reported by Joel E. Denny.
2006-10-26 16:32:11 +00:00
Paul Eggert
09b3380c20 Update Simons email address. 2006-10-24 19:47:07 +00:00
Ralf Wildenhues
c3a3c88d7c * THANKS: Update. 2006-06-05 08:28:32 +00:00
Ralf Wildenhues
0a141b9c9d * tests/autotest.at (Multiline command from M4 expansion):
No failure to be expected if the shell quotes newlines in
commands in the `set -x' output.  Report by Tim Rice.
* THANKS: Update.
2006-05-24 03:46:00 +00:00
Ralf Wildenhues
f05b9c77f0 * lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): If `ln -s file1 file2'
succeeded, but `ln -s file dir' failed, take care to remove the
leftover target before the next test, to prevent its spurious
failure; also make sure `ln file dir' works before selecting it.
Thanks to Keith Marshall for pointing this out.
* THANKS: Update.
2006-04-11 17:34:03 +00:00
Ralf Wildenhues
11634e4715 * THANKS: Update. 2006-04-10 17:51:47 +00:00
Ralf Wildenhues
ee6771641a * THANKS: Update. 2006-04-03 20:32:02 +00:00
Ralf Wildenhues
f169721e44 * THANKS: Add myself. 2006-04-03 13:12:27 +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