aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix-current/scripts/configure.postfix
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-06-18 05:54:01 +0800
committerdwcjr <dwcjr@FreeBSD.org>2001-06-18 05:54:01 +0800
commit0a03f71aeef93a6be0845d72f4cddfe64266ca3b (patch)
tree656f1e5c399030d9595c4447996a63ce14391420 /mail/postfix-current/scripts/configure.postfix
parentd6324e31f89852eabf6974ebe8f0338095ac8de1 (diff)
downloadfreebsd-ports-gnome-0a03f71aeef93a6be0845d72f4cddfe64266ca3b.tar.gz
freebsd-ports-gnome-0a03f71aeef93a6be0845d72f4cddfe64266ca3b.tar.zst
freebsd-ports-gnome-0a03f71aeef93a6be0845d72f4cddfe64266ca3b.zip
Add better way to detect if sasl is compiled with mysql
compile with mysql if sasl isn't installed as its sasl's default Submitted by: Stefan Esser <se@freebsd.org>
Diffstat (limited to 'mail/postfix-current/scripts/configure.postfix')
-rw-r--r--mail/postfix-current/scripts/configure.postfix7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/postfix-current/scripts/configure.postfix b/mail/postfix-current/scripts/configure.postfix
index 91d132027325..7f31ece6d5f6 100644
--- a/mail/postfix-current/scripts/configure.postfix
+++ b/mail/postfix-current/scripts/configure.postfix
@@ -68,7 +68,12 @@ while [ "$1" ]; do
echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libsasl.a:\${PORTSDIR}/security/cyrus-sasl"
echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/libsasl.a -lpam -lcrypt"
- if [ `strings ${PREFIX}/lib/libsasl.a | grep mysql_verify_password` = "mysql_verify_password" ]; then
+ if [ -f ${PREFIX}/lib/libsasl.a ]; then
+ if nm ${PREFIX}/lib/libsasl.a | grep -wq "mysql_verify_password"; then
+ echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
+ echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
+ fi
+ else
echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
fi