Skip to content

Commit 0d07348

Browse files
committed
Make dependency on openssl for EVP functions explicit
1 parent ca728e1 commit 0d07348

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

configure.ac

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ AS_IF([test "x${APR}" != "x" -a -x "${APR}"],
4949
AC_SUBST(APR_LDFLAGS)],
5050
[AC_MSG_FAILURE(["apr-1-config not found. Use --with-apr"])])
5151

52+
PKG_CHECK_MODULES([OPENSSL], [openssl])
53+
AC_SUBST([OPENSSL_CFLAGS])
54+
AC_SUBST([OPENSSL_LIBS])
55+
5256
AC_CHECK_HEADERS([gssapi/gssapi.h],,[AC_MSG_ERROR([Could not find GSSAPI headers])])
5357
AC_PATH_PROG(KRB5_CONFIG, krb5-config, failed)
5458
if test x$KRB5_CONFIG = xfailed; then
@@ -65,8 +69,8 @@ AC_CHECK_FUNCS(gss_store_cred_into)
6569
AC_SUBST([GSSAPI_CFLAGS])
6670
AC_SUBST([GSSAPI_LIBS])
6771

68-
CFLAGS="`${APXS} -q CFLAGS` `${APR} --cflags` ${GSSAPI_CFLAGS} -I`${APXS} -q INCLUDEDIR` -I`${APR} --includes`"
69-
LIBS="`${APR} --link-libtool --libs` ${GSSAPI_LIBS}"
72+
CFLAGS="`${APXS} -q CFLAGS` `${APR} --cflags` ${GSSAPI_CFLAGS} ${OPENSSL_CFLAGS} -I`${APXS} -q INCLUDEDIR` -I`${APR} --includes`"
73+
LIBS="`${APR} --link-libtool --libs` ${GSSAPI_LIBS} ${OPENSSL_LIBS}"
7074

7175
AC_CONFIG_FILES([Makefile src/Makefile])
7276

0 commit comments

Comments
 (0)