diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-12 18:29:57 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-27 19:33:15 -0500 |
commit | dfffc65398e102bb01535d15b0e017fc73cbcf80 (patch) | |
tree | 68e1bdaf03cd6c1877ea1943a9346216b3370983 | |
parent | b31a0277558db5eeb71164ad511467cf5125b853 (diff) |
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>
-rwxr-xr-x | configure | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -186,6 +186,7 @@ fdt="" kvm="" nptl="" sdl="" +sparse="no" vde="" vnc_tls="" vnc_sasl="" @@ -194,7 +195,6 @@ xen="" gprof="no" debug_tcg="no" debug="no" -sparse="no" strip_opt="yes" bigendian="no" mingw32="no" @@ -682,10 +682,6 @@ echo "NOTE: The object files are built at the place where configure is launched" exit 1 fi -if test ! -x "$(which cgcc 2>/dev/null)"; then - sparse="no" -fi - # # Solaris specific configure tool chain decisions # @@ -893,6 +889,19 @@ EOF 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_too_old=no |