[xiph-commits] r12203 - trunk/vorbis-tools

conrad at svn.xiph.org conrad at svn.xiph.org
Sun Dec 10 07:01:51 PST 2006


Author: conrad
Date: 2006-12-10 07:01:49 -0800 (Sun, 10 Dec 2006)
New Revision: 12203

Modified:
   trunk/vorbis-tools/configure.ac
Log:
Use pkg-config to query libcurl libraries. Closes ticket:1092


Modified: trunk/vorbis-tools/configure.ac
===================================================================
--- trunk/vorbis-tools/configure.ac	2006-12-10 14:47:17 UTC (rev 12202)
+++ trunk/vorbis-tools/configure.ac	2006-12-10 15:01:49 UTC (rev 12203)
@@ -158,9 +158,11 @@
 dnl --------------------------------------------------
 
 dnl curl is an optional dependancy of ogg123
-dnl FIXME: upstream curl has switched to having a curl-config;
-dnl maybe that's better than using AM_PATH_CURL from an acinclude.m4 in svn
-AM_PATH_CURL(have_curl=yes, have_curl=no; AC_MSG_WARN(libcurl missing))
+if test "x$HAVE_PKG_CONFIG" = "xyes"; then
+  PKG_CHECK_MODULES(CURL, libcurl, HAVE_CURL=yes, HAVE_CURL=no)
+else
+  AM_PATH_CURL(HAVE_CURL=yes, HAVE_CURL=no; AC_MSG_WARN(libcurl missing))
+fi
 
 if test "x$build_ogg123" = xyes; then
   AC_MSG_RESULT([checking for ogg123 requirements])
@@ -341,7 +343,7 @@
         AC_MSG_WARN([Speex libraries and/or headers missing, ogg123 
 will NOT be built with Speex read support.])
     fi         
-    if test "x$have_curl" != xyes; then
+    if test "x$HAVE_CURL" != xyes; then
         AC_MSG_WARN([curl libraries and/or headers missing, ogg123 
 will NOT be built with http support.])
     fi         



More information about the commits mailing list