mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
Use AIO only if host supports it (based on OpenBSD patches by Todd T. Fries)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5010 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
53c3748794
commit
414f0dab09
2 changed files with 59 additions and 0 deletions
21
configure
vendored
21
configure
vendored
|
@ -106,6 +106,7 @@ darwin_user="no"
|
|||
build_docs="no"
|
||||
uname_release=""
|
||||
curses="yes"
|
||||
aio="yes"
|
||||
nptl="yes"
|
||||
mixemu="no"
|
||||
|
||||
|
@ -334,6 +335,8 @@ for opt do
|
|||
;;
|
||||
--enable-mixemu) mixemu="yes"
|
||||
;;
|
||||
--disable-aio) aio="no"
|
||||
;;
|
||||
*) echo "ERROR: unknown option $opt"; show_help="yes"
|
||||
;;
|
||||
esac
|
||||
|
@ -436,6 +439,7 @@ echo " --fmod-inc path to FMOD includes"
|
|||
echo " --enable-uname-release=R Return R for uname -r in usermode emulation"
|
||||
echo " --sparc_cpu=V Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9"
|
||||
echo " --disable-vde disable support for vde network"
|
||||
echo " --disable-aio disable AIO support"
|
||||
echo ""
|
||||
echo "NOTE: The object files are built at the place where configure is launched"
|
||||
exit 1
|
||||
|
@ -863,6 +867,19 @@ EOF
|
|||
fi
|
||||
fi # test "$curses"
|
||||
|
||||
##########################################
|
||||
# AIO probe
|
||||
if test "$aio" = "yes" ; then
|
||||
aio=no
|
||||
cat > $TMPC << EOF
|
||||
#include <aio.h>
|
||||
int main(void) { return aio_write(NULL); }
|
||||
EOF
|
||||
if $cc $ARCH_CFLAGS -o $TMPE $AIOLIBS $TMPC 2> /dev/null ; then
|
||||
aio=yes
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check if tools are available to build documentation.
|
||||
if [ -x "`which texi2html 2>/dev/null`" ] && \
|
||||
[ -x "`which pod2man 2>/dev/null`" ]; then
|
||||
|
@ -934,6 +951,7 @@ echo "Documentation $build_docs"
|
|||
echo "uname -r $uname_release"
|
||||
echo "NPTL support $nptl"
|
||||
echo "vde support $vde"
|
||||
echo "AIO support $aio"
|
||||
|
||||
if test $sdl_too_old = "yes"; then
|
||||
echo "-> Your SDL version is too old - please upgrade to have SDL support"
|
||||
|
@ -1179,6 +1197,9 @@ if test "$brlapi" = "yes" ; then
|
|||
echo "#define CONFIG_BRLAPI 1" >> $config_h
|
||||
echo "BRLAPI_LIBS=-lbrlapi" >> $config_mak
|
||||
fi
|
||||
if test "$aio" = "yes" ; then
|
||||
echo "#define CONFIG_AIO 1" >> $config_h
|
||||
fi
|
||||
|
||||
# XXX: suppress that
|
||||
if [ "$bsd" = "yes" ] ; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue