source: trunk/essentials/sys-devel/automake-1.4/tests/cond7.test

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 432 bytes
Line 
1#! /bin/sh
2
3# Test for an odd conditional bug. Report from Pavel Roskin.
4
5. $srcdir/defs || exit 1
6
7cat > configure.in << 'END'
8AC_INIT()
9AM_INIT_AUTOMAKE(test,0.1)
10compat=yes
11AM_CONDITIONAL(Compatible, test x$compat = xyes)
12AC_OUTPUT(Makefile)
13END
14
15cat > Makefile.am << 'END'
16AUTOMAKE_OPTIONS=foreign
17if Compatible
18abdir = none
19ab_HEADERS = \
20 minus.h
21endif
22END
23
24$AUTOMAKE || exit 1
25grep '002' Makefile.in && exit 1
26exit 0
Note: See TracBrowser for help on using the repository browser.