Commit 178baee68bd52fd4e73639104ad7d66cbef96601

Authored by aurel32
1 parent db9a16a7

configure: also close stdout when calling cc

Remove some ugly outputs with colorgcc

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5953 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 7 deletions
configure
@@ -499,7 +499,7 @@ cat &gt; $TMPC &lt;&lt;EOF @@ -499,7 +499,7 @@ cat &gt; $TMPC &lt;&lt;EOF
499 int main(void) {} 499 int main(void) {}
500 EOF 500 EOF
501 501
502 -if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC 2> /dev/null ; then 502 +if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
503 : C compiler works ok 503 : C compiler works ok
504 else 504 else
505 echo "ERROR: \"$cc\" either does not exist or does not work" 505 echo "ERROR: \"$cc\" either does not exist or does not work"
@@ -515,7 +515,7 @@ cat &gt; $TMPC &lt;&lt;EOF @@ -515,7 +515,7 @@ cat &gt; $TMPC &lt;&lt;EOF
515 int main(void) {} 515 int main(void) {}
516 EOF 516 EOF
517 517
518 -if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC 2> /dev/null ; then 518 +if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
519 mingw32="yes" 519 mingw32="yes"
520 fi 520 fi
521 521
@@ -641,7 +641,7 @@ int main(int argc, char ** argv){ @@ -641,7 +641,7 @@ int main(int argc, char ** argv){
641 } 641 }
642 EOF 642 EOF
643 643
644 -if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then 644 +if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
645 $TMPE && bigendian="yes" 645 $TMPE && bigendian="yes"
646 else 646 else
647 echo big/little test failed 647 echo big/little test failed
@@ -885,7 +885,7 @@ cat &gt; $TMPC &lt;&lt; EOF @@ -885,7 +885,7 @@ cat &gt; $TMPC &lt;&lt; EOF
885 #include <brlapi.h> 885 #include <brlapi.h>
886 int main( void ) { return brlapi__openConnection (NULL, NULL, NULL); } 886 int main( void ) { return brlapi__openConnection (NULL, NULL, NULL); }
887 EOF 887 EOF
888 - if $cc ${ARCH_CFLAGS} -o $TMPE ${OS_CFLAGS} $TMPC -lbrlapi 2> /dev/null ; then 888 + if $cc ${ARCH_CFLAGS} -o $TMPE ${OS_CFLAGS} $TMPC -lbrlapi > /dev/null 2> /dev/null ; then
889 brlapi=yes 889 brlapi=yes
890 fi # brlapi compile test 890 fi # brlapi compile test
891 fi # -z $brlapi 891 fi # -z $brlapi
@@ -899,7 +899,7 @@ if test &quot;$curses&quot; = &quot;yes&quot; ; then @@ -899,7 +899,7 @@ if test &quot;$curses&quot; = &quot;yes&quot; ; then
899 #include <curses.h> 899 #include <curses.h>
900 int main(void) { return curses_version(); } 900 int main(void) { return curses_version(); }
901 EOF 901 EOF
902 - if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lcurses 2> /dev/null ; then 902 + if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lcurses > /dev/null 2> /dev/null ; then
903 curses=yes 903 curses=yes
904 fi 904 fi
905 fi # test "$curses" 905 fi # test "$curses"
@@ -1186,7 +1186,7 @@ else @@ -1186,7 +1186,7 @@ else
1186 #include <byteswap.h> 1186 #include <byteswap.h>
1187 int main(void) { return bswap_32(0); } 1187 int main(void) { return bswap_32(0); }
1188 EOF 1188 EOF
1189 - if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then 1189 + if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
1190 echo "#define HAVE_BYTESWAP_H 1" >> $config_h 1190 echo "#define HAVE_BYTESWAP_H 1" >> $config_h
1191 fi 1191 fi
1192 cat > $TMPC << EOF 1192 cat > $TMPC << EOF
@@ -1195,7 +1195,7 @@ EOF @@ -1195,7 +1195,7 @@ EOF
1195 #include <machine/bswap.h> 1195 #include <machine/bswap.h>
1196 int main(void) { return bswap32(0); } 1196 int main(void) { return bswap32(0); }
1197 EOF 1197 EOF
1198 - if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then 1198 + if $cc $ARCH_CFLAGS -o $TMPE $TMPC >/dev/null 2> /dev/null ; then
1199 echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_h 1199 echo "#define HAVE_MACHINE_BSWAP_H 1" >> $config_h
1200 fi 1200 fi
1201 fi 1201 fi