Fix test for Xext headers (bug 1498), now it should fail properly in systems with the old headers.
--- a/configure Thu May 31 19:23:30 2012 +0300
+++ b/configure Fri Jun 01 19:42:15 2012 -0300
@@ -22181,6 +22181,8 @@
#include <X11/extensions/Xext.h>
#include <X11/extensions/extutil.h>
+extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
+
int
main ()
{
--- a/configure.in Thu May 31 19:23:30 2012 +0300
+++ b/configure.in Fri Jun 01 19:42:15 2012 -0300
@@ -1099,6 +1099,7 @@
#include <X11/extensions/Xext.h>
#include <X11/extensions/extutil.h>
],[
+extern XExtDisplayInfo* XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f);
XExtDisplayInfo*
XextAddDisplay(XExtensionInfo* a,Display* b,_Xconst char* c,XExtensionHooks* d,int e,XPointer f)
{