diff -ur imlib2_tools.orig/configure.ac imlib2_tools/configure.ac
--- imlib2_tools.orig/configure.ac	2003-09-18 15:44:52.494033344 -0400
+++ imlib2_tools/configure.ac	2003-09-18 15:45:16.118441888 -0400
@@ -34,7 +34,8 @@
 
 AC_CHECK_LIB(Imlib2, imlib_context_set_display, 
 	[ imlib2_libs=`${imlib2_path}imlib2-config --libs`;
-		CFLAGS="$CFLAGS `${imlib2_path}imlib2-config --libs --cflags`"],
+		CFLAGS="$CFLAGS `${imlib2_path}imlib2-config --cflags`";
+		LIBS="$LIBS `${imlib2_path}imlib2-config --libs`"],
 	AC_MSG_ERROR(
 	""
 	"**********************************************************************"