2 # Copyright (C) 2004 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)
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 # Check for _DEPDENDENCIES definition with conditional _LDADD.
18 # Report from Elena A. Vengerova
24 cat >>configure.in <<'EOF'
25 AM_CONDITIONAL([TWO], test -n "$two")
30 cat >>Makefile.am <<'EOF'
33 bin_PROGRAMS = test1 test2
36 test1_LDADD = two.$(OBJEXT)
37 test2_LDADD = two.$(OBJEXT)
38 test2_DEPENDENCIES = $(test2_LDADD) somethingelse.a
40 test1_LDADD = one.$(OBJEXT)
41 test2_LDADD = three.$(OBJEXT)
44 test1_DEPENDENCIES = $(test1_LDADD) somethingelse.a
47 echo BEG: $(test1_DEPENDENCIES) :END
49 echo BEG: $(test2_DEPENDENCIES) :END
60 grep 'BEG: one.z somethingelse.a :END' out
62 grep 'BEG: three.z :END' out
66 grep 'BEG: two.z somethingelse.a :END' out
68 grep 'BEG: two.z somethingelse.a :END' out