1
2ots_pkgs="libots-1 >= 0.5.0"
3ots_deps="no"
4
5if test "$enable_ots" != ""; then
6
7PKG_CHECK_EXISTS([ $ots_pkgs ],
8[
9	ots_deps="yes"
10], [
11	test "$enable_ots" = "auto" && AC_MSG_WARN([ots plugin: dependencies not satisfied - $ots_pkgs])
12])
13
14fi
15
16if test "$enable_ots" = "yes" || \
17   test "$ots_deps" = "yes"; then
18
19test "$enable_ots" = "auto" && PLUGINS="$PLUGINS ots"
20
21if test "$enable_ots_builtin" = "yes"; then
22AC_MSG_ERROR([ots plugin: static linking not supported])
23fi
24
25PKG_CHECK_MODULES(OTS,[ $ots_pkgs ])
26
27OTS_CFLAGS="$OTS_CFLAGS "'${PLUGIN_CFLAGS}'
28OTS_LIBS="$OTS_LIBS "'${PLUGIN_LIBS}'
29
30fi
31
32AC_SUBST([OTS_CFLAGS])
33AC_SUBST([OTS_LIBS])
34
35