[Freeswitch-svn] [commit] r8672 - freeswitch/branches/lukedashjr/syslibs/freeswitch

Freeswitch SVN lukedashjr at freeswitch.org
Mon May 26 14:23:24 EDT 2008


Author: lukedashjr
Date: Mon May 26 14:23:24 2008
New Revision: 8672

Modified:
   freeswitch/branches/lukedashjr/syslibs/freeswitch/configure.in

Log:
automatic xmlrpc-c config

Modified: freeswitch/branches/lukedashjr/syslibs/freeswitch/configure.in
==============================================================================
--- freeswitch/branches/lukedashjr/syslibs/freeswitch/configure.in	(original)
+++ freeswitch/branches/lukedashjr/syslibs/freeswitch/configure.in	Mon May 26 14:23:24 2008
@@ -307,9 +307,16 @@
 SWITCH_AM_CFLAGS="$SWITCH_AM_CFLAGS -I/usr/include/srtp"
 SWITCH_AM_LDFLAGS="$SWITCH_AM_LDFLAGS -lsrtp"
 
-# TODO: make this automatic or something
-XMLRPC_CFLAGS="-I/usr/include/xmlrpc-c"
-XMLRPC_LDFLAGS="-lxmlrpc_server -lxmlrpc_server_abyss -lxmlrpc_xmlparse -lxmlrpc_xmltok"
+AC_MSG_CHECKING(for xmlrpc-c)
+xmlrpc_c_config="`which xmlrpc-c-config xmlrpc-c-conf 2>/dev/null | head -n 1`"
+if test -z "$xmlrpc_c_config"; then
+	AC_MSG_RESULT(no)
+	AC_MSG_WARN([xmlrpc-c not found: mod_xml_rpc will not work.])
+else
+	AC_MSG_RESULT(yes)
+	XMLRPC_CFLAGS="$xmlrpc_c_config server-util --cflags"
+	XMLRPC_LDFLAGS="`$xmlrpc_c_config server-util --libs`"
+fi
 
 PKG_CHECK_MODULES([voipcodecs],[voipcodecs],[
 AC_SUBST(voipcodecs_CFLAGS)



More information about the Freeswitch-svn mailing list