2 # Copyright (C) 2008, 2009 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)
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 # AM_DEFAULT_SOURCE_EXT
24 cat >> configure.
in << 'END'
27 AC_CONFIG_FILES
([sub
/Makefile sub
2/Makefile
])
28 AM_CONDITIONAL
([COND
], [:])
34 cat > Makefile.am
<< 'END'
39 cat > sub
/Makefile.am
<< 'END'
40 bin_PROGRAMS
= bar baz
41 AM_DEFAULT_SOURCE_EXT
= .cpp
44 cat > sub
2/Makefile.am
<< 'END'
47 AM_DEFAULT_SOURCE_EXT
= .foo .quux
57 int main
() { return 0; }
67 # Conditional AM_DEFAULT_SOURCE_EXT does not work yet :-(
68 # (this limitation could be lifted).
69 AUTOMAKE_fails
--add-missing
70 grep 'defined conditionally' stderr
72 sed '/^if/d; /^endif/d' sub
2/Makefile.am
> t
73 mv -f t sub
2/Makefile.am
75 # AM_DEFAULT_SOURCE_EXT can only assume one value
76 # (lifting this limitation is not such a good idea).
77 AUTOMAKE_fails
--add-missing
78 grep 'at most one value' stderr
80 sed 's/ \.quux//' sub
2/Makefile.am
> t
81 mv -f t sub
2/Makefile.am
83 $AUTOMAKE --add-missing