Use pkg-config to discover OpenSSL

All supported versions of OpenSSL have pkg-config files.
This commit is contained in:
Pavel Roskin
2016-11-29 17:00:09 -08:00
parent 06f4f72e28
commit c6307aa2b0
2 changed files with 5 additions and 5 deletions
+2 -3
View File
@@ -125,9 +125,8 @@ AC_CHECK_FUNC(dlopen, [],
AC_SUBST(DLOPEN_LIBS)
# checking for openssl
AC_CHECK_HEADER([openssl/rc4.h], [],
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])],
[#include <stdlib.h>])
PKG_CHECK_MODULES([OPENSSL], [openssl >= 0], [],
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])])
# checking for pam variation
# Linux-PAM is used in Linux systems