Add nptl to new feature convencion

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-08-12 18:29:49 +02:00 committed by Anthony Liguori
parent 788c8196f7
commit b0a47e79d8

25
configure vendored
View file

@ -180,6 +180,7 @@ esac
brlapi="" brlapi=""
curl="" curl=""
curses="" curses=""
nptl=""
vde="" vde=""
vnc_tls="" vnc_tls=""
vnc_sasl="" vnc_sasl=""
@ -209,7 +210,6 @@ guest_base=""
build_docs="yes" build_docs="yes"
uname_release="" uname_release=""
io_thread="no" io_thread="no"
nptl="yes"
mixemu="no" mixemu="no"
bluez="yes" bluez="yes"
kvm="no" kvm="no"
@ -508,6 +508,8 @@ for opt do
;; ;;
--disable-nptl) nptl="no" --disable-nptl) nptl="no"
;; ;;
--enable-nptl) nptl="yes"
;;
--enable-mixemu) mixemu="yes" --enable-mixemu) mixemu="yes"
;; ;;
--enable-io-thread) io_thread="yes" --enable-io-thread) io_thread="yes"
@ -632,6 +634,7 @@ echo " --enable-curl enable curl connectivity"
echo " --disable-bluez disable bluez stack connectivity" echo " --disable-bluez disable bluez stack connectivity"
echo " --disable-kvm disable KVM acceleration support" echo " --disable-kvm disable KVM acceleration support"
echo " --disable-nptl disable usermode NPTL support" echo " --disable-nptl disable usermode NPTL support"
echo " --enable-nptl disable usermode NPTL support"
echo " --enable-system enable all system emulation targets" echo " --enable-system enable all system emulation targets"
echo " --disable-system disable all system emulation targets" echo " --disable-system disable all system emulation targets"
echo " --enable-user enable supported user emulation targets" echo " --enable-user enable supported user emulation targets"
@ -806,8 +809,12 @@ case "$cpu" in
;; ;;
esac esac
# Check host NPTL support
cat > $TMPC <<EOF ##########################################
# NPTL probe
if test "$nptl" != "no" ; then
cat > $TMPC <<EOF
#include <sched.h> #include <sched.h>
#include <linux/futex.h> #include <linux/futex.h>
void foo() void foo()
@ -818,10 +825,14 @@ void foo()
} }
EOF EOF
if compile_object ; then if compile_object ; then
: nptl=yes
else else
nptl="no" if test "$nptl" = "yes" ; then
feature_not_found "nptl"
fi
nptl=no
fi
fi fi
########################################## ##########################################