Use sed 1q, not `head -n 1'.
[platform/upstream/automake.git] / tests / libobj.test
1 #!/bin/sh
2
3 # Test for bug reported by Jim Meyering:
4 # automake-0.29 didn't handle this line properly.
5 #   LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
6
7 . $srcdir/defs || exit 1
8
9 cat > configure.in << 'END'
10 AC_INIT
11 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
12 AC_PROG_CC
13 AC_PROG_RANLIB
14 LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
15 AC_OUTPUT(Makefile)
16 END
17
18 cat > Makefile.am << 'END'
19 noinst_LIBRARIES = libtu.a
20 libtu_a_SOURCES =
21 libtu_a_LIBADD = @LIBOBJS@
22 END
23
24 : > fsusage.c
25 : > mountlist.c
26
27 $ACLOCAL || exit 1
28 $AUTOMAKE