summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Spacek <pspacek@redhat.com>2016-10-14 12:08:57 +0200
committerDavid Kupka <dkupka@redhat.com>2016-10-24 13:30:12 +0200
commit1e0143c159134337a00a91d4ae64e614f72da62e (patch)
tree7c150e5c931136aff62237c1db1f61bc18ddccf3
parentb12da59a6cde3580f97e4ceb7303bc85857faf4d (diff)
downloadfreeipa-1e0143c159134337a00a91d4ae64e614f72da62e.tar.gz
freeipa-1e0143c159134337a00a91d4ae64e614f72da62e.tar.xz
freeipa-1e0143c159134337a00a91d4ae64e614f72da62e.zip
Build: modernize XMLRPC-client library detection
Use package config instead of checking headers. Package config is faster because it does not invoke compiler and guarantees proper linking flags because these are provided by package maintainer instead of hardcoded into build system. https://fedorahosted.org/freeipa/ticket/6418 Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com> Reviewed-By: Stanislav Laznicka <slaznick@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com>
-rw-r--r--configure.ac9
1 files changed, 1 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 0884d0239..487c6f5c5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -224,14 +224,7 @@ PKG_CHECK_MODULES([CURL], [libcurl])
dnl ---------------------------------------------------------------------------
dnl - Check for XMLRPC-C
dnl ---------------------------------------------------------------------------
-
-XMLRPC_LIBS=
-AC_CHECK_HEADER(xmlrpc-c/base.h, [], [AC_MSG_ERROR([xmlrpc-c/base.h not found])])
-AC_CHECK_LIB(xmlrpc_client, xmlrpc_client_init2, [XMLRPC_LIBS="-lxmlrpc -lxmlrpc_client -lxmlrpc_util"])
-if test "x$XMLRPC_LIBS" = "x" ; then
- AC_MSG_ERROR([xmlrpc-c not found])
-fi
-AC_SUBST(XMLRPC_LIBS)
+PKG_CHECK_MODULES([XMLRPC], [xmlrpc_client])
dnl ---------------------------------------------------------------------------
dnl - Check for libintl