X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=configure;h=5c62c594ec75273aa5d14c457e0c538cbbd82bd3;hb=cef3017cd7c0d63a12ff743e1e72caf49779c493;hp=a4e6f8dbfafdda767edce8c11e5079db2053daa4;hpb=c5e97233e8c8e53aab1b80b5e9891a71c4edea3e;p=qemu diff --git a/configure b/configure index a4e6f8d..5c62c59 100755 --- a/configure +++ b/configure @@ -590,6 +590,7 @@ if test "$mingw32" = "yes" ; then oss="no" linux_user="no" bsd_user="no" + OS_CFLAGS="$OS_CFLAGS -DWIN32_LEAN_AND_MEAN -DWINVER=0x501" fi if test ! -x "$(which cgcc 2>/dev/null)"; then @@ -731,12 +732,6 @@ if test "$cpu" = "x86_64" \ hostlongbits="64" fi -# check gcc options support -cat > $TMPC < $TMPC < @@ -1060,7 +1055,7 @@ EOF kvm="no"; if [ -x "`which awk 2>/dev/null`" ] && \ [ -x "`which grep 2>/dev/null`" ]; then - kvmerr=`$cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $kvm_cflags $TMPC 2>&1 \ + kvmerr=`LANG=C $cc $ARCH_CFLAGS -o $TMPE ${OS_CFLAGS} $kvm_cflags $TMPC 2>&1 \ | grep "error: " \ | awk -F "error: " '{if (NR>1) printf(", "); printf("%s",$2);}'` if test "$kvmerr" != "" ; then @@ -1520,7 +1515,7 @@ fi if [ "$bsd" = "yes" ] ; then echo "#define O_LARGEFILE 0" >> $config_h echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h - echo "#define _BSD 1" >> $config_h + echo "#define HOST_BSD 1" >> $config_h fi echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h