define only if sdl is available
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 12 Aug 2005 23:43:31 +0000 (23:43 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 12 Aug 2005 23:43:31 +0000 (23:43 +0000)
configure.ac

index f0cc4f5..ebdd897 100644 (file)
@@ -18,7 +18,6 @@ AC_ARG_WITH(libsdl,
        [[withsdl=$withval]],
        [[withsdl=yes]]
 )
-AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
                
 TUXBOX_APPS_DVB
 #TUXBOX_APPS_DRIVER
@@ -34,6 +33,7 @@ TUXBOX_APPS_LIB_PKGCONFIG(SIGC,sigc++-1.2)
 
 if test "$withsdl" = "yes" ; then
        TUXBOX_APPS_LIB_CONFIG(SDL,sdl-config)
+       AC_DEFINE_UNQUOTED([WITH_SDL],[$withsdl],[With SDL])
 fi
 
 # fixme: decent python stuff