/[mldonkey]/mldonkey/config/configure.in
ViewVC logotype

Diff of /mldonkey/config/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.216 by spiralvoice, Sun Aug 28 11:00:20 2005 UTC revision 1.217 by spiralvoice, Wed Aug 31 23:50:42 2005 UTC
# Line 1105  if test "$GD" != "no"; then Line 1105  if test "$GD" != "no"; then
1105    
1106    AC_CHECK_PROG(GDLIBCONFIG, gdlib-config, gdlib-config)    AC_CHECK_PROG(GDLIBCONFIG, gdlib-config, gdlib-config)
1107    if test "$ac_cv_prog_GDLIBCONFIG" = "gdlib-config"; then    if test "$ac_cv_prog_GDLIBCONFIG" = "gdlib-config"; then
1108      GDLIBS=`$GDLIBCONFIG --libs`      GDLIBCONFIG=`$GDLIBCONFIG --libs`
1109      LIBS="$LIBS -lgd $GDLIBS"      GDLIBS="$LIBS -lgd $GDLIBCONFIG"
1110        LIBS=$GDLIBS
1111    fi    fi
1112    
1113    AC_MSG_CHECKING(for gdImageCreate in -lgd)    AC_MSG_CHECKING(for gdImageCreate in -lgd)
# Line 1114  if test "$GD" != "no"; then Line 1115  if test "$GD" != "no"; then
1115    [gdImageCreate (0,0);],    [gdImageCreate (0,0);],
1116    [LIBGD=yes], [LIBGD=no])    [LIBGD=yes], [LIBGD=no])
1117    AC_MSG_RESULT($LIBGD)    AC_MSG_RESULT($LIBGD)
1118      LIBS=$SAVE_LIBS
1119    
1120    if test "$LIBGD" = "no"; then    if test "$LIBGD" = "no"; then
1121      AC_MSG_CHECKING(trying another method)      AC_MSG_NOTICE(not found, trying another method)
1122      AC_CHECK_LIB(gd, gdImageCreate, [LIBGD=yes], [LIBGD=no])      AC_CHECK_LIB(gd, gdImageCreate, [LIBGD=yes], [LIBGD=no])
1123    fi    fi
1124    
# Line 1129  if test "$GD" != "no"; then Line 1131  if test "$GD" != "no"; then
1131        AC_MSG_NOTICE(png support not available)        AC_MSG_NOTICE(png support not available)
1132      else      else
1133        LIBGD_PNG=no        LIBGD_PNG=no
1134          LIBS=$GDLIBS
1135        AC_MSG_CHECKING(for gdImagePng in -lgd)        AC_MSG_CHECKING(for gdImagePng in -lgd)
1136        AC_TRY_LINK([#include <gd.h>],        AC_TRY_LINK([#include <gd.h>],
1137        [gdImagePng (0,0);],        [gdImagePng (0,0);],
1138        [LIBGD_PNG=yes], [LIBGD_PNG=no])        [LIBGD_PNG=yes], [LIBGD_PNG=no])
1139        AC_MSG_RESULT($LIBGD_PNG)        AC_MSG_RESULT($LIBGD_PNG)
1140          LIBS=$SAVE_LIBS
1141    
1142        if test "$LIBGD_PNG" = "no"; then        if test "$LIBGD_PNG" = "no"; then
1143          AC_MSG_CHECKING(trying another method)          AC_MSG_NOTICE(not found, trying another method)
1144          AC_CHECK_LIB(gd, gdImagePng, [LIBGD_PNG=yes], [LIBGD_PNG=no])          AC_CHECK_LIB(gd, gdImagePng, [LIBGD_PNG=yes], [LIBGD_PNG=no])
1145        fi        fi
1146    
# Line 1160  if test "$GD" != "no"; then Line 1164  if test "$GD" != "no"; then
1164        AC_MSG_NOTICE(jpeg support not available)        AC_MSG_NOTICE(jpeg support not available)
1165      else      else
1166        LIBGD_JPG=no        LIBGD_JPG=no
1167          LIBS=$GDLIBS
1168        AC_MSG_CHECKING(for gdImageJpeg in -lgd)        AC_MSG_CHECKING(for gdImageJpeg in -lgd)
1169        AC_TRY_LINK([#include <gd.h>],        AC_TRY_LINK([#include <gd.h>],
1170        [gdImageJpeg (0,0,0);],        [gdImageJpeg (0,0,0);],
1171        [LIBGD_JPG=yes], [LIBGD_JPG=no])        [LIBGD_JPG=yes], [LIBGD_JPG=no])
1172        AC_MSG_RESULT($LIBGD_JPG)        AC_MSG_RESULT($LIBGD_JPG)
1173          LIBS=$SAVE_LIBS
1174    
1175        if test "$LIBGD_JPG" = "no"; then        if test "$LIBGD_JPG" = "no"; then
1176          AC_MSG_CHECKING(trying another method)          AC_MSG_NOTICE(not found, trying another method)
1177          AC_CHECK_LIB(gd, gdImageJpeg, [LIBGD_JPG=yes], [LIBGD_JPG=no])          AC_CHECK_LIB(gd, gdImageJpeg, [LIBGD_JPG=yes], [LIBGD_JPG=no])
1178        fi        fi
1179    

Legend:
Removed from v.1.216  
changed lines
  Added in v.1.217

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26