docs: deprecate .log -> .html conversion by parallel-tests
[automake.git] / tests / depend2.test
blob57d87d76353032e04076da77ec1ec283bfab971f
1 #! /bin/sh
2 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2010 Free Software
3 # Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # Test to make sure dependency tracking works with
19 # --disable-dependency-tracking.
20 # Report from Robert Boehne
22 required=gcc
23 . ./defs || Exit 1
25 set -e
27 cat >> configure.in << 'END'
28 AC_PROG_CC
29 AC_OUTPUT
30 END
32 cat > Makefile.am << 'END'
33 bin_PROGRAMS = hello
34 END
36 cat > hello.h << 'END'
37 #include <stdio.h>
38 END
40 cat > hello.c << 'END'
41 #include "hello.h"
42 int
43 main (int argc, char *argv[])
45 printf ("yeah, yeah\n");
46 return 0;
48 END
50 $ACLOCAL
51 $AUTOCONF
52 $AUTOMAKE -a
54 # Ignore user CFLAGS.
55 CFLAGS=
56 export CFLAGS
58 ./configure --disable-dependency-tracking
60 $MAKE