File: ldadd.test

package info (click to toggle)
automake 1%3A1.4-p4-1.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,312 kB
  • ctags: 21
  • sloc: perl: 5,516; sh: 5,218; ansic: 404; makefile: 196
file content (33 lines) | stat: -rwxr-xr-x 519 bytes parent folder | download | duplicates (8)
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
#! /bin/sh

# Check to make sure incorrect LDADD usage is diagnosed.

. $srcdir/defs || exit 1

cat > configure.in << 'END'
PACKAGE=nonesuch
VERSION=nonesuch
AC_PROG_CC
AC_ARG_PROGRAM
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile)
LTLIBOBJS="$LTLIBOBJS q.o"
LIBOBJS="$LIBOBJS q.o"
AC_SUBST(LTLIBOBJS)
END

cat > Makefile.am << 'END'
lib_LTLIBRARIES = libtu.la
libtu_la_SOURCES = foo.c
libtu_la_LDADD = @LTLIBOBJS@
END

: > ltconfig
: > ltmain.sh
: > config.guess
: > config.sub
: > q.c

$AUTOMAKE && exit 1
exit 0