blob: 2701b5906a7bc30e3f563d871015d0625f3c2440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Also check for dylib before giving up, bug #335811
--- macros/ac_python_devel.m4
+++ macros/ac_python_devel.m4
@@ -42,7 +42,7 @@
# Check for Python library path
AC_MSG_CHECKING([for Python library path])
python_path=`python$PYTHON_VERSION -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_var("LIBDIR"))'`
- if test ! -f "${python_path}"/libpython$PYTHON_VERSION.so ; then
+ if test ! -f "${python_path}"/libpython$PYTHON_VERSION.so && test ! -f "${python_path}"/libpython$PYTHON_VERSION.dylib ; then
python_path=""
fi
AC_MSG_RESULT([$python_path])
|