Commit 590b7eed184838bc95710813fb5ceddffa43fe8d
1 parent
af5ad107
aalib support with SDL
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@531 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
12 additions
and
2 deletions
configure
@@ -301,8 +301,18 @@ if test "$sdl" = "yes" ; then | @@ -301,8 +301,18 @@ if test "$sdl" = "yes" ; then | ||
301 | echo "CONFIG_SDL=yes" >> $config_mak | 301 | echo "CONFIG_SDL=yes" >> $config_mak |
302 | echo "#define CONFIG_SDL 1" >> $config_h | 302 | echo "#define CONFIG_SDL 1" >> $config_h |
303 | echo "SDL_LIBS=`sdl-config --libs`" >> $config_mak | 303 | echo "SDL_LIBS=`sdl-config --libs`" >> $config_mak |
304 | - echo "SDL_STATIC_LIBS=`sdl-config --static-libs`" >> $config_mak | ||
305 | - echo "SDL_CFLAGS=`sdl-config --cflags`" >> $config_mak | 304 | + aa="no" |
305 | + `sdl-config --static-libs | grep \\\-laa > /dev/null` && aa="yes" | ||
306 | + echo -n "SDL_STATIC_LIBS=`sdl-config --static-libs`" >> $config_mak | ||
307 | + if [ "${aa}" = "yes" ] ; then | ||
308 | + echo -n " `aalib-config --libs`" >> $config_mak ; | ||
309 | + fi | ||
310 | + echo "" >> $config_mak | ||
311 | + echo -n "SDL_CFLAGS=`sdl-config --cflags`" >> $config_mak | ||
312 | + if [ "${aa}" = "yes" ] ; then | ||
313 | + echo -n " `aalib-config --cflags`" >> $config_mak ; | ||
314 | + fi | ||
315 | + echo "" >> $config_mak | ||
306 | fi | 316 | fi |
307 | echo -n "VERSION=" >>$config_mak | 317 | echo -n "VERSION=" >>$config_mak |
308 | head $source_path/VERSION >>$config_mak | 318 | head $source_path/VERSION >>$config_mak |