aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 6b83e38fbd..e7130038dd 100755
--- a/configure
+++ b/configure
@@ -83,6 +83,7 @@ fmod_inc=""
linux="no"
kqemu="no"
kernel_path=""
+cocoa="no"
# OS specific
targetos=`uname -s`
@@ -178,6 +179,8 @@ for opt do
;;
--kernel-path=*) kernel_path=${opt#--kernel-path=}
;;
+ --enable-cocoa) cocoa="yes" ; sdl="no"
+ ;;
esac
done
@@ -403,6 +406,9 @@ echo "host big endian $bigendian"
echo "target list $target_list"
echo "gprof enabled $gprof"
echo "static build $static"
+if test "$darwin" = "yes" ; then
+ echo "Cocoa support $cocoa"
+fi
echo "SDL support $sdl"
echo "SDL static link $sdl_static"
echo "mingw32 support $mingw32"
@@ -676,6 +682,11 @@ if test "$target_user_only" = "no"; then
fi
fi
+if test "$cocoa" = "yes" ; then
+ echo "#define CONFIG_COCOA 1" >> $config_h
+ echo "CONFIG_COCOA=yes" >> $config_mak
+fi
+
done # for target in $targets
# build tree in object directory if source path is different from current one