uniquify files passed to etags
[automake.git] / tests / libobj2.test
blobfa9b889d684b88083efb9a0365d0c263fa30f582
1 #! /bin/sh
3 # Test to make sure LIBOBJS works in subdirs.
4 # Bug from Josh MacDonald.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 PACKAGE=nonesuch
10 VERSION=nonesuch
11 AC_PROG_CC
12 AC_ARG_PROGRAM
13 AC_PROG_INSTALL
14 AC_PROG_RANLIB
15 LIBOBJS="$LIBOBJS fsusage.o"
16 AC_OUTPUT(subdir/Makefile)
17 END
19 mkdir subdir
21 cat > subdir/Makefile.am << 'END'
22 noinst_LIBRARIES = libtu.a
23 libtu_a_SOURCES =
24 libtu_a_LIBADD = @LIBOBJS@
25 END
27 : > subdir/fsusage.c
29 $AUTOMAKE || exit 1
31 grep 'fsusage\.c' subdir/Makefile.in