]> sourceware.org Git - automake.git/commitdiff
Report from Robert Boehne:
authorTom Tromey <tromey@redhat.com>
Sun, 13 May 2001 23:45:32 +0000 (23:45 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 13 May 2001 23:45:32 +0000 (23:45 +0000)
* tests/Makefile.am (TESTS): Added depend2.test.
* tests/depend2.test: New file.

ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/depend2.test [new file with mode: 0755]

index cf33c6c21a8e0e5407aea2e70c8bd3d4718a9639..83c49d1095b3669bc48256d836c4c59f0756ef75 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-13  Tom Tromey  <tromey@redhat.com>
+
+       Report from Robert Boehne:
+       * tests/Makefile.am (TESTS): Added depend2.test.
+       * tests/depend2.test: New file.
+
 2001-05-13  James Henstridge  <james@daa.com.au>
 
        * m4/python.m4 (AM_PATH_PYTHON): Added more names for python.
index 3d3ee783d8b6f26ccdc37a59927f86baf9611dd5..fdcf68cc5340f8c7e6ba25058392914b60493244 100644 (file)
@@ -94,6 +94,7 @@ depacl.test \
 depacl2.test \
 depcomp.test \
 depend.test \
+depend2.test \
 depend3.test \
 discover.test \
 distcommon.test \
index 2dc0ec00e43cac766166a1f0e047d5579a213316..2ad77d57eee56bd474219c313ebb47ff7301fe62 100644 (file)
@@ -166,6 +166,7 @@ depacl.test \
 depacl2.test \
 depcomp.test \
 depend.test \
+depend2.test \
 depend3.test \
 discover.test \
 distcommon.test \
diff --git a/tests/depend2.test b/tests/depend2.test
new file mode 100755 (executable)
index 0000000..e737a4c
--- /dev/null
@@ -0,0 +1,48 @@
+#! /bin/sh
+
+# Test to make sure dependency tracking works with
+# --disable-dependency-tracking.
+# Report from Robert Boehne
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(hello.c)
+AM_INIT_AUTOMAKE(hello,0.23)
+AC_PROG_CC
+AC_OUTPUT(Makefile)
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = hello
+END
+
+cat > hello.h << 'END'
+#include <stdio.h>
+END
+
+cat > hello.c << 'END'
+#include "hello.h"
+int
+main (int argc, char *argv[])
+{
+   printf ("yeah, yeah\n");
+   return 0;
+}
+END
+
+# Fail gracefully if no autoconf.
+$needs_autoconf
+
+# Likewise for gcc.
+(gcc -v) > /dev/null 2>&1 || exit 77
+
+set -e
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE -a
+
+CC='gcc' ./configure --disable-dependency-tracking
+
+$MAKE
This page took 0.036098 seconds and 5 git commands to generate.