diff options
| author | Ross Burton <ross@openedhand.com> | 2007-05-24 11:13:02 +0000 |
|---|---|---|
| committer | Ross Burton <rburton@src.gnome.org> | 2007-05-24 11:13:02 +0000 |
| commit | a8e8a480318dacab8452dadaeb0e46ccb8cbc166 (patch) | |
| tree | 5d55c8fe8266618d309f5c33af2d7d123822a044 /configure.in | |
| parent | 1371581d82880d270d8fb9c23374c557deccf5eb (diff) | |
| download | evolution-data-server-a8e8a480318dacab8452dadaeb0e46ccb8cbc166.tar.gz | |
Fix krb5 checks when using --as-needed (part of #342830, John N.
2007-05-24 Ross Burton <ross@openedhand.com>
* configure.in:
Fix krb5 checks when using --as-needed (part of #342830, John
N. Laliberte).
svn path=/trunk/; revision=7781
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/configure.in b/configure.in index d6360308d..afadeecce 100644 --- a/configure.in +++ b/configure.in @@ -971,7 +971,7 @@ if test "x${with_krb5}" != "xno"; then AC_CACHE_CHECK([for Kerberos 5], ac_cv_lib_kerberos5, [ LDFLAGS="$LDFLAGS -L$with_krb5_libs $mitlibs" - AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$mitlibs", + AC_TRY_LINK([#include <krb5.h>],krb5_init_context, ac_cv_lib_kerberos5="$mitlibs", [ LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $heimlibs" AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$heimlibs", ac_cv_lib_kerberos5="no") @@ -998,11 +998,16 @@ if test "x${with_krb5}" != "xno"; then msg_krb5="yes (Heimdal)" fi KRB5_LDFLAGS="-L$with_krb5_libs $ac_cv_lib_kerberos5" + AC_MSG_RESULT(msg_krb5) + else + dnl AC_MSG_CHECKING([for Kerberos 5]) + AC_MSG_RESULT([no]) + AC_MSG_ERROR([You specified with krb5, but it was not found.]) fi else - AC_MSG_CHECKING(for Kerberos 5) - AC_MSG_RESULT($with_krb5) + AC_MSG_WARN([krb5 support disabled]) fi + AM_CONDITIONAL(ENABLE_KRB5, test x$with_krb5 != xno) AC_CHECK_HEADER([et/com_err.h],[AC_DEFINE([HAVE_ET_COM_ERR_H], 1, [Have et/comm_err.h])]) |
