From 17564e262cb39a88c3f268d8b92bc286c974539d Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 15 Jul 2008 15:33:50 +0000 Subject: 2008-07-15 Ralf Wildenhues * m4/acinclude.m4 (CLASSPATH_COND_IF): New macro. * configure.ac: Use it. * tools/Makefile.am (!CREATE_WRAPPERS): Update comment. --- m4/acinclude.m4 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'm4') diff --git a/m4/acinclude.m4 b/m4/acinclude.m4 index 7990e6360..18af91c51 100644 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -260,3 +260,19 @@ EOF rm -f $JAVA_TEST $CLASS_TEST AC_SUBST(JAVAC_MEM_OPT) ]) + +dnl --------------------------------------------------------------- +dnl CLASSPATH_COND_IF(COND, SHELL-CONDITION, [IF-TRUE], [IF-FALSE]) +dnl --------------------------------------------------------------- +dnl Automake 1.11 can emit conditional rules for AC_CONFIG_FILES, +dnl using AM_COND_IF. This wrapper uses it if it is available, +dnl otherwise falls back to code compatible with Automake 1.9.6. +AC_DEFUN([CLASSPATH_COND_IF], +[m4_ifdef([AM_COND_IF], + [AM_COND_IF([$1], [$3], [$4])], + [if $2; then + m4_default([$3], [:]) + else + m4_default([$4], [:]) + fi +])]) -- cgit v1.2.1