mirror of
https://github.com/yawut/SDL.git
synced 2026-08-20 15:54:10 -05:00
OpenBSD doesn't ship with X11 library major version symlinks
This commit is contained in:
12
configure.in
12
configure.in
@@ -825,15 +825,27 @@ AC_HELP_STRING([--enable-x11-shared], [dynamically load X11 support [[default=ye
|
||||
for path in $x11_lib_path /usr/lib /usr/X11/lib /usr/X11R6/lib; do
|
||||
if test "x$x11_lib" = "x"; then
|
||||
x11_lib=[`ls -- $path/libX11.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
if test "x$x11_lib" = "x"; then
|
||||
x11_lib=[`ls -- $path/libX11.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
fi
|
||||
fi
|
||||
if test "x$x11ext_lib" = "x"; then
|
||||
x11ext_lib=[`ls -- $path/libXext.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
if test "x$x11ext_lib" = "x"; then
|
||||
x11ext_lib=[`ls -- $path/libXext.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
fi
|
||||
fi
|
||||
if test "x$xrender_lib" = "x"; then
|
||||
xrender_lib=[`ls -- $path/libXrender.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
if test "x$xrender_lib" = "x"; then
|
||||
xrender_lib=[`ls -- $path/libXrender.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
fi
|
||||
fi
|
||||
if test "x$xrandr_lib" = "x"; then
|
||||
xrandr_lib=[`ls -- $path/libXrandr.so.[0-9] 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
if test "x$xrandr_lib" = "x"; then
|
||||
xrandr_lib=[`ls -- $path/libXrandr.so.[0-9]* 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'`]
|
||||
fi
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user