summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-05 17:46:33 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-05 17:46:33 +0000
commit22a31d2fee6d197210e02c323d4dcee7c39ec582 (patch)
tree5eb8df1d09cdecd25562fdaee00d2331e2358e59 /configure
parentd7657cb702562f1c7d207b7563b7dbab897bf427 (diff)
downloadmpv-22a31d2fee6d197210e02c323d4dcee7c39ec582.tar.bz2
mpv-22a31d2fee6d197210e02c323d4dcee7c39ec582.tar.xz
fixed --enable-gif bug
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13252 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 7878b587f0..4491e8aaad 100755
--- a/configure
+++ b/configure
@@ -3808,6 +3808,14 @@ fi
echocheck "GIF support"
+# This is to appease people who want to force gif support.
+# If it is forced to yes, then we still do checks to determine
+# which gif library to use.
+if test "$_gif" = yes ; then
+ _force_gif=yes
+ _gif=auto
+fi
+
if test "$_gif" = auto ; then
_gif=no
cat > $TMPC << EOF
@@ -3831,6 +3839,20 @@ EOF
fi
fi
+# If no library was found, and the user wants support forced,
+# then we force it on with libgif, as this is the safest
+# assumption IMHO. (libungif & libregif both create symbolic
+# links to libgif. We also assume that no x11 support is needed,
+# because if you are forcing this, then you _should_ know what
+# you are doing. [ Besides, package maintainers should never
+# have compiled x11 deps into libungif in the first place. ] )
+# </rant>
+# --Joey
+if test "$_force_gif" = yes && test "$_gif" = no ; then
+ _gif=yes
+ _ld_gif="-lgif"
+fi
+
if test "$_gif" = yes ; then
_def_gif='#define HAVE_GIF 1'
_vosrc="$_vosrc vo_gif89a.c"