summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-07-15 13:54:31 +1000
committerDamien Miller <djm@mindrot.org>2016-07-15 14:28:59 +1000
commit5fbe93fc6fbb2fe211e035703dec759d095e3dd8 (patch)
tree7702724da9131e049624dd3abc3e6b854db9ba95
parent679ce88ec2a8e2fe6515261c489e8c1449bb9da9 (diff)
add a --disable-pkcs11 knob
-rw-r--r--configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 4f525b5d..21ef3898 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1804,8 +1804,18 @@ AC_LINK_IFELSE(
[AC_DEFINE([HAVE_ISBLANK], [1], [Define if you have isblank(3C).])
])
+disable_pkcs11=
+AC_ARG_ENABLE([pkcs11],
+ [ --disable-pkcs11 disable PKCS#11 support code [no]],
+ [
+ if test "x$enableval" = "xno" ; then
+ disable_pkcs11=1
+ fi
+ ]
+)
+
# PKCS11 depends on OpenSSL.
-if test "x$openssl" = "xyes" ; then
+if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then
# PKCS#11 support requires dlopen() and co
AC_SEARCH_LIBS([dlopen], [dl],
[AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support])]