summaryrefslogtreecommitdiff
path: root/tests/libobj2.test
blob: 972cc0d95aec9bef9d55ba16bd738f8b3b863840 (plain)
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
#! /bin/sh

# Test to make sure LIBOBJS works in subdirs.
# Bug from Josh MacDonald.

. $srcdir/defs || exit 1

cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_PROG_CC
AC_PROG_RANLIB
AC_LIBOBJ([fsusage])
AC_OUTPUT(subdir/Makefile)
END

mkdir subdir

cat > subdir/Makefile.am << 'END'
noinst_LIBRARIES = libtu.a
libtu_a_SOURCES =
libtu_a_LIBADD = @LIBOBJS@
END

: > subdir/fsusage.c

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

grep 'fsusage\.c' subdir/Makefile.in