1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Windows also needs an override of the shared libpython detection

This commit is contained in:
Peter Eisentraut
2015-05-02 13:23:16 -04:00
parent e30a864963
commit 67df9782e9
3 changed files with 14 additions and 9 deletions

11
configure vendored
View File

@ -7549,15 +7549,18 @@ fi
# we see if there is a file that is named like a shared library.
if test "$python_enable_shared" != 1; then
# OS X does supply a .dylib even though Py_ENABLE_SHARED does not
# get set. The file detection logic below doesn't succeed on
# older OS X versions, so make it explicit.
if test "$PORTNAME" = darwin; then
# OS X does supply a .dylib even though Py_ENABLE_SHARED does
# not get set. The file detection logic below doesn't succeed
# on older OS X versions, so make it explicit.
python_enable_shared=1
elif test "$PORTNAME" = win32; then
# Windows also needs an explicit override.
python_enable_shared=1
else
# We don't know the platform shared library extension here yet,
# so we try some candidates.
for dlsuffix in .so .dll .sl; do
for dlsuffix in .so .sl; do
if ls "$python_libdir"/libpython*${dlsuffix}* >/dev/null 2>&1; then
python_enable_shared=1
break