]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
default to SDL if it is available
authorMerlijn Hofstra <merlijnhofstra@mh.local>
Sun, 6 Jun 2010 14:33:31 +0000 (16:33 +0200)
committerMerlijn Hofstra <merlijnhofstra@mh.local>
Sun, 6 Jun 2010 14:33:31 +0000 (16:33 +0200)
all

diff --git a/all b/all
index ab90d98ef394569ffa6d50fe07b4d397db8e3cca..0f951ac440396c58b78417ce24f060a9dcf92706 100755 (executable)
--- a/all
+++ b/all
@@ -438,6 +438,9 @@ case "$cmd" in
                        if [ -z "$CC" ]; then
                                export CC=gcc
                        fi
                        if [ -z "$CC" ]; then
                                export CC=gcc
                        fi
+               elif [ x"`uname`" = x"Darwin" ] && ( [ -d /Library/Frameworks/SDL.framework ] || [ -d $(HOME)/Library/Frameworks/SDL.framework ] ); then
+                       # AGL is broken in Snow Leopard, so let's default to SDL if it is available.
+                       TARGETS="sv-debug sdl-debug"
                else
                        TARGETS="sv-debug cl-debug sdl-debug"
                fi
                else
                        TARGETS="sv-debug cl-debug sdl-debug"
                fi