dnl test for libt2n and libt2n-codegen dnl LIBT2N(VERSION, action-if, action-not) AC_DEFUN([LIBT2N_CHECK], [ PKG_CHECK_MODULES(LIBT2N, [$1], [$2], [$3]) LIBT2N_CODEGEN=`$PKG_CONFIG --variable libt2n_codegen libt2n` LIBT2N_DATADIR=`$PKG_CONFIG --variable libt2n_datadir libt2n` LIBT2N_CLIENT_PCTEMPLATE="$LIBT2N_DATADIR/clientlib.pc.in" AC_SUBST(LIBT2N_CODEGEN) AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) dnl newer automake versions do not allow to use += on undefined variables dnl but we want to use += in codegen.make (s.a. examples-codegen/example1) dnl as workaround we always define them dnl see also: dnl automake ml: subject: "automake conditional append" dnl http://sourceware.org/ml/automake/2005-01/msg00019.html dnl dnl Note: dnl if you update from libt2n 0.1 to 0.2 dnl you must take care to pick up the right libt2n.m4 AC_SUBST([include_HEADERS], ['']) AC_SUBST([BUILT_SOURCES], ['']) AC_SUBST([CLEANFILES], ['']) AC_SUBST([DISTCLEANFILES], ['']) AC_SUBST([EXTRA_DIST], ['']) ])