10000 Remove configure check prohibiting threaded libpython on OpenBSD. · lansz/postgres@1b14571 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b14571

Browse files
committed
Remove configure check prohibiting threaded libpython on OpenBSD.
According to recent tests, this case now works fine, so there's no reason to reject it anymore. (Even if there are still some OpenBSD platforms in the wild where it doesn't work, removing the check won't break any case that worked before.) We can actually remove the entire test that discovers whether libpython is threaded, since without the OpenBSD case there's no need to know that at all. Per report from Davin Potts. Back-patch to all active branches.
1 parent e1f1807 commit 1b14571

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

config/python.m4

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,4 @@ AC_SUBST(python_libdir)[]dnl
8585
AC_SUBST(python_libspec)[]dnl
8686
AC_SUBST(python_additional_libs)[]dnl
8787
88-
# threaded python is not supported on OpenBSD
89-
AC_MSG_CHECKING(whether Python is compiled with thread support)
90-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
91-
if test "$pythreads" = "1"; then
92-
AC_MSG_RESULT(yes)
93-
case $host_os in
94-
openbsd*)
95-
AC_MSG_ERROR([threaded Python not supported on this platform])
96-
;;
97-
esac
98-
else
99-
AC_MSG_RESULT(no)
100-
fi
101-
10288
])# PGAC_CHECK_PYTHON_EMBED_SETUP

configure

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7374,25 +7374,6 @@ python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join
73747374
$as_echo "${python_libspec} ${python_additional_libs}" >&6; }
73757375

73767376

7377-
# threaded python is not supported on OpenBSD
7378-
{ $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7379-
$as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7380-
pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7381-
if test "$pythreads" = "1"; then
7382-
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7383-
$as_echo "yes" >&6; }
7384-
case $host_os in
7385-
openbsd*)
7386-
{ { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7387-
$as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7388-
{ (exit 1); exit 1; }; }
7389-
;;
7390-
esac
7391-
else
7392-
{ $as_echo "$as_me:$LINENO: result: no" >&5
7393-
$as_echo "no" >&6; }
7394-
fi
7395-
73967377

73977378
fi
73987379

0 commit comments

Comments
 (0)
0