Skip to contentSkip to conversation

./configure without SDL

PATCH New Magnus Damm 1 participant 1 message Aug 26, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ./configure without SDL

Hello,

The attached patch removes the annoying output produced by a missing sdl-config binary.

/ magnus
magnusd@work:~/qemu/cvs/qemu> ./configure

Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /home/magnusd/qemu/cvs/qemu
C compiler        gcc
make              make
host CPU          i386
host big endian   no
target list       i386-user i386 i386-softmmu arm-user sparc-user
ppc-user ppc-softmmu
gprof enabled     no
static build      no
SDL support       no
SDL static link   no
mingw32 support   no

WARNING: cannot compile statically with SDL - qemu-fast won't have a graphical output
./configure: line 1: sdl-config: command not found ./configure: line 1: sdl-config: command not found ./configure: line 1: sdl-config: command not found magnusd@work:~/qemu/cvs/qemu>

Index: configure
===================================================================
RCS file: /cvsroot/qemu/qemu/configure,v
retrieving revision 1.43

configure +1 -1
diff -u -r1.43 configure
@@ -522,7 +522,7 @@
             echo "SDL_LIBS=`$sdl_config --libs`" >> $config_mak
         fi
     fi
-    echo -n "SDL_CFLAGS=`$sdl_config --cflags`" >> $config_mak
+    echo -n "SDL_CFLAGS=`$sdl_config --cflags 2> /dev/null`" >> $config_mak
     if [ "${aa}" = "yes" ] ; then
         echo -n " `aalib-config --cflags`" >> $config_mak ;
     fi