tests: make 'lzip.test' executable
[automake.git] / tests / libobj8.test
blob206bca6e6ff330a63db58dd650a8bf8ac80c62c4
1 #! /bin/sh
2 # Copyright (C) 1998, 2000, 2001, 2002, 2006 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 2, 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 `_.c' dependencies are generated for LIBOBJS
18 # objects.
20 . ./defs || Exit 1
22 cat > configure.in << 'END'
23 AC_INIT
24 AM_INIT_AUTOMAKE(nonesuch, nonesuch)
25 AC_PROG_CC
26 AC_PROG_CC_STDC
27 AC_PROG_RANLIB
28 AC_REPLACE_FUNCS(basename dirname strsignal)
29 AM_C_PROTOTYPES
30 AC_OUTPUT(Makefile)
31 END
33 cat > Makefile.am << 'END'
34 AUTOMAKE_OPTIONS = ansi2knr
35 noinst_LIBRARIES = libtu.a
36 libtu_a_SOURCES =
37 libtu_a_LIBADD = @LIBOBJS@
38 END
40 : > basename.c
41 : > dirname.c
42 : > strsignal.c
44 : > ansi2knr.1
45 : > ansi2knr.c
47 $ACLOCAL || Exit 1
48 $AUTOMAKE -Wno-obsolete || Exit 1
50 grep 'strsignal_.c:' Makefile.in