source:
trunk/essentials/sys-devel/automake-1.4/tests/cond.test@
3253
| Last change on this file since 3253 was 3124, checked in by , 19 years ago | |
|---|---|
| File size: 335 bytes | |
| Line | |
|---|---|
| 1 | #! /bin/sh |
| 2 | |
| 3 | # Check basic use of conditionals. |
| 4 | |
| 5 | . $srcdir/defs || exit 1 |
| 6 | |
| 7 | cat > configure.in << 'END' |
| 8 | AM_INIT_AUTOMAKE(nonesuch, nonesuch) |
| 9 | AM_CONDITIONAL(TEST, true) |
| 10 | AC_OUTPUT(Makefile) |
| 11 | END |
| 12 | |
| 13 | cat > Makefile.am << 'END' |
| 14 | if TEST |
| 15 | VAR = true |
| 16 | else |
| 17 | VAR = false |
| 18 | endif |
| 19 | END |
| 20 | |
| 21 | $AUTOMAKE || exit 1 |
| 22 | |
| 23 | grep '^@TEST_TRUE@' Makefile.in || exit 1 |
| 24 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.
