diff options
author | Neil Brown <neilb@suse.de> | 2006-07-06 13:05:11 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-07-06 13:05:11 +1000 |
commit | 26fff911b21943f20e3937ae3f2d29a1572d2309 (patch) | |
tree | 20ed6aded7adaab4dc43377c0a13d9472f4f82c1 /aclocal/kerberos5.m4 | |
parent | 28a7603b719f8d35bf22fd3018b610b489fec78f (diff) | |
download | nfs-utils-26fff911b21943f20e3937ae3f2d29a1572d2309.tar.gz |
Only use -rpath for Kerberos libs when actually needed.
Avoid usage of -rpath is generally safer, and is required by Debian policy.
Diffstat (limited to 'aclocal/kerberos5.m4')
-rw-r--r-- | aclocal/kerberos5.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/aclocal/kerberos5.m4 b/aclocal/kerberos5.m4 index 45e220f..1dac9f0 100644 --- a/aclocal/kerberos5.m4 +++ b/aclocal/kerberos5.m4 @@ -72,6 +72,17 @@ AC_DEFUN([AC_KERBEROS_V5],[ fi AC_MSG_RESULT($KRBDIR) + dnl Check if -rpath=$(KRBDIR)/lib is needed + echo "The current KRBDIR is $KRBDIR" + if test "$KRBDIR/lib" = "/lib" -o "$KRBDIR/lib" = "/usr/lib" \ + -o "$KRBDIR/lib" = "//lib" -o "$KRBDIR/lib" = "/usr//lib" ; then + KRBLDFLAGS=""; + elif /sbin/ldconfig -p | grep > /dev/null "=> $KRBDIR/lib/"; then + KRBLDFLAGS=""; + else + KRBLDFLAGS="-Wl,-rpath=$KRBDIR/lib" + fi + dnl Now check for functions within gssapi library AC_CHECK_LIB($gssapi_lib, gss_krb5_export_lucid_sec_context, AC_DEFINE(HAVE_LUCID_CONTEXT_SUPPORT, 1, [Define this if the Kerberos GSS library supports gss_krb5_export_lucid_sec_context]), ,$KRBLIBS) @@ -88,6 +99,7 @@ AC_DEFUN([AC_KERBEROS_V5],[ AC_SUBST([KRBDIR]) AC_SUBST([KRBLIBS]) AC_SUBST([KRBCFLAGS]) + AC_SUBST([KRBLDFLAGS]) AC_SUBST([K5VERS]) ]) |