[gnome-control-center/wip/user-identities: 1/3] configure: add --enable-kerberos
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/user-identities: 1/3] configure: add --enable-kerberos
- Date: Sat, 25 Feb 2012 00:32:11 +0000 (UTC)
commit 7229d5347b480f1d2bf83e2e26e8e58451204325
Author: Ray Strode <rstrode redhat com>
Date: Mon Feb 20 00:23:47 2012 -0500
configure: add --enable-kerberos
It will be used by the user panel to add built in support for kerberos
realms.
configure.ac | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0763743..243fb21 100644
--- a/configure.ac
+++ b/configure.ac
@@ -65,6 +65,11 @@ else
SYSTEMD=
fi
+AC_ARG_ENABLE([kerberos],
+ AS_HELP_STRING([--enable-kerberos], [Use Kerberos]),
+ [with_kerberos=$enableval],
+ [with_kerberos=no])
+
dnl ==============================================
dnl Check that we meet the dependencies
dnl ==============================================
@@ -130,6 +135,30 @@ PKG_CHECK_MODULES(USER_ACCOUNTS_PANEL, $COMMON_MODULES
gnome-desktop-3.0
gdk-pixbuf-2.0 >= $GDKPIXBUF_REQUIRED_VERSION
$SYSTEMD)
+
+AC_PATH_PROG([KRB5_CONFIG], krb5-config, none, $PATH:/usr/kerberos/bin)
+
+if test "x$KRB5_CONFIG" != "xnone"; then
+ KRB5_LIBS="`${KRB5_CONFIG} --libs krb5`"
+ KRB5_CFLAGS="`${KRB5_CONFIG} --cflags krb5`"
+ have_kerberos=yes
+else
+ KRB5_LIBS=""
+ KRB5_CFLAGS=""
+ have_kerberos=no
+fi
+AC_SUBST(KRB5_CFLAGS)
+AC_SUBST(KRB5_LIBS)
+
+if test "$with_kerberos" = "yes" ; then
+ if test "$have_kerberos" = "no" ; then
+ AC_MSG_ERROR([kerberos support requested, but not available])
+ fi
+ AC_DEFINE(HAVE_KERBEROS, 1, [Define to 1 if kerberos is available])
+fi
+
+USER_ACCOUNTS_PANEL_CFLAGS="$USER_ACCOUNTS_PANEL_CFLAGS $KRB5_CFLAGS"
+USER_ACCOUNTS_PANEL_LIBS="$USER_ACCOUNTS_PANEL_LIBS $KRB5_LIBS"
PKG_CHECK_MODULES(WACOM_PANEL, $COMMON_MODULES
gnome-settings-daemon >= $GSD_REQUIRED_VERSION
xi >= 1.2 x11 libwacom >= $LIBWACOM_REQUIRED_VERSION
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]