$OpenBSD: patch-configure_py,v 1.5 2010/04/19 14:14:34 espie Exp $
--- configure.py.orig	Fri Apr 16 12:32:02 2010
+++ configure.py	Mon Apr 19 15:01:31 2010
@@ -1060,6 +1060,17 @@ def run_command(cmd):
 
     cmd is the command to run.
     """
+    try:
+        localbase = os.environ["LOCALBASE"]
+    except KeyError:
+        localbase = "/usr/local"
+    try:
+        x11base = os.environ["X11BASE"]
+    except KeyError:
+        x11base = "/usr/X11R6"
+
+    cmd = cmd.replace("${LOCALBASE}", localbase).replace("$(LOCALBASE)", localbase)
+    cmd = cmd.replace("${X11BASE}", x11base).replace("$(X11BASE)", x11base)
     if opts.verbose:
         sys.stdout.write(cmd + "\n")
 
@@ -1673,7 +1684,7 @@ Type 'no' to decline the terms of the license.
             sys.stdout.flush()
 
             try:
-                resp = sys.stdin.readline()
+                resp = "yes"
             except KeyboardInterrupt:
                 raise SystemExit
             except:
