Commit Graph

2129 Commits

Author SHA1 Message Date
Ralf Wildenhues
56a5174b8a * lib/autoconf/c.m4 (_AC_ARG_VAR_LDFLAGS): Update comment.
(_AC_ARG_VAR_LIBS): New macro: let LIBS be precious.
(AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Call _AC_ARG_VAR_LIBS.
* lib/autoconf/fortran.m4 (AC_PROG_F77, AC_PROG_FC): Likewise.
Report by Olly Betts.
2006-09-20 18:07:47 +00:00
Eric Blake
18be0ccecf * m4/m4.m4: Change copyright.
* configure: Regenerate.
* Makefile.in: Likewise.
* bin/Makefile.in: Likewise.
* doc/Makefile.in: Likewise.
* lib/Makefile.in: Likewise.
* lib/Autom4te/Makefile.in: Likewise.
* lib/autoconf/Makefile.in: Likewise.
* lib/autoscan/Makefile.in: Likewise.
* lib/autotest/Makefile.in: Likewise.
* lib/emacs/Makefile.in: Likewise.
* lib/m4sugar/Makefile.in: Likewise.
* man/Makefile.in: Likewise.
* tests/Makefile.in: Likewise.
2006-09-20 03:08:08 +00:00
Stepan Kasal
8175799b1d * lib/autoconf/libs.m4 (AH_CHECK_LIB): Fix quoting, to be
consistent with _AH_CHECK_FUNCS and _AH_CHECK_HEADERS.
* lib/autoconf/headers.m4 (AH_CHECK_HEADERS_DIRENT): Likewise.
2006-09-19 09:35:41 +00:00
Stepan Kasal
14729d1aa4 * lib/autoconf/functions.m4 (AC_FUNC_GETMNTENT): Eliminate the
expansion of AC_CHECK_FUNCS.
2006-09-15 14:53:43 +00:00
Stepan Kasal
8a756b7e39 * lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Remove a
the path at runtime.
2006-09-14 09:40:59 +00:00
Ralf Wildenhues
ff70b0c81e * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): Quote the
argument to `--prefix' for sub-configure scripts.
Pass `--silent' to sub-configure scripts.
* tests/torture.at (Configuring subdirectories): Add tests
for both changes.
* doc/autoconf.texi (Setting Output Variables): Fix example to
not show `--silent' being passed to a `configure' re-run.
2006-09-13 04:48:23 +00:00
Paul Eggert
2bb44c7941 * doc/autoconf.texi (Input): Clarify role of AC_CONFIG_MACRO_DIR.
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR): Do not check
for the existence of the directory at configure-time.  That's
too late, anyway, and possibly the directory isn't part of the
distribution.  Problem reported by Stefan Seefeld.
2006-09-12 18:16:34 +00:00
Paul Eggert
5bb58ce196 (_AS_TEST_PREPARE): Avoid bug in UnixWare
7.1.4 /usr/bin/posix/sh described by Tim Rice in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-09/msg00017.html>.
2006-09-12 07:07:32 +00:00
Paul Eggert
b107b6f4f7 * lib/autoconf/functions.m4 (AC_FUNC_MKTIME): Add year_2050_test
to catch glibc bug 2821
<http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
Merge from gnulib as follows: Use AC_CHECK_HEADERS_ONCE instead of
AC_CHECK_HEADERS, and likewise for AC_CHECK_FUNCS_ONCE and
AC_CHECK_FUNCS.  Don't check for stdlib.h, since we now
assume C89.
2006-09-08 22:36:16 +00:00
Stepan Kasal
dc6f44951a * lib/autom4te.in (Autoconf-without-aclocal-m4): Move the
preselections ...
(Autoconf): ... here.
(Autoscan-preselections): Delete.
2006-09-08 12:38:38 +00:00
Stepan Kasal
e63d0ffb5c * lib/autom4te.in (Automake-preselections): Preselect
AM_ENABLE_MULTILIB.
2006-09-07 13:51:08 +00:00
Ralf Wildenhues
cd5882df0f * lib/autoconf/fortran.m4 (_AC_PROG_FC): Prefer xlf90/xlf95 over
f90/f95 because the latter drivers of AIX Fortran 9.1 do not
accept files with extension `.f'.  For consistency, also prefer
xlf over f77.
* doc/autoconf.texi (Fortran Compiler): Remove mention of bug
from last patch.
2006-09-05 17:17:31 +00:00
Paul Eggert
4add5e895c * lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB): Added substitution
of ERLANG_LIB_VER_* variables.
* doc/autoconf.texi (Erlang Libraries): Document ERLANG_LIB_VER_*
variables.
2006-09-05 14:36:17 +00:00
Paul Eggert
c9bf84b877 * NEWS: New macro AC_CACHE_CHECK_INT. It replaces the
old AC_COMPUTE_INT, which now behaves like _AC_COMPUTE_INT
except the first two arguments are reversed.
* doc/autoconf.texi (Caching Results): New macro AC_CACHE_CHECK_INT.
(Generic Compiler Characteristics): AC_COMPUTE_INT no longer
caches nor outputs a diagnostic.  Suggested by Bruno Haible.
* lib/autoconf/general.m4 (AC_CACHE_CHECK_INT): New macro,
equivalent to the old AC_COMPUTE_INT.
(AC_COMPUTE_INT): No longer caches or reports.  New signature.
All uses changed to AC_CACHE_CHECK_INT.
* tests/base.at (AC_CACHE_CHECK_INT): New test.
* tests/mktests.sh (ac_exclude_lsit): Add AC_CACHE_CHECK_INT.
2006-09-02 05:37:07 +00:00
Eric Blake
c0bcd967e1 * lib/autoconf/headers.m4 (AC_HEADER_STAT): Fix logic that was
mistakenly swapped on 2006-08-15.
2006-08-29 04:36:39 +00:00
Paul Eggert
4a02090423 * lib/autoconf/general.m4 (_AC_LINK_IFELSE): Remove the IPA/IPO
file created by the PGI compiler.
2006-08-26 03:48:30 +00:00
Paul Eggert
1c6fa73a54 * lib/Autom4te/General.pm (END): Use `File::Path::rmtree' to
simplify the code.
2006-08-25 21:21:19 +00:00
Paul Eggert
351972e6ff Fix Lex library problem reported to us by Julio Garvia.
* doc/autoconf.texi (Particular Programs): YYTEXT_POINTER is
for the default, which the user can override.
* lib/autoconf/programs.m4 (AC_PROG_LEX): Let _AC_PROG_LEX_YYTEXT_DECL
deal with LEXLIB.
(_AC_PROG_LEX_YYTEXT_DECL): Handle caching correctly; the old code
didn't work if some values were cached but not others.  Test for
broken lex libraries like native ia64-hp-hpux11.22; see
<http://sources.redhat.com/ml/binutils/2003-12/msg00337.html>, and
work around the problem by preferring an empty LEXLIB to -lfl or
-ll.  Let the user set LEXLIB='' to indicate no library needed.
2006-08-25 20:48:02 +00:00
Paul Eggert
2db42f6613 Regenerate. 2006-08-24 22:57:30 +00:00
Paul Eggert
f2a9d6f3a7 Regenerate. 2006-08-24 22:57:30 +00:00
Paul Eggert
345806cfca Rework to use more-modern build style.
Many files are renamed; all uses of their names were changed.
* .x-sc_trailing_blank: Renamed from .x-sc_trailing_blank.
* .x-sc_useless_cpp_parens: New file.
* build-aux/config.guess: Renamed from config/config.guess.  Update.
* build-aux/config.sub: Renamed from config/config.sub.  Update.
* build-aux/elisp-comp: Renamed from config/elisp-comp.
* build-aux/install-sh: Renamed from config/install-sh.  Update.
* build-aux/mdate-sh: Renamed from config/mdate-sh.
* build-aux/missing: Renamed from config/missing.
* build-aux/texinfo.tex: Renamed from config/texinfo.tex.  Update.
* build-aux/vc-list-files: Renamed from config/vc-list-files.
* config/Makefile.am: Removed.
* config/mkinstalldirs: Removed.
* config/move-if-change: Removed.
* m4/m4.m4: Renamed from config/m4.m4.  Add (C) to copyright notice.
* Makefile.am (SUBDIRS): Remove config.
(ACLOCAL_AMFLAGS): Include from m4, not config.
(EXTRA_DIST): Add config/announce-gen, config/prev-version.txt.
(WGET, WGETFLAGS): New macros, since Makefile.maint no longer does this.
(autom4te-update): Rewrite with a loop.  Get from gnulib, not automake.
Fail if there's an error.
* Makefile.cfg (move_if_change): Remove.
(wget_files): Remove.
(cvs_executable_files): New macro.
(cvs_files): Use it.  Remove mkinstalldirs.  Add fdl.texi.
(executable-update): Use $(cvs_executable_files).
(local-checks-to-skip): Remove.
* Makefile.maint: Merge from coreutils, plus add our own changes
(gzip_rsyncable): New macro.
(GZIP_ENV): Use it.
(CVS_LIST): Use build-aux/vc-list-files.
(VERSION_REGEXP): New macro.
(local-checks-available): Add patch-check, $(syntax-check-rules),
check-AUTHORS.
(syntax-check-rules): Compute dynamically.
(sc_cast_of_x_alloc_return_value): Work even if no source files.
(sc_cast_of_alloca_return_value): Likewise.
(sc_prohibit_atoi_atof): Simplify regexp.
(sc_no_if_have_config_h, sc_require_config_h):
(sc_prohibit_assert_without_use,
(sc_obsolete_symbols): Check for O_NDELAY.
(sc_texi_notab): Remove.
(sc-changelog): Don't make an exception for '----' lines.
(.re-list): Remove, so we don't have a junk file behind.
(sc_system_h_headers): Remove the need for .re-list.
(sc_the_the):  New rule.
(sc_tight_scope): Simplify.
(sc_trailing_space): Renamed from sc_trailing_blank.
(longopt_re): New macro.
(sc_two_space_separator_in_usage): New rule.
(sc_unmarked_diagnostics): Look at all files under CVS.
(sc_useless_cpp_parens, patch-check, check-AUTHORS): New rules.
(news-date-check, changelog-check): Version is OK.
(po-check): Look for lib files even if not in CVS.
(copyright-check): Use $() not ``.
(maintainer-distcheck): Do not depend on changelog-check.
(my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz).
Also check for -Wpointer-arith.
(WGET, WGETFLAGS, tgz-md5, tgz-sha1, bz2-md5, bz2-sha1):
(xdelta-md5, xdelta-sha1, tgz-size, bz2-size, xd-size, rel-check):
Remove.
(announcement): Add --gpg-key-id arg.
(cvs-sv): Remove.
(move_if_change): Just use mv.
(local_updates: Remove wget-update, po-update.
(po_repo, do-po-update, po-update, wget_files, get-targets): Remove.
(config.guess-url_prefix, config.sub-url_prefix): Remove.
(ansi2knr.c-url_prefix, texinfo.tex-url_prefix):
(standards.texi-url_prefix, make-stds.texi-url_prefix, target, url):
($(get-targets)): Remove.
(cvs_files): Remove missing, mkinstalldirs, ansi2knr.c.
(gnulib_repo): Renamed from automake_repo.  Get from gnulib now.
(cvs-update): Get from gnulib.
(emut_upload_commands): gnupload is in build-aux now.
(alpha beta major): Add changelog-check.  Check version.
* configure.ac (AC_CONFIG_AUX_DIR): Renamed from config to build-aux.
(AC_CONFIG_FILES): Remove.
* bin/autoconf.as: Add spaces to avoid distcheck warning.
* config/announce-gen: Sync from coreutils.
* doc/make-stds.texi: Sync from gnulib.
* doc/standards.texi: Likewise.
* man/Makefile.am: Adjust for config -> build-aux renaming.
* tests/Makefile.am: Prefer $(FOO) to @FOO@.
* tests/local.at: Adjust from config -> build-aux renaming.
* tests/tools.at: Likewise.
* tests/torture.at: Likewise.
2006-08-24 22:56:47 +00:00
Paul Eggert
1355dba882 * NEWS: The C99 check now tests for vararg macros and 64-bit
preprocessor ints.
* doc/autoconf.texi (C Compiler): Document // comments, va_copy.
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Test varargs macros and
64-bit preprocessor ints.  Check for static initialization of
long long.  Remove unnecessary casts.
2006-08-24 18:08:16 +00:00
Paul Eggert
b7efbd4332 * lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Also ignore
-lgcc?* and -lSystem, for Darwin/MacOS X.
2006-08-24 16:46:20 +00:00
Paul Eggert
6e0e4d438b * lib/autoconf/c.m4 (AC_C_CONST): Don't used shadowed vars, to
pacify insanely picky compilers.  Problem reported by Eric Blake.
2006-08-22 20:09:51 +00:00
Paul Eggert
60c7f58b21 Undo last change; it was a typo. 2006-08-15 16:28:09 +00:00
Paul Eggert
427e34b361 * NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
-Wundef -Werror".  Problem reported by David Fang in
<http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
* doc/autoconf.texi (Header Templates, Default Includes):
(Particular Functions, Generic Functions, Header Portability):
(Particular Headers, Generic Headers, Generic Declarations, Guidelines):
(Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
(Present But Cannot Be Compiled, Preprocessor Symbol Index):
Prefer #ifdef to #if.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
Likewise.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
(AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
(AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
this.
2006-08-15 16:24:42 +00:00
Paul Eggert
1c33bc0c6f * lib/autoconf/libs.m4 (AC_PATH_X_DIRECT): Replace another
check for libXt by a check for libX11.
2006-08-12 18:33:46 +00:00
Ralf Wildenhues
134a37cf31 * lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): `config.status
--help' should mention that `--version' outputs configuration
settings.  Report by Bruno Haible.
2006-08-08 16:29:04 +00:00
Paul Eggert
75f3372076 Fix test suite failures reported by Pierre in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-08/msg00005.html>.
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Don't claim
the compiler created a file "b.out" when it didn't create anything
at all.
* lib/autoconf/specific.m4 (AC_SYS_INTERPRETER):
Discard stderr too, when invoking the test script.
2006-08-07 07:10:24 +00:00
Paul Eggert
75a9e8db40 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Fixed a typo
in the restoring of the werror flag.
2006-08-06 06:26:25 +00:00
Paul Eggert
9c1ab8a186 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Don't use -R if the
compiler complains about it, even if things works after the
complaint.  Problem reported by Peter O'Gorman.
2006-07-20 22:38:47 +00:00
Paul Eggert
f731b21996 * lib/autoconf/libs.m4 (AC_PATH_XTRA): Do the check for space after
-R regardless of host.  Patrick Welche reports that a space after -R
is also required for NetBSD 3.99.
2006-07-17 17:34:05 +00:00
Paolo Bonzini
c910e682cc 2006-07-07 Paolo Bonzini <bonzini@gnu.org>
* doc/autoconf.texi (Generic compiler characteristics):
	Document AC_COMPUTE_INT.  Fix wrong statements on Default
	Includes for AC_CHECK_SIZEOF and AC_CHECK_ALIGNOF.

	* lib/autoconf/general.m4 (AC_COMPUTE_INT): New.
	(_AC_COMPUTE_INT): Add obsoletion warnings.
	* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): Use
	AC_COMPUTE_INT.

	* NEWS: Document change.
2006-07-07 14:21:57 +00:00
Paul Eggert
3163027d5c * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT):
Require that long long int be at least 64 bits wide.
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
2006-07-02 07:35:29 +00:00
Stepan Kasal
239d119726 * lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Use -lX11, not
-lXt in LIBS, idea from Karsten Hopp.
2006-06-28 08:36:54 +00:00
Ralf Wildenhues
aea8594586 * NEWS, lib/Autom4te/C4che.pm, lib/autoconf/functions.m4:
Fix typos.
2006-06-23 15:18:44 +00:00
Ralf Wildenhues
c56384c677 * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Expand tests for
datarootdir-related errors only if AC_DATAROOTDIR_CHECKED is
not defined.
* doc/autoconf.texi (Changed Directory Variables): New node,
to document the whole `datarootdir' business a bit better.
* NEWS: Update.
* tests/torture.at (datarootdir workaround): Extend test.
Prompted by report by Alexandre Julliard.
2006-06-23 14:56:30 +00:00
Paul Eggert
49b75d0906 * lib/autoconf/c.m4 (_AC_PROG_CC_C89): Check for C89 incompatibility
when using default mode of IBM C 6 for AIX.  Problem and two-line
fix reported by Larry Jones.
2006-06-22 23:50:07 +00:00
Ralf Wildenhues
cd56c8aa0f * lib/autoconf/status.m4 (_AC_OUTPUT_FILE): Avoid warning
about literal '${datarootdir}' if a definition is found in the
output file.
2006-06-22 17:16:42 +00:00
Ralf Wildenhues
66931ce882 * lib/m4sugar/m4sugar.m4 (m4_init): Merge the two m4_wrap
calls, so that we do not care whether they are LIFO or FIFO;
in the m4_wrap, do not check which diversion is the topmost
one, just check that the stack is balanced at the end.
* lib/m4sugar/m4sh.m4 (AS_INIT): We are going to change the
base diversion forever--pop the previous diversion before
opening the new one; consequently, remove the m4_wrap call.
* lib/autotest/general.m4 (AT_INIT): Likewise.
* tests/m4sugar.at: Do not use
m4_wrap([m4_diversion_pop([..])]), for educational purposes.
2006-06-20 05:35:38 +00:00
Ralf Wildenhues
5788ed69a0 * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
to `yes' instead of `int$1_t' if the type is found, for more
consistent configure output (where $1 is the number of bits).
(_AC_TYPE_UINT): Likewise for `uint$1_t'.
Suggested by Bruno Haible.
2006-06-19 18:28:12 +00:00
Ralf Wildenhues
30ced44ece * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
with system headers.  Report by Bruno Haible.
2006-06-19 18:22:03 +00:00
Ralf Wildenhues
07eac594cc * lib/autom4te.in (Automake-preselections): Add AM_PROG_CXX_C_O,
AM_PROG_F77_C_O, AM_PROG_FC_C_O, AC_FC_SRCEXT, AC_FC_FREEFORM.
2006-06-13 18:03:30 +00:00
Ralf Wildenhues
5a84fe71d2 * lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): Fix M4 quotation
in sed regular expression.
2006-06-13 17:02:59 +00:00
Paul Eggert
58716edd69 * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Look for
$as_shell.exe too.  Problem reported by Andreas Buening in
<http://lists.gnu.org/archive/html/autoconf/2006-06/msg00038.html>.
2006-06-07 23:46:47 +00:00
Ralf Wildenhues
6dc2080f18 * lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Work around
`unused variable' compiler warning, for `-Wall -Werror'.
Report by Jaap Haitsma <jaap@haitsma.org>.
2006-06-07 18:24:01 +00:00
Paul Eggert
dbcaeb5704 * lib/autoconf/c.m4 (AC_PROG_CC_C_O): Remove core file, in
case the compiler dumps core.  Problem reported for
OpenServer 5.0.7 by Tim Rice in
<http://lists.gnu.org/archive/html/bug-autoconf/2006-06/msg00019.html>.
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
Likewise.
2006-06-07 05:35:46 +00:00
Ralf Wildenhues
7b022ff9eb * lib/freeze.mk: Quiet check-forbidden-patterns so the string
"ERROR" only shows up in "make check" output if there is an
error.
2006-06-06 20:31:55 +00:00
Ralf Wildenhues
d6cd3db447 * bin/autoreconf.in: Trace `LT_CONFIG_LTDL_DIR'; if it has been
seen, invoke libtoolize with `--ltdl' argument.
* lib/autom4te.in (Autoreconf-preselections): Adjust.
* NEWS: Update.
Suggested by Eric Blake.
2006-06-05 12:16:06 +00:00
Ralf Wildenhues
8cf341a6dc * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
message issued by AC_REQUIRE.
* tests/m4sugar.at: Check m4_require's error message.
* tests/base.at: Check AC_REQUIRE's error message.
* tests/local.at (AT_CHECK_M4): New macro, almost identical
to...
(AT_CHECK_AUTOM4TE): ... which is now a thin wrapper around
AT_CHECK_M4.
(AT_CHECK_AUTOCONF): Use AT_CHECK_M4; no longer support
`expout' as the last parameter.
* tests/tools.at: Adapt to the above change.
2006-06-05 08:18:33 +00:00