Reword the copyright notices to match what's suggested in GPLv3.
[automake/plouj.git] / tests / depcomp2.test
blobf503e78545cedebd12d288162edc9e7fba0e5c50
1 #! /bin/sh
2 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test to make sure that depcomp is not used when it's not installed
18 # From Pavel Roskin.
20 required=gcc
21 . ./defs || exit 1
23 cat > configure.in << 'END'
24 AC_INIT(subdir/foo.c)
25 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
26 AC_PROG_CC
27 AC_OUTPUT(Makefile subdir/Makefile)
28 END
30 cat > Makefile.am << 'END'
31 SUBDIRS = subdir
32 END
34 rm -f depcomp
35 mkdir subdir
37 cat > subdir/Makefile.in << 'END'
38 foo:
39 $(CC) -o foo foo.c
40 END
42 : > subdir/foo.c
44 # Ignore user CFLAGS.
45 CFLAGS=
46 export CFLAGS
48 $ACLOCAL || exit 1
49 $AUTOMAKE --add-missing || exit 1
50 $AUTOCONF || exit 1
51 ./configure CC='gcc' 2>error.log
52 test -z "`cat error.log`"