Skip to content

Commit 17a3a1e

Browse files
committed
Fix python shlib probe for Cygwin.
On buildfarm member cockatiel, that library is in /usr/bin. (Possibly we should look at $PATH on this platform?) Per off-list report from Andrew Dunstan.
1 parent 4806f26 commit 17a3a1e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

config/python.m4

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ else
130130
done
131131
done
132132
fi
133-
# As usual, Windows has its own ideas. c:/Windows/System32 takes the
134-
# place of /usr/lib as a possible default library location, and the
135-
# "lib" prefix might not be there.
136-
if test "$found_shlib" != 1 -a "$PORTNAME" = win32 ; then
137-
for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32
133+
# As usual, Windows has its own ideas. Possible default library
134+
# locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
135+
# and the "lib" prefix might not be there.
136+
if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
137+
for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
138138
do
139139
for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
140140
if test -e "$f"; then

configure

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7673,11 +7673,11 @@ else
76737673
done
76747674
done
76757675
fi
7676-
# As usual, Windows has its own ideas. c:/Windows/System32 takes the
7677-
# place of /usr/lib as a possible default library location, and the
7678-
# "lib" prefix might not be there.
7679-
if test "$found_shlib" != 1 -a "$PORTNAME" = win32 ; then
7680-
for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32
7676+
# As usual, Windows has its own ideas. Possible default library
7677+
# locations include c:/Windows/System32 and (for Cygwin) /usr/bin,
7678+
# and the "lib" prefix might not be there.
7679+
if test "$found_shlib" != 1 -a \( "$PORTNAME" = win32 -o "$PORTNAME" = cygwin \); then
7680+
for d in "${python_libdir}" "${python_configdir}" c:/Windows/System32 /usr/bin
76817681
do
76827682
for f in "$d/lib${ldlibrary}.dll" "$d/${ldlibrary}.dll" ; do
76837683
if test -e "$f"; then

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy