pkgsrc/mail/cyrus-imapd/patches/patch-ae
jlam 85909b5fa2 Ensure that everything that is linked against libsasl is also linked
against its dependent libraries by using the output of "sasl-config --libs"
if sasl-config is present.
2002-10-21 06:12:53 +00:00

30 lines
589 B
Text

$NetBSD: patch-ae,v 1.4 2002/10/21 06:12:54 jlam Exp $
--- cmulocal/sasl.m4.orig Fri Jul 7 13:46:12 2000
+++ cmulocal/sasl.m4
@@ -54,6 +54,9 @@ AC_ARG_WITH(sasl,
SASLFLAGS=""
LIB_SASL=""
+ AC_PATH_PROG(SASL_CONFIG, sasl-config, no)
+
+ if test "$SASL_CONFIG" = no; then
cmu_saved_CPPFLAGS=$CPPFLAGS
cmu_saved_LDFLAGS=$LDFLAGS
@@ -82,6 +85,15 @@ AC_ARG_WITH(sasl,
LIB_SASL=""
SASLFLAGS=""
fi
+
+ else # SASL_CONFIG
+
+ ac_cv_found_sasl=yes
+ SASLFLAGS=`$SASL_CONFIG --cflags`
+ LIB_SASL=`$SASL_CONFIG --libs`
+
+ fi
+
AC_SUBST(LIB_SASL)
AC_SUBST(SASLFLAGS)
])