580 PACKAGE_VERSION= |
580 PACKAGE_VERSION= |
581 PACKAGE_STRING= |
581 PACKAGE_STRING= |
582 PACKAGE_BUGREPORT= |
582 PACKAGE_BUGREPORT= |
583 PACKAGE_URL= |
583 PACKAGE_URL= |
584 |
584 |
585 ac_unique_file="thermometers/main.c" |
585 ac_unique_file="thermometers/thermometers.c" |
586 ac_default_prefix=/usr/local |
586 ac_default_prefix=/usr/local |
587 # Factoring default headers for most tests. |
587 # Factoring default headers for most tests. |
588 ac_includes_default="\ |
588 ac_includes_default="\ |
589 #include <stdio.h> |
589 #include <stdio.h> |
590 #ifdef HAVE_SYS_TYPES_H |
590 #ifdef HAVE_SYS_TYPES_H |
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2027 |
2027 |
2028 |
2028 |
2029 ac_config_headers="$ac_config_headers config.h" |
2029 ac_config_headers="$ac_config_headers config.h" |
2030 |
2030 |
2031 SUBDIRS="lib dht11 rc433 thermferm thermometers" |
2031 SUBDIRS="dht11 rc433 thermferm thermometers" |
2032 |
2032 |
2033 |
2033 |
2034 PACKAGE="mbsePi-apps" |
2034 PACKAGE="mbsePi-apps" |
2035 VERSION="0.0.6" |
2035 VERSION="0.0.7" |
2036 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved" |
2036 COPYRIGHT="Copyright (C) 2014 Michiel Broek, All Rights Reserved" |
2037 CYEARS="2014" |
2037 CYEARS="2014" |
2038 |
2038 |
2039 |
2039 |
2040 |
2040 |
3089 else |
3089 else |
3090 result=no |
3090 result=no |
3091 fi |
3091 fi |
3092 |
3092 |
3093 if test "$result" = "yes"; then |
3093 if test "$result" = "yes"; then |
3094 LIBS="$LIBS -lmosquitto" |
|
3095 else |
|
3096 as_fn_error $? "libmosquitto not found" "$LINENO" 5 |
|
3097 fi |
|
3098 |
|
3099 |
|
3100 WIRINGPI=No |
|
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
|
3102 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
|
3103 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
|
3104 $as_echo_n "(cached) " >&6 |
|
3105 else |
|
3106 ac_check_lib_save_LIBS=$LIBS |
|
3107 LIBS="-lwiringPi $LIBS" |
|
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3109 /* end confdefs.h. */ |
|
3110 |
|
3111 /* Override any GCC internal prototype to avoid an error. |
|
3112 Use char because int might match the return type of a GCC |
|
3113 builtin and then its argument prototype would still apply. */ |
|
3114 #ifdef __cplusplus |
|
3115 extern "C" |
|
3116 #endif |
|
3117 char wiringPiSetup (); |
|
3118 int |
|
3119 main () |
|
3120 { |
|
3121 return wiringPiSetup (); |
|
3122 ; |
|
3123 return 0; |
|
3124 } |
|
3125 _ACEOF |
|
3126 if ac_fn_c_try_link "$LINENO"; then : |
|
3127 ac_cv_lib_wiringPi_wiringPiSetup=yes |
|
3128 else |
|
3129 ac_cv_lib_wiringPi_wiringPiSetup=no |
|
3130 fi |
|
3131 rm -f core conftest.err conftest.$ac_objext \ |
|
3132 conftest$ac_exeext conftest.$ac_ext |
|
3133 LIBS=$ac_check_lib_save_LIBS |
|
3134 fi |
|
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiringPi_wiringPiSetup" >&5 |
|
3136 $as_echo "$ac_cv_lib_wiringPi_wiringPiSetup" >&6; } |
|
3137 if test "x$ac_cv_lib_wiringPi_wiringPiSetup" = xyes; then : |
|
3138 result=yes |
|
3139 else |
|
3140 result=no |
|
3141 fi |
|
3142 |
|
3143 if test "$result" = "yes"; then |
|
3144 LIBS="$LIBS -lwiringPi -lwiringPiDev" |
|
3145 ac_ext=c |
3094 ac_ext=c |
3146 ac_cpp='$CPP $CPPFLAGS' |
3095 ac_cpp='$CPP $CPPFLAGS' |
3147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3149 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3537 fi |
3486 fi |
3538 |
3487 |
3539 done |
3488 done |
3540 |
3489 |
3541 |
3490 |
3542 for ac_header in wiringPi.h |
3491 for ac_header in mosquitto.h |
|
3492 do : |
|
3493 ac_fn_c_check_header_mongrel "$LINENO" "mosquitto.h" "ac_cv_header_mosquitto_h" "$ac_includes_default" |
|
3494 if test "x$ac_cv_header_mosquitto_h" = xyes; then : |
|
3495 cat >>confdefs.h <<_ACEOF |
|
3496 #define HAVE_MOSQUITTO_H 1 |
|
3497 _ACEOF |
|
3498 MOSQUITTO=Yes |
|
3499 else |
|
3500 MOSQUITTO=No |
|
3501 fi |
|
3502 |
|
3503 done |
|
3504 |
|
3505 else |
|
3506 as_fn_error $? "libmosquitto not found" "$LINENO" 5 |
|
3507 fi |
|
3508 |
|
3509 |
|
3510 WIRINGPI=No |
|
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiringPiSetup in -lwiringPi" >&5 |
|
3512 $as_echo_n "checking for wiringPiSetup in -lwiringPi... " >&6; } |
|
3513 if ${ac_cv_lib_wiringPi_wiringPiSetup+:} false; then : |
|
3514 $as_echo_n "(cached) " >&6 |
|
3515 else |
|
3516 ac_check_lib_save_LIBS=$LIBS |
|
3517 LIBS="-lwiringPi $LIBS" |
|
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3519 /* end confdefs.h. */ |
|
3520 |
|
3521 /* Override any GCC internal prototype to avoid an error. |
|
3522 Use char because int might match the return type of a GCC |
|
3523 builtin and then its argument prototype would still apply. */ |
|
3524 #ifdef __cplusplus |
|
3525 extern "C" |
|
3526 #endif |
|
3527 char wiringPiSetup (); |
|
3528 int |
|
3529 main () |
|
3530 { |
|
3531 return wiringPiSetup (); |
|
3532 ; |
|
3533 return 0; |
|
3534 } |
|
3535 _ACEOF |
|
3536 if ac_fn_c_try_link "$LINENO"; then : |
|
3537 ac_cv_lib_wiringPi_wiringPiSetup=yes |
|
3538 else |
|
3539 ac_cv_lib_wiringPi_wiringPiSetup=no |
|
3540 fi |
|
3541 rm -f core conftest.err conftest.$ac_objext \ |
|
3542 conftest$ac_exeext conftest.$ac_ext |
|
3543 LIBS=$ac_check_lib_save_LIBS |
|
3544 fi |
|
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiringPi_wiringPiSetup" >&5 |
|
3546 $as_echo "$ac_cv_lib_wiringPi_wiringPiSetup" >&6; } |
|
3547 if test "x$ac_cv_lib_wiringPi_wiringPiSetup" = xyes; then : |
|
3548 result=yes |
|
3549 else |
|
3550 result=no |
|
3551 fi |
|
3552 |
|
3553 if test "$result" = "yes"; then |
|
3554 LIBS="$LIBS -lwiringPi -lwiringPiDev" |
|
3555 for ac_header in wiringPi.h |
3543 do : |
3556 do : |
3544 ac_fn_c_check_header_mongrel "$LINENO" "wiringPi.h" "ac_cv_header_wiringPi_h" "$ac_includes_default" |
3557 ac_fn_c_check_header_mongrel "$LINENO" "wiringPi.h" "ac_cv_header_wiringPi_h" "$ac_includes_default" |
3545 if test "x$ac_cv_header_wiringPi_h" = xyes; then : |
3558 if test "x$ac_cv_header_wiringPi_h" = xyes; then : |
3546 cat >>confdefs.h <<_ACEOF |
3559 cat >>confdefs.h <<_ACEOF |
3547 #define HAVE_WIRINGPI_H 1 |
3560 #define HAVE_WIRINGPI_H 1 |