[vlc-devel] [PATCH] - Add support of libproxy via PKG_CHECK_MODULES instead of AC_CHECK_HEADERS
Nicolas Chauvet (kwizart)
kwizart at gmail.com
Fri Oct 24 12:26:23 CEST 2008
---
configure.ac | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 495d2da..c942450 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1633,8 +1633,9 @@ dnl
AC_ARG_ENABLE(libproxy,
[ --enable-libproxy libproxy support (default auto)])
AS_IF([test "${enable_libproxy}" != "no"], [
- AC_CHECK_HEADERS(proxy.h, [
- VLC_ADD_LIBS([access_http],[-lproxy])
+ PKG_CHECK_MODULES(LIBPROXY, libproxy-1.0, [
+ VLC_ADD_CFLAGS([access_http],[$LIBPROXY_CFLAGS])
+ VLC_ADD_LIBS([access_http],[$LIBPROXY_LIBS])
], [
AS_IF([test "x${enable_libproxy}" != "x"], [
AC_MSG_ERROR([libproxy could not be found on your system])
--
1.5.4.3
More information about the vlc-devel
mailing list