Fix for PR automake/322:
[platform/upstream/automake.git] / tests / libtool2.test
1 #! /bin/sh
2
3 # Make sure libtool clean targets exist.
4 # Report from Eric Magnien.
5 required=libtool
6 . $srcdir/defs || exit 1
7
8 # This test requires libtoolize.
9 libtoolize --version || exit 77
10
11 cat > configure.in << 'END'
12 AC_INIT
13 AM_INIT_AUTOMAKE(mypackage,0.1)
14
15 AC_PROG_CC
16 AC_PROG_LIBTOOL
17
18 AC_CONFIG_FILES([
19   sub/Makefile
20   Makefile
21 ])
22 AC_OUTPUT
23 END
24
25 cat > Makefile.am << 'END'
26 SUBDIR = subdir
27 lib_LTLIBRARIES = libfoo.la
28 libfoo_la_SOURCES = foo.c
29 END
30
31 mkdir sub
32 cat > sub/Makefile.am << 'END'
33 lib_LTLIBRARIES = libfoo.la
34 libfoo_la_SOURCES = foo.c
35 END
36
37 $ACLOCAL || exit 1
38 : > ltmain.sh
39 $AUTOMAKE -a || exit 1
40
41 grep 'rm -f .*\.lo' sub/Makefile.in