Tag
Hash :
a89149b0
Author :
Date :
2001-05-08T13:12:59
* automake.in ($IGNORE_PATTERN): Improve for multi-line matches. ($RULE_PATTERN): Use that from `&make_paragraphs'. ($MACRO_PATTERN): Just catch the name of a macro. ($BOGUS_MACRO_PATTERN): Remove. ($ASSIGNMENT_PATTERN): New. (&file_contents_internal, &make_paragraphs): Adjust. (¯o_define): Catch bad macro names. (&cond_stack_endif): Better error message. (&file_contents_internal): Don't remove backslashes in variable values. (¯o_define): Do it for `+=' user variables. (&define_standard_variables): Use `undef' instead of a dummy variable. (&make_paragraph): Be sure not to chop the trail of hash only lines: adjust the `##' regexp. (&rule_define): Fix a bug: don't read $1 but $target. * tests/condincl.test: Strengthen.
#! /bin/sh
# Make sure a conditional include statement is handled properly.
. $srcdir/defs || exit 1
cat >> configure.in << 'END'
AM_CONDITIONAL(TOBE, false)
END
cat > Makefile.am << 'END'
if TOBE
include adjunct
endif
END
cat > adjunct << 'END'
target: dependency
rule
END
$AUTOMAKE || exit 1
grep '^target' Makefile.in && exit 1
grep '^@TOBE_TRUE@target' Makefile.in || exit 1
exit 0