summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c23cca1)
raw | patch | inline | side by side (parent: c23cca1)
author | Jakub Narebski <jnareb@gmail.com> | |
Mon, 4 Sep 2006 22:57:45 +0000 (00:57 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 5 Sep 2006 01:55:35 +0000 (18:55 -0700) |
Add custom test for checking if Python comes with subprocess.py, or
should we use our own subprocess.py by defining WITH_OWN_SUBPROCESS_PY.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
should we use our own subprocess.py by defining WITH_OWN_SUBPROCESS_PY.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index fc5b813ec70fbba88cbb890f8676fea74ac6bb3c..6fc554e3a39e4297f6c0828d533042db89762106 100644 (file)
--- a/configure.ac
+++ b/configure.ac
# Enable it on Windows. By default, symrefs are still used.
#
# Define WITH_OWN_SUBPROCESS_PY if you want to use with python 2.3.
+AC_CACHE_CHECK(for subprocess.py,
+ ac_cv_python_has_subprocess_py,
+[if $PYTHON_PATH -c 'import subprocess' 2>/dev/null; then
+ ac_cv_python_has_subprocess_py=yes
+else
+ ac_cv_python_has_subprocess_py=no
+fi])
+if test $ac_cv_python_has_subprocess_py != yes; then
+ GIT_CONF_APPEND_LINE([WITH_OWN_SUBPROCESS_PY=YesPlease])
+fi
#
# Define NO_ACCURATE_DIFF if your diff program at least sometimes misses
# a missing newline at the end of the file.