Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
authorSam Lantinga
Wed, 10 May 2006 14:59:08 +0000
changeset 18068baf6641cd57
parent 1805 259e03cbcb5f
child 1807 f173f8fe1fc6
Added hardcoded /usr/X11R6 path so GLX detection works on Mac OS X.
configure.in
     1.1 --- a/configure.in	Wed May 10 07:42:02 2006 +0000
     1.2 +++ b/configure.in	Wed May 10 14:59:08 2006 +0000
     1.3 @@ -788,6 +788,17 @@
     1.4  AC_HELP_STRING([--enable-video-x11], [use X11 video driver [[default=yes]]]),
     1.5                    , enable_video_x11=yes)
     1.6      if test x$enable_video = xyes -a x$enable_video_x11 = xyes; then
     1.7 +        case "$host" in
     1.8 +            *-*-darwin*) # Latest Mac OS X actually ships with Xrandr/Xrender libs...
     1.9 +                # This isn't strictly necessary for X11, but for GLX detection
    1.10 +                if test "x$x_includes" = xNONE; then
    1.11 +                    x_includes="/usr/X11R6/include"
    1.12 +                fi
    1.13 +                if test "x$x_libraries" != xNONE; then
    1.14 +                    x_libraries="/usr/X11R6/lib"
    1.15 +                fi
    1.16 +                ;;
    1.17 +        esac
    1.18          AC_PATH_X
    1.19          AC_PATH_XTRA
    1.20          if test x$have_x = xyes; then