mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
CONFIGURE: Improve detection of xmlrpc_c flags
The pkg-config files for xmlrpc_c libraries are shipped just
in fedora/rhel due to downstream patch. Debian does not have
pkg-config files for xmlrpc_c. Therefore we need to fallback to older
method of detection XMLRPC_*FLAGS which was reverted
by the commit 1e0143c159
https://fedorahosted.org/freeipa/ticket/6418
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
990ce9eef3
commit
2a4f7f2cfa
15
configure.ac
15
configure.ac
@ -171,7 +171,20 @@ PKG_CHECK_MODULES([SASL], [libsasl2])
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl - Check for XMLRPC-C
|
||||
dnl ---------------------------------------------------------------------------
|
||||
PKG_CHECK_MODULES([XMLRPC], [xmlrpc xmlrpc_client xmlrpc_util])
|
||||
PKG_CHECK_MODULES([XMLRPC], [xmlrpc xmlrpc_client xmlrpc_util], [],
|
||||
[try_xmlrpc_fallback=true])
|
||||
if test x"$try_xmlrpc_fallback" = xtrue; then
|
||||
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)
|
||||
fi
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl - Check for libintl
|
||||
|
Loading…
Reference in New Issue
Block a user