summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorths2007-01-31 13:10:07 +0100
committerths2007-01-31 13:10:07 +0100
commitfd6776422bb97e957f7771a84fd4f1399557b973 (patch)
tree3b2bac3d3dcb23a18ed13f12f03a03d80f34fae6 /configure
parentFix set_error return value, by Pierre d'Herbemont. (diff)
downloadqemu-fd6776422bb97e957f7771a84fd4f1399557b973.tar.gz
qemu-fd6776422bb97e957f7771a84fd4f1399557b973.tar.xz
qemu-fd6776422bb97e957f7771a84fd4f1399557b973.zip
Use Cocoa and CoreAudio backend by default on Darwin systems, by Pierre
d'Herbemont. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2368 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure b/configure
index eda1437fe8..bcff13e977 100755
--- a/configure
+++ b/configure
@@ -128,6 +128,8 @@ Darwin)
bsd="yes"
darwin="yes"
darwin_user="yes"
+cocoa="yes"
+coreaudio="yes"
OS_CFLAGS="-mdynamic-no-pic"
;;
SunOS)
@@ -503,7 +505,9 @@ _sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'`
if test "$_sdlversion" -lt 121 ; then
sdl_too_old=yes
else
-sdl=yes
+ if test "$cocoa" = "no" ; then
+ sdl=yes
+ fi
fi
# static link with sdl ?
@@ -524,6 +528,13 @@ fi # static link
fi # sdl compile test
fi # cross compilation
+
+else
+ # Make sure to disable cocoa if sdl was set
+ if test "$sdl" = "yes" ; then
+ cocoa="no"
+ coreaudio="no"
+ fi
fi # -z $sdl
##########################################