aboutsummaryrefslogtreecommitdiffstats
path: root/config/user-libssl.m4
blob: f6824510fd41d082f3708f898d86374782fe3d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
dnl #
dnl # Check for libssl. Used for userspace password derivation via PBKDF2.
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_LIBSSL], [
	LIBSSL=

	AC_CHECK_HEADER([openssl/evp.h], [], [AC_MSG_FAILURE([
	*** evp.h missing, libssl-devel package required])])

	AC_SUBST([LIBSSL], ["-lssl -lcrypto"])
	AC_DEFINE([HAVE_LIBSSL], 1, [Define if you have libssl])
])