Implement conditional AC_CONFIG_FILES: AM_COND_IF.
[automake/ericb.git] / tests / ltdeps.test
blobd8c5358caa92e4f45e21dba992221d5ae1e91e08
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 libtool library dependencies are correct.
18 # Report from Lars J. Aas.
19 required=libtool
20 . ./defs || exit 1
22 cat >> configure.in << 'END'
23 AC_PROG_LIBTOOL
24 AC_PROG_CXX
25 AM_CONDITIONAL(HACKING_COMPACT_BUILD, whatever)
26 END
28 cat > Makefile.am << 'END'
29 RegularSources = \
30 SbBSPTree.cpp \
31 SbBox2f.cpp \
32 SbBox2s.cpp
34 LinkHackSources = \
35 all.cpp
37 if HACKING_COMPACT_BUILD
38 BuildSources = $(LinkHackSources)
39 else
40 BuildSources = $(RegularSources)
41 endif
43 noinst_LTLIBRARIES = libbase.la
44 libbase_la_SOURCES = $(BuildSources)
46 EXTRA_libbase_la_SOURCES = \
47 $(RegularSources) $(LinkHackSources)
48 END
50 : > ltconfig
51 : > ltmain.sh
52 : > config.guess
53 : > config.sub
55 $ACLOCAL || exit 1
56 $AUTOMAKE || exit 1
58 grep 'OBJECTS =$' Makefile.in && exit 1
59 exit 0