Hash :
76d8a53e
Author :
Date :
2010-06-25T17:19:44
Tests: remove useless repetitions of `foreign' automake option. * tests/multlib.test (configure.in): Remove useless use of `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is already in $AUTOMAKE by default, so no point in repeating it). * tests/subobj10.test: Likewise. * tests/subobj9.test: Likewise. * tests/lex3.test (Makefile.am): Similarly, remove useless use of `foreign' option in AUTOMAKE_OPTIONS. * tests/lex5.test: Likewise. * tests/pr279.test: Likewise. * tests/pr279-2.test: Likewise. * tests/specflg3.test: Likewise. * tests/target-cflags.test: Likewise. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
#! /bin/sh
# Copyright (C) 1999, 2001, 2002, 2004, 2010 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, see <http://www.gnu.org/licenses/>.
# Test exe-specific flags with dependency tracking.
. ./defs || Exit 1
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(test, 0.1)
AC_PROG_CC
AM_PROG_CC_C_O
AC_OUTPUT(Makefile)
END
cat > Makefile.am << 'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.c
foo_CFLAGS = -DFOO
END
: > compile
$ACLOCAL || Exit 1
$AUTOMAKE || Exit 1
$FGREP -e '-o foo-foo' Makefile.in || Exit 1
$FGREP 'foo.o.o' Makefile.in && Exit 1
$FGREP 'foo.$(OBJEXT).$(OBJEXT)' Makefile.in && Exit 1
$FGREP '$(foo_CFLAGS)' Makefile.in || Exit 1
Exit 0