Akim Demaille
3c835cbe13
* acfunctions.m4 (AC_FUNC_GETGROUPS): Typo :(.
2001-01-22 10:13:15 +00:00
Akim Demaille
97445accac
* actypes.m4 (AC_TYPE_GETGROUPS): Double quote the test program
...
body.
2001-01-22 09:09:21 +00:00
Akim Demaille
f49bab6de6
Medium term goal: AC_ macros can be tested with -W obsolete.
...
* acgeneral.m4 (AC_RUN_IFELSE): Accept IF-CROSS-COMPILING.
(AC_TRY_RUN): Use it.
* acfunctions.m4: Start ousting AC_TRY_RUN and AC_TRY_COMPILE.
* acspecific.m4 (AC_AIX, AC_MINIX, AC_ISC_POSIX): AC_BEFORE on
AC_COMPILE_IFELSE and AC_RUN_IFELSE.
2001-01-18 09:16:39 +00:00
Akim Demaille
3becb30f56
When default headers are used, check for their presence.
...
Suggested by Jim.
* acgeneral.m4 (_AC_INIT_DEFAULTS): Don't define
ac_includes_default, since...
(_AC_INCLUDES_DEFAULT_REQUIREMENTS): this new macro does.
(AC_INCLUDES_DEFAULT): Require the former when default includes
are used.
(AC_CHECK_MEMBERS, _AC_CHECK_TYPE_NEW): Don't require
AC_HEADERS_STDC, that's a job for stupendous AC_INCLUDES_DEFAULT.
* acfunctions.m4 (AC_FUNC_MALLOC): Check for stdlib.h.
2001-01-16 10:21:44 +00:00
Akim Demaille
59ecd7666a
* acgeneral.m4 (AC_VAR_INDIR_IFELSE): Move as...
...
* m4sh.m4 (AS_LITERAL_IF): this.
(AS_IFELSE): Rename as...
(AS_IF): this.
2001-01-15 07:29:24 +00:00
Akim Demaille
bd132b191d
* acfunctions.m4 (AC_FUNC_MEMCMP): Missing comma in AC_TRY_RUN
...
invocation.
2001-01-11 16:12:00 +00:00
Akim Demaille
7abc919fd0
* acgeneral.m4 (_AC_INIT_DEFAULTS) <ac_includes_default>: Include
...
sys/stat.h.
* acspecific.m4 (AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_BLOCKS)
(AC_STRUCT_ST_RDEV): Simplify.
* acfunctions.m4 (AC_FUNC_MMAP): Include sys/stat.h unconditionally.
* doc/autoconf.texi (Default Includes): Adjust.
(Particular Structures) <AC_STRUCT_ST_BLKSIZE, AC_STRUCT_ST_RDEV>:
Adjust.
2000-11-17 16:45:24 +00:00
Akim Demaille
ae4c79d264
* m4/largefile.m4 (_AC_SYS_LARGEFILE_SOURCE): Remove, replaced by...
...
(_AC_SYS_LARGEFILE_TEST_INCLUDES): this.
(AC_SYS_LARGEFILE_MACRO_VALUE): Use AC_LANG_PROGRAM instead of
_AC_SYS_LARGEFILE_SOURCE, i.e., don't pass
_AC_SYS_LARGEFILE_TEST_INCLUDES by default: this isn't desirable
when checking for fseeko.
(AC_SYS_LARGEFILE): Pass AC_SYS_LARGEFILE_TEST_INCLUDES to
_AC_SYS_LARGEFILE_MACRO_VALUE, since it no longer does this for us.
2000-11-16 08:52:54 +00:00
Akim Demaille
d286d1d41e
* acspecific.m4 (AC_SYS_LARGEFILE): Don't worry about
...
whether fseeko and ftello are properly declared.
* acfunctions.m4 (AC_FUNC_FSEEKO): New macro, which worries about
fseeko (and presumably ftello). Do not set _XOPEN_SOURCE; that
causes too many problems in practice.
* acfunctions (fteelo, fseeko): Trigger AC_FUNC_FSEEKO.
* doc/autoconf.texi: Adjust.
2000-11-14 16:01:05 +00:00
Akim Demaille
a8ce12b0d6
* acfunctions.m4 (AC_FUNC_ALLOCA): Don't require AC_PROG_CPP,
...
since (i) you actually need a compiler, (ii) AC_TRY_LINK handles
it.
* acheaders.m4 (AC_HEADER_STDC): Don't require AC_PROG_CPP,
AC_TRY_CPP does it.
2000-11-14 10:38:57 +00:00
Pavel Roskin
edf0d70863
* acfunctions.m4 (AC_CHECK_FUNCS): Add missing m4 quotes.
...
(AC_FUNC_GETPGRP): Likewise.
* acspecific.m4 (AC_AIX): Likewise.
* m4/init.m4 (AM_INIT_AUTOMAKE): Likewise.
* m4/missing.m4 (AM_MISSING_PROG): Likewise.
* m4/sanity.m4 (AM_SANITY_CHECK): Likewise.
2000-11-11 07:05:02 +00:00
Pavel Roskin
03d06c0d47
* acfunctions.m4: Always quote first argument of AC_MSG_ERROR,
...
AC_MSG_WARN, AC_MSG_CHECKING, AC_MSG_RESULT,
AC_MSG_RESULT_UNQUOTED.
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* configure.in: Likewise.
* doc/autoconf.texi: Likewise.
2000-11-11 05:59:21 +00:00
Jim Meyering
5111c57c37
(AC_FUNC_FNMATCH): Add a test to detect the d*/*1 vs d/s/1 bug.
...
Add a couple more test cases to catch bugs in glibc 2.1.95.
Include fnmatch.h unconditionally
Mention the GNU C library.
From Paul Eggert.
2000-11-04 22:07:50 +00:00
Akim Demaille
ded24ff599
* autoconf.m4 (define): Reestablish only after having read the
...
`ac' files.
Adjust all the Autoconf code to use `m4_define', not `define'.
2000-11-03 13:41:40 +00:00
Pavel Roskin
599b982dbd
* acfunctions.m4 (AC_FUNC_MMAP): Remove conftestmmap from the
...
shell, not from the test program.
2000-10-27 23:10:18 +00:00
Akim Demaille
a14a5e7ca5
Move the Autoconf independent shell macros into the file
...
`shell.m4' and the name space `AS_*'.
* acgeneral.m4 (AC_SHELL_IFELSE, _AC_SHELL_TMPDIR, AC_SHELL_UNSET)
(AC_SHELL_MKDIR_P, AC_SHELL_DIRNAME): Rename and move to...
* shell.m4 (AS_IFELSE, AS_TMPDIR, AS_UNSET, AS_MKDIR_P)
(AS_DIRNAME): here, a new file.
Adjust all dependencies.
* tests/base.m4 (m4_wrap): Eve out into...
* tests/shell.m4: here, new file.
* tests/base.m4 (AC_SHELL_MKDIR_P)
(AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): Eve out into...
* tests/m4sugar.m4 (AS_MKDIR_P, AS_DIRNAME & AS_DIRNAME_SED):
here, new file.
Adjust the test suite.
2000-10-25 17:51:10 +00:00
Pavel Roskin
0c101b88ae
* acfunctions.m4 (AC_FUNC_CHOWN): Remove temporary files on exit.
...
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
(AC_FUNC_SELECT_ARGTYPES): Likewise.
(AC_FUNC_UTIME_NULL): Likewise.
* acgeneral.m4 (_AC_COMPUTE_INT): Likewise.
* aclang.m4 (_AC_F77_NAME_MANGLING): Likewise.
* acspecific.m4 (_AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
2000-10-23 04:07:42 +00:00
Akim Demaille
1e3cdfe0a3
* acgeneral.m4: Adjust copyright notice.
...
* acspecific.m4: Likewise.
* acoldnames.m4: Likewise.
* acversion.m4.in: Likewise.
* autoconf.sh: Likewise.
* autoheader.sh: Likewise.
* autoreconf.sh: Likewise.
* autoscan.pl: Likewise.
* autoupdate.sh: Likewise.
* ifnames.sh: Likewise.
2000-10-16 18:25:55 +00:00
Pavel Roskin
c865483335
* acfunctions.m4: Formatting fixes.
...
* acgeneral.m4: Likewise.
* aclang.m4: Likewise.
* acspecific.m4: Likewise.
* libm4.m4: Likewise.
2000-09-28 14:26:50 +00:00
Akim Demaille
4b6e36a5f7
* acfunctions.m4 (AC_FUNC_GETLOADAVG): Restore the initial value
...
of LIBS. Otherwise, everyone ends up linking with -lelf for some
configurations.
Reported by Mike Stone.
2000-09-18 10:53:01 +00:00
Akim Demaille
368c1810a2
The test suite fails on some hosts because for instance
...
AC_INIT
AC_CHECK_FUNC(exit)
will not look for a compiler, it will just use `cc'.
Macros that need a compiler should require one.
2000-09-12 13:59:55 +00:00
Akim Demaille
04d6db4b2a
* acfunctions.m4 (AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH,
...
AM_FUNC_MKTIME, AM_FUNC_OBSTACK, AM_FUNC_STRTOD): Deactivate
their AU_ALIAS definition: Automake 1.4 does not quote the name of
these macros, hence when Autoconf reads Automake's definition the
name is expanded with unpredictable results.
2000-08-11 08:25:15 +00:00
Akim Demaille
55d7dff046
* acfunctions.m4 (_AC_LIBOBJ_ALLOCA, AC_REPLACE_FUNCS): Simplify
...
${foo} into $foo.
* aclang.m4 (AC_LANG(C), AC_LANG(C++)): Move some internal
comments into the header comment.
* acgeneral.m4 (AC_TRY_CPP): Likewise.
2000-08-07 12:33:17 +00:00
Akim Demaille
7bd04c77a0
* acfunctions.m4 (_AC_LIBOBJ_STRTOD, AC_FUNC_STRTOD,
...
AM_FUNC_STRTOD): New macros, from Automake.
* acfunctions: Adjust.
2000-08-01 11:16:33 +00:00
Akim Demaille
20a739fc2e
* acfunctions.m4 (AC_FUNC_ONSTACK): New macro, from
...
Automake.
* doc/autoconf.texi (Particular Functions): Adjust.
2000-08-01 11:10:16 +00:00
Akim Demaille
4ba8807ca1
* acfunctions.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from
...
Automake.
* doc/autoconf.texi (Particular Functions): Adjust.
2000-08-01 10:16:20 +00:00
Akim Demaille
a1dde0367f
Create acfunctions.m4, in charge of the macros related to
...
functions.
* acgeneral.m4 (AC_CHECK_FUNC, AC_CHECK_FUNCS, AC_REPLACE_FUNCS):
Move to...
* acfunctions.m4: here, new file.
* acspecific.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_ALLOCA, AC_FUNC_CHOWN,
AC_FUNC_CLOSEDIR_VOID, AC_FUNC_FNMATCH, AC_FUNC_GETGROUPS,
_AC_LIBOBJ_GETLOADAVG, AC_FUNC_GETLOADAVG, AC_FUNC_GETMNTENT,
AC_FUNC_GETPGRP, AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK,
AC_FUNC_MALLOC, AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP,
AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP, _AC_FUNC_STAT,
AC_FUNC_STAT, AC_FUNC_LSTAT, AC_FUNC_STRERROR_R, AC_FUNC_STRFTIME,
AC_FUNC_VFORK, AC_FUNC_VPRINTF, AC_FUNC_WAIT3, AC_FUNC_UTIME_NULL,
AC_FUNC_STRCOLL, AC_FUNC_SETVBUF_REVERSED): Likewise.
* Makefile.am: Adjust.
Move also the old definitions into acfunctions.m4, and adjust the
test suite.
* acgeneral.m4 (AU_ALIAS): New macro.
* acoldnames (AC_FUNC_CHECK, AC_HAVE_FUNCS, AC_ALLOCA,
AC_GETLOADAVG, AC_MMAP, AC_SETVBUF_REVERSED, AC_STRCOLL,
AC_UTIME_NULL, AC_VFORK, AC_VPRINTF, AC_WAIT3, AM_FUNC_FNMATCH,
AM_FUNC_MKTIME, fp_FUNC_FNMATCH): Move to...
* acfunctions.m4: here, using AU_ALIAS.
* acgeneral.m4 (AC_FD_CC, AC_CANONICAL_SYSTEM): Use AU_ALIAS to
define them.
* acoldnames.m4: Use AU_ALIAS instead of AU_DEFUN.
* tests/Makefile.am (MACRO_FILES): Adjust.
2000-08-01 10:13:14 +00:00