summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README4
-rw-r--r--configure.ac11
2 files changed, 14 insertions, 1 deletions
diff --git a/README b/README
index 207967fd9a..be5ab8f84c 100644
--- a/README
+++ b/README
@@ -11,6 +11,10 @@ Simple build instructions:
Requires autoconf 2.59 or newer.
Use automake-1.11 or better for working Python 3.1 tests.
+Alternatively, you could manually specify an absolute path to python
+executable by the --with-pythonpath option of the configure script,
+e.g.,
+% ./configure --with-pythonpath=/usr/local/bin/python3.1
Operating-System specific tips:
diff --git a/configure.ac b/configure.ac
index 7f270960ca..da2d52281a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,16 @@ AC_LANG_CPLUSPLUS
AX_COMPILER_VENDOR
m4_define([_AM_PYTHON_INTERPRETER_LIST], [python python3 python3.1])
-AM_PATH_PYTHON([3.1])
+AC_ARG_WITH([pythonpath],
+AC_HELP_STRING([--with-pythonpath=PATH],
+ [specify an absolute path to python executable when automatic version check (incorreclty) fails]),
+ [python_path="$withval"], [python_path="auto"])
+if test "$python_path" = auto; then
+ AM_PATH_PYTHON([3.1])
+else
+ PYTHON=$python_path
+ AC_SUBST(PYTHON)
+fi
# TODO: check for _sqlite3.py module