Mercurial > mplayer.hg
comparison configure @ 6068:2090547cb015
lib(un)gif detection fix (linking should be sufficient) and it avoids the message
'Checking for GIF89a support ... ./configure: line 2349: 1123 Segmentation fault "$TMPO" >>"$TMPLOG"
no'
author | pl |
---|---|
date | Mon, 13 May 2002 12:28:00 +0000 |
parents | 16d200b4fe8e |
children | 8e88e92fe331 |
comparison
equal
deleted
inserted
replaced
6067:cf6d29078632 | 6068:2090547cb015 |
---|---|
2322 _def_jpg='#undef HAVE_JPEG' | 2322 _def_jpg='#undef HAVE_JPEG' |
2323 _novomodules="jpeg $_novomodules" | 2323 _novomodules="jpeg $_novomodules" |
2324 _mkf_jpg="no" | 2324 _mkf_jpg="no" |
2325 fi | 2325 fi |
2326 | 2326 |
2327 | |
2327 echocheck "GIF89a support" | 2328 echocheck "GIF89a support" |
2328 if test "$_gif" = auto ; then | 2329 if test "$_gif" = auto ; then |
2329 _gif=no | 2330 _gif=no |
2330 cat > $TMPC << EOF | 2331 cat > $TMPC << EOF |
2331 #include <gif_lib.h> | 2332 #include <gif_lib.h> |
2332 int main(void) { | 2333 int main(void) { |
2333 EGifPutExtensionFirst(NULL,0xFF, 11, NULL); | 2334 EGifPutExtensionFirst(NULL, 0xFF, 11, NULL); |
2334 return 0; | 2335 return 0; |
2335 } | 2336 } |
2336 EOF | 2337 EOF |
2337 if cc_check -lungif ; then | 2338 if cc_check -lungif ; then |
2338 if "$TMPO" >> "$TMPLOG" ; then | 2339 _gif=yes |
2339 _gif=yes | 2340 _ld_gif="-lungif" |
2340 _ld_gif="-lungif" | 2341 elif cc_check -lgif ; then |
2341 fi | 2342 _gif=yes |
2342 elif cc_check -lgif ; then | 2343 _ld_gif="-lgif" |
2343 if "$TMPO" >> "$TMPLOG" ; then | 2344 fi |
2344 _gif=yes | |
2345 _ld_gif="-lgif" | |
2346 fi | |
2347 fi | |
2348 fi | 2345 fi |
2349 echores "$_gif" | 2346 echores "$_gif" |
2350 | 2347 |
2351 if test "$_gif" = yes ; then | 2348 if test "$_gif" = yes ; then |
2352 _def_gif='#define HAVE_GIF 1' | 2349 _def_gif='#define HAVE_GIF 1' |