]> granicus.if.org Git - pdns/commitdiff
m4: Check for randombytes_stir
authorAki Tuomi <cmouse@cmouse.fi>
Mon, 5 Feb 2018 07:27:07 +0000 (09:27 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Wed, 11 Apr 2018 17:37:24 +0000 (20:37 +0300)
This can be used as random source

m4/pdns_check_libsodium.m4

index 03daf00582d430c44d4cfb1aa9a0bbf29b8db5d7..b8a4234419726a00dd4eca9a052c7eee0d7fd11f 100644 (file)
@@ -15,7 +15,7 @@ AC_DEFUN([PDNS_CHECK_LIBSODIUM], [
         save_LIBS=$LIBS
         CFLAGS="$LIBSODIUM_CFLAGS $CFLAGS"
         LIBS="$LIBSODIUM_LIBS $LIBS"
-        AC_CHECK_FUNCS([crypto_box_easy_afternm crypto_box_curve25519xchacha20poly1305_easy])
+        AC_CHECK_FUNCS([crypto_box_easy_afternm crypto_box_curve25519xchacha20poly1305_easy randombytes_stir])
         CFLAGS=$save_CFLAGS
         LIBS=$save_LIBS
       ], [ : ])