[gnutls-devel] GnuTLS | Detect the availability of connectx at runtime (!1294)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sat Jun 27 16:10:56 CEST 2020




Daiki Ueno started a new discussion on configure.ac: https://gitlab.com/gnutls/gnutls/-/merge_requests/1294#note_369325885

>  
>  fi
>  
> +AC_MSG_CHECKING([whether the compiler supports __builtin_available()])
> +AC_COMPILE_IFELSE([
> +  AC_LANG_PROGRAM([[
> +#include <stdlib.h>
> +  ]],[[
> +    if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}

Can't this be done sorely in the C file, with `#if has_builtin(__builtin_available)`?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1294#note_369325885
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200627/12789c4e/attachment.html>


More information about the Gnutls-devel mailing list