summaryrefslogtreecommitdiff
path: root/server/external
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-11-06 08:28:01 -0500
committerSimo Sorce <ssorce@redhat.com>2009-11-06 17:45:01 -0500
commit0b0cb79cb6df219f76cb8e1e5c96f1b2f6fd97c8 (patch)
tree10ccea02f27a4db06e97a1a81261c708ed2f3eec /server/external
parent6150b320c7045f16841750b3f2294a44a4a8cc3c (diff)
downloadsssd-0b0cb79cb6df219f76cb8e1e5c96f1b2f6fd97c8.tar.gz
sssd-0b0cb79cb6df219f76cb8e1e5c96f1b2f6fd97c8.tar.bz2
sssd-0b0cb79cb6df219f76cb8e1e5c96f1b2f6fd97c8.zip
Clean up unused dependencies
Diffstat (limited to 'server/external')
-rw-r--r--server/external/krb5.m424
1 files changed, 23 insertions, 1 deletions
diff --git a/server/external/krb5.m4 b/server/external/krb5.m4
index 95cd386e..d02732b1 100644
--- a/server/external/krb5.m4
+++ b/server/external/krb5.m4
@@ -1,5 +1,14 @@
AC_SUBST(KRB5_CFLAGS)
AC_SUBST(KRB5_LIBS)
+
+if test x$KRB5_LIBS != x; then
+ KRB5_PASSED_LIBS=$KRB5_LIBS
+fi
+
+if test x$KRB5_CFLAGS != x; then
+ KRB5_PASSED_CFLAGS=$KRB5_CFLAGS
+fi
+
AC_PATH_PROG(KRB5_CONFIG, krb5-config)
AC_MSG_CHECKING(for working krb5-config)
if test -x "$KRB5_CONFIG"; then
@@ -7,9 +16,22 @@ if test -x "$KRB5_CONFIG"; then
KRB5_LIBS="`$KRB5_CONFIG --libs`"
AC_MSG_RESULT(yes)
else
- AC_MSG_ERROR(no. Please install MIT kerberos devel package)
+ if test x$KRB5_PASSED_LIBS = x; then
+ AC_MSG_ERROR(no. Please install MIT kerberos devel package)
+ fi
fi
+if test x$KRB5_PASSED_LIBS != x; then
+ KRB5_LIBS=$KRB5_PASSED_LIBS
+fi
+
+if test x$KRB5_PASSED_CFLAGS != x; then
+ KRB5_CFLAGS=$KRB5_PASSED_CFLAGS
+fi
+
+AC_ARG_VAR([KRB5_CFLAGS], [C compiler flags for kerberos, overriding krb5-config])dnl
+AC_ARG_VAR([KRB5_LIBS], [linker flags for kerberos, overriding krb5-config])dnl
+
SAVE_CFLAGS=$CFLAGS
SAVE_LIBS=$LIBS
CFLAGS="$CFLAGS $KRB5_CFLAGS"