]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* tests/discover.test: Use a full configure.in that calls AC_INIT.
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 12 Apr 2002 16:37:28 +0000 (16:37 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 12 Apr 2002 16:37:28 +0000 (16:37 +0000)
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.

ChangeLog
tests/discover.test
tests/ldadd.test
tests/ldflags.test
tests/seenc.test

index 307eba36082e7a1feefe47c572b272f91bca3d5d..57bd6f4efa28e653af57c29b4c6bea2e2ab74cfa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * 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.
+
 2002-04-12  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
index 35f05cdffd6daeac891175d5b035fda25acea918..37052b73c00012766dc4e57770171ade6855b600 100755 (executable)
@@ -4,11 +4,11 @@
 
 . $srcdir/defs || exit 1
 
-cat > configure.in << 'END'
+cat >> configure.in << 'END'
 AC_PROG_RANLIB
 AC_PROG_CC
-LIBOBJS="$LIBOBJS fsusage.o"
-AC_OUTPUT(Makefile)
+AC_LIBOBJ([fsusage])
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
@@ -20,5 +20,5 @@ END
 : > fsusage.c
 
 $ACLOCAL || exit 1
-$AUTOMAKE && exit 1
+$AUTOMAKE 2>&1 | fgrep fsusage.c || exit 1
 exit 0
index ff316770f094636aa455bea01f04c64c291115e2..4784f74bca495b12efd698aac01f25df61f70bf5 100755 (executable)
@@ -2,15 +2,14 @@
 
 # Check to make sure incorrect LDADD usage is diagnosed.
 
+required=libtool
 . $srcdir/defs || exit 1
 
-cat > configure.in << 'END'
+cat >> configure.in << 'END'
 AC_PROG_CC
 AC_PROG_LIBTOOL
-AC_OUTPUT(Makefile)
-LTLIBOBJS="$LTLIBOBJS q.o"
-LIBOBJS="$LIBOBJS q.o"
-AC_SUBST(LTLIBOBJS)
+AC_SUBST([LTLIBOBJS], [q.lo])
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
@@ -26,5 +25,5 @@ END
 : > q.c
 
 $ACLOCAL || exit 1
-$AUTOMAKE && exit 1
+$AUTOMAKE 2>&1 | grep LDADD || exit 1
 exit 0
index 47844623ab4d41ebb8eb02cab9229ecaf1400855..56c746f2be724123d05889d10d1c1ee8e6ea8948 100755 (executable)
@@ -5,16 +5,12 @@
 required=libtool
 . $srcdir/defs || exit 1
 
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(no, 0)
+cat >> configure.in << 'END'
 AC_PROG_CC
 AC_PROG_LIBTOOL
-AC_OUTPUT(Makefile)
-LTLIBOBJS="$LTLIBOBJS q.o"
-LIBOBJS="$LIBOBJS q.o"
-AC_SUBST(LTLIBOBJS)
+AC_SUBST([LTLIBOBJS], [q.o])
 AM_CONDITIONAL(USE_SWIG, :)
+AC_OUTPUT
 END
 
 cat > Makefile.am << 'END'
index 16ce89f82112be5a4fab1ced6421d28d4afb01d8..544b020291c93442b0254b6182c53bf71cf40e22 100755 (executable)
@@ -5,7 +5,9 @@
 . $srcdir/defs || exit 1
 
 cat >> configure.in << 'END'
-LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
+dnl AC_PROG_CC and AC_PROG_CXX missing on purpose
+AC_LIBOBJ([fsusage])
+AC_LIBOBJ([mountlist])
 END
 
 cat > Makefile.am << 'END'
@@ -18,5 +20,9 @@ END
 : > mountlist.c
 
 $ACLOCAL || exit 1
-$AUTOMAKE > out 2>&1 && exit 1
-exit 0
+# Use -Wno-error, because there are many error messages
+# output for this test, and we just want to make sure some of
+# them are about CC and CXX being undefined.
+$AUTOMAKE --Wno-error 2> err && exit 1
+fgrep CC err || exit 1
+fgrep CXX err || exit 1