configure

changeset 409
cdf68044adaf
parent 407
ee8f851b4d93
child 410
e3f8a51b566a
equal deleted inserted replaced
408:ec507c1f1df7 409:cdf68044adaf
620 # include <unistd.h> 620 # include <unistd.h>
621 #endif" 621 #endif"
622 622
623 ac_subst_vars='LTLIBOBJS 623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS 624 LIBOBJS
625 CXXFLAGS 625 SDL_LIBS
626 SDL_CFLAGS
626 EGREP 627 EGREP
627 GREP 628 GREP
628 CPP 629 CPP
629 TAR 630 TAR
630 INSTALL 631 INSTALL
2028 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029 2030
2030 2031
2031 ac_config_headers="$ac_config_headers config.h" 2032 ac_config_headers="$ac_config_headers config.h"
2032 2033
2033 SUBDIRS="dht11 rc433 thermferm" 2034 SUBDIRS="dht11 rc433 thermferm brewco brewpanel"
2034 2035
2035 2036
2036 PACKAGE="mbsePi-apps" 2037 PACKAGE="mbsePi-apps"
2037 VERSION="0.4.3" 2038 VERSION="0.5.0"
2038 COPYRIGHT="Copyright (C) 2014-2015 Michiel Broek, All Rights Reserved" 2039 COPYRIGHT="Copyright (C) 2014-2015 Michiel Broek, All Rights Reserved"
2039 CYEARS="2014-2015" 2040 CYEARS="2014-2015"
2040 2041
2041 2042
2042 2043
3672 3673
3673 else 3674 else
3674 as_fn_error $? "libuuid not found" "$LINENO" 5 3675 as_fn_error $? "libuuid not found" "$LINENO" 5
3675 fi 3676 fi
3676 3677
3678 # Check for SDL
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL library" >&5
3680 $as_echo_n "checking SDL library... " >&6; }
3681 pkg-config --exists sdl
3682 if test "$?" = "0"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684 $as_echo "yes" >&6; }
3685 else
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; }
3690 pkg-config --atleast-version=1.2.0 sdl
3691 if test "$?" = "0"; then
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3693 $as_echo "found" >&6; }
3694 else
3695 as_fn_error $? "not found" "$LINENO" 5
3696 fi
3697 SDL_CFLAGS="$(pkg-config --cflags sdl)"
3698 SDL_LIBS="$(pkg-config --libs sdl)"
3699 for ac_header in SDL/SDL.h
3700 do :
3701 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 :
3703 cat >>confdefs.h <<_ACEOF
3704 #define HAVE_SDL_SDL_H 1
3705 _ACEOF
3706
3707 fi
3708
3709 done
3710
3711
3712 # Check for SDL_ttf
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL_ttf library" >&5
3714 $as_echo_n "checking SDL_ttf library... " >&6; }
3715 pkg-config --exists SDL_ttf
3716 if test "$?" = "0"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3719 else
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; }
3724 pkg-config --atleast-version=2.0.0 SDL_ttf
3725 if test "$?" = "0"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3727 $as_echo "found" >&6; }
3728 else
3729 as_fn_error $? "not found" "$LINENO" 5
3730 fi
3731 # Override flags
3732 SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)"
3733 SDL_LIBS="$(pkg-config --libs SDL_ttf)"
3734
3677 3735
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3679 $as_echo_n "checking for ANSI C header files... " >&6; } 3737 $as_echo_n "checking for ANSI C header files... " >&6; }
3680 if ${ac_cv_header_stdc+:} false; then : 3738 if ${ac_cv_header_stdc+:} false; then :
3681 $as_echo_n "(cached) " >&6 3739 $as_echo_n "(cached) " >&6
3784 if test $ac_cv_header_stdc = yes; then 3842 if test $ac_cv_header_stdc = yes; then
3785 3843
3786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3787 3845
3788 fi 3846 fi
3847
3789 3848
3790 3849
3791 3850
3792 3851
3793 3852

mercurial