Reenabled all compile flags.
[libasyncio] / m4macros / libt2n.m4
CommitLineData
66817f64
RP
1dnl test for libt2n and libt2n-codegen
2dnl LIBT2N(VERSION, action-if, action-not)
3AC_DEFUN([LIBT2N_CHECK],
4[
5e89bf05
RP
5 PKG_CHECK_MODULES(LIBT2N, [$1], [
6 LIBT2N_CODEGEN=`$PKG_CONFIG --variable libt2n_codegen libt2n`
7 LIBT2N_DATADIR=`$PKG_CONFIG --variable libt2n_datadir libt2n`
8 LIBT2N_CLIENT_PCTEMPLATE="$LIBT2N_DATADIR/clientlib.pc.in"
9 $2
10 ], [$3])
66817f64 11 AC_SUBST(LIBT2N_CODEGEN)
5e89bf05 12 AC_SUBST(LIBT2N_DATADIR)
66817f64
RP
13 AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE)
14
15 dnl newer automake versions do not allow to use += on undefined variables
16 dnl but we want to use += in codegen.make (s.a. examples-codegen/example1)
17 dnl as workaround we always define them
18 dnl see also:
19 dnl automake ml: subject: "automake conditional append"
20 dnl http://sourceware.org/ml/automake/2005-01/msg00019.html
21 dnl
22 dnl Note:
23 dnl if you update from libt2n 0.1 to 0.2
24 dnl you must take care to pick up the right libt2n.m4
25
26 AC_SUBST([include_HEADERS], [''])
27 AC_SUBST([BUILT_SOURCES], [''])
28 AC_SUBST([CLEANFILES], [''])
29 AC_SUBST([DISTCLEANFILES], [''])
30 AC_SUBST([EXTRA_DIST], [''])
31])