Index: b/configure.in =================================================================== --- a/configure.in +++ b/configure.in @@ -250,12 +250,13 @@ AC_CHECK_HEADER(gif_lib.h, - [AC_CHECK_LIB(ungif, DGifOpenFileName, - [GIFLIBS="-lungif" - SUPPORT_LIBS="$SUPPORT_LIBS -lungif"; AC_DEFINE(HAVE_LIBGIF, 1, [ ])], - [AC_CHECK_LIB(gif, DGifOpenFileName, - [GIFLIBS="-lgif" - SUPPORT_LIBS="$SUPPORT_LIBS -lgif" + [AC_CHECK_LIB(gif, DGifOpenFileName, + [GIFLIBS="-lgif" + SUPPORT_LIBS="$SUPPORT_LIBS -lgif" + AC_DEFINE(HAVE_LIBGIF, 1, [ ])], + [AC_CHECK_LIB(ungif, DGifOpenFileName, + [GIFLIBS="-lungif" + SUPPORT_LIBS="$SUPPORT_LIBS -lungif" AC_DEFINE(HAVE_LIBGIF, 1, [ ])], [AC_MSG_ERROR(*** GIF library file not found ***)], $GX_LIBS)],