Commit Graph

713 Commits

Author SHA1 Message Date
Pavel Roskin
6d7689034b * acgeneral.m4 (_AC_INIT_VERSION): Use AC_PACKAGE_NAME and
AC_PACKAGE_VERSION only if they are defined.
(_AC_OUTPUT_CONFIG_STATUS): Likewise.
2001-04-16 20:13:54 +00:00
Lars J. Aas
2f5e53c4ea config.status --version 2001-04-15 15:57:50 +00:00
Lars J. Aas
122f1a44ef Show config.status options --file' and --header' unconditionally. 2001-04-15 14:16:15 +00:00
Akim Demaille
48ecaeea39 * autoconf.sh (Task script): Be sure that `forbidden.rx' and
`allowed.rx' exist when AWK loads then.
Reported by Rainer Orth.
2001-04-11 16:29:14 +00:00
Lars J. Aas
c454faa038 config.status logging to config.log 2001-04-10 11:33:50 +00:00
Lars J. Aas
06f9c77fc7 Create config.log after processing --help and --version. 2001-04-04 15:50:38 +00:00
Lars J. Aas
286c116e6d Version information patches. 2001-04-04 12:52:29 +00:00
Akim Demaille
75a3a3d326 * m4sh.m4 (AS_BASENAME): New.
(AS_SHELL_SANITIZE): Set `$as_me'.
* acgeneral.m4: Don't set as_me; AS_SHELL_SANITIZE now does this.
* tests/atgeneral.m4: Likewise.
(AT_INIT): Use $PATH_SEPARATOR for walking the path.
* autoconf.sh: Be DOS-friendly when setting as_me and M4.
Add quotes to support spaces in $tmp.
Work around problem in DJGPP port of awk by using a temporary file.
* autoheader.sh: Be DOS-friendly when setting as_me.
* autoreconf.sh: Be DOS-friendly when setting as_me, dir and
template_dir.
2001-03-30 12:49:36 +00:00
Lars J. Aas
e620bb0400 * acgeneral.m4 (AC_INIT_VERSION): Improved version information string
for `configure --version'.
2001-03-27 16:48:27 +00:00
Akim Demaille
21d57428ee * 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.
2001-03-19 13:32:34 +00:00
Akim Demaille
7a099a5bf9 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Don't hard code
`/bin/sh', use $SHELL.
From Paul Eggert.
2001-03-19 13:29:02 +00:00
Akim Demaille
b5af527e15 * 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.
2001-03-08 16:28:03 +00:00
Pavel Roskin
a6aee957a5 * acgeneral.m4 (_AC_INIT_PREPARE): Quote `$$*' correctly. 2001-03-02 21:02:07 +00:00
Akim Demaille
417f6ae5d5 * 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.
2001-02-28 08:45:55 +00:00
Akim Demaille
8376b27448 * 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.
2001-02-26 21:37:13 +00:00
Akim Demaille
ebf04e44de * 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.
2001-02-25 10:44:37 +00:00
Jim Meyering
069c08c032 (_AC_INIT_PREPARE_FS_SEPARATORS): Revert that change.
There was no typo.
2001-02-23 15:42:11 +00:00
Jim Meyering
e4e464dd7d (_AC_INIT_PREPARE_FS_SEPARATORS): Fix typo: s/;/:/ 2001-02-23 08:53:07 +00:00
Akim Demaille
c403ef4594 * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): use `AS_EXIT(0)' instead
of `exit 0' when exiting config.status.
2001-02-21 09:44:55 +00:00
Pavel Roskin
a2509e9556 * 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.
2001-02-07 15:04:52 +00:00
Akim Demaille
e568fbd143 * acgeneral.m4 (_AC_LIBOBJ): Call AC_LIBSOURCE with '.c' extension
appended to function name.
2001-02-07 11:26:22 +00:00
Akim Demaille
2080fdc3cb * acgeneral.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR, AC_RUN_LOG): New.
(_AC_EVAL_STDERR,  _AC_EVAL): Use them.
(_AC_INIT_PREPARE_FS_SEPARATORS): Use AC_RUN_LOG.
2001-02-06 15:11:50 +00:00
Akim Demaille
7bf59957c4 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.
2001-02-05 17:33:00 +00:00
Akim Demaille
56eb3944e1 * acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Removed, dead code. 2001-02-03 16:43:00 +00:00
Akim Demaille
3282fd3c7a * acgeneral.m4 (AC_LIBOBJ_DECL): Remove.
(AC_LIBSOURCES, AC_LIBSOURCE): New.
* acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Remove configure.ac
2001-02-03 13:20:00 +00:00
Pavel Roskin
7e51af06ed * acgeneral.m4 (_AC_COMPUTE_INT_COMPILE): Rename all occurences
of ac_try to ac_mid to avoid a name clash.
2001-02-02 22:57:56 +00:00
Akim Demaille
110ac382f0 Englisho. 2001-01-31 15:00:35 +00:00
Akim Demaille
732a3a8f77 * acgeneral.m4 (_AC_OUTPUT_SUBDIRS): Remove configure.ac
from check for ac_sub_configure.
2001-01-30 19:31:50 +00:00
Akim Demaille
b8d698ca1d 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.
2001-01-30 19:29:38 +00:00
Pavel Roskin
9f999a6c43 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.
2001-01-29 22:36:09 +00:00
Akim Demaille
4e7126c29d * acgeneral.m4 (AC_SITE_LOAD): Let config.log know what you load. 2001-01-29 09:23:11 +00:00
Akim Demaille
fea900426a Follow Tim Van Holder's suggestions for a uniform handling of
symlinks.
* m4sh.m4: Stay in `as_', not `ac_'.
(_AS_LN_S_PREPARE): Eve out from...
* acspecific.m4 (AC_PROG_LN_S): here.  Adjust.
* m4sh.m4 (AS_LN_S): New.
(AS_SHELL_PREPARE): Call _AS_LN_S_PREPARE.
2001-01-27 13:19:14 +00:00
Akim Demaille
9d4187c855 * aclang.m4: dnl AC_ARG_VAR's newline.
(AC_PROG_CC, AC_PROG_F77, AC_PROG_CXX): AC_ARG_VAR(LDFLAGS).
* acgeneral.m4 (AC_CHECK_LIB): Don't do it.
2001-01-26 14:34:04 +00:00
Akim Demaille
7579cc0d64 Preserve INSTALL too.
* acgeneral.m4 (_AC_OUTPUT_FILES): Use ac_INSTALL for internal
computations, and therefore use INSTALL where ac_given_INSTALL
was used.
(_AC_OUTPUT_SUBDIRS): There is no point in computing INSTALL in
here.  It's not even used.
2001-01-24 13:41:52 +00:00
Akim Demaille
c5669e51b4 While preserved in configure, srcdir is trashed in config.status.
Reported by Ralf Corsepius.
* tests/aclocal.m4 (AC_STATE_SAVE): It is ok to modify
CONFIG_STATUS, DEFS, prefix and exec_prefix.
It is OK to produce config.* files.
* tests/atspecific.m4 (AT_CONFIGURE_AC): Save the env *after*
AC_OUTPUT to check that it doesn't break anything by itself.
* tests/torture.m4 (srcdir): New test, from Ralf Corsepius.
* acgeneral.m4 (_AC_OUTPUT_FILES): Use ac_top_srcdir and ac_srcdir
to preserve srcdir and top_srcdir.
Remove any use of `ac_given_srcdir' as `$srcdir' being preserved
is usable.
2001-01-24 13:19:10 +00:00
Akim Demaille
f9aafb7b45 configure -q did not work since 2000-11-03.
* acgeneral.m4 (_AC_INIT_DEFAULTS_FDS): Don't check for $silent,
tie AS_MESSAGE_FD to stdout unconditionally.
(_AC_INIT_PARSE_ARGS): If $silent redirect AS_MESSAGE_FD to
/dev/null.
* tests/base.at (AC_CACHE_CHECK): New test.
2001-01-24 10:04:47 +00:00
Akim Demaille
ebec93d7e6 * m4sh.m4 (AS_EXECUTABLE_P, _AS_TEST_PREPARE): New macros.
(AS_SANITIZE_SHELL): Call _AS_TEST_PREPARE.
* acgeneral.m4 (AC_CHECK_PROG, AC_PATH_PROG): Use AS_EXECUTABLE_P
instead of test -f.
2001-01-24 08:24:44 +00:00
Akim Demaille
544c3a4b3d Don't AC_SUBST too much, as it makes Automake include those
variables in Makefiles, and drives autoscan to require unneeded
programs.
* acgeneral.m4 (_AC_INIT_PREPARE): Don't AC_SUBST CFLAGS,
CPPFLAGS, CXXFLAGS and LDFLAGS.
(AC_ARG_VAR): AC_SUBST the var.
Document it only once, even if there are several different docs.
* aclang.m4 (AC_PROG_CPP): Declare CPP and CPPFLAGS to AC_ARG_VAR.
(AC_PROG_CXXCPP): Declare CXXCPP and CPPFLAGS.
2001-01-24 07:50:55 +00:00
Akim Demaille
bddc739371 * acgeneral.m4 (AC_EXPAND_ONCE): Remove, use m4_expand_once.
(AC_DIVERT_ONCE): Move to...
* m4sugar.m4 (m4_expand_once): here.
2001-01-23 17:04:35 +00:00
Akim Demaille
4565170640 * acgeneral.m4 (_AC_INIT_PREPARE): Be sure to quote hashes to
avoid M4 thinking it's comments.
2001-01-23 09:49:33 +00:00
Akim Demaille
7c40c84af1 * acgeneral.m4 (_AC_INIT_PREPARE) <trap>: Typo. 2001-01-23 01:34:08 +00:00
Akim Demaille
b54be14bee * acgeneral.m4 (_AC_COMPILE_IFELSE): Wrap the test -s in
AC_TRY_COMMAND to improve config.log.
(_AC_INIT_DEFAULTS): Don't define ac_exeext and ac_objext to
highlight failures.
2001-01-22 14:07:09 +00:00
Akim Demaille
cd0cecab2a * acgeneral.m4 (_AC_OUTPUT_CONFIG_STATUS): Work around a currently
impossible to describe bug of SunOS 4.1.3 which causes a shell
crash when using `VAR=${VAR="$default"}'.
Reported and diagnosed by Kevin Ryde.
2001-01-22 11:14:37 +00:00
Akim Demaille
b58abf2dab * aclang.m4 (AC_LANG_INT_SAVE, AC_LANG_INT_SAVE(C)): Use
conftest.val, not conftestval.
* acgeneral.m4 (_AC_COMPUTE_INT_RUN, _AC_COMPUTE_INT):
Likewise.
2001-01-22 09:06:11 +00:00
Akim Demaille
e457a316a4 Create actypes.m4.
* acgeneral.m4 (AC_CHECK_SIZEOF, _AC_CHECK_TYPE_NEW)
(AC_CHECK_TYPES, _AC_CHECK_TYPE_OLD)
(_AC_CHECK_TYPE_REPLACEMENT_TYPE_P, _AC_CHECK_TYPE_MAYBE_TYPE_P)
(AC_CHECK_TYPE, AC_CHECK_MEMBER, AC_CHECK_MEMBERS): Move into...
* actypes.m4: here.
* acgeneral.m4 (AC_TYPE_GETGROUPS, AM_TYPE_PTRDIFF_T)
(AC_TYPE_UID_T, AC_TYPE_SIZE_T, AC_TYPE_PID_T, AC_TYPE_OFF_T)
(AC_TYPE_MODE_T, AC_INT_16_BITS, AC_LONG_64_BITS, AC_TYPE_SIGNAL)
(AC_STRUCT_TM, AC_STRUCT_TIMEZONE, AC_STRUCT_ST_BLKSIZE)
(AC_STRUCT_ST_BLOCKS, AC_STRUCT_ST_RDEV): Move into...
* actypes.m4: here.
Adjust the test suite.
2001-01-22 09:04:58 +00:00
Akim Demaille
8432ef4226 * acgeneral.m4 (AC_INIT, AC_OUTPUT): Don't take care of completing
the log.
(_AC_INIT_PREPARE): Do it in the trap 0.
2001-01-22 08:58:47 +00:00
Akim Demaille
960155df17 Catch only used patterns.
Reported by the whole Autoconf community.
* m4sh.m4 (AS_INIT): New.
* acgeneral.m4 (AC_PLAIN_SCRIPT): Use it.
Forbid only AC, AU, AH and AM.
2001-01-19 14:35:06 +00:00
Akim Demaille
c3255e4ee7 * acgeneral.m4 (AC_PLAIN_SCRIPT): AF_INET, AF_UNIX, AR_FLAGS,
AS_FLAGS are OK.
2001-01-18 15:30:35 +00:00
Akim Demaille
4bc8d19d4e * acgeneral.m4: Don't leave macro names in comments.
* aclang.m4: Likewise.
* configure.in: Likewise.
* tests/semantics.at: Likewise.
* tests/tools.at: Likewise.
2001-01-18 09:30:10 +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