aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-24 22:17:47 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-24 22:17:47 +0000
commitdbb2c92142346306dc132e441ffb7bc14f423cff (patch)
tree06d4a01be5ee5ad033745289c3ce9debf0a4a5d1 /configure
parent0d1a29f9fcd161b07a02b9256446235208d379ca (diff)
downloadqemu-dbb2c92142346306dc132e441ffb7bc14f423cff.zip
qemu-dbb2c92142346306dc132e441ffb7bc14f423cff.tar.gz
qemu-dbb2c92142346306dc132e441ffb7bc14f423cff.tar.bz2
SDL config fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1123 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 14 insertions, 13 deletions
diff --git a/configure b/configure
index 5d7eed6..28cb708 100755
--- a/configure
+++ b/configure
@@ -510,23 +510,24 @@ fi
if test "$target_user_only" = "no"; then
if test "$target_softmmu" = "no" -o "$static" = "yes"; then
- if test "$sdl_static" = "yes" ; then
- echo "#define CONFIG_SDL 1" >> $config_h
- echo "CONFIG_SDL=yes" >> $config_mak
- echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
- fi
+ sdl1=$sdl_static
else
- if test "$sdl" = "yes" ; then
- echo "#define CONFIG_SDL 1" >> $config_h
- echo "CONFIG_SDL=yes" >> $config_mak
+ sdl1=$sdl
+ fi
+ if test "$sdl1" = "yes" ; then
+ echo "#define CONFIG_SDL 1" >> $config_h
+ echo "CONFIG_SDL=yes" >> $config_mak
+ if test "$target_softmmu" = "no" -o "$static" = "yes"; then
+ echo "SDL_LIBS=$sdl_static_libs" >> $config_mak
+ else
echo "SDL_LIBS=`$sdl_config --libs`" >> $config_mak
fi
+ echo -n "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
+ if [ "${aa}" = "yes" ] ; then
+ echo -n " `aalib-config --cflags`" >> $config_mak ;
+ fi
+ echo "" >> $config_mak
fi
- echo -n "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
- if [ "${aa}" = "yes" ] ; then
- echo -n " `aalib-config --cflags`" >> $config_mak ;
- fi
- echo "" >> $config_mak
fi
done # for target in $targets