Such cases would have occurred when
the first `test "x$use_gd" = "x"` [1] is true
and then the third `test "x$use_gd" = "x"` [2] is false.
[1]: Just before `PKG_CHECK_MODULES([GDLIB], [gdlib >= 2.0.33],[`
[2]: Just before `# see if we can use the external gd lib`
AC_CHECK_HEADER(gd.h,,[
AC_MSG_WARN(Optional GD library not available - no gd.h)
use_gd="No (gd headers not found)"
- with_libgd="no"
])
if test "x$use_gd" = "x"; then
AC_CHECK_LIB(gd,main,[
],[
AC_MSG_WARN(Optional GD library not available)
use_gd="No (library not found)"
- with_libgd="no"
])
fi
LDFLAGS=$save_LDFLAGS
AC_SUBST([GDLIB_CFLAGS])
AC_SUBST([GDLIB_LIBS])
fi
+if test "x$use_gd" != "xYes"; then
+ with_libgd="no"
+fi
AM_CONDITIONAL(WITH_LIBGD, [test "x$with_libgd" = "xyes"])
dnl -----------------------------------