$NetBSD: patch-aj,v 1.4 2000/10/17 23:57:46 jlam Exp $

--- gnome-config.in.orig	Wed Sep 27 19:59:01 2000
+++ gnome-config.in
@@ -40,6 +40,8 @@
     module_dirs="$extra:$module_dirs"
 done
 
+module_dirs="@LOCALBASE@/lib:$module_dirs"
+
 usage()
 {
     exit_code=$1
@@ -173,11 +175,11 @@
 	the_flags="$the_flags `gtk-config --cflags`"
 	;;
     gnome)
-       	the_libs="$the_libs @GNOME_LIBDIR@ @GNOME_LIBS@"
+       	the_libs="$the_libs @GNOME_LIBDIR@ @GNOME_LIBS@ @INTLLIBS@"
   	the_flags="$the_flags @GNOME_INCLUDEDIR@ @GTK_CFLAGS@"
 	;;
     gnomeui)
-	the_libs="$the_libs @GNOME_LIBDIR@ @GNOMEUI_LIBS@"
+	the_libs="$the_libs @GNOME_LIBDIR@ @GNOMEUI_LIBS@ @INTLLIBS@"
 	the_flags="$the_flags @GNOME_INCLUDEDIR@ @GTK_CFLAGS@"
 	;;
     gtkxmhtml)
@@ -253,7 +255,7 @@
     case "$i" in
     # a library, save it for later, in reverse order
     -l*) rev_libs="$i $rev_libs" ;;
-    -L*|-R*)
+    -L*|-R*|-Wl,-R*)
 	if $libs_L; then
 	    case " $lib_L_flags " in
 	    *\ $i\ *) ;;			# already there
