When testing to see if glib exists, set LIBS="$GLIB_LIBS $LIBS" NOT
authorElliot Lee <sopwith@src.gnome.org>
Thu, 31 Dec 1998 20:58:03 +0000 (20:58 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Thu, 31 Dec 1998 20:58:03 +0000 (20:58 +0000)
When testing to see if glib exists, set
LIBS="$GLIB_LIBS $LIBS"
NOT
LIBS="$LIBS $GLIB_LIBS"
because order matters - if the user specifies their own $LIBS to
./configure, these need to be passed in last.

glib.m4

diff --git a/glib.m4 b/glib.m4
index 3757a76..b8094bb 100644 (file)
--- a/glib.m4
+++ b/glib.m4
@@ -60,7 +60,7 @@ AC_ARG_ENABLE(glibtest, [  --disable-glibtest       Do not try to compile and ru
       ac_save_CFLAGS="$CFLAGS"
       ac_save_LIBS="$LIBS"
       CFLAGS="$CFLAGS $GLIB_CFLAGS"
-      LIBS="$LIBS $GLIB_LIBS"
+      LIBS="$GLIB_LIBS $LIBS"
 dnl
 dnl Now check if the installed GLIB is sufficiently new. (Also sanity
 dnl checks the results of glib-config to some extent