comparison configure @ 36312:ebf1b3af62cd

configure: Fix GIF support result comment Do not print confusing result comment about old GIFLIB version when actually compiling against new GIFLIB versions. No functional changes.
author al
date Tue, 06 Aug 2013 20:02:53 +0000
parents 9fab03575b89
children 7129dbdaae8c
comparison
equal deleted inserted replaced
36311:9fab03575b89 36312:ebf1b3af62cd
5085 if test "$_gif" = yes ; then 5085 if test "$_gif" = yes ; then
5086 _force_gif=yes 5086 _force_gif=yes
5087 _gif=auto 5087 _gif=auto
5088 fi 5088 fi
5089 5089
5090 gif_new=no
5090 if test "$_gif" = auto ; then 5091 if test "$_gif" = auto ; then
5091 _gif=no 5092 _gif=no
5092 for ld_gif in "-lungif" "-lgif" ; do 5093 for ld_gif in "-lungif" "-lgif" ; do
5093 statement_check gif_lib.h 'QuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && break 5094 statement_check gif_lib.h 'QuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && break
5094 statement_check_broken stdlib.h gif_lib.h 'GifQuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && break 5095 statement_check_broken stdlib.h gif_lib.h 'GifQuantizeBuffer(0, 0, 0, 0, 0, 0, 0, 0)' $ld_gif && _gif=yes && gif_new=yes && break
5095 done 5096 done
5096 fi 5097 fi
5097 5098
5098 # If no library was found, and the user wants support forced, 5099 # If no library was found, and the user wants support forced,
5099 # then we force it on with libgif, as this is the safest 5100 # then we force it on with libgif, as this is the safest
5111 5112
5112 if test "$_gif" = yes ; then 5113 if test "$_gif" = yes ; then
5113 def_gif='#define CONFIG_GIF 1' 5114 def_gif='#define CONFIG_GIF 1'
5114 codecmodules="gif $codecmodules" 5115 codecmodules="gif $codecmodules"
5115 vomodules="gif89a $vomodules" 5116 vomodules="gif89a $vomodules"
5116 res_comment="old version, some encoding functions disabled" 5117 res_comment=""
5117 def_gif_4='#undef CONFIG_GIF_4' 5118 def_gif_4='#undef CONFIG_GIF_4'
5118 extra_ldflags="$extra_ldflags $ld_gif" 5119 extra_ldflags="$extra_ldflags $ld_gif"
5119 5120
5120 cat > $TMPC << EOF 5121 cat > $TMPC << EOF
5121 #include <signal.h> 5122 #include <signal.h>
5130 return 0; 5131 return 0;
5131 } 5132 }
5132 EOF 5133 EOF
5133 if cc_check "$ld_gif" ; then 5134 if cc_check "$ld_gif" ; then
5134 def_gif_4='#define CONFIG_GIF_4 1' 5135 def_gif_4='#define CONFIG_GIF_4 1'
5135 res_comment="" 5136 elif test "$gif_new" = no ; then
5137 res_comment="old version, some encoding functions disabled"
5136 fi 5138 fi
5137 else 5139 else
5138 def_gif='#undef CONFIG_GIF' 5140 def_gif='#undef CONFIG_GIF'
5139 def_gif_4='#undef CONFIG_GIF_4' 5141 def_gif_4='#undef CONFIG_GIF_4'
5140 novomodules="gif89a $novomodules" 5142 novomodules="gif89a $novomodules"