3776 |
3776 |
3777 else |
3777 else |
3778 as_fn_error $? "libuuid not found" "$LINENO" 5 |
3778 as_fn_error $? "libuuid not found" "$LINENO" 5 |
3779 fi |
3779 fi |
3780 |
3780 |
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lws_client_connect in -lwebsockets" >&5 |
3781 |
3782 $as_echo_n "checking for lws_client_connect in -lwebsockets... " >&6; } |
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lws_create_context in -lwebsockets" >&5 |
3783 if ${ac_cv_lib_websockets_lws_client_connect+:} false; then : |
3783 $as_echo_n "checking for lws_create_context in -lwebsockets... " >&6; } |
|
3784 if ${ac_cv_lib_websockets_lws_create_context+:} false; then : |
3784 $as_echo_n "(cached) " >&6 |
3785 $as_echo_n "(cached) " >&6 |
3785 else |
3786 else |
3786 ac_check_lib_save_LIBS=$LIBS |
3787 ac_check_lib_save_LIBS=$LIBS |
3787 LIBS="-lwebsockets $LIBS" |
3788 LIBS="-lwebsockets $LIBS" |
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3792 Use char because int might match the return type of a GCC |
3793 Use char because int might match the return type of a GCC |
3793 builtin and then its argument prototype would still apply. */ |
3794 builtin and then its argument prototype would still apply. */ |
3794 #ifdef __cplusplus |
3795 #ifdef __cplusplus |
3795 extern "C" |
3796 extern "C" |
3796 #endif |
3797 #endif |
3797 char lws_client_connect (); |
3798 char lws_create_context (); |
3798 int |
3799 int |
3799 main () |
3800 main () |
3800 { |
3801 { |
3801 return lws_client_connect (); |
3802 return lws_create_context (); |
3802 ; |
3803 ; |
3803 return 0; |
3804 return 0; |
3804 } |
3805 } |
3805 _ACEOF |
3806 _ACEOF |
3806 if ac_fn_c_try_link "$LINENO"; then : |
3807 if ac_fn_c_try_link "$LINENO"; then : |
3807 ac_cv_lib_websockets_lws_client_connect=yes |
3808 ac_cv_lib_websockets_lws_create_context=yes |
3808 else |
3809 else |
3809 ac_cv_lib_websockets_lws_client_connect=no |
3810 ac_cv_lib_websockets_lws_create_context=no |
3810 fi |
3811 fi |
3811 rm -f core conftest.err conftest.$ac_objext \ |
3812 rm -f core conftest.err conftest.$ac_objext \ |
3812 conftest$ac_exeext conftest.$ac_ext |
3813 conftest$ac_exeext conftest.$ac_ext |
3813 LIBS=$ac_check_lib_save_LIBS |
3814 LIBS=$ac_check_lib_save_LIBS |
3814 fi |
3815 fi |
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_websockets_lws_client_connect" >&5 |
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_websockets_lws_create_context" >&5 |
3816 $as_echo "$ac_cv_lib_websockets_lws_client_connect" >&6; } |
3817 $as_echo "$ac_cv_lib_websockets_lws_create_context" >&6; } |
3817 if test "x$ac_cv_lib_websockets_lws_client_connect" = xyes; then : |
3818 if test "x$ac_cv_lib_websockets_lws_create_context" = xyes; then : |
3818 result=yes |
3819 result=yes |
3819 else |
3820 else |
3820 result=no |
3821 result=no |
3821 fi |
3822 fi |
3822 |
3823 |