summaryrefslogtreecommitdiffstats
path: root/proxy/configure.ac
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2012-10-23 16:19:35 +0200
committerSimo Sorce <simo@redhat.com>2013-04-08 09:27:47 -0400
commitf5fb025d692e429b9be5aef890179efd1a40e360 (patch)
tree42a0519e01a5bf3c5c2bb0e2280abf9023333997 /proxy/configure.ac
parent19d091b9eaddc52d9c33ab0419029603f15db1da (diff)
downloadgss-proxy-f5fb025d692e429b9be5aef890179efd1a40e360.tar.gz
gss-proxy-f5fb025d692e429b9be5aef890179efd1a40e360.tar.xz
gss-proxy-f5fb025d692e429b9be5aef890179efd1a40e360.zip
Add dinglibs ini configuration detection and backend.
Signed-off-by: Günther Deschner <gdeschner@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/configure.ac')
-rw-r--r--proxy/configure.ac15
1 files changed, 15 insertions, 0 deletions
diff --git a/proxy/configure.ac b/proxy/configure.ac
index 42ab027..edfb43b 100644
--- a/proxy/configure.ac
+++ b/proxy/configure.ac
@@ -90,7 +90,22 @@ AC_CHECK_HEADERS([iniparser.h],
[AC_MSG_ERROR([Iniparser development package is not installed])]
)
+#Check for libini_config
+PKG_CHECK_MODULES([LIBINI_CONFIG], [ini_config >= 1.0.0], [have_libini_config=1], [have_libini_config=])
+if test x$have_libini_config = x; then
+ AC_MSG_WARN([Could not find LIBINI_CONFIG headers])
+else
+ INI_CONFIG_CFLAGS="`$PKG_CONFIG --cflags ini_config`"
+ INI_CONFIG_LIBS="`$PKG_CONFIG --libs ini_config`"
+ AC_CHECK_LIB(ini_config, ini_config_file_open,
+ [INI_LIBS="$INI_LIBS $INI_CONFIG_LIBS"; INI_CFLAGS="$INI_CONFIG_CFLAGS";
+ AC_DEFINE([HAVE_DINGLIBS], [1], [Dinglibs library available.])],
+ [AC_MSG_WARN([ini_config library must support ini_config_file_open])],
+ [$INI_CONFIG_LIBS])
+fi
+
AC_SUBST(INI_LIBS)
+AC_SUBST(INI_CFLAGS)
AX_PTHREAD(,[AC_MSG_ERROR([Could not find Pthreads support])])