Patches to build the GS2 library and to use the Mac 'glibtoolize'.
Regards
Pete
--
Pete Fotheringham
Codethink Ltd
http://codethink.co.uk
+44 7740 351755
From 1a582d216adbd15f7092ccfea562dbf32cbbf757 Mon Sep 17 00:00:00 2001
From: Pete Fotheringham <[log in to unmask]>
Date: Mon, 28 Nov 2011 14:53:55 +0000
Subject: [PATCH 1/2] Build the GS2 plugin
---
configure.in | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/configure.in b/configure.in
index 8c72131..c1167b4 100644
--- a/configure.in
+++ b/configure.in
@@ -544,6 +544,21 @@ if test "$gssapi" != "no"; then
AC_MSG_RESULT($use_gss_mutexes)
fi
+dnl GS2
+AC_ARG_ENABLE(gs2, [ --enable-gs2 enable GS2 authentication [[yes]] ],
+ gs2=$enableval,
+ gs2=yes)
+
+AC_MSG_CHECKING(GS2)
+if test "$gs2" != no; then
+ AC_MSG_RESULT(enabled)
+ SASL_MECHS="$SASL_MECHS libgs2.la"
+else
+ AC_MSG_RESULT(disabled)
+fi
+
+
+
dnl PLAIN
SASL_PLAIN_CHK
--
1.7.5.4
From 93fea734daaa7fb508cf9a70f949f2abc1def5b3 Mon Sep 17 00:00:00 2001
From: Pete Fotheringham <[log in to unmask]>
Date: Mon, 28 Nov 2011 14:55:50 +0000
Subject: [PATCH 2/2] On Mac OS use 'glibtoolize', not 'libtoolize'
---
autogen.sh | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index b777640..3eda5ff 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,18 +4,27 @@ PATH=/usr/local/bin:$PATH
autoreconf -ivf
+# On MAC OS X, GNU libtoolize is named 'glibtoolize':
+if which -s glibtoolize; then
+echo "using glibtoolize"
+ export LIBTOOLIZE=glibtoolize
+else
+echo "using libtoolize"
+ export LIBTOOLIZE=libtoolize
+fi
+
aclocal -I . -I cmulocal -I config && \
autoheader && \
- libtoolize --automake -c && \
+ $LIBTOOLIZE --automake --force -c && \
autoconf && \
automake --add-missing --copy
cd saslauthd
-autoreconf -ivf
+autoreconf -I . -I ../cmulocal -I ../config -ivf
aclocal -I . -I ../cmulocal -I ../config && \
autoheader && \
- libtoolize --automake -c && \
+ $LIBTOOLIZE --automake --force -c && \
autoconf && \
- automake --add-missing --copy
+ automake --add-missing --copy
--
1.7.5.4
|