File imlib-1.9.14.patch of Package imlib
--- imlib-1.9.14/configure.in
+++ imlib-1.9.14/configure.in
@@ -30,23 +30,21 @@
else
with_modules=no
fi
-])
+], [with_modules=yes])
dynworks=false
-if test x$with_modules = xno; then
- AC_MSG_RESULT(no)
-else
- AC_MSG_RESULT(yes)
-
-if test "x$GDK_IMLIB" != x; then
- oLIBS="$LIBS"
- oCFLAGS="$CFLAGS"
- LIBS="$LIBS `glib-config --libs gmodule`"
- CFLAGS="$CFLAGS `glib-config --cflags gmodule`"
- AC_TRY_RUN([
+
+if test x$with_modules = xyes; then
+
+ if test "x$GDK_IMLIB" != x; then
+ oLIBS="$LIBS"
+ oCFLAGS="$CFLAGS"
+ LIBS="$LIBS `glib-config --libs gmodule`"
+ CFLAGS="$CFLAGS `glib-config --cflags gmodule`"
+ AC_TRY_RUN([
#include <glib.h>
#include <gmodule.h>
-main ()
+int main ()
{
if (g_module_supported ())
exit (0);
--- imlib-1.9.14/gdk_imlib/io-gif.c
+++ imlib-1.9.14/gdk_imlib/io-gif.c
@@ -3,7 +3,7 @@
#include "gdk_imlib_private.h"
#ifndef HAVE_LIBGIF
-unsigned char loader_gif (FILE *f, int *w, int *h, int *t)
+unsigned char *loader_gif (FILE *f, int *w, int *h, int *t)
{
return NULL;
}