183 AC_LANG_PUSH(C) |
183 AC_LANG_PUSH(C) |
184 OLD_CFLAGS="$CFLAGS" |
184 OLD_CFLAGS="$CFLAGS" |
185 CFLAGS="$CFLAGS $X_CFLAGS" |
185 CFLAGS="$CFLAGS $X_CFLAGS" |
186 |
186 |
187 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 |
187 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 |
188 AC_CHECK_HEADERS([X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h], |
188 AC_CHECK_HEADERS([X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h], |
189 [X11_A_OK=yes], |
189 [X11_A_OK=yes], |
190 [X11_A_OK=no; break], |
190 [X11_A_OK=no; break], |
191 [ # include <X11/Xlib.h> |
191 [ # include <X11/Xlib.h> |
192 # include <X11/Xutil.h> |
192 # include <X11/Xutil.h> |
193 ]) |
193 ]) |