Add sparse to new feature convention

Once there, move to a proper test to see if we are going to use it or not

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:57 +02:00 committed by Anthony Liguori
parent b31a027755
commit dfffc65398
1 changed files with 14 additions and 5 deletions

19
configure vendored
View File

@ -186,6 +186,7 @@ fdt=""
kvm="" kvm=""
nptl="" nptl=""
sdl="" sdl=""
sparse="no"
vde="" vde=""
vnc_tls="" vnc_tls=""
vnc_sasl="" vnc_sasl=""
@ -194,7 +195,6 @@ xen=""
gprof="no" gprof="no"
debug_tcg="no" debug_tcg="no"
debug="no" debug="no"
sparse="no"
strip_opt="yes" strip_opt="yes"
bigendian="no" bigendian="no"
mingw32="no" mingw32="no"
@ -682,10 +682,6 @@ echo "NOTE: The object files are built at the place where configure is launched"
exit 1 exit 1
fi fi
if test ! -x "$(which cgcc 2>/dev/null)"; then
sparse="no"
fi
# #
# Solaris specific configure tool chain decisions # Solaris specific configure tool chain decisions
# #
@ -892,6 +888,19 @@ EOF
fi fi
fi fi
##########################################
# Sparse probe
if test "$sparse" != "no" ; then
if test -x "$(which cgcc 2>/dev/null)"; then
sparse=yes
else
if test "$sparse" = "yes" ; then
feature_not_found "sparse"
fi
sparse=no
fi
fi
########################################## ##########################################
# SDL probe # SDL probe