--- configure.orig	Mon Sep  9 14:09:25 2002
+++ configure	Sat Oct  5 13:43:32 2002
@@ -5723,6 +5723,7 @@
 
 # This can be used to rebuild libtool when needed
 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
 
 # Always use our own libtool.
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
@@ -7863,7 +7864,7 @@
 
                               
    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
-unistd.h sys/param.h
+unistd.h sys/param.h langinfo.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -9299,7 +9300,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lXinerama $GTK_LIBS $LIBS"
+LIBS="-lXinerama -lXext $GTK_LIBS $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 9305 "configure"
 #include "confdefs.h"
@@ -9332,7 +9333,7 @@
 #define HAVE_LIBXINERAMA 1
 EOF
 
-		     	XINERAMA_LIBS="-lXinerama"
+		     	XINERAMA_LIBS="-lXinerama -lXext"
 		     	XINERAMA_SUPPORT=yes
 else
   echo "$ac_t""no" 1>&6
