summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2012-03-02 19:28:48 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2012-03-02 19:30:01 +0100
commitc52aaa19fa3fe2045106b36a03e027fb482f0be1 (patch)
treea5157ff729d22d7ec9dadb3b26f0aa4b8df33f23 /configure
parentcafcab12701d354008c267f8a7a2501c831d4869 (diff)
downloadfribid-c52aaa19fa3fe2045106b36a03e027fb482f0be1.tar.gz
fribid-c52aaa19fa3fe2045106b36a03e027fb482f0be1.tar.bz2
fribid-c52aaa19fa3fe2045106b36a03e027fb482f0be1.zip
Make configure accept PKCS#11 modules that export only C_GetFunctionList
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index 8343059..77da85e 100755
--- a/configure
+++ b/configure
@@ -257,9 +257,10 @@ if [ "$enable_pkcs11" = 1 ]; then
if [ "x${pkcs11Module%opensc-pkcs11.so}" != "x$pkcs11Module" ]; then
echo "Make sure that you have installed OpenSC!" >&2
fi
- elif type readelf grep > /dev/null 2> /dev/null; then
+ elif type readelf grep > /dev/null 2> /dev/null && \
+ echo 'A_a' | grep -q 'B_b\|A_a'; then
# Check that it's actually a PKCS#11 module
- if ! readelf -s "$pkcs11Module" | grep -q C_Initialize; then
+ if ! readelf -s "$pkcs11Module" | grep -q 'C_Initialize\|C_GetFunctionList'; then
echo >&2
echo "ERROR: $pkcs11Module is not a PKCS#11 module" >&2
echo "Normally you should use the file opensc-pkcs11.so from OpenSC." >&2