Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD
authorSam Lantinga <slouken@libsdl.org>
Wed, 18 Jul 2012 13:57:39 -0700
changeset 6365 975e23e06124
parent 6363 8506dd64e859
child 6367 3c1253baeaec
Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSD Brad Smith 2012-07-18 13:43:34 PDT autoconf patch to fix X dynamic loading of libraries on OpenBSD
configure
configure.in
--- a/configure	Wed Jul 18 13:06:38 2012 -0700
+++ b/configure	Wed Jul 18 13:57:39 2012 -0700
@@ -22103,6 +22103,12 @@
                     xss_lib='/usr/X11R6/lib/libXss.1.dylib'
                     xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
                     ;;
+                *-*-openbsd*)
+                    x11_lib='libX11.so'
+                    x11ext_lib='libXext.so'
+                    xrender_lib='libXrender.so'
+                    xrandr_lib='libXrandr.so'
+                    ;;
                 *)
                     x11_lib=`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
                     x11ext_lib=`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`
--- a/configure.in	Wed Jul 18 13:06:38 2012 -0700
+++ b/configure.in	Wed Jul 18 13:57:39 2012 -0700
@@ -1042,6 +1042,12 @@
                     xss_lib='/usr/X11R6/lib/libXss.1.dylib'
                     xvidmode_lib='/usr/X11R6/lib/libXxf86vm.1.dylib'
                     ;;
+                *-*-openbsd*)
+                    x11_lib='libX11.so'
+                    x11ext_lib='libXext.so'
+                    xrender_lib='libXrender.so'
+                    xrandr_lib='libXrandr.so'
+                    ;;
                 *)
                     x11_lib=[`find_lib "libX11.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]
                     x11ext_lib=[`find_lib "libXext.so.*" "$X_LIBS -L/usr/X11/$base_libdir -L/usr/X11R6/$base_libdir" | sed 's/.*\/\(.*\)/\1/; q'`]