Fix:core:Further cleanup configure test for sdl
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 1 Oct 2009 09:36:33 +0000 (09:36 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Thu, 1 Oct 2009 09:36:33 +0000 (09:36 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@2623 ffa7fe5e-494d-0410-b361-a75ebd5db220

configure.in

index 1461b41..80745b3 100644 (file)
@@ -302,7 +302,13 @@ AC_TRY_LINK([#include <windows.h>], [CreateProcess(NULL,NULL,NULL,NULL,0,0,NULL,
 AC_ARG_ENABLE(graphics-sdl, [  --disable-graphics-sdl             don't create graphics sdl], graphics_sdl=$enableval;graphics_sdl_reason="configure parameter")
 
 if test "x${graphics_sdl}" = "xyes" ; then
-        PKG_CHECK_MODULES(SDL, [sdl], graphics_sdl="yes";graphics_sdl_reason="sdl present" , graphics_sdl="no";graphics_sdl_reason="sdl not available")
+        PKG_CHECK_MODULES(SDL, 
+                          [sdl], 
+                          [graphics_sdl="yes"
+                           graphics_sdl_reason="sdl present"] , 
+                          [graphics_sdl="no"
+                           graphics_sdl_reason="sdl not available"]
+                         )
         AC_SUBST(SDL_CFLAGS)
         AC_SUBST(SDL_LIBS)
 fi