$OpenBSD: patch-configure,v 1.2 2004/10/21 06:10:45 jolan Exp $
--- configure.orig	Thu Oct  7 12:38:48 2004
+++ configure	Thu Oct 21 00:13:06 2004
@@ -6223,7 +6223,7 @@ fi
 
 # avoid using X11 in BeOS
 if test $host_os != beos; then
-  CPPFLAGS=
+  CPPFLAGS="$X_CFLAGS $CPPFLAGS"
   if test x$no_x = x; then
     GLIBS="$X_PRE_LIBS -lX11 $EXTRA_LIBS $GLIBS"
   fi
