blob: 19daaea06730e12cdca63c5490d889a1796c99ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- a/configure.in 2013-08-06 16:35:30.740061017 -0700
+++ b/configure.in 2013-08-06 16:40:47.511004499 -0700
@@ -95,10 +95,14 @@
dnl ######### Check for SDL: #####################
dnl the sdl script pollutes our global values:
+AC_ARG_ENABLE(sdl,
+ AC_HELP_STRING([--enable-sdl],[enable the sdl layer]) )
+
+sdl_enabled="no"
+if test x"$enable_sdl" = x"yes"; then
temp_LIBS="$LIBS"
temp_CFLAGS="$CFLAGS"
temp_CXXFLAGS="$CXXFLAGS"
-sdl_enabled=""
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,
[sdl_enabled="yes"],
@@ -111,6 +115,7 @@
dnl ### the sdl script already does that:
dnl AC_SUBST(SDL_CFLAGS)
dnl AC_SUBST(SDL_LIBS)
+fi
AM_CONDITIONAL(ENABLE_SDL,[test xyes = x$sdl_enabled -a xno != x$enable_platform -a x$win32_host != xyes])
dnl ###############################################
|