aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAndreas Zelend <ace20022@xbmc.org>2015-09-10 20:05:43 +0200
committerAndreas Zelend <ace20022@xbmc.org>2015-09-10 20:05:43 +0200
commit0b16adeb2808b342807b70e7df4720fe875ded95 (patch)
tree4f803045a5a3300c41d0fdcd826fbbcab3cb44d1 /configure.ac
parent206721a93a48e4b87758563d57342ac84c449818 (diff)
parent964a1ef761da3628ab554adce2ac7713290a5487 (diff)
Merge pull request #7960 from ace20022/gif2015
Add proper gif support (next try)
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac38
1 files changed, 38 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a70e58ac3a..3fe91734af 100644
--- a/configure.ac
+++ b/configure.ac
@@ -198,6 +198,8 @@ librtmp_not_found="== Could not find libRTMP. RTMP support disabled. =="
librtmp_disabled="== RTMP support disabled. =="
libnfs_not_found="== Could not find libnfs. NFS client support disabled. =="
libnfs_disabled="== NFS support disabled. =="
+libgif_not_found="== Could not find libgif. libgif support disabled. =="
+libgif_disabled="== libgif support disabled. =="
libshairplay_not_found="== Could not find libshairplay. =="
samba_disabled="== SAMBA support disabled. =="
libplist_not_found="== Could not find libplist. AirPlay support disabled. =="
@@ -364,6 +366,12 @@ AC_ARG_ENABLE([nfs],
[use_libnfs=$enableval],
[use_libnfs=auto])
+AC_ARG_ENABLE([gif],
+ [AS_HELP_STRING([--enable-gif],
+ [enable gif support via libgif (default is auto)])],
+ [use_libgif=$enableval],
+ [use_libgif=auto])
+
AC_ARG_ENABLE([airplay],
[AS_HELP_STRING([--enable-airplay],
[enable AirPlay support(default is auto)])],
@@ -1465,6 +1473,29 @@ else
AC_MSG_NOTICE($libnfs_disabled)
fi
+# libgif
+if test "$use_libgif" != "no"; then
+ AC_CHECK_HEADERS([gif_lib.h],,
+ [if test "$use_libgif" = "yes"; then
+ AC_MSG_ERROR($libgif_not_found)
+ USE_LIBGIF=0
+ elif test "$use_libgif" != "no"; then
+ AC_MSG_NOTICE($libgif_not_found)
+ use_libgif="no"
+ USE_LIBGIF=0
+ fi
+ ])
+ if test "$use_libgif" != "no"; then
+ XB_FIND_SONAME([GIF], [gif], [use_libgif])
+ fi
+ if test "$use_libgif" != "no"; then
+ AC_DEFINE([HAVE_LIBGIF], [1], [Whether to use libgif library.])
+ USE_LIBGIF=1
+ fi
+else
+ USE_LIBGIF=0
+ AC_MSG_NOTICE($libgif_disabled)
+fi
# libplist for airplay feature
USE_AIRPLAY=0
@@ -2236,6 +2267,12 @@ else
final_message="$final_message\n libnfs client support:No"
fi
+if test "$use_libgif" != "no"; then
+ final_message="$final_message\n libgif support:\tYes"
+else
+ final_message="$final_message\n libgif support:\tNo"
+fi
+
if test "$use_airplay" != "no"; then
final_message="$final_message\n AirPlay support:\tYes"
else
@@ -2477,6 +2514,7 @@ AC_SUBST(USE_VDPAU)
AC_SUBST(USE_VAAPI)
AC_SUBST(USE_LIBSMBCLIENT)
AC_SUBST(USE_LIBNFS)
+AC_SUBST(USE_LIBGIF)
AC_SUBST(USE_AIRPLAY)
AC_SUBST(USE_OPENMAX)
AC_SUBST(USE_PULSE)