aboutsummaryrefslogtreecommitdiff
path: root/external/unbound/acx_python.m4
diff options
context:
space:
mode:
Diffstat (limited to 'external/unbound/acx_python.m4')
-rw-r--r--external/unbound/acx_python.m45
1 files changed, 2 insertions, 3 deletions
diff --git a/external/unbound/acx_python.m4 b/external/unbound/acx_python.m4
index 254ff2096..2940971f1 100644
--- a/external/unbound/acx_python.m4
+++ b/external/unbound/acx_python.m4
@@ -22,8 +22,7 @@ AC_DEFUN([AC_PYTHON_DEVEL],[
# Check if you have distutils, else fail
#
AC_MSG_CHECKING([for the distutils Python package])
- ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
- if test -z "$ac_distutils_result"; then
+ if ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
@@ -54,7 +53,7 @@ $ac_distutils_result])
AC_MSG_CHECKING([for Python library path])
if test -z "$PYTHON_LDFLAGS"; then
PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
- print(get_config_var('BLDLIBRARY'));"`
+ print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
fi
AC_MSG_RESULT([$PYTHON_LDFLAGS])
AC_SUBST([PYTHON_LDFLAGS])