fi
+if test "$with_dlopen" = "no" -a "$want_native_pkcs11" = "yes"; then :
+ as_fn_error $? "PKCS11 requires dlopen() support" "$LINENO" 5
+fi
+
CFLAGS="$CFLAGS $SO_CFLAGS"
# was --enable-native-pkcs11 specified?
# (note it implies both --without-openssl and --with-pkcs11)
#
-# [pairwise: --enable-native-pkcs11, --disable-native-pkcs11]
+# [pairwise: --enable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --with-dlopen, --disable-native-pkcs11 --without-dlopen]
AC_ARG_ENABLE(native-pkcs11,
AS_HELP_STRING([--enable-native-pkcs11],
[use native PKCS11 for all crypto [default=no]]),
SO_TARGETS=""
SO_STRIP="cat"
-# [pairwise: --with-dlopen, --without-dlopen]
+# [pairwise: skip]
AC_ARG_WITH([dlopen],
AS_HELP_STRING([--with-dlopen=ARG],
[support dynamically loadable DLZ drivers]),
])
])
+AS_IF([test "$with_dlopen" = "no" -a "$want_native_pkcs11" = "yes"],
+ [AC_MSG_ERROR([PKCS11 requires dlopen() support])])
+
CFLAGS="$CFLAGS $SO_CFLAGS"
AC_SUBST(SO)