curl: add configure check and hook up to build system

This commit is contained in:
Tim-Philipp Müller 2011-02-26 20:21:25 +00:00
parent 16b79f6f2d
commit 56c2cc0f83
2 changed files with 20 additions and 0 deletions

View file

@ -653,6 +653,17 @@ AG_GST_CHECK_FEATURE(COG, [Cog plugin], cog, [
AC_SUBST(COG_LIBS)
])
dnl *** Curl ***
translit(dnm, m, l) AM_CONDITIONAL(USE_CURL, true)
AG_GST_CHECK_FEATURE(CURL, [Curl plugin], curl, [
PKG_CHECK_MODULES(CURL, libcurl >= 7.21.0, HAVE_CURL="yes", [
HAVE_CURL="no"
AC_MSG_RESULT(no)
])
AC_SUBST(CURL_CFLAGS)
AC_SUBST(CURL_LIBS)
])
dnl *** dc1394 ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DC1394, true)
AG_GST_CHECK_FEATURE(DC1394, [libdc1394], dc1394, [
@ -1592,6 +1603,7 @@ AM_CONDITIONAL(USE_BZ2, false)
AM_CONDITIONAL(USE_CDAUDIO, false)
AM_CONDITIONAL(USE_CELT, false)
AM_CONDITIONAL(USE_COG, false)
AM_CONDITIONAL(USE_CURL, false)
AM_CONDITIONAL(USE_DC1394, false)
AM_CONDITIONAL(USE_DIRECTFB, false)
AM_CONDITIONAL(USE_DIRAC, false)
@ -1828,6 +1840,7 @@ ext/bz2/Makefile
ext/cdaudio/Makefile
ext/celt/Makefile
ext/cog/Makefile
ext/curl/Makefile
ext/dc1394/Makefile
ext/dirac/Makefile
ext/directfb/Makefile

View file

@ -64,6 +64,12 @@ else
COG_DIR=
endif
if USE_CURL
CURL_DIR=curl
else
CURL_DIR=
endif
if USE_DC1394
DC1394_DIR=dc1394
else
@ -379,6 +385,7 @@ SUBDIRS=\
$(CDAUDIO_DIR) \
$(CELT_DIR) \
$(COG_DIR) \
$(CURL_DIR) \
$(DC1394_DIR) \
$(DIRAC_DIR) \
$(DIRECTFB_DIR) \