summaryrefslogtreecommitdiff
path: root/tests/acloca16.test
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2004-04-15 07:51:47 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2004-04-15 07:51:47 +0000
commit0606a17988f33cd395122665bc4b31727bf9826a (patch)
tree0fb7d8f7b5dc1234b01762ff3af3eaf281c68f3b /tests/acloca16.test
parent35d2d06757070798ca7c9de66042d6f09623a5e5 (diff)
downloadautomake-0606a17988f33cd395122665bc4b31727bf9826a.tar.gz
* aclocal.in (%map_traced_defs): New variable.
(scan_m4_files): Normalize filenames. (trace_used_macros): Trace for AC_DEFUN and AU_DEFUN, also ask for the filename and the first argument. Populate %map_traced_defs. (write_aclocal): Use $map_traced_defs to filter out unused definitions. * tests/acloca15.test: New file. * tests/Makefile.am (TESTS): Add acloca15.test.
Diffstat (limited to 'tests/acloca16.test')
-rwxr-xr-xtests/acloca16.test40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/acloca16.test b/tests/acloca16.test
new file mode 100755
index 000000000..cc1e04403
--- /dev/null
+++ b/tests/acloca16.test
@@ -0,0 +1,40 @@
+#! /bin/sh
+# Copyright (C) 2004 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake 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.
+#
+# GNU Automake 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 Automake; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+# Make sure aclocal does not include definitions that are not actually
+# evaluated.
+
+. ./defs || exit 1
+
+set -e
+
+cat >> configure.in << 'END'
+AC_SUBST([POM])
+END
+
+mkdir m4
+cat >m4/some.m4 <<'EOF'
+AC_DEFUN([AM_SOME_MACRO],
+[AC_DEFUN([AC_SUBST], [GREPME])])
+EOF
+
+$ACLOCAL -I m4
+grep m4/some.m4 aclocal.m4 && exit 1
+: