1301 |
1302 |
1302 Optional Features: |
1303 Optional Features: |
1303 --disable-option-checking ignore unrecognized --enable/--with options |
1304 --disable-option-checking ignore unrecognized --enable/--with options |
1304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1307 --enable-wiringpi Compile wiringPi code |
1306 --enable-experiment Compile experimental code |
1308 --enable-experiment Compile experimental code |
1307 --enable-simulator Compile simulator code |
1309 --enable-simulator Compile simulator code |
1308 --enable-debugging Compile for debugging |
1310 --enable-debugging Compile for debugging |
1309 |
1311 |
1310 Some influential environment variables: |
1312 Some influential environment variables: |
3507 else |
3509 else |
3508 as_fn_error $? "mosquitto not found" "$LINENO" 5 |
3510 as_fn_error $? "mosquitto not found" "$LINENO" 5 |
3509 fi |
3511 fi |
3510 |
3512 |
3511 WIRINGPI=No |
3513 WIRINGPI=No |
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
3514 # Check whether --enable-wiringpi was given. |
|
3515 if test "${enable_wiringpi+set}" = set; then : |
|
3516 enableval=$enable_wiringpi; wiringpi=$enableval |
|
3517 else |
|
3518 wiringpi=yes |
|
3519 fi |
|
3520 |
|
3521 if test "$wiringpi" = "yes"; then |
|
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
3513 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
3523 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
3514 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
3524 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
3515 $as_echo_n "(cached) " >&6 |
3525 $as_echo_n "(cached) " >&6 |
3516 else |
3526 else |
3517 ac_check_lib_save_LIBS=$LIBS |
3527 ac_check_lib_save_LIBS=$LIBS |
3549 result=yes |
3559 result=yes |
3550 else |
3560 else |
3551 result=no |
3561 result=no |
3552 fi |
3562 fi |
3553 |
3563 |
3554 if test "$result" = "yes"; then |
3564 if test "$result" = "yes"; then |
3555 LIBS="$LIBS -lwiringPi -lwiringPiDev" |
3565 LIBS="$LIBS -lwiringPi -lwiringPiDev" |
3556 for ac_header in wiringPi.h |
3566 for ac_header in wiringPi.h |
3557 do : |
3567 do : |
3558 ac_fn_c_check_header_mongrel "$LINENO" "wiringPi.h" "ac_cv_header_wiringPi_h" "$ac_includes_default" |
3568 ac_fn_c_check_header_mongrel "$LINENO" "wiringPi.h" "ac_cv_header_wiringPi_h" "$ac_includes_default" |
3559 if test "x$ac_cv_header_wiringPi_h" = xyes; then : |
3569 if test "x$ac_cv_header_wiringPi_h" = xyes; then : |
3560 cat >>confdefs.h <<_ACEOF |
3570 cat >>confdefs.h <<_ACEOF |
3561 #define HAVE_WIRINGPI_H 1 |
3571 #define HAVE_WIRINGPI_H 1 |
3797 |
3811 |
3798 # Check for SDL |
3812 # Check for SDL |
3799 SDL_CFLAGS="" |
3813 SDL_CFLAGS="" |
3800 SDL_LIBS="" |
3814 SDL_LIBS="" |
3801 SDL="No" |
3815 SDL="No" |
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL library" >&5 |
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL2 library" >&5 |
3803 $as_echo_n "checking SDL library... " >&6; } |
3817 $as_echo_n "checking SDL2 library... " >&6; } |
3804 pkg-config --exists sdl |
3818 pkg-config --exists sdl |
3805 if test "$?" = "0"; then |
3819 if test "$?" = "0"; then |
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3807 $as_echo "yes" >&6; } |
3821 $as_echo "yes" >&6; } |
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v1.2.0 or newer" >&5 |
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl2 library v2.0.0 or newer" >&5 |
3809 $as_echo_n "checking sdl library v1.2.0 or newer... " >&6; } |
3823 $as_echo_n "checking sdl2 library v2.0.0 or newer... " >&6; } |
3810 pkg-config --atleast-version=1.2.0 sdl |
3824 pkg-config --atleast-version=2.0.0 sdl2 |
3811 if test "$?" = "0"; then |
3825 if test "$?" = "0"; then |
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3813 $as_echo "found" >&6; } |
3827 $as_echo "found" >&6; } |
3814 else |
3828 else |
3815 as_fn_error $? "not found" "$LINENO" 5 |
3829 as_fn_error $? "not found" "$LINENO" 5 |
3816 fi |
3830 fi |
3817 SDL_CFLAGS="$(pkg-config --cflags sdl)" |
3831 SDL_CFLAGS="$(pkg-config --cflags sdl2)" |
3818 SDL_LIBS="$(pkg-config --libs sdl)" |
3832 SDL_LIBS="$(pkg-config --libs sdl2)" |
3819 for ac_header in SDL/SDL.h |
3833 for ac_header in SDL2/SDL.h |
3820 do : |
3834 do : |
3821 ac_fn_c_check_header_mongrel "$LINENO" "SDL/SDL.h" "ac_cv_header_SDL_SDL_h" "$ac_includes_default" |
3835 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default" |
3822 if test "x$ac_cv_header_SDL_SDL_h" = xyes; then : |
3836 if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then : |
3823 cat >>confdefs.h <<_ACEOF |
3837 cat >>confdefs.h <<_ACEOF |
3824 #define HAVE_SDL_SDL_H 1 |
3838 #define HAVE_SDL2_SDL_H 1 |
3825 _ACEOF |
3839 _ACEOF |
3826 |
3840 |
3827 fi |
3841 fi |
3828 |
3842 |
3829 done |
3843 done |
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3834 $as_echo "no" >&6; } |
3848 $as_echo "no" >&6; } |
3835 fi |
3849 fi |
3836 |
3850 |
3837 # Check for SDL_ttf |
3851 # Check for SDL_ttf |
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL_ttf library" >&5 |
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDL2_ttf library" >&5 |
3839 $as_echo_n "checking SDL_ttf library... " >&6; } |
3853 $as_echo_n "checking SDL2_ttf library... " >&6; } |
3840 pkg-config --exists SDL_ttf |
3854 pkg-config --exists SDL2_ttf |
3841 if test "$?" = "0"; then |
3855 if test "$?" = "0"; then |
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3843 $as_echo "yes" >&6; } |
3857 $as_echo "yes" >&6; } |
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl library v2.0.0 or newer" >&5 |
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sdl2 library v2.0.0 or newer" >&5 |
3845 $as_echo_n "checking sdl library v2.0.0 or newer... " >&6; } |
3859 $as_echo_n "checking sdl2 library v2.0.0 or newer... " >&6; } |
3846 pkg-config --atleast-version=2.0.0 SDL_ttf |
3860 pkg-config --atleast-version=2.0.0 SDL2_ttf |
3847 if test "$?" = "0"; then |
3861 if test "$?" = "0"; then |
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
3849 $as_echo "found" >&6; } |
3863 $as_echo "found" >&6; } |
3850 else |
3864 else |
3851 as_fn_error $? "not found" "$LINENO" 5 |
3865 as_fn_error $? "not found" "$LINENO" 5 |
3852 fi |
3866 fi |
3853 # Override flags |
3867 # Override flags |
3854 SDL_CFLAGS="$(pkg-config --cflags SDL_ttf)" |
3868 SDL_CFLAGS="$(pkg-config --cflags SDL2_ttf)" |
3855 SDL_LIBS="$(pkg-config --libs SDL_ttf)" |
3869 SDL_LIBS="$(pkg-config --libs SDL2_ttf)" |
3856 else |
3870 else |
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3858 $as_echo "no" >&6; } |
3872 $as_echo "no" >&6; } |
3859 fi |
3873 fi |
3860 |
3874 |
5256 Configuration summary : |
5270 Configuration summary : |
5257 |
5271 |
5258 Version : ............ ${VERSION} |
5272 Version : ............ ${VERSION} |
5259 Main directory : ..... ${prefix} |
5273 Main directory : ..... ${prefix} |
5260 WiringPi : ........... ${WIRINGPI} |
5274 WiringPi : ........... ${WIRINGPI} |
5261 SDL library : ........ ${SDL} |
5275 SDL2 library : ....... ${SDL} |
5262 Simulator : .......... ${SIMULATOR} |
5276 Simulator : .......... ${SIMULATOR} |
5263 |
5277 |
5264 Now type 'make' and 'sudo make install' |
5278 Now type 'make' and 'sudo make install' |
5265 " >&5 |
5279 " >&5 |
5266 $as_echo " |
5280 $as_echo " |
5269 Configuration summary : |
5283 Configuration summary : |
5270 |
5284 |
5271 Version : ............ ${VERSION} |
5285 Version : ............ ${VERSION} |
5272 Main directory : ..... ${prefix} |
5286 Main directory : ..... ${prefix} |
5273 WiringPi : ........... ${WIRINGPI} |
5287 WiringPi : ........... ${WIRINGPI} |
5274 SDL library : ........ ${SDL} |
5288 SDL2 library : ....... ${SDL} |
5275 Simulator : .......... ${SIMULATOR} |
5289 Simulator : .......... ${SIMULATOR} |
5276 |
5290 |
5277 Now type 'make' and 'sudo make install' |
5291 Now type 'make' and 'sudo make install' |
5278 " >&6; } |
5292 " >&6; } |
5279 |
5293 |