diff -uNr cyrus-sasl-2.1.20-orig/Makefile.am cyrus-sasl-2.1.20/Makefile.am
--- cyrus-sasl-2.1.20-orig/Makefile.am	2004-10-20 09:48:11.000000000 +1000
+++ cyrus-sasl-2.1.20/Makefile.am	2004-10-25 21:37:53.780833136 +1000
@@ -78,14 +78,14 @@
 
 framedir = /Library/Frameworks/SASL2.framework
 install-exec-local: $(INSTALLOSX)
-	@if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \
+	@if test "$(plugindir)" != "$(libdir)/sasl2"; then \
 	  echo "********************************************************"; \
 	  echo "* WARNING:"; \
-	  echo "* Plugins are being installed into $(prefix)/lib/sasl2,"; \
+	  echo "* Plugins are being installed into $(libdir)/sasl2,"; \
 	  echo "* but the library will look for them in $(plugindir)."; \
 	  echo "* You need to make sure that the plugins will eventually"; \
 	  echo "* be in $(plugindir) -- the easiest way is to make a"; \
-	  echo "* symbolic link from $(plugindir) to $(prefix)/lib/sasl2,"; \
+	  echo "* symbolic link from $(plugindir) to $(libdir)/sasl2,"; \
 	  echo "* but this may not be appropriate for your site, so this"; \
 	  echo "* installation procedure won't do it for you."; \
 	  echo "*"; \
diff -uNr cyrus-sasl-2.1.20-orig/Makefile.in cyrus-sasl-2.1.20/Makefile.in
--- cyrus-sasl-2.1.20-orig/Makefile.in	2004-10-25 06:21:09.000000000 +1000
+++ cyrus-sasl-2.1.20/Makefile.in	2004-10-25 21:37:53.780833136 +1000
@@ -656,14 +656,14 @@
 	@find $(distdir) -exec chmod o+w {} ';'
 	@find $(distdir) -name CVS -print | xargs -t rm -rf
 install-exec-local: $(INSTALLOSX)
-	@if test "$(plugindir)" != "$(prefix)/lib/sasl2"; then \
+	@if test "$(plugindir)" != "$(libdir)/sasl2"; then \
 	  echo "********************************************************"; \
 	  echo "* WARNING:"; \
-	  echo "* Plugins are being installed into $(prefix)/lib/sasl2,"; \
+	  echo "* Plugins are being installed into $(libdir)/sasl2,"; \
 	  echo "* but the library will look for them in $(plugindir)."; \
 	  echo "* You need to make sure that the plugins will eventually"; \
 	  echo "* be in $(plugindir) -- the easiest way is to make a"; \
-	  echo "* symbolic link from $(plugindir) to $(prefix)/lib/sasl2,"; \
+	  echo "* symbolic link from $(plugindir) to $(libdir)/sasl2,"; \
 	  echo "* but this may not be appropriate for your site, so this"; \
 	  echo "* installation procedure won't do it for you."; \
 	  echo "*"; \
diff -uNr cyrus-sasl-2.1.20-orig/configure cyrus-sasl-2.1.20/configure
--- cyrus-sasl-2.1.20-orig/configure	2004-10-25 06:21:08.000000000 +1000
+++ cyrus-sasl-2.1.20/configure	2004-10-25 21:38:31.938032360 +1000
@@ -904,7 +904,7 @@
   --with-pgsql=PATH       use PostgreSQL from PATH
   --with-sqlite=PATH       use SQLite from PATH
   --with-plugindir=DIR    set the directory where plugins will
-                          be found [/usr/lib/sasl2]
+                          be found [LIBDIR/sasl2]
   --with-rc4              use internal rc4 routines [yes]
   --with-dmalloc=DIR      with DMALLOC support (for test applications) [no]
   --with-sfio=DIR         with SFIO support (for smtptest/libsfsasl) [no]
@@ -11437,7 +11437,7 @@
   withval="$with_plugindir"
   plugindir=$withval
 else
-  plugindir=/usr/lib/sasl2
+  plugindir=${libdir}/sasl2
 fi;
 
 cat >>confdefs.h <<_ACEOF
diff -uNr cyrus-sasl-2.1.20-orig/configure.in cyrus-sasl-2.1.20/configure.in
--- cyrus-sasl-2.1.20-orig/configure.in	2004-10-25 06:05:13.000000000 +1000
+++ cyrus-sasl-2.1.20/configure.in	2004-10-25 21:37:53.786832224 +1000
@@ -787,9 +787,9 @@
 AC_SUBST(SASL_STATIC_LIBS)
 
 AC_ARG_WITH(plugindir, [  --with-plugindir=DIR    set the directory where plugins will
-                          be found [[/usr/lib/sasl2]] ],
+                          be found [[LIBDIR/sasl2]] ],
   plugindir=$withval,
-  plugindir=/usr/lib/sasl2)
+  plugindir=${libdir}/sasl2)
 AC_DEFINE_UNQUOTED(PLUGINDIR, "$plugindir", [Runtime plugin location])
 AC_SUBST(plugindir)
 
diff -uNr cyrus-sasl-2.1.20-orig/plugins/Makefile.am cyrus-sasl-2.1.20/plugins/Makefile.am
--- cyrus-sasl-2.1.20-orig/plugins/Makefile.am	2004-10-25 06:05:20.000000000 +1000
+++ cyrus-sasl-2.1.20/plugins/Makefile.am	2004-10-25 21:37:53.786832224 +1000
@@ -73,7 +73,7 @@
 
 common_sources = plugin_common.c plugin_common.h
 
-sasldir = $(prefix)/lib/sasl2
+sasldir = $(libdir)/sasl2
 sasl_LTLIBRARIES = @SASL_MECHS@
 EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \
 	libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \
diff -uNr cyrus-sasl-2.1.20-orig/plugins/Makefile.in cyrus-sasl-2.1.20/plugins/Makefile.in
--- cyrus-sasl-2.1.20-orig/plugins/Makefile.in	2004-10-25 06:21:09.000000000 +1000
+++ cyrus-sasl-2.1.20/plugins/Makefile.in	2004-10-25 21:37:53.787832072 +1000
@@ -255,7 +255,7 @@
 
 common_sources = plugin_common.c plugin_common.h
 
-sasldir = $(prefix)/lib/sasl2
+sasldir = $(libdir)/sasl2
 sasl_LTLIBRARIES = @SASL_MECHS@
 EXTRA_LTLIBRARIES = libplain.la libanonymous.la libkerberos4.la libcrammd5.la \
 	libgssapiv2.la libdigestmd5.la liblogin.la libsrp.la libotp.la \
