native FPU support in code copy mode
[qemu] / configure
index 05bc3b6..0caae42 100755 (executable)
--- a/configure
+++ b/configure
@@ -301,8 +301,18 @@ if test "$sdl" = "yes" ; then
   echo "CONFIG_SDL=yes" >> $config_mak
   echo "#define CONFIG_SDL 1" >> $config_h
   echo "SDL_LIBS=`sdl-config --libs`" >> $config_mak
-  echo "SDL_STATIC_LIBS=`sdl-config --static-libs`" >> $config_mak
-  echo "SDL_CFLAGS=`sdl-config --cflags`" >> $config_mak
+  aa="no"
+  `sdl-config --static-libs | grep \\\-laa > /dev/null` && aa="yes"
+  echo -n "SDL_STATIC_LIBS=`sdl-config --static-libs`" >> $config_mak
+  if [ "${aa}" = "yes" ] ; then
+      echo -n " `aalib-config --libs`" >> $config_mak ;
+  fi
+  echo "" >> $config_mak
+  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 "VERSION=" >>$config_mak
 head $source_path/VERSION >>$config_mak
@@ -335,6 +345,10 @@ fi
 echo "Creating $config_mak, $config_h and $target_dir/Makefile"
 
 mkdir -p $target_dir
+if test "$target" = "arm-user" ; then
+  mkdir -p $target_dir/nwfpe
+fi
+
 ln -sf $source_path/Makefile.target $target_dir/Makefile
 
 echo "# Automatically generated by configure - do not modify" > $config_mak