$NetBSD: patch-ac,v 1.2 2004/04/29 18:59:25 minskim Exp $

--- config/util/xmkmf.cpp.orig	Thu May 29 22:59:30 1997
+++ config/util/xmkmf.cpp
@@ -7,7 +7,7 @@ XCOMM $XConsortium: xmkmf.cpp /main/22 1
 
 usage="usage:  $0 [-a] [top_of_sources_pathname [current_directory]]"
 
-configdirspec=CONFIGDIRSPEC
+configdirspec="-I"CONFIGDIRSPEC
 topdir=
 curdir=.
 do_all=
@@ -41,10 +41,10 @@ else
     args="-I$topdir/config/cf -DTOPDIR=$topdir -DCURDIR=$curdir"
 fi
 
-echo imake $args
+echo BINDIRSPEC/imake $args
 case "$do_all" in
 yes)
-    imake $args && 
+    BINDIRSPEC/imake $args && 
     echo "make Makefiles" &&
     make Makefiles &&
     echo "make includes" &&
@@ -53,6 +53,6 @@
     make depend
     ;;
 *)
-    imake $args
+    BINDIRSPEC/imake $args
     ;;
 esac
