Tag
Hash :
28084991
Author :
Date :
2001-07-21T23:46:10
* tests/libtool2.test: Check for libtoolize.
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 34 35 36 37 38 39 40 41
#! /bin/sh
# Make sure libtool clean targets exist.
# Report from Eric Magnien.
. $srcdir/defs || exit 1
# This test requires libtoolize.
libtoolize --version || exit 77
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(mypackage,0.1)
AC_PROG_CC
AC_PROG_LIBTOOL
AC_CONFIG_FILES([
sub/Makefile
Makefile
])
AC_OUTPUT
END
cat > Makefile.am << 'END'
SUBDIR = subdir
lib_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = foo.c
END
mkdir sub
cat > sub/Makefile.am << 'END'
lib_LTLIBRARIES = libfoo.la
libfoo_la_SOURCES = foo.c
END
$ACLOCAL || exit 1
: > ltmain.sh
$AUTOMAKE -a || exit 1
grep 'rm -f .*\.lo' sub/Makefile.in