From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6XvW-0002c5-AE for qemu-devel@nongnu.org; Sat, 29 Nov 2008 17:04:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6XvV-0002bt-Ko for qemu-devel@nongnu.org; Sat, 29 Nov 2008 17:04:33 -0500 Received: from [199.232.76.173] (port=49259 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6XvV-0002bq-EW for qemu-devel@nongnu.org; Sat, 29 Nov 2008 17:04:33 -0500 Received: from savannah.gnu.org ([199.232.41.3]:37131 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6XvU-00078s-Vh for qemu-devel@nongnu.org; Sat, 29 Nov 2008 17:04:33 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L6XvU-0004lo-Ga for qemu-devel@nongnu.org; Sat, 29 Nov 2008 22:04:32 +0000 Received: from malc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L6XvU-0004lk-4k for qemu-devel@nongnu.org; Sat, 29 Nov 2008 22:04:32 +0000 MIME-Version: 1.0 Errors-To: malc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: malc Message-Id: Date: Sat, 29 Nov 2008 22:04:32 +0000 Subject: [Qemu-devel] [5817] Handle SDL log just like other temporary files Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5817 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5817 Author: malc Date: 2008-11-29 22:04:31 +0000 (Sat, 29 Nov 2008) Log Message: ----------- Handle SDL log just like other temporary files Modified Paths: -------------- trunk/configure Modified: trunk/configure =================================================================== --- trunk/configure 2008-11-29 20:09:56 UTC (rev 5816) +++ trunk/configure 2008-11-29 22:04:31 UTC (rev 5817) @@ -16,8 +16,9 @@ TMPE="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}" TMPS="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.S" TMPI="${TMPDIR1}/qemu-conf-${RANDOM}-$$-${RANDOM}.i" +TMPSDLLOG="${TMPDIR1}/qemu-conf-sdl-$$-${RANDOM}.log" -trap "rm -f $TMPC $TMPO $TMPE $TMPS $TMPI; exit" 0 2 3 15 +trap "rm -f $TMPC $TMPO $TMPE $TMPS $TMPI $TMPSDLLOG; exit" 0 2 3 15 # default parameters prefix="" @@ -791,7 +792,7 @@ #undef main /* We don't want SDL to override our main() */ int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } EOF - if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; then + if $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> $TMPSDLLOG ; then _sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'` if test "$_sdlversion" -lt 121 ; then sdl_too_old=yes @@ -1095,11 +1096,10 @@ if test $sdl_too_old = "yes"; then echo "-> Your SDL version is too old - please upgrade to have SDL support" fi -if [ -s /tmp/qemu-$$-sdl-config.log ]; then +if [ -s $TMPSDLLOG ]; then echo "The error log from compiling the libSDL test is: " - cat /tmp/qemu-$$-sdl-config.log + cat $TMPSDLLOG fi -rm -f /tmp/qemu-$$-sdl-config.log #if test "$sdl_static" = "no"; then # echo "WARNING: cannot compile statically with SDL - qemu-fast won't have a graphical output" #fi