diff options
Diffstat (limited to 'config/python.m4')
-rw-r--r-- | config/python.m4 | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/config/python.m4 b/config/python.m4 index 7012c536d7..b95c8ed3b3 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -44,6 +44,9 @@ if a == b: print(a) else: print(a + ' ' + b)"` +if test "$PORTNAME" = win32 ; then + python_includespec=`echo $python_includespec | sed 's,[[\]],/,g'` +fi AC_MSG_RESULT([$python_includespec]) AC_SUBST(python_majorversion)[]dnl @@ -93,20 +96,5 @@ AC_MSG_RESULT([${python_libspec} ${python_additional_libs}]) AC_SUBST(python_libdir)[]dnl AC_SUBST(python_libspec)[]dnl AC_SUBST(python_additional_libs)[]dnl -AC_SUBST(python_enable_shared)[]dnl - -# threaded python is not supported on OpenBSD -AC_MSG_CHECKING(whether Python is compiled with thread support) -pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"` -if test "$pythreads" = "1"; then - AC_MSG_RESULT(yes) - case $host_os in - openbsd*) - AC_MSG_ERROR([threaded Python not supported on this platform]) - ;; - esac -else - AC_MSG_RESULT(no) -fi ])# PGAC_CHECK_PYTHON_EMBED_SETUP |