aboutsummaryrefslogtreecommitdiffstats
path: root/android-configure.sh
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-09-09 18:15:23 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 00:30:34 -0700
commitb8fec3e556b0d1b2a66c76d6ec0a9b242baa1068 (patch)
tree5903351c993a6942c451b322caf63a601d617224 /android-configure.sh
parent80dd1261df980abf963b7f4a73f43c1102848706 (diff)
downloadexternal_qemu-b8fec3e556b0d1b2a66c76d6ec0a9b242baa1068.zip
external_qemu-b8fec3e556b0d1b2a66c76d6ec0a9b242baa1068.tar.gz
external_qemu-b8fec3e556b0d1b2a66c76d6ec0a9b242baa1068.tar.bz2
upstream: bswap.h
+ add a <machine/bswap.h> probe to android-configure.sh
Diffstat (limited to 'android-configure.sh')
-rwxr-xr-xandroid-configure.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/android-configure.sh b/android-configure.sh
index 30d6f3c..b992064 100755
--- a/android-configure.sh
+++ b/android-configure.sh
@@ -355,9 +355,9 @@ fi
# check whether we have <byteswap.h>
#
-feature_check_header HAVE_BYTESWAP_H "<byteswap.h>"
-
-feature_check_header HAVE_FNMATCH_H "<fnmatch.h>"
+feature_check_header HAVE_BYTESWAP_H "<byteswap.h>"
+feature_check_header HAVE_MACHINE_BSWAP_H "<machine/bswap.h>"
+feature_check_header HAVE_FNMATCH_H "<fnmatch.h>"
# Build the config.make file
#
@@ -404,7 +404,10 @@ echo "/* This file was autogenerated by '$PROGNAME' */" > $config_h
echo "#define CONFIG_QEMU_SHAREDIR \"/usr/local/share/qemu\"" >> $config_h
echo "#define HOST_LONG_BITS $HOST_LONGBITS" >> $config_h
if [ "$HAVE_BYTESWAP_H" = "yes" ] ; then
- echo "#define HAVE_BYTESWAP_H 1" >> $config_h
+ echo "#define CONFIG_BYTESWAP_H 1" >> $config_h
+fi
+if [ "$HAVE_MACHINE_BYTESWAP_H" = "yes" ] ; then
+ echo "#define CONFIG_MACHINE_BSWAP_H 1" >> $config_h
fi
if [ "$HAVE_FNMATCH_H" = "yes" ] ; then
echo "#define CONFIG_FNMATCH 1" >> $config_h