[evolution-data-server] Bug 584101 – Configure fails with kerberos and LDFLAGS="-Wl,--as-needed"
- From: Matthew Barnes <mbarnes src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Bug 584101 – Configure fails with kerberos and LDFLAGS="-Wl,--as-needed"
- Date: Thu, 28 May 2009 10:57:34 -0400 (EDT)
commit e650b73b562d825ffbc10a94e0920e5b0a93c182
Author: Tiziano Müller <dev-zero gentoo org>
Date: Thu May 28 10:54:00 2009 -0400
Bug 584101 â?? Configure fails with kerberos and LDFLAGS="-Wl,--as-needed"
---
configure.ac | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index db193a4..7856d00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1221,24 +1221,24 @@ AC_ARG_WITH(krb4-includes,
msg_krb5="no"
if test "x${with_krb5}" != "xno"; then
- LDFLAGS_save="$LDFLAGS"
+ LIBS_save="$LIBS"
mitlibs="-lkrb5 -lk5crypto -lcom_err -lgssapi_krb5"
heimlibs="-lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lgssapi"
sunlibs="-lkrb5 -lgss"
AC_CACHE_CHECK([for Kerberos 5], ac_cv_lib_kerberos5,
[
- LDFLAGS="$LDFLAGS -L$with_krb5_libs $mitlibs"
+ LIBS="$LIBS -L$with_krb5_libs $mitlibs"
AC_TRY_LINK([#include <krb5.h>],krb5_init_context, ac_cv_lib_kerberos5="$mitlibs",
[
- LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $heimlibs"
+ LIBS="$LIBS_save -L$with_krb5_libs $heimlibs"
AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$heimlibs",
[
- LDFLAGS="$LDFLAGS_save -L$with_krb5_libs $sunlibs"
+ LIBS="$LIBS_save -L$with_krb5_libs $sunlibs"
AC_TRY_LINK_FUNC(krb5_init_context, ac_cv_lib_kerberos5="$sunlibs", ac_cv_lib_kerberos5="no")
])
])
- LDFLAGS="$LDFLAGS_save"
+ LIBS="$LIBS_save"
])
if test "$ac_cv_lib_kerberos5" != "no"; then
AC_DEFINE(HAVE_KRB5,1,[Define if you have Krb5])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]