blob: 263ed311a5dc8bd3d2b72e228c3a3a2d1cd90f2e (
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
|
Disable SDL if not used
Patch by Henrik Dohlmann
http://bugs.gentoo.org/113441
--- configure.in
+++ configure.in
@@ -587,9 +587,14 @@
dnl
dnl Check for SDL
-AM_PATH_SDL(1.2.5,,)
-HSDL="$SDL_CFLAGS"
-LIBSDL="$SDL_LIBS"
+if test "$use_sdl" = "yes" ; then
+ AM_PATH_SDL(1.2.5,,)
+ HSDL="$SDL_CFLAGS"
+ LIBSDL="$SDL_LIBS"
+else
+ HSDL=""
+ LIBSDL=""
+fi
AC_SUBST(LIBSDL)
AC_SUBST(HSDL)
|