tests: fix a timestamp-related spurious failures
[automake.git] / tests / ldadd.test
blob7f4fce89a7e9c580bd20c2482b952984f98b72a7
1 #! /bin/sh
2 # Copyright (C) 1997, 1999, 2000, 2001, 2002, 2010 Free Software
3 # Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Check to make sure incorrect LDADD usage is diagnosed.
20 required=libtool
21 . ./defs || Exit 1
23 set -e
25 cat >> configure.in << 'END'
26 AC_PROG_CC
27 AC_PROG_LIBTOOL
28 AC_SUBST([LTLIBOBJS], [q.lo])
29 AC_OUTPUT
30 END
32 cat > Makefile.am << 'END'
33 lib_LTLIBRARIES = libtu.la
34 libtu_la_SOURCES = foo.c
35 libtu_la_LDADD = @LTLIBOBJS@
36 END
38 : > ltconfig
39 : > ltmain.sh
40 : > config.guess
41 : > config.sub
42 : > q.c
44 $ACLOCAL || Exit 1
45 AUTOMAKE_fails
46 grep LDADD stderr || Exit 1
47 Exit 0