From: Richard Boulton Date: Sat, 4 Aug 2001 13:28:49 +0000 (+0000) Subject: * tests/cond17.test: New file: test for being able to define an X-Git-Tag: branchpoint-real-1-5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bff849f22a176354d43727537f8a67cd2b149c8;p=thirdparty%2Fautomake.git * tests/cond17.test: New file: test for being able to define an object to be generated in different ways according to a conditional. * tests/Makefile.am (XFAIL_TESTS): Add cond17.test. (TESTS): Added cond17.test. --- diff --git a/ChangeLog b/ChangeLog index 20a78aa8c..d9a9c9559 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-08-04 Richard Boulton + + * tests/cond17.test: New file: test for being able to define an + object to be generated in different ways according to a + conditional. + * tests/Makefile.am (XFAIL_TESTS): Add cond17.test. + (TESTS): Added cond17.test. + 2001-08-02 Richard Boulton * automake.in (variable_conditions_sub): Handle variable diff --git a/tests/Makefile.am b/tests/Makefile.am index 3fcf63a9c..e4468a5d5 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,6 +1,6 @@ ## Process this file with automake to create Makefile.in -XFAIL_TESTS = subdir5.test auxdir2.test +XFAIL_TESTS = subdir5.test auxdir2.test cond17.test TESTS = \ acinclude.test \ @@ -68,6 +68,7 @@ cond11.test \ cond12.test \ cond13.test \ cond16.test \ +cond17.test \ condincl.test \ condincl2.test \ condlib.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 3cc48ad65..78d13b635 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -68,7 +68,7 @@ am__include = @am__include@ am__quote = @am__quote@ install_sh = @install_sh@ -XFAIL_TESTS = subdir5.test auxdir2.test +XFAIL_TESTS = subdir5.test auxdir2.test cond17.test TESTS = \ acinclude.test \ @@ -136,6 +136,7 @@ cond11.test \ cond12.test \ cond13.test \ cond16.test \ +cond17.test \ condincl.test \ condincl2.test \ condlib.test \ diff --git a/tests/cond17.test b/tests/cond17.test new file mode 100755 index 000000000..8ab4bb3c4 --- /dev/null +++ b/tests/cond17.test @@ -0,0 +1,30 @@ +#! /bin/sh + +# Test for being able to define an object to be generated in different ways +# according to a conditional. +# Report from Richard Boulton + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(Makefile.am) +AM_INIT_AUTOMAKE(hello,0.23) +AC_PROG_CC +AC_PROG_CXX +AM_CONDITIONAL(COND1, true) +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +bin_PROGRAMS = helldl +if COND1 +helldl_SOURCES = foo.cc +else +helldl_SOURCES = foo.c +endif +END + +set -e + +$ACLOCAL +$AUTOMAKE -a