Akim Demaille [Tue, 20 Mar 2001 14:15:59 +0000 (14:15 +0000)]
* tests/foreign.at (Libtool): Don't skip 1.3.5.
Invoke AC_CANONICAL_SYSTEM ---for some reason AC_CANONICAL_HOST is
not enough for 1.3.5.
From Lars J. Aas.
Akim Demaille [Mon, 19 Mar 2001 13:32:34 +0000 (13:32 +0000)]
* acgeneral.m4 (_AC_PREPROC_IFELSE): Redirect stdout out of the
_AC_EVAL_STDERR invocation to avoid `illegal io' on Ultrix.
Reported by Harlan Stenn, and fixed by Jim Meyering.
Akim Demaille [Mon, 19 Mar 2001 11:06:46 +0000 (11:06 +0000)]
* tests/atgeneral.m4 (AT_INIT): Don't always create `empty', rather
do it only when diffing `/dev/null' is not supported.
And use `at-devnull' instead of `empty'.
Akim Demaille [Tue, 13 Mar 2001 18:15:58 +0000 (18:15 +0000)]
* autoscan.pl, autoupdate.in: Use `use' instead of `require' to
require some version of Perl, so that the test is performed at
compile time, not run time.
Suggested by Nicolas Joly.
Akim Demaille [Tue, 13 Mar 2001 12:43:14 +0000 (12:43 +0000)]
* tests/aclocal.m4: Fix some typos. Also ignore $PATH_SEPARATOR.
* tests/atconfig.in: Set PATH_SEPARATOR to the proper
path separator. Set SHELL here...
* tests/atgeneral.m4: ... instead of here. Use $PATH_SEPARATOR
when setting AUTOTEST_PATH. Don't default tests to "all" before
deciding whether the help text is needed.
* tests/semantics.at: Use the correct path separator.
Akim Demaille [Tue, 13 Mar 2001 12:21:40 +0000 (12:21 +0000)]
* tests/tools.at (AWK portability): Use AT_CHECK to check for GNU
AWK so that there is always a AT_CHECK between
AT_SETUP/AT_CLEANUP.
Reported by Nicolas Joly.
Akim Demaille [Thu, 8 Mar 2001 16:28:03 +0000 (16:28 +0000)]
* acgeneral.m4 (AC_OUTPUT): In the AU_DEFUN definition, don't try
to issue an obsolete message, it can't work for macros being
defined both with AC_DEFUN and AU_DEFUN.
Hence do it in the AC_DEFUN definition.
Akim Demaille [Mon, 5 Mar 2001 15:58:31 +0000 (15:58 +0000)]
* tests/atgeneral.m4 (AT_INIT): Register at-setup-line and
at-check-line for removal.
Check for the presence of at-check-line only when $at_test was
really a test.
Reported by Pavel.
Akim Demaille [Wed, 28 Feb 2001 09:33:30 +0000 (09:33 +0000)]
* tests/atgeneral.m4 (AT_INIT): Warn when at-check-line is
missing.
* tests/tools.at (Syntax of the scripts): Use AT_CHECK to test
/bin/sh -n. Exit 77 on failure.
Reported by Harlan Stenn.
Akim Demaille [Wed, 28 Feb 2001 08:45:55 +0000 (08:45 +0000)]
* acgeneral.m4 (_AC_INIT_PREPARE_FS_SEPARATORS): Use `.;.' instead
of `.;`pwd`': if pwd is c:/foo, we might walk through `.:c'
(fails), and then `/foo' which might succeed, resulting in
believing `;' is the right path separator.
Akim Demaille [Mon, 26 Feb 2001 21:37:13 +0000 (21:37 +0000)]
* acgeneral.m4 (AH_VERBATIM, AH_TEMPLATE): New, use AS_ESCAPE, not
_AS_QUOTE.
(_AH_VERBATIM_OLD, _AH_TEMPLATE_OLD): New, used for bugward
compatibility in...
(AC_DEFINE, AC_DEFINE_UNQUOTED): here.
Akim Demaille [Sun, 25 Feb 2001 10:45:25 +0000 (10:45 +0000)]
* autoupdate.in (&END): Try to preserve the exit status.
Use backquotes where more readable.
Internal details should be dumped when $debug, not when $verbose.
Akim Demaille [Sun, 25 Feb 2001 10:44:37 +0000 (10:44 +0000)]
* acgeneral.m4 (_AC_INIT_PREPARE): Remove conf$$* on exit.
* m4sh.m4 (_AS_LN_S_PREPARE, _AS_BROKEN_TEST_PREPARE):
s/conftest/conf$$/ to avoid race conditions.
From Lars J. Aas.
Akim Demaille [Sun, 25 Feb 2001 10:43:34 +0000 (10:43 +0000)]
* m4sh.m4 (_AS_TEST_PREPARE): Rename as...
(_AS_BROKEN_TEST_PREPARE): this.
(_AS_TEST_PREPARE): New dummy but working version of this macro.
* acspecific.m4 (AC_PROG_INSTALL): Use AS_EXECUTABLE_P.
Akim Demaille [Wed, 21 Feb 2001 09:41:03 +0000 (09:41 +0000)]
* doc/autoconf.texi: Add new node discussing issues related to
file systems (DOS, specifically). Document DJGPP's bash's special
handling of $PATH_SEPARATOR.
Akim Demaille [Mon, 19 Feb 2001 15:08:58 +0000 (15:08 +0000)]
* aclang.m4 (_AC_LANG_COMPILER_WORKS): Rename as...
(_AC_COMPILER_EXEEXT_WORKS): this. Use the `a.out' or `a.exe'
left by _AC_COMPILER_EXEEXT_DEFAULT to check if the compiler works.
(_AC_COMPILER_EXEEXT_CROSS): Extract from the above macro.
(_AC_COMPILER_EXEEXT): Use them.
Adjust all the compiler looking macros to check for EXEEXT
*first*, then OBJEXT.
Set ac_exeext yourself.
(_AC_COMPILER_EXEEXT_O): Don't.
Pavel Roskin [Thu, 15 Feb 2001 23:36:48 +0000 (23:36 +0000)]
* tests/atspecific.m4 (AT_CONFIGURE_AC): Double quote constant
part of the second argument to AT_DATA.
* tests/compile.at (AC_PROG_CPP with warnings): Fix underquoting
in a call to _AT_CHECK_AC_MACRO.
(AC_PROG_CPP without warnings): Likewise.
Jim Meyering [Fri, 9 Feb 2001 15:04:06 +0000 (15:04 +0000)]
(AC_SYS_LARGEFILE_TEST_INCLUDES): Don't reject
C++ compilers that are masquerading as C compilers, and that
incorrectly reject large integers.
From Paul Eggert.
Pavel Roskin [Wed, 7 Feb 2001 15:04:52 +0000 (15:04 +0000)]
* acgeneral.m4 (AC_OUTPUT): Remove $(srcdir), ${srcdir} and
@srcdir@ from VPATH if srcdir is "." and replace blank VPATH
lines with empty lines to preserve line numbers.
Original version by Derek Price.
Akim Demaille [Mon, 5 Feb 2001 17:33:00 +0000 (17:33 +0000)]
acfunctions.m4 was still using the old AC_LIBOBJ_DECL.
Reported by Derek R. Price.
* tests/semantics.at (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
AC_LIBSOURCES.
Akim Demaille [Mon, 5 Feb 2001 10:16:32 +0000 (10:16 +0000)]
acfunctions.m4 was still using the old AC_LIBOBJ_DECL.
Reported by Derek R. Price.
* tests/semantics.at (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
AC_LIBSOURCES.
Pavel Roskin [Fri, 2 Feb 2001 18:15:36 +0000 (18:15 +0000)]
* autoscan.pl (scan_c_file): When in verbose mode, don't print
out hashes common for the whole package. Do it in scan_files()
instead.
(scan_makefile): Likewise.
(scan_sh_file): Likewise.
Thanks to Jim Meyering for improved implementation.
Akim Demaille [Tue, 30 Jan 2001 19:29:38 +0000 (19:29 +0000)]
The recent addition of `exit's prototype in confdefs.h causes
AC_OUTPUT_MAKE_DEFS to include junky -D switches.
Reported by Wolfgang Mueller.
* tests/torture.at (#define header templates): Include trash in
confdefs.h.
* tests/atgeneral.at (AT_INIT): Don't expect `find' to support
-maxdepth, hence don't use -follow either.
Reported by Nicolas Joly.
* acgeneral.m4 (AC_OUTPUT_MAKE_DEFS) <confdef2opt.sed>: In the
`quote' section, `p'rint the result.
If neither `#define' pattern match, just call `d' to start a new
cycle.
Call this sed program with -n.
Pavel Roskin [Mon, 29 Jan 2001 22:36:09 +0000 (22:36 +0000)]
Don't use filenames that can be reduced to "conftest" on DOS.
* acfunctions.m4 (AC_FUNC_MMAP): Use conftest.mmap, not
conftestmmap.
(AC_FUNC_UTIME_NULL): Use conftest.data, not conftestdata.
* acspecific.m4 (AC_PROG_MAKE_SET): Use conftest.make, not
conftestmake.
(_AC_PATH_X_XMKMF): Use conftest.dir, not conftestdir.
* acgeneral.m4 (AC_ARG_PROGRAM): Use conftest.sed, not
conftestsed.
* m4/sanity.m4: Use conftest.file, not conftestfile.
* doc/autoconf.texi (Guidelines for Test Programs): Suggest
using conftest.data, not conftestdata.