diff dovecot.m4 @ 10755:912c132337ed HEAD

dovecot.m4: Default dovecotdir to $prefix/lib/dovecot/
author Timo Sirainen <tss@iki.fi>
date Thu, 18 Feb 2010 09:48:56 +0200
parents 80a11f8650a4
children ae23a1a94376
line wrap: on
line diff
--- a/dovecot.m4	Thu Feb 18 09:48:35 2010 +0200
+++ b/dovecot.m4	Thu Feb 18 09:48:56 2010 +0200
@@ -28,7 +28,11 @@
 AC_DEFUN([DC_DOVECOT],[
 	AC_ARG_WITH(dovecot,
 		AS_HELP_STRING([--with-dovecot=DIR],[Dovecot base directory [LIBDIR/dovecot]]),
-			[ dovecotdir="$withval" ], [ dovecotdir="${libdir}"/dovecot ]
+			[ dovecotdir="$withval" ], [
+			  dc_prefix=$prefix
+			  test "x$dc_prefix" = xNONE && dc_prefix=$ac_default_prefix
+			  dovecotdir="$dc_prefix/lib/dovecot"
+			]
 	)
 
 	AC_MSG_CHECKING([for dovecot-config in "$dovecotdir"])