2 # Copyright (C) 2009-2012 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'.
21 cat >> configure.ac << 'END'
22 AM_CONDITIONAL([USE_A], [test x = y])
23 AM_CONDITIONAL([USE_B], [test x = z])
27 notcompat="incompatible with current conditional"
31 cat > Makefile.am << 'END'
37 grep "^Makefile\\.am:2:.*endif.*!USE_A.*$notcompat.*[^!]USE_A" stderr
39 cat > Makefile.am << 'END'
45 grep "^Makefile\\.am:2:.*endif.*[^!]USE_B.*$notcompat.*[^!]USE_A" stderr
47 cat > Makefile.am << 'END'
54 grep "^Makefile\\.am:3:.*endif.*[^!]USE_A.*$notcompat.*USE_A" stderr
56 cat > Makefile.am << 'END'
64 cat > Makefile.am << 'END'
73 grep "^Makefile\\.am:4:.*endif.*!USE_A.*$notcompat.*USE_B" stderr
75 cat > Makefile.am << 'END'
82 grep "^Makefile\\.am:2:.*else.*[^!]USE_A.*$notcompat.*[^!]USE_A" stderr
84 cat > Makefile.am << 'END'
92 cat > Makefile.am << 'END'
99 grep "^Makefile\\.am:2:.*else.*[^!]USE_B.*$notcompat.*[^!]USE_A" stderr
101 cat > Makefile.am << 'END'
110 grep "^Makefile\\.am:3:.*else.*[^!]USE_A.*$notcompat.*[^!]USE_B" stderr