aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/configure
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/configure')
-rwxr-xr-xexternal/unbound/configure3
1 files changed, 3 insertions, 0 deletions
diff --git a/external/unbound/configure b/external/unbound/configure
index 425466ebd..630d6e450 100755
--- a/external/unbound/configure
+++ b/external/unbound/configure
@@ -677,6 +677,7 @@ WITH_PYTHONMODULE
swig
SWIG_LIB
SWIG
+PY_MAJOR_VERSION
PYTHON_SITE_PKG
PYTHON_LDFLAGS
PYTHON_CPPFLAGS
@@ -16100,6 +16101,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
as_fn_error $? "Python version >= 2.4.0 is required" "$LINENO" 5
fi
+ PY_MAJOR_VERSION="`$PYTHON -c "import sys; print(sys.version_info.major)"`"
+
# Have Python
$as_echo "#define HAVE_PYTHON 1" >>confdefs.h