mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
4f7835e642
Fix the bugs discovered. * acgeneral.m4 (AC_CANONICAL_THING): Quote the AC_REQUIRE([AC_CANONICAL_HOST]). Bug triggered by the use of AC_CANONICAL_BUILD alone in configure.in. Also, quote the arguments of macros (eg, ifelse([$1]...), not ifelse($1...)). (m4_case): New macro. (AC_LINKER_OPTION): Don't clash with user's name space (s/i/ac_link_opt). (AC_LIST_MEMBER_OF). You mean AC_FATAL, not AC_MSG_ERROR. Quote properly the argument. dnl out the empty lines that result from m4 pure code. Don't pollute the user name space. Use AC_SHELL_IFELSE. (AC_F77_NAME_MANGLING): Don't use `test -o'. There are still name space problems. * tests/Makefile.am (macros.m4): Also fetch the macros from acgeneral.m4.
52 lines
1.6 KiB
Makefile
52 lines
1.6 KiB
Makefile
## Process this file with automake to create Makefile.in.
|
|
|
|
## Makefile for Autoconf testsuite.
|
|
## Copyright (C) 2000 Free Software Foundation, Inc.
|
|
|
|
## 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
|
|
|
|
SUITE = syntax.m4
|
|
|
|
# We don't actually distribute the testsuite, since one only
|
|
# needs m4 to build it, m4 being required anyway to install Autoconf.
|
|
EXTRA_DIST = atgeneral.m4 suite.m4 macros.m4 $(SUITE)
|
|
|
|
PERL = perl
|
|
|
|
all-local: atconfig testsuite macros.m4
|
|
|
|
check-local: atconfig testsuite macros.m4
|
|
$(SHELL) testsuite
|
|
|
|
testsuite: atgeneral.m4 suite.m4 macros.m4 $(SUITE)
|
|
m4 -I $(srcdir) atgeneral.m4 suite.m4 | cat -s > $@-tmp
|
|
chmod +x $@-tmp
|
|
mv $@-tmp $@
|
|
|
|
macros.m4: $(top_srcdir)/acspecific.m4 $(srcdir)/Makefile.am
|
|
cat $(top_srcdir)/acgeneral.m4 $(top_srcdir)/acspecific.m4 | \
|
|
sed -ne 's/^AC_DEFUN(\[*\([^],]*\).*/\1/p' | \
|
|
sort >macros
|
|
for macro in `cat macros`; do \
|
|
echo "TEST_MACRO([$$macro])" >>$@; \
|
|
done
|
|
rm macros
|
|
|
|
clean-local:
|
|
rm -f debug-*.sh
|