Add --without-hcrypto-fallback option
authorNicolas Williams <nico@twosigma.com>
Mon, 18 Apr 2016 23:20:56 +0000 (18:20 -0500)
committerNicolas Williams <nico@twosigma.com>
Tue, 19 Apr 2016 18:40:46 +0000 (13:40 -0500)
cf/crypto.m4

index 6397fb0497aa32dfccf325bde693c10821f19642..44b77c1d002b130f4341902f304ea7ef5754d06a 100644 (file)
@@ -79,6 +79,11 @@ AC_ARG_WITH([hcrypto-default-backend],
             esac
             ],
             [])
+AC_ARG_WITH([hcrypto-fallback],
+            AS_HELP_STRING([--without-hcrypto-fallback],
+                           [disable fallback on hcrypto for unavailable algorithms]),
+            [AC_DEFINE([HCRYPTO_FALLBACK],0,[Set to 1 to allow fallback to hcrypto for unavailable algorithms])],
+            [AC_DEFINE([HCRYPTO_FALLBACK],1,[Set to 1 to allow fallback to hcrypto for unavailable algorithms])])
 AC_WITH_ALL([openssl])
 
 AC_MSG_CHECKING([for crypto library])