From 73c5159ed2cf03e6c390286dbf6299179bed54c1 Mon Sep 17 00:00:00 2001 From: ceros7 Date: Mon, 19 Apr 2010 20:54:08 +0000 Subject: Fix libcurl basename path for users using libcurl3-gnutls. git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29385 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 3d3ca2988f..7135c0043c 100644 --- a/configure.in +++ b/configure.in @@ -471,6 +471,17 @@ else AC_MSG_ERROR($missing_library)) fi +# libcurl GnuTLS or OpenSSL check +# checks whether to use libcurl.so.* or libcurl-gnutls.so.* for libcurl basename +if test "$host_vendor" != "apple"; then + LIBCURL_BASENAME=$(readlink -e /usr/lib/libcurl.so | \ + sed -e 's/^\/usr\/lib\///' | \ + sed -e 's/\.[[0-9]]\+\.[[0-9]]\+$//') + if [[ ! -e "/usr/lib/$LIBCURL_BASENAME" ]]; then + AC_MSG_ERROR([Error occurred determining basename of libcurl library]) + fi +fi + # PulseAudio if test "$host_vendor" = "apple" ; then use_pulse="no" @@ -1152,6 +1163,7 @@ AC_SUBST(USE_PYTHON2_4) AC_SUBST(OUTPUT_FILES) AC_SUBST(HAVE_XBMC_NONFREE) AC_SUBST(USE_ASAP_CODEC) +AC_SUBST(LIBCURL_BASENAME) # Function to run the configure scripts in our submodules # Consists of three paramaters, the path to the submodule, the configure command # with appropriate arguments, and a third parameter set to 1 if we are to skip -- cgit v1.2.3