aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-12 18:29:53 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 19:33:14 -0500
commitc419815796224befcb334e2066352a065f226285 (patch)
treec00291e960df43e42d694a7e980d882ce8661838
parenta25dba179d82a9b71128a900f14c5f5be4236a9c (diff)
Add sdl to new feature convention
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rwxr-xr-xconfigure13
1 files changed, 10 insertions, 3 deletions
diff --git a/configure b/configure
index 7ef42ea3bf..fd1c475c72 100755
--- a/configure
+++ b/configure
@@ -183,6 +183,7 @@ curl=""
curses=""
docs=""
nptl=""
+sdl=""
vde=""
vnc_tls=""
vnc_sasl=""
@@ -217,7 +218,6 @@ kerneldir=""
aix="no"
blobs="yes"
fdt="yes"
-sdl="yes"
xen="yes"
pkgversion=""
@@ -407,6 +407,8 @@ for opt do
;;
--disable-sdl) sdl="no"
;;
+ --enable-sdl) sdl="yes"
+ ;;
--fmod-lib=*) fmod_lib="$optarg"
;;
--fmod-inc=*) fmod_inc="$optarg"
@@ -618,6 +620,7 @@ echo " --disable-sparse disable sparse checker (default)"
echo " --disable-strip disable stripping binaries"
echo " --disable-werror disable compilation abort on warning"
echo " --disable-sdl disable SDL"
+echo " --enable-sdl enable SDL"
echo " --enable-cocoa enable COCOA (Mac OS X only)"
echo " --audio-drv-list=LIST set audio drivers list:"
echo " Available drivers: $audio_possible_drivers"
@@ -879,8 +882,7 @@ fi
sdl_too_old=no
-if test "$sdl" = "yes" ; then
- sdl=no
+if test "$sdl" != "no" ; then
cat > $TMPC << EOF
#include <SDL.h>
#undef main /* We don't want SDL to override our main() */
@@ -911,6 +913,11 @@ EOF
sdl=no
fi
fi # static link
+ else # sdl not found
+ if test "$sdl" = "yes" ; then
+ feature_not_found "sdl"
+ fi
+ sdl=no
fi # sdl compile test
fi