# HG changeset patch # User Sam Lantinga # Date 1140425340 0 # Node ID 6fd39b50dd917b24472471eac1fc9ac958ff730e # Parent 1736c5e2173fbdb47855625cc767b57c094ba532 build fixes for IRIX 6.5 - dynamic X11 loading works! :) diff -r 1736c5e2173f -r 6fd39b50dd91 configure.in --- a/configure.in Mon Feb 20 03:57:03 2006 +0000 +++ b/configure.in Mon Feb 20 08:49:00 2006 +0000 @@ -737,20 +737,24 @@ , enable_x11_shared=yes) case "$target" in - *-*-darwin* ) + *-*-darwin*) x11_lib='/usr/X11R6/lib/libX11.6.dylib' x11ext_lib='/usr/X11R6/lib/libXext.6.dylib' ;; - *-*-osf* ) + *-*-osf*) + x11_lib='libX11.so' + x11ext_lib='libXext.so' + ;; + *-*-irix*) # IRIX 6.5 requires that we use /usr/lib32 x11_lib='libX11.so' x11ext_lib='libXext.so' ;; *) if test x$X_LIBS = x; then X_LIBS="-L/usr/lib"; fi - x11_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libX11.so.*/'` - x11_lib=`ls $x11_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` - x11ext_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libXext.so.*/'` - x11ext_lib=`ls $x11ext_lib_spec | sed 's/.*\/\(.*\)/\1/; q'` + x11_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libX11.so*/'` + x11_lib=`ls $x11_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` + x11ext_lib_spec=`echo $X_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libXext.so*/'` + x11ext_lib=`ls $x11ext_lib_spec 2>/dev/null | sort -r | sed 's/.*\/\(.*\)/\1/; q'` ;; esac @@ -2352,7 +2356,7 @@ # Set runtime shared library paths as needed if test "x$enable_rpath" = "xyes"; then - if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then + if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi -o $ARCH = irix; then SDL_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" fi if test $ARCH = solaris; then diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/XME/xme.c --- a/src/video/Xext/XME/xme.c Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/XME/xme.c Mon Feb 20 08:49:00 2006 +0000 @@ -14,15 +14,15 @@ #define NEED_EVENTS #define NEED_REPLIES -#include +#include "../../x11/SDL_x11dyn.h" + +/*#include */ #include #include #include #include #include "../extensions/extutil.h" -#include "../../x11/SDL_x11dyn.h" - /*****************************************************************************/ diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/Xinerama/Xinerama.c --- a/src/video/Xext/Xinerama/Xinerama.c Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/Xinerama/Xinerama.c Mon Feb 20 08:49:00 2006 +0000 @@ -27,7 +27,10 @@ #define NEED_EVENTS #define NEED_REPLIES -#include + +#include "../../x11/SDL_x11dyn.h" + +/*#include */ #include #include /* in ../include */ #include "../extensions/extutil.h" /* in ../include */ @@ -35,8 +38,6 @@ #include "../extensions/panoramiXproto.h" /* in ../include */ #include "../extensions/Xinerama.h" -#include "../../x11/SDL_x11dyn.h" - static XExtensionInfo _panoramiX_ext_info_data; static XExtensionInfo *panoramiX_ext_info = &_panoramiX_ext_info_data; static /* const */ char *panoramiX_extension_name = PANORAMIX_PROTOCOL_NAME; diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/Xv/Xv.c --- a/src/video/Xext/Xv/Xv.c Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/Xv/Xv.c Mon Feb 20 08:49:00 2006 +0000 @@ -56,8 +56,6 @@ #include #include "../extensions/extutil.h" -#include "../../x11/SDL_x11dyn.h" - static XExtensionInfo _xv_info_data; static XExtensionInfo *xv_info = &_xv_info_data; static char *xv_extension_name = XvName; diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/Xv/Xvlibint.h --- a/src/video/Xext/Xv/Xvlibint.h Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/Xv/Xvlibint.h Mon Feb 20 08:49:00 2006 +0000 @@ -43,7 +43,9 @@ #define NEED_REPLIES -#include +#include "../../x11/SDL_x11dyn.h" + +/*#include */ #include "../extensions/Xvproto.h" #include "../extensions/Xvlib.h" diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/Xxf86dga/XF86DGA.c --- a/src/video/Xext/Xxf86dga/XF86DGA.c Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/Xxf86dga/XF86DGA.c Mon Feb 20 08:49:00 2006 +0000 @@ -58,14 +58,15 @@ #define NEED_EVENTS #define NEED_REPLIES -#include + +#include "../../x11/SDL_x11dyn.h" + +/*#include */ #include "../extensions/xf86dga.h" #include "../extensions/xf86dgastr.h" #include #include "../extensions/extutil.h" -#include "../../x11/SDL_x11dyn.h" - extern XExtDisplayInfo* SDL_NAME(xdga_find_display)(Display*); extern char *SDL_NAME(xdga_extension_name); diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/Xxf86dga/XF86DGA2.c --- a/src/video/Xext/Xxf86dga/XF86DGA2.c Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/Xxf86dga/XF86DGA2.c Mon Feb 20 08:49:00 2006 +0000 @@ -16,7 +16,10 @@ #define NEED_EVENTS #define NEED_REPLIES -#include + +#include "../../x11/SDL_x11dyn.h" + +/*#include */ #include "../extensions/xf86dga.h" #include "../extensions/xf86dgastr.h" #include @@ -28,8 +31,6 @@ #include #endif -#include "../../x11/SDL_x11dyn.h" - /* If you change this, change the Bases[] array below as well */ #define MAX_HEADS 16 diff -r 1736c5e2173f -r 6fd39b50dd91 src/video/Xext/Xxf86vm/XF86VMode.c --- a/src/video/Xext/Xxf86vm/XF86VMode.c Mon Feb 20 03:57:03 2006 +0000 +++ b/src/video/Xext/Xxf86vm/XF86VMode.c Mon Feb 20 08:49:00 2006 +0000 @@ -35,8 +35,11 @@ #define NEED_EVENTS #define NEED_REPLIES + +#include "../../x11/SDL_x11dyn.h" + #ifndef XBUILD_IN_CLIENT -#include +/*#include */ #include "../extensions/xf86vmstr.h" #include #include "../extensions/extutil.h" @@ -47,8 +50,6 @@ #include "include/extensions/extutil.h" #endif -#include "../../x11/SDL_x11dyn.h" - #ifdef DEBUG #include #endif