Error out when configure finds missing dependencies

ticket 315
This commit is contained in:
Rob Crittenden
2010-10-26 15:14:05 -04:00
parent 6abc4186b4
commit 9afedcb683
2 changed files with 7 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ dnl - Check for KRB5
dnl ---------------------------------------------------------------------------
KRB5_LIBS=
AC_CHECK_HEADER(krb5.h)
AC_CHECK_HEADER(krb5.h, [], [AC_MSG_ERROR([krb5.h not found])])
krb5_impl=mit
@@ -197,6 +197,7 @@ dnl ---------------------------------------------------------------------------
dnl This is a very simple check, we should probably check also for MD4_Init and
dnl probably also the version we are using is recent enough
SSL_LIBS=
AC_CHECK_HEADER(openssl/des.h, [], [AC_MSG_ERROR([openssl/des.h not found])])
AC_CHECK_LIB(crypto, DES_set_key_unchecked, [SSL_LIBS="-lcrypto"])
AC_SUBST(SSL_LIBS)