# HG changeset patch # User diego # Date 1358809525 0 # Node ID fb3523ff2ef4919471bd0bb4627f81cc7c224227 # Parent 9cfa30063480611e55f41b3f2b1ec6954e612f8b configure: Simplify giflib workaround check through helper functions. diff -r 9cfa30063480 -r fb3523ff2ef4 configure --- a/configure Mon Jan 21 23:05:23 2013 +0000 +++ b/configure Mon Jan 21 23:05:25 2013 +0000 @@ -5150,17 +5150,7 @@ case "$_gif" in yes*) echocheck "broken giflib workaround" def_gif_tvt_hack='#define CONFIG_GIF_TVT_HACK 1' - - cat > $TMPC << EOF -#include -#include -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