From 826b985e543e12f83c396922d9c6562050e0f9f6 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Wed, 1 Jun 2011 15:28:14 +0200 Subject: android-configure.sh: fix KVM-enabled builds. This patch ensures that CONFIG_KVM_GS_RESTORE is defined in the auto-generated config-host.h. Does not affect normal platform builds. Change-Id: Ib064fd44d73e9b6e9b3e9349c1e72c060a83f38c --- android-configure.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'android-configure.sh') diff --git a/android-configure.sh b/android-configure.sh index 02e4d99..5a1748c 100755 --- a/android-configure.sh +++ b/android-configure.sh @@ -202,7 +202,7 @@ if [ -n "$SDL_CONFIG" ] ; then SDL_LIBS=`$SDL_CONFIG --static-libs` # quick hack, remove the -D_GNU_SOURCE=1 of some SDL Cflags - # since they break recent Mingw releases +7 # since they break recent Mingw releases SDL_CFLAGS=`echo $SDL_CFLAGS | sed -e s/-D_GNU_SOURCE=1//g` log "SDL-probe : SDL_CFLAGS = $SDL_CFLAGS" @@ -460,6 +460,21 @@ echo "#define CONFIG_SLIRP 1" >> $config_h echo "#define CONFIG_SKINS 1" >> $config_h echo "#define CONFIG_TRACE 1" >> $config_h +case "$TARGET_OS" in + windows) + echo "#define CONFIG_WIN32 1" >> $config_h + ;; + *) + echo "#define CONFIG_POSIX 1" >> $config_h + ;; +esac + +case "$TARGET_OS" in + linux-*) + echo "#define CONFIG_KVM_GS_RESTORE 1" >> $config_h + ;; +esac + # only Linux has fdatasync() case "$TARGET_OS" in linux-*) -- cgit v1.1