diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2004-08-01 22:18:34 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2004-08-01 22:18:34 +0000 |
commit | 45dc04c9ea181789468c1204f6978bbe7b1ea517 (patch) | |
tree | 8b9dd82df9886c97b86d48c365346a7fb1a97207 /tests | |
parent | 9cdfca12bda4511fe66faf3b9c1b89b2c5e7fad3 (diff) | |
download | automake-45dc04c9ea181789468c1204f6978bbe7b1ea517.tar.gz |
* automake.in (AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): Replace by ...
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_SYSTEM): ... these.
(scan_autoconf_traces): Scan for the latter three macros instead of
the former two.
(make_paragraphs): Adjust definitions of %BUILD%, %HOST%, and %TARGET%.
* tests/hosts.test: New file.
* tests/Makefile.am (TESTS): Add hosts.test.
Report and test case from Norman Gray.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/Makefile.in | 2 | ||||
-rwxr-xr-x | tests/hosts.test | 59 |
3 files changed, 62 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 12fabd94a..eef292bc8 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -245,6 +245,7 @@ gnits2.test \ gnits3.test \ header.test \ help.test \ +hosts.test \ implicit.test \ include.test \ include2.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index c859c8b42..cc4c8bf2f 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -33,6 +33,7 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ subdir = tests DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(srcdir)/aclocal.in $(srcdir)/automake.in $(srcdir)/defs.in @@ -361,6 +362,7 @@ gnits2.test \ gnits3.test \ header.test \ help.test \ +hosts.test \ implicit.test \ include.test \ include2.test \ diff --git a/tests/hosts.test b/tests/hosts.test new file mode 100755 index 000000000..46b3ebd20 --- /dev/null +++ b/tests/hosts.test @@ -0,0 +1,59 @@ +#! /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. + +# Test to make sure automake correctly recognizes presence of +# AC_CANONICAL_(BUILD|HOST|SYSTEM|TARGET), and creates config.* in all +# those cases. +# From Norman Gray. + +. ./defs || exit 1 + +set -e + +: >Makefile.am + +$ACLOCAL +$AUTOMAKE --add-missing +test ! -f config.guess +test ! -f config.sub + +# Test all four of the AC_CANONICAL_* targets, including _SYSTEM, which is +# supported but deprecated by autoconf. +for macro in AC_CANONICAL_BUILD AC_CANONICAL_HOST \ + AC_CANONICAL_SYSTEM AC_CANONICAL_TARGET +do + rm -rf autom4te.cache config.sub config.guess + + cat >configure.in<<EOF +AC_INIT([hosts], [1.0]) +$macro +AM_INIT_AUTOMAKE +AC_CONFIG_FILES([Makefile]) +EOF + + $ACLOCAL + $AUTOMAKE --add-missing + + # Show the files which were installed + ls + + test -f config.guess + test -f config.sub +done |