[MPlayer-cvslog] r35817 - trunk/configure

diego subversion at mplayerhq.hu
Tue Jan 22 00:05:25 CET 2013


Author: diego
Date: Tue Jan 22 00:05:25 2013
New Revision: 35817

Log:
configure: Simplify giflib workaround check through helper functions.

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Jan 22 00:05:23 2013	(r35816)
+++ trunk/configure	Tue Jan 22 00:05:25 2013	(r35817)
@@ -5150,17 +5150,7 @@ echores "$_gif"
 case "$_gif" in yes*)
   echocheck "broken giflib workaround"
   def_gif_tvt_hack='#define CONFIG_GIF_TVT_HACK 1'
-
-  cat > $TMPC << EOF
-#include <stdio.h>
-#include <gif_lib.h>
-int main(void) {
-  GifFileType gif = {.UserData = NULL};
-  printf("UserData is at address %p\n", gif.UserData);
-  return 0;
-}
-EOF
-  if cc_check "$ld_gif" ; then
+  if statement_check_broken stdio.h gif_lib.h 'GifFileType gif = {.UserData = NULL}; printf("UserData is at address %p\n", gif.UserData)' "$ld_gif" ; then
     def_gif_tvt_hack='#undef CONFIG_GIF_TVT_HACK'
     echores "disabled"
   else


More information about the MPlayer-cvslog mailing list