TIVI-153: Adding automake14 as dep for iputils package
[profile/ivi/automake14.git] / tests / ldadd.test
1 #! /bin/sh
2
3 # Check to make sure incorrect LDADD usage is diagnosed.
4
5 . $srcdir/defs || exit 1
6
7 cat > configure.in << 'END'
8 PACKAGE=nonesuch
9 VERSION=nonesuch
10 AC_PROG_CC
11 AC_ARG_PROGRAM
12 AC_PROG_INSTALL
13 AM_PROG_LIBTOOL
14 AC_OUTPUT(Makefile)
15 LTLIBOBJS="$LTLIBOBJS q.o"
16 LIBOBJS="$LIBOBJS q.o"
17 AC_SUBST(LTLIBOBJS)
18 END
19
20 cat > Makefile.am << 'END'
21 lib_LTLIBRARIES = libtu.la
22 libtu_la_SOURCES = foo.c
23 libtu_la_LDADD = @LTLIBOBJS@
24 END
25
26 : > ltconfig
27 : > ltmain.sh
28 : > config.guess
29 : > config.sub
30 : > q.c
31
32 $AUTOMAKE && exit 1
33 exit 0