2 # Copyright (C) 2002, 2003, 2004, 2006, 2011 Free Software Foundation,
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)
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 # Check subpackage handling.
25 cat >m
4/foo.
m4 <<'EOF'
32 cat >>configure.
in <<'END'
33 AC_CONFIG_SUBDIRS([lib])
37 cat >Makefile.am
<<'EOF'
39 # Yes, This program is named LDADD. So what?
41 LDADD_LDADD = lib/liblib.a
43 # It's ok to override distdir.
46 # Make sure $(distdir) and $(top_distdir) work as expected.
48 test -f $(distdir)/LDADD.c
49 test -f $(top_distdir)/LDADD.c
51 ACLOCAL_AMFLAGS = -I m4
65 cat >lib
/configure.ac
<<'EOF'
70 AC_CONFIG_HEADERS([config.h:config.hin])
71 AC_CONFIG_FILES([Makefile])
75 cat >lib
/Makefile.am
<<'EOF'
76 noinst_LIBRARIES = liblib.a
77 liblib_a_SOURCES = src/x.c
80 test ! -f $(distdir)/LDADD.c
81 test -f $(top_distdir)/LDADD.c
82 test -f $(distdir)/src/x.c
83 test ! -f $(top_distdir)/src/x.c
85 ACLOCAL_AMFLAGS = -I ../m4
88 cat >lib
/src
/x.c
<<'EOF'
98 $AUTOMAKE -Wno-override
102 $FGREP 'm4_include([../m4/foo.m4])' aclocal.
m4
105 $AUTOMAKE -Wno-override --add-missing
111 test ! -d subpack-1
# Make sure distcheck cleans up after itself.
112 test -f subpack-1.
tar.gz