File fox-1.4.35_configure_x11_extensions_header.patch of Package fox14
--- configure.in
+++ configure.in
@@ -198,7 +198,9 @@
AC_ARG_ENABLE(shape,[ --with-shape enable XShape support])
AC_MSG_RESULT([$with_shape])
if test "x$with_shape" != "xno"; then
-AC_CHECK_HEADER(X11/extensions/shape.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XSHAPE_H=1")
+AC_CHECK_HEADER(X11/extensions/shape.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XSHAPE_H=1", [], [[
+#include <X11/Xlib.h>
+]])
fi
@@ -207,7 +209,9 @@
AC_MSG_RESULT([$with_xshm])
if test "x$with_xshm" != "xno"; then
XSHM="-DHAVE_XSHM_H=1"
-AC_CHECK_HEADER(X11/extensions/XShm.h,,XSHM="")
+AC_CHECK_HEADER(X11/extensions/XShm.h,,XSHM="",[[
+#include <X11/Xlib.h>
+]])
AC_CHECK_HEADER(sys/ipc.h,,XSHM="")
AC_CHECK_HEADER(sys/shm.h,,XSHM="")
CXXFLAGS="${CXXFLAGS} ${XSHM}"
@@ -292,7 +296,9 @@
AC_ARG_WITH(xcursor,[ --with-xcursor compile with Xcursor support])
AC_MSG_RESULT([$with_xcursor])
if test "x$with_xcursor" != "xno"; then
-AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XCURSOR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXcursor")
+AC_CHECK_HEADER(X11/Xcursor/Xcursor.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XCURSOR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXcursor", [], [[
+#include <X11/Xlib.h>
+]])
fi
@@ -300,7 +306,9 @@
AC_ARG_WITH(xrandr,[ --with-xrandr compile with XRandR support])
AC_MSG_RESULT([$with_xrandr])
if test "x$with_xrandr" != "xno"; then
-AC_CHECK_HEADER(X11/extensions/Xrandr.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XRANDR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXrandr")
+AC_CHECK_HEADER(X11/extensions/Xrandr.h,CXXFLAGS="${CXXFLAGS} -DHAVE_XRANDR_H=1"; X_BASE_LIBS="${X_BASE_LIBS} -lXrandr", [], [[
+#include <X11/Xlib.h>
+]])
fi