--- ./configure.in.dist	Wed May 21 23:42:39 2003
+++ ./configure.in	Fri Jun 27 00:11:47 2003
@@ -166,6 +166,10 @@
 
 ALL_X_LIBS="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
 
+# Check for libXext, see Bug 115996
+AC_CHECK_LIB(Xext, XMissingExtension,
+	[ALL_X_LIBS="$ALL_X_LIBS -lXext"], [], [$ALL_X_LIBS])
+
 # Check for Xinerama extension (Solaris impl or Xfree impl)
 metacity_save_cppflags="$CPPFLAGS"
 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
