2 # Copyright (C) 1997, 1998, 1999, 2001, 2002, 2003, 2010 Free Software
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 # Test sources listed in conditional.
19 # Report from Rob Savoye <rob@cygnus.com>, and Lars J. Aas.
25 cat > configure.
in << 'END'
27 AM_INIT_AUTOMAKE
(nonesuch
, nonesuch
)
29 AM_CONDITIONAL
(ONE
, true
)
30 AM_CONDITIONAL
(TWO
, false
)
31 AM_CONDITIONAL
(THREE
, maybe
)
35 cat > Makefile.am
<< 'END'
56 targ_SOURCES
= $
(SONE
) $
(STWO
) $
(STHREE
)
64 /[oO][bB][jJ][eE][cC][tT].* =/ {
72 }' Makefile.
in >produced
74 cat >expected
<< 'EOF'
75 @ONE_TRUE@am__objects_1
= one.$
(OBJEXT
)
76 @TWO_TRUE@am__objects_2
= two.$
(OBJEXT
)
77 @THREE_TRUE@am__objects_3
= three.$
(OBJEXT
)
78 am_targ_OBJECTS
= $
(am__objects_1
) $
(am__objects_2
) $
(am__objects_3
)
79 targ_OBJECTS
= $
(am_targ_OBJECTS
)
82 diff expected produced