$NetBSD: patch-aa,v 1.3 2008/08/09 16:10:10 tnn Exp $

--- configure.orig	2008-12-22 06:39:06 +0200
+++ configure	2009-06-09 09:31:19 +0300
@@ -21603,7 +21603,7 @@ _ACEOF
 fi
 
 
-if test "$DRI" != no; then
+if test "x$DRI" = xauto; then
         as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
@@ -22157,16 +22157,8 @@ $as_echo_n "checking for $XORG_SGML_PATH
 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
   $as_echo_n "(cached) " >&6
 else
-  test "$cross_compiling" = yes &&
-  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
-$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
-   { (exit 1); exit 1; }; }
-if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
-  eval "$as_ac_File=yes"
-else
   eval "$as_ac_File=no"
 fi
-fi
 ac_res=`eval 'as_val=${'$as_ac_File'}
 		 $as_echo "$as_val"'`
 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
