Commit cf257238 authored by ths's avatar ths
Browse files

Fix typo, and some reformatting.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2418 c046a42c-6fe2-441c-8c8c-71466251a162
parent 86b2bd93
...@@ -313,7 +313,7 @@ cat > $TMPC <<EOF ...@@ -313,7 +313,7 @@ cat > $TMPC <<EOF
int main(void) {} int main(void) {}
EOF EOF
if $cc -c -o $TMPO $TMPC 2>/dev/null ; then if $cc -c -o $TMPO $TMPC 2> /dev/null ; then
: C compiler works ok : C compiler works ok
else else
echo "ERROR: \"$cc\" either does not exist or does not work" echo "ERROR: \"$cc\" either does not exist or does not work"
...@@ -338,11 +338,11 @@ if test "$check_gcc" = "yes" ; then ...@@ -338,11 +338,11 @@ if test "$check_gcc" = "yes" ; then
int main(){return 0;} int main(){return 0;}
EOF EOF
check_cc() { check_cc() {
which "$1" >&/dev/null which "$1" 2> /dev/null
return $? return $?
} }
if "$cc" -o $TMPE $TMPC 2>/dev/null ; then if "$cc" -o $TMPE $TMPC 2> /dev/null ; then
echo "WARNING: \"$cc\" looks like gcc 4.x" echo "WARNING: \"$cc\" looks like gcc 4.x"
found_compat_cc="no" found_compat_cc="no"
if test "$gcc3_search" = "yes" ; then if test "$gcc3_search" = "yes" ; then
...@@ -442,7 +442,7 @@ int main(int argc, char ** argv){ ...@@ -442,7 +442,7 @@ int main(int argc, char ** argv){
} }
EOF EOF
if $cc -o $TMPE $TMPC 2>/dev/null ; then if $cc -o $TMPE $TMPC 2> /dev/null ; then
$TMPE && bigendian="yes" $TMPE && bigendian="yes"
else else
echo big/little test failed echo big/little test failed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment