2 # Copyright (C) 2009, 2010 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 of the License, or
7 # (at your option) 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 # Ensure the right condition is listed after `else' and `endif'.
23 cat >> configure.in << 'END'
24 AM_CONDITIONAL([USE_A],[test x = y])
25 AM_CONDITIONAL([USE_B],[test x = z])
31 cat > Makefile.am << 'END'
37 grep 'endif.*incompatible with current conditional' stderr
39 cat > Makefile.am << 'END'
45 grep 'endif.*incompatible with current conditional' stderr
47 cat > Makefile.am << 'END'
54 grep 'endif.*incompatible with current conditional' stderr
56 cat > Makefile.am << 'END'
64 cat > Makefile.am << 'END'
73 grep 'endif.*incompatible with current conditional' stderr
75 cat > Makefile.am << 'END'
82 grep 'else.*incompatible with current conditional' stderr
84 cat > Makefile.am << 'END'
91 grep 'else.*incompatible with current conditional' stderr
93 cat > Makefile.am << 'END'
102 grep 'else.*incompatible with current conditional' stderr
104 cat > Makefile.am << 'END'