Tag
Hash :
31d0f8bd
Author :
Date :
2002-04-12T16:37:28
* tests/discover.test: Use a full configure.in that calls AC_INIT. Use AC_LIBOBJ. Grep the error message. * test/ldadd.test: Don't use LIBOBJS. Use a full configure.in. Grep the error message. Require libtool. * tests/ldflags.test: Don't use LIBOBJS. * tests/seenc.test: Use AC_LIBOBJ, --Wno-error, and grep the error messages for CC and CXX.
#! /bin/sh
# Check to make sure incorrect LDADD usage is diagnosed.
required=libtool
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_LIBTOOL
AC_SUBST([LTLIBOBJS], [q.lo])
AC_OUTPUT
END
cat > Makefile.am << 'END'
lib_LTLIBRARIES = libtu.la
libtu_la_SOURCES = foo.c
libtu_la_LDADD = @LTLIBOBJS@
END
: > ltconfig
: > ltmain.sh
: > config.guess
: > config.sub
: > q.c
$ACLOCAL || exit 1
$AUTOMAKE 2>&1 | grep LDADD || exit 1
exit 0