diff options
Diffstat (limited to 'config/python.m4')
| -rw-r--r-- | config/python.m4 | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/config/python.m4 b/config/python.m4 index e500873ff3..b295ad3d3a 100644 --- a/config/python.m4 +++ b/config/python.m4 @@ -120,16 +120,11 @@ else found_shlib=0 for d in "${python_libdir}" "${python_configdir}" /usr/lib64 /usr/lib do - # Note: DLSUFFIX is for loadable modules, not shared - # libraries, so cannot be used here portably. Just - # check all known possibilities. - for e in .so .dll .dylib .sl; do - if test -e "$d/lib${ldlibrary}$e"; then - python_libdir="$d" - found_shlib=1 - break 2 - fi - done + if test -e "$d/lib${ldlibrary}${DLSUFFIX}"; then + python_libdir="$d" + found_shlib=1 + break 2 + fi done # Some platforms (OpenBSD) require us to accept a bare versioned shlib # (".so.n.n") as well. However, check this only after failing to find |
