2001-04-11 23:15:20 +08:00
|
|
|
## Process this file with automake to create Makefile.in. -*-Makefile-*-
|
2000-01-29 20:18:40 +08:00
|
|
|
|
|
|
|
## Makefile for Autoconf testsuite.
|
2001-04-11 23:15:20 +08:00
|
|
|
## Copyright 2000, 2001 Free Software Foundation, Inc.
|
2000-01-29 20:18:40 +08:00
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program; if not, write to the Free Software
|
|
|
|
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
## 02111-1307, USA.
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = gnits
|
|
|
|
|
2001-08-22 14:24:46 +08:00
|
|
|
SUITE_GENERATED = \
|
|
|
|
aclang.at acc.at acfortran.at \
|
|
|
|
acgeneral.at acspecific.at acfunctions.at acheaders.at actypes.at \
|
|
|
|
aclibs.at
|
|
|
|
|
* 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
|
|
|
SUITE = suite.at \
|
|
|
|
m4sugar.at m4sh.at \
|
* lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
(AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
(AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
(AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
(AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
(AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
(AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
(AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
(AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
(AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
(AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
(AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
(AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
* lib/autoconf/c.m4: here, new file.
* lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
(_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
(AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
(AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
(ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
(_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
(AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
(_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
(AC_F77_FUNC): Move to...
* lib/autoconf/fortran.m4: here, new file.
2001-08-01 21:50:48 +08:00
|
|
|
base.at tools.at torture.at \
|
|
|
|
compile.at \
|
2001-08-22 14:24:46 +08:00
|
|
|
$(SUITE_GENERATED) \
|
* lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
(AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
(AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
(AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
(AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
(AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
(AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
(AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
(AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
(AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
(AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
(AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
(AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
* lib/autoconf/c.m4: here, new file.
* lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
(_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
(AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
(AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
(ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
(_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
(AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
(_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
(AC_F77_FUNC): Move to...
* lib/autoconf/fortran.m4: here, new file.
2001-08-01 21:50:48 +08:00
|
|
|
semantics.at \
|
2001-01-22 17:03:38 +08:00
|
|
|
foreign.at
|
2000-01-29 20:18:40 +08:00
|
|
|
|
|
|
|
# We don't actually distribute the testsuite, since one only
|
|
|
|
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
2001-08-20 22:45:49 +08:00
|
|
|
# atlocal.in is to be listed, since Automake doesn't see it...
|
2000-10-27 22:15:28 +08:00
|
|
|
EXTRA_DIST = README \
|
2001-08-01 21:46:22 +08:00
|
|
|
atspecific.m4 aclocal.m4 \
|
2001-08-20 22:45:49 +08:00
|
|
|
atlocal.in $(SUITE) mktests.sh
|
2000-01-29 20:18:40 +08:00
|
|
|
|
2001-08-20 22:45:49 +08:00
|
|
|
check-local: atconfig atlocal testsuite
|
2000-01-29 20:18:40 +08:00
|
|
|
$(SHELL) testsuite
|
|
|
|
|
2001-08-01 22:28:57 +08:00
|
|
|
AUTOM4TE = autom4te_perllibdir='$(top_srcdir)/lib' ../bin/autom4te
|
2001-08-01 21:46:22 +08:00
|
|
|
testsuite: $(top_srcdir)/lib/m4sugar/m4sugar.m4 \
|
|
|
|
$(top_srcdir)/lib/m4sugar/m4sh.m4 \
|
|
|
|
$(top_srcdir)/lib/autotest/general.m4 \
|
|
|
|
atspecific.m4 \
|
2000-11-23 17:46:48 +08:00
|
|
|
$(SUITE)
|
2001-08-01 21:46:22 +08:00
|
|
|
$(AUTOM4TE) \
|
|
|
|
-I $(srcdir) -I $(top_srcdir) -I $(top_srcdir)/lib \
|
|
|
|
atspecific.m4 suite.at -o $@.tmp
|
2001-01-26 19:50:23 +08:00
|
|
|
chmod +x $@.tmp
|
|
|
|
mv $@.tmp $@
|
2000-01-29 20:18:40 +08:00
|
|
|
|
2000-03-01 16:22:40 +08:00
|
|
|
|
2001-01-24 15:54:32 +08:00
|
|
|
# The files which contains macro we check for syntax. Don't use $(top_srcdir)
|
|
|
|
# here since below we explicitly `cd' to $srcdir. As for the dependencies,
|
|
|
|
# thanks God for VPATH. Hm...
|
2001-08-01 21:46:22 +08:00
|
|
|
MACRO_FILES = $(top_srcdir)/lib/autoconf/general.m4 \
|
|
|
|
$(top_srcdir)/lib/autoconf/specific.m4 \
|
|
|
|
$(top_srcdir)/lib/autoconf/functions.m4 \
|
|
|
|
$(top_srcdir)/lib/autoconf/lang.m4 \
|
* lib/autoconf/lang.m4 (AC_LANG(C), AC_LANG_C, _AC_LANG_ABBREV(C))
(AC_LANG(C++), AC_LANG_CPLUSPLUS, _AC_LANG_ABBREV(C++))
(AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C), AC_LANG_CALL(C))
(AC_LANG_FUNC_LINK_TRY(C), AC_LANG_BOOL_COMPILE_TRY(C))
(AC_LANG_INT_SAVE(C), _AC_ARG_VAR_CPPFLAGS, _AC_ARG_VAR_LDFLAGS)
(AC_LANG_PREPROC(C), _AC_PROG_PREPROC_WORKS_IFELSE, AC_PROG_CPP)
(AC_LANG_COMPILER(C), ac_cv_prog_gcc, AC_PROG_CC, _AC_PROG_CC_G)
(AC_PROG_GCC_TRADITIONAL, AC_PROG_CC_C_O, AC_LANG_PREPROC(C++))
(AC_PROG_CXXCPP, AC_LANG_COMPILER(C++), ac_cv_prog_gxx)
(AC_PROG_CXX, _AC_PROG_CXX_G, _AC_PROG_CXX_EXIT_DECLARATION)
(AC_PROG_CC_STDC, AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE)
(AC_C_BIGENDIAN, AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE)
(AC_C_STRINGIZE, AC_C_PROTOTYPES): Move to...
* lib/autoconf/c.m4: here, new file.
* lib/autoconf/lang.m4 (AC_LANG(Fortran 77), AC_LANG_FORTRAN77)
(_AC_LANG_ABBREV(Fortran 77), AC_LANG_SOURCE(Fortran 77))
(AC_LANG_PROGRAM(Fortran 77), AC_LANG_CALL(Fortran 77))
(AC_LANG_PREPROC(Fortran 77), AC_LANG_COMPILER(Fortran 77))
(ac_cv_prog_g77, AC_PROG_F77, _AC_PROG_F77_G, AC_PROG_F77_C_O)
(_AC_PROG_F77_V_OUTPUT, _AC_PROG_F77_V, AC_F77_LIBRARY_LDFLAGS)
(AC_F77_DUMMY_MAIN, _AC_LANG_PROGRAM_C_F77_HOOKS, AC_F77_MAIN)
(_AC_F77_NAME_MANGLING, AC_F77_NAME_MANGLING, AC_F77_WRAPPERS)
(AC_F77_FUNC): Move to...
* lib/autoconf/fortran.m4: here, new file.
2001-08-01 21:50:48 +08:00
|
|
|
$(top_srcdir)/lib/autoconf/c.m4 \
|
|
|
|
$(top_srcdir)/lib/autoconf/fortran.m4 \
|
2001-08-01 21:46:22 +08:00
|
|
|
$(top_srcdir)/lib/autoconf/headers.m4 \
|
2001-08-22 14:24:46 +08:00
|
|
|
$(top_srcdir)/lib/autoconf/libs.m4 \
|
2001-08-01 21:46:22 +08:00
|
|
|
$(top_srcdir)/lib/autoconf/types.m4
|
Move all the language dependent macros into aclang.m4.
* aclang.m4: New file.
* autoconf.m4: Include it.
* autoheader.m4: Likewise.
* autoupdate.m4: Likewise.
* Makefile.am: Adjust.
* test/Makefile.am: Likewise.
* acgeneral.m4 (AC_LANG_CASE,AC_LANG_SAVE, _AC_LANG_DISPATCH,
AC_LANG, _AC_LANG_CURRENT, AC_LANG_SOURCE, AC_LANG_PROGRAM,
AC_LANG_CALL, AC_LANG(C), AC_LANG_SOURCE(C), AC_LANG_PROGRAM(C),
AC_LANG_CALL(C), AC_LANG(C++), AC_LANG_SOURCE(C++),
AC_LANG_PROGRAM(C++), AC_LANG_CALL(C++), AC_LANG(FORTRAN77),
AC_LANG_SOURCE(FORTRAN77), AC_LANG_PROGRAM(FORTRAN77),
AC_LANG_CALL(FORTRAN77): Move to...
* aclang.m4: here.
* acspecific.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_F77,
AC_PROG_CC_WORKS, AC_PROG_CXX_WORKS, AC_PROG_F77_WORKS,
AC_PROG_CC_GNU, AC_PROG_CXX_GNU, AC_PROG_F77_GNU, AC_PROG_CC_G,
AC_PROG_CXX_G, AC_PROG_F77_G, AC_PROG_GCC_TRADITIONAL,
AC_PROG_CC_C_O, AC_PROG_F77_C_O, AC_PROG_CC_STDC, AC_PROG_CPP,
AC_PROG_CXXCPP, AC_REQUIRE_CPP, AC_PROG_LEX, AC_TYPE_MODE_T,
AC_C_CROSS, AC_C_CHAR_UNSIGNED, AC_C_LONG_DOUBLE, AC_C_BIGENDIAN,
AC_C_INLINE, AC_C_CONST, AC_C_VOLATILE, AC_C_STRINGIZE,
AC_C_PROTOTYPES, AC_F77_LIBRARY_LDFLAGS, AC_F77_NAME_MANGLING,
AC_F77_WRAPPERS): Move to...
* aclang.m4: here.
2000-03-27 20:26:33 +08:00
|
|
|
|
2001-08-22 14:24:46 +08:00
|
|
|
$(SUITE_GENERATED): mktests.sh $(MACRO_FILES)
|
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
|
|
|
cd $(srcdir) && ./mktests.sh $(MACRO_FILES)
|
|
|
|
|
The use of `dumpstat' revealed that `len' was used although it
should not. m4_text_wrap was using it, but in the Autoconf world
where it is legal. Hence (i) test M4sh in its own world, not
Autoconf's, and (ii), ahem, fix the bug :)
* lib/autotest/general.m4: Be sure the set good quotes, as tracing
does not like `' instead of [].
(AT_INIT): Forbid `^_?AT_'.
And don't output such tokens.
* tests/Makefile.am (CLEANFILES): Add `script', `script.s4g',
`script.as', and `autom4te.cache'.
Remove `empty' and `macro' which are no longer used.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): New.
* tests/m4sugar.at: Use it.
* lib/m4sugar/m4sugar.m4: Use `m4_len' not `len'.
2001-08-07 15:56:40 +08:00
|
|
|
CLEANFILES = \
|
|
|
|
debug-*.sh state-* at-* stderr stdout \
|
|
|
|
script.s4g script.as script \
|
|
|
|
configure configure.in configure.ac config.status config.cache \
|
|
|
|
config.log config.h.in config.hin config.h \
|
|
|
|
config.guess config.sub install-sh \
|
|
|
|
expr \
|
|
|
|
libtool ltconfig ltmain.sh
|
|
|
|
|
2001-08-20 22:45:49 +08:00
|
|
|
DISTCLEANFILES = atconfig atlocal testsuite testsuite.log
|
2001-01-12 17:39:26 +08:00
|
|
|
|
|
|
|
|
|
|
|
## ------------------ ##
|
|
|
|
## Maintainer rules. ##
|
|
|
|
## ------------------ ##
|
|
|
|
|
|
|
|
## maintainer-check ##
|
|
|
|
|
|
|
|
maintainer-check: maintainer-check-posix maintainer-check-c++
|
|
|
|
|
|
|
|
# The hairy heredoc is more robust than using echo.
|
|
|
|
expr:
|
|
|
|
echo '#! $(SHELL)' >expr
|
|
|
|
echo 'result=`@EXPR@ "$$@"`' >>expr
|
|
|
|
echo 'estatus=$$?' >>expr
|
|
|
|
echo 'cat <<EOF' >>expr
|
|
|
|
echo '$${result:-0}' >>expr
|
|
|
|
echo 'EOF' >>expr
|
|
|
|
echo 'exit $$estatus' >>expr
|
|
|
|
chmod +x expr
|
|
|
|
|
|
|
|
# Try the test suite with more severe environments.
|
|
|
|
maintainer-check-posix: expr
|
|
|
|
POSIXLY_CORRECTLY=yes make check
|
|
|
|
rm expr
|
|
|
|
|
|
|
|
# Try using G++ as a C compiler.
|
|
|
|
maintainer-check-c++:
|
|
|
|
CC=g++ make check
|
2001-08-15 18:07:34 +08:00
|
|
|
|
|
|
|
clean-local:
|
2001-08-20 22:46:02 +08:00
|
|
|
-rm -rf autom4te.cache builddir inner
|