diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 4f525b5d2..21ef38988 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1804,8 +1804,18 @@ AC_LINK_IFELSE( | |||
1804 | [AC_DEFINE([HAVE_ISBLANK], [1], [Define if you have isblank(3C).]) | 1804 | [AC_DEFINE([HAVE_ISBLANK], [1], [Define if you have isblank(3C).]) |
1805 | ]) | 1805 | ]) |
1806 | 1806 | ||
1807 | disable_pkcs11= | ||
1808 | AC_ARG_ENABLE([pkcs11], | ||
1809 | [ --disable-pkcs11 disable PKCS#11 support code [no]], | ||
1810 | [ | ||
1811 | if test "x$enableval" = "xno" ; then | ||
1812 | disable_pkcs11=1 | ||
1813 | fi | ||
1814 | ] | ||
1815 | ) | ||
1816 | |||
1807 | # PKCS11 depends on OpenSSL. | 1817 | # PKCS11 depends on OpenSSL. |
1808 | if test "x$openssl" = "xyes" ; then | 1818 | if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then |
1809 | # PKCS#11 support requires dlopen() and co | 1819 | # PKCS#11 support requires dlopen() and co |
1810 | AC_SEARCH_LIBS([dlopen], [dl], | 1820 | AC_SEARCH_LIBS([dlopen], [dl], |
1811 | [AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support])] | 1821 | [AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support])] |