2000-11-23 17:53:52 +08:00
|
|
|
# Validation suite for Autoconf -*- Autoconf -*-
|
2000-10-25 23:04:29 +08:00
|
|
|
# Copyright 2000 Free Software Foundation, Inc.
|
2000-01-29 20:18:40 +08:00
|
|
|
|
|
|
|
# Still many parts of `autoconf' are not exercised by the test suite. A few
|
|
|
|
# FIXME's, below, are used to list tests that we would need. Do you feel
|
|
|
|
# like contributing new tests? If you do, you may tell your intent to
|
|
|
|
# `autoconf@gnu.org', so no two people work at the same thing.
|
|
|
|
|
2000-11-16 22:56:17 +08:00
|
|
|
AT_INIT([autoconf])
|
2000-01-29 20:18:40 +08:00
|
|
|
|
2000-11-29 18:12:05 +08:00
|
|
|
AT_BANNER(
|
2001-01-22 17:03:38 +08:00
|
|
|
[Some tests might be skipped if you don't have the software which the
|
|
|
|
macros check (e.g., a Fortran compiler).])
|
2000-02-07 22:53:49 +08:00
|
|
|
|
2000-10-05 17:39:06 +08:00
|
|
|
# Run the tests from the lowest level to the highest level, and from
|
|
|
|
# the most selective to the easiest.
|
2000-02-07 19:54:29 +08:00
|
|
|
|
2000-12-12 19:26:41 +08:00
|
|
|
# The executables.
|
|
|
|
# Even the tests on M4sugar and M4sh use `autoconf', so check it first.
|
|
|
|
m4_include([tools.at])
|
|
|
|
|
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-26 01:51:10 +08:00
|
|
|
# M4sugar.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_include([m4sugar.at])
|
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-26 01:51:10 +08:00
|
|
|
|
* shell.m4: Rename as...
* m4sh.m4: this.
* tests/m4sugar.m4, tests/shell.m4, tests/torture.m4: Rename as...
* tests/m4sugar.at, tests/m4sh.at, tests/torture.at: these.
* tests/semantics.m4, tests/base.m4, tests/suite.m4: Rename as...
* tests/semantics.at, tests/base.at, tests/suite.at: these.
* tests/tools.m4, tests/update.m4, tests/syntax.m4: Rename as...
* tests/tools.at, tests/update.at, tests/syntax.at: these.
* tests/mktests.sh: Adjust the output file names.
2000-10-26 17:52:34 +08:00
|
|
|
# M4sh.m4.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_include([m4sh.at])
|
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-26 01:51:10 +08:00
|
|
|
|
|
|
|
# Autoconf base macros.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_include([base.at])
|
2000-10-05 17:39:06 +08:00
|
|
|
|
2000-11-16 22:56:17 +08:00
|
|
|
# Testing config.status
|
|
|
|
# ---------------------
|
|
|
|
# Actually should be named config.status.at but I fear problems with
|
|
|
|
# the name. Does no `checking...' at all, but exercises only code
|
|
|
|
# which following section use too. Hence, run it first.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_include([torture.at])
|
2000-11-16 22:56:17 +08:00
|
|
|
|
|
|
|
# Checking AC_PROG_CC, AC_COMPILE_IFELSE etc.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_include([compile.at])
|
2000-10-05 17:39:06 +08:00
|
|
|
|
2000-11-16 22:56:17 +08:00
|
|
|
# Checking that AC_CHECK_FOO macros work properly.
|
2000-11-29 18:11:38 +08:00
|
|
|
m4_include([semantics.at])
|
2000-10-05 17:39:06 +08:00
|
|
|
|
2001-01-22 17:03:38 +08:00
|
|
|
# Blind testing the macros.
|
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 17:04:58 +08:00
|
|
|
# Include them as is suggested for a `configure.ac', as looking for
|
|
|
|
# for types requires looking for headers etc.
|
2001-01-22 17:03:38 +08:00
|
|
|
m4_include([acgeneral.at])
|
|
|
|
m4_include([acspecific.at])
|
|
|
|
m4_include([aclang.at])
|
|
|
|
m4_include([acheaders.at])
|
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 17:04:58 +08:00
|
|
|
m4_include([actypes.at])
|
|
|
|
m4_include([acfunctions.at])
|
2000-12-19 16:09:38 +08:00
|
|
|
|
|
|
|
# Compatibility with foreign tools.
|
|
|
|
m4_include([foreign.at])
|