#ifdef HAVE_X11_XLIB_H # include #endif main() { XPoint pt; pt.x = pt.y = 0; return pt.x; } ],[x11_works=yes]) AC_MSG_RESULT($x11_works) if test "x$x11_works" = "xyes" ; then AC_MSG_CHECKING(for X11 link functionality) AC_TRY_RUN([ #ifdef HAVE_X11_XLIB_H # include #endif main() { XModifierKeymap *xmkm; xmkm=XNewModifiermap(1); return xmkm==NULL; } ],,x11_works=no) AC_MSG_RESULT($x11_works)