3674 else |
3674 else |
3675 as_fn_error $? "libuuid not found" "$LINENO" 5 |
3675 as_fn_error $? "libuuid not found" "$LINENO" 5 |
3676 fi |
3676 fi |
3677 |
3677 |
3678 # Check for SDL |
3678 # Check for SDL |
|
3679 SDL_CFLAGS="" |
|
3680 SDL_LIBS="" |
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL library" >&5 |
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL library" >&5 |
3680 $as_echo_n "checking SDL library... " >&6; } |
3682 $as_echo_n "checking SDL library... " >&6; } |
3681 pkg-config --exists sdl |
3683 pkg-config --exists sdl |
3682 if test "$?" = "0"; then |
3684 if test "$?" = "0"; then |
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3684 $as_echo "yes" >&6; } |
3686 $as_echo "yes" >&6; } |
3685 else |
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v1.2.0 or newer" >&5 |
3686 as_fn_error $? "no" "$LINENO" 5 |
|
3687 fi |
|
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v1.2.0 or newer" >&5 |
|
3689 $as_echo_n "checking sdl library v1.2.0 or newer... " >&6; } |
3688 $as_echo_n "checking sdl library v1.2.0 or newer... " >&6; } |
3690 pkg-config --atleast-version=1.2.0 sdl |
3689 pkg-config --atleast-version=1.2.0 sdl |
3691 if test "$?" = "0"; then |
3690 if test "$?" = "0"; then |
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3693 $as_echo "found" >&6; } |
3692 $as_echo "found" >&6; } |
3694 else |
3693 else |
3695 as_fn_error $? "not found" "$LINENO" 5 |
3694 as_fn_error $? "not found" "$LINENO" 5 |
3696 fi |
3695 fi |
3697 SDL_CFLAGS="$(pkg-config --cflags sdl)" |
3696 SDL_CFLAGS="$(pkg-config --cflags sdl)" |
3698 SDL_LIBS="$(pkg-config --libs sdl)" |
3697 SDL_LIBS="$(pkg-config --libs sdl)" |
3699 for ac_header in SDL/SDL.h |
3698 for ac_header in SDL/SDL.h |
3700 do : |
3699 do : |
3701 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default" |
3700 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default" |
3702 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then : |
3701 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then : |
3703 cat >>confdefs.h <<_ACEOF |
3702 cat >>confdefs.h <<_ACEOF |
3704 #define HAVE_SDL_SDL_H 1 |
3703 #define HAVE_SDL_SDL_H 1 |
3706 |
3705 |
3707 fi |
3706 fi |
3708 |
3707 |
3709 done |
3708 done |
3710 |
3709 |
|
3710 else |
|
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3712 $as_echo "no" >&6; } |
|
3713 fi |
3711 |
3714 |
3712 # Check for SDL_ttf |
3715 # Check for SDL_ttf |
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL_ttf library" >&5 |
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL_ttf library" >&5 |
3714 $as_echo_n "checking SDL_ttf library... " >&6; } |
3717 $as_echo_n "checking SDL_ttf library... " >&6; } |
3715 pkg-config --exists SDL_ttf |
3718 pkg-config --exists SDL_ttf |
3716 if test "$?" = "0"; then |
3719 if test "$?" = "0"; then |
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3718 $as_echo "yes" >&6; } |
3721 $as_echo "yes" >&6; } |
3719 else |
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v2.0.0 or newer" >&5 |
3720 as_fn_error $? "no" "$LINENO" 5 |
|
3721 fi |
|
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v2.0.0 or newer" >&5 |
|
3723 $as_echo_n "checking sdl library v2.0.0 or newer... " >&6; } |
3723 $as_echo_n "checking sdl library v2.0.0 or newer... " >&6; } |
3724 pkg-config --atleast-version=2.0.0 SDL_ttf |
3724 pkg-config --atleast-version=2.0.0 SDL_ttf |
3725 if test "$?" = "0"; then |
3725 if test "$?" = "0"; then |
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3727 $as_echo "found" >&6; } |
3727 $as_echo "found" >&6; } |
3728 else |
3728 else |
3729 as_fn_error $? "not found" "$LINENO" 5 |
3729 as_fn_error $? "not found" "$LINENO" 5 |
3730 fi |
3730 fi |
3731 # Override flags |
3731 # Override flags |
3732 SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)" |
3732 SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)" |
3733 SDL_LIBS="$(pkg-config --libs SDL_ttf)" |
3733 SDL_LIBS="$(pkg-config --libs SDL_ttf)" |
3734 |
3734 else |
|
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3736 $as_echo "no" >&6; } |
|
3737 fi |
3735 |
3738 |
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
3737 $as_echo_n "checking for ANSI C header files... " >&6; } |
3740 $as_echo_n "checking for ANSI C header files... " >&6; } |
3738 if ${ac_cv_header_stdc+:} false; then : |
3741 if ${ac_cv_header_stdc+:} false; then : |
3739 $as_echo_n "(cached) " >&6 |
3742 $as_echo_n "(cached) " >&6 |