diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-12 18:29:49 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-27 19:33:13 -0500 |
commit | 33bc3d72c7919a58cb60a5193421d3aa9b8fd9dc (patch) | |
tree | c03ce640402e32f1988c44e8c81b6e4e46fac653 /configure | |
parent | 6f841e87e570d0895394655144b5a8c9b0490584 (diff) | |
download | qemu-33bc3d72c7919a58cb60a5193421d3aa9b8fd9dc.tar.gz qemu-33bc3d72c7919a58cb60a5193421d3aa9b8fd9dc.tar.bz2 qemu-33bc3d72c7919a58cb60a5193421d3aa9b8fd9dc.zip |
Add nptl to new feature convencion
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -180,6 +180,7 @@ esac brlapi="" curl="" curses="" +nptl="" vde="" vnc_tls="" vnc_sasl="" @@ -209,7 +210,6 @@ guest_base="" build_docs="yes" uname_release="" io_thread="no" -nptl="yes" mixemu="no" bluez="yes" kvm="no" @@ -508,6 +508,8 @@ for opt do ;; --disable-nptl) nptl="no" ;; + --enable-nptl) nptl="yes" + ;; --enable-mixemu) mixemu="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-kvm disable KVM acceleration support" echo " --disable-nptl disable usermode NPTL support" +echo " --enable-nptl disable usermode NPTL support" echo " --enable-system enable all system emulation targets" echo " --disable-system disable all system emulation targets" echo " --enable-user enable supported user emulation targets" @@ -806,8 +809,12 @@ case "$cpu" in ;; esac -# Check host NPTL support -cat > $TMPC <<EOF + +########################################## +# NPTL probe + +if test "$nptl" != "no" ; then + cat > $TMPC <<EOF #include <sched.h> #include <linux/futex.h> void foo() @@ -818,10 +825,14 @@ void foo() } EOF -if compile_object ; then - : -else - nptl="no" + if compile_object ; then + nptl=yes + else + if test "$nptl" = "yes" ; then + feature_not_found "nptl" + fi + nptl=no + fi fi ########################################## |