$OpenBSD: patch-configure_py,v 1.12 2013/11/08 22:37:43 sthen Exp $
--- configure.py.orig	Wed Aug 21 06:50:47 2013
+++ configure.py	Fri Nov  8 08:58:17 2013
@@ -1159,6 +1159,17 @@ def run_command(cmd, envvars=None):
 
     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")
 
@@ -1841,7 +1852,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:
