diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-09 13:59:05 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-09 13:59:05 +0200 |
commit | b217e0467921eeadd653a5dcc8af447277991297 (patch) | |
tree | cbe724c2dae484552954baafafd43a6d61280f77 /configure.ac | |
parent | 64fd6aa9e7c38b645c710aac036d4c5bd08b0b0c (diff) | |
download | gnutls-b217e0467921eeadd653a5dcc8af447277991297.tar.gz |
configure: better document the random generator variant used
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 0a9e05a844..a54ba982fe 100644 --- a/configure.ac +++ b/configure.ac @@ -203,7 +203,7 @@ AM_CONDITIONAL(HAVE_GCC_GNU89_INLINE_OPTION, test "$gnu89_inline" = "yes"]) AM_CONDITIONAL(HAVE_GCC, test "$GCC" = "yes") dnl check for getrandom() -enable_getrandom=no +rnd_variant="auto-detect" AC_MSG_CHECKING([for getrandom]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ #include <linux/random.h>],[ @@ -211,7 +211,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([ ])], [AC_MSG_RESULT(yes) AC_DEFINE([HAVE_LINUX_GETRANDOM], 1, [Enable the Linux getrandom function]) - enable_getrandom=getrandom], + rnd_variant=getrandom], [AC_MSG_RESULT(no)]) AC_MSG_CHECKING([for getentropy]) @@ -225,10 +225,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([ ])], [AC_MSG_RESULT(yes) AC_DEFINE([HAVE_GETENTROPY], 1, [Enable the OpenBSD getentropy function]) - enable_getrandom=getentropy], + rnd_variant=getentropy], [AC_MSG_RESULT(no)]) -AM_CONDITIONAL(HAVE_GETENTROPY, test "$enable_getrandom" = "getentropy") +AM_CONDITIONAL(HAVE_GETENTROPY, test "$rnd_variant" = "getentropy") dnl Try the hooks.m4 LIBGNUTLS_HOOKS @@ -970,7 +970,7 @@ AC_MSG_NOTICE([External hardware support: /dev/crypto: $enable_cryptodev Hardware accel: $hw_accel Padlock accel: $use_padlock - getrandom variant: $enable_getrandom + Random gen. variant: $rnd_variant PKCS#11 support: $with_p11_kit TPM support: $with_tpm ]) |