configure.ac: switch default ESAPI crypto backend to openSSL
Switch the default ESAPI crypto backend to openSSL.
This should also fix the problem with forcing applications to
link against libgcrypt.
Fixes: #1169
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
diff --git a/configure.ac b/configure.ac
index c42b487..993e858 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,9 +77,9 @@
AC_ARG_WITH([crypto],
[AS_HELP_STRING([--with-crypto={gcrypt,ossl}],
- [sets the ESAPI crypto backend (default is gcrypt)])],
+ [sets the ESAPI crypto backend (default is OpenSSL)])],
[],
- [with_crypto=gcrypt])
+ [with_crypto=ossl])
AM_CONDITIONAL(ESYS_OSSL, test "x$with_crypto" = "xossl")
AM_CONDITIONAL(ESYS_GCRYPT, test "x$with_crypto" = "xgcrypt")
@@ -311,4 +311,5 @@
maxloglevel: $with_maxloglevel
doxygen: $DX_FLAG_doc $enable_doxygen_doc
tcti-device-async: $enable_tcti_device_async
+ crypto backend: $with_crypto
])
diff --git a/lib/tss2-esys.pc.in b/lib/tss2-esys.pc.in
index 792f019..ecb01bc 100644
--- a/lib/tss2-esys.pc.in
+++ b/lib/tss2-esys.pc.in
@@ -4,4 +4,4 @@
Version: @VERSION@
Requires: tss2-mu tss2-sys
Cflags: -I@includedir@
-Libs: -ltss2-esys -lgcrypt -L@libdir@
+Libs: -ltss2-esys -L@libdir@