configure

changeset 410
e3f8a51b566a
parent 409
cdf68044adaf
child 411
ae85e91dcc58
--- a/configure	Sat Nov 07 22:04:17 2015 +0100
+++ b/configure	Sat Nov 07 22:34:28 2015 +0100
@@ -3676,27 +3676,26 @@
 fi
 
 # Check for SDL
+SDL_CFLAGS=""
+SDL_LIBS=""
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL library" >&5
 $as_echo_n "checking SDL library... " >&6; }
 pkg-config --exists sdl
 if test "$?" = "0"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-else
-  as_fn_error $? "no" "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v1.2.0 or newer" >&5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v1.2.0 or newer" >&5
 $as_echo_n "checking sdl library v1.2.0 or newer... " >&6; }
-pkg-config --atleast-version=1.2.0 sdl
-if test "$?" = "0"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+  pkg-config --atleast-version=1.2.0 sdl
+  if test "$?" = "0"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 $as_echo "found" >&6; }
-else
-  as_fn_error $? "not found" "$LINENO" 5
-fi
-SDL_CFLAGS="$(pkg-config --cflags sdl)"
-SDL_LIBS="$(pkg-config --libs sdl)"
-for ac_header in SDL/SDL.h
+  else
+    as_fn_error $? "not found" "$LINENO" 5
+  fi
+  SDL_CFLAGS="$(pkg-config --cflags sdl)"
+  SDL_LIBS="$(pkg-config --libs sdl)"
+  for ac_header in SDL/SDL.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default"
 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then :
@@ -3708,6 +3707,10 @@
 
 done
 
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
 
 # Check for SDL_ttf
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL_ttf library" >&5
@@ -3716,22 +3719,22 @@
 if test "$?" = "0"; then
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-else
-  as_fn_error $? "no" "$LINENO" 5
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v2.0.0 or newer" >&5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v2.0.0 or newer" >&5
 $as_echo_n "checking sdl library v2.0.0 or newer... " >&6; }
-pkg-config --atleast-version=2.0.0 SDL_ttf
-if test "$?" = "0"; then
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
+  pkg-config --atleast-version=2.0.0 SDL_ttf
+  if test "$?" = "0"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
 $as_echo "found" >&6; }
+  else
+    as_fn_error $? "not found" "$LINENO" 5
+  fi
+  # Override flags
+  SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)"
+  SDL_LIBS="$(pkg-config --libs SDL_ttf)"
 else
-  as_fn_error $? "not found" "$LINENO" 5
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
 fi
-# Override flags
-SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)"
-SDL_LIBS="$(pkg-config --libs SDL_ttf)"
-
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 $as_echo_n "checking for ANSI C header files... " >&6; }

mercurial