* automake.texi (Macros): Document AM_PROG_AS.
[automake.git] / tests / cxxlibobj.test
blob1bbd0a6da35b03bac1dc8f7ae7f24008b72a6f68
1 #! /bin/sh
3 # Test to make sure LIBOBJS and C++ sources work right.
5 . $srcdir/defs || exit 1
7 cat >> configure.in << 'END'
8 AC_PROG_CXX
9 AC_PROG_CC
10 AC_REPLACE_FUNCS(strdup)
11 END
13 cat > Makefile.am << 'END'
14 sbin_PROGRAMS = anonymous
15 anonymous_SOURCES = doe.C jane.C
16 anonymous_LDADD = @LIBOBJS@
17 END
19 : > strdup.c
20 : > doe.C
21 : > jane.C
23 $ACLOCAL || exit 1
24 $AUTOMAKE || exit 1
26 grep CC Makefile.in