diff options
author | Christian Heimes <christian@python.org> | 2016-09-05 23:54:41 +0200 |
---|---|---|
committer | Christian Heimes <christian@python.org> | 2016-09-05 23:54:41 +0200 |
commit | dffa3949c7431e819c64a890bce41fe769e47da1 (patch) | |
tree | 76a4293c96ba8a839d90cda3e74e6dd91cce9274 /configure.ac | |
parent | 92a6c170e6897ee98c36a3a9087b1a7d3e054d2b (diff) | |
download | cpython-git-dffa3949c7431e819c64a890bce41fe769e47da1.tar.gz |
Issue #27744: Add AF_ALG (Linux Kernel crypto) to socket module.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 56fd29cdb9..088511f33c 100644 --- a/configure.ac +++ b/configure.ac @@ -3862,6 +3862,19 @@ if test $ac_cv_struct_sockaddr_storage = yes; then AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [struct sockaddr_storage (sys/socket.h)]) fi +AC_MSG_CHECKING(for sockaddr_alg) +AC_CACHE_VAL(ac_cv_struct_sockaddr_alg, +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +# include <sys/types.h> +# include <sys/socket.h> +# include <linux/if_alg.h>]], [[struct sockaddr_alg s]])], + [ac_cv_struct_sockaddr_alg=yes], + [ac_cv_struct_sockaddr_alg=no])) +AC_MSG_RESULT($ac_cv_struct_sockaddr_alg) +if test $ac_cv_struct_sockaddr_alg = yes; then + AC_DEFINE(HAVE_SOCKADDR_ALG, 1, [struct sockaddr_alg (linux/if_alg.h)]) +fi + # checks for compiler characteristics AC_C_CHAR_UNSIGNED |