summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-13 11:04:01 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-13 11:04:01 +0000
commit08054925cc3deba4870e7211e5f13b45034a2693 (patch)
tree3de341b970294ab8505c39ec6f979d38e79cec94 /configure
parent3133f9099b0a0d976404a8b87640e740d093ac8f (diff)
downloadmpv-08054925cc3deba4870e7211e5f13b45034a2693.tar.bz2
mpv-08054925cc3deba4870e7211e5f13b45034a2693.tar.xz
Do not allow to compile gui without PNG decoder in libavcodec.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23555 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 5b54801889..2da2fce641 100755
--- a/configure
+++ b/configure
@@ -6997,7 +6997,10 @@ echo "$_gui"
if test "$_gui" = yes ; then
# Required libraries
- test "$_libavcodec" != yes && die "The GUI requires libavcodec with PNG support."
+ if test "$_libavcodec" != yes ||
+ not "echo $_libavdecoders | grep PNG_DECODER >/dev/null 2>&1" ; then
+ die "The GUI requires libavcodec with PNG support."
+ fi
if not win32 ; then
test "$_x11" != yes && die "X11 support required for GUI compilation."