From 9bf1cbbd49fbb11707e3bc30429e1fbedd5abec8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 7 Jan 2011 17:13:49 -0800 Subject: Add --with-mailbox-directory=PATH option to configure Lets builders set a specific path for mailboxes when the defaults don't match the system setup Signed-off-by: Alan Coopersmith Reviewed-by: Dan Nicholson --- configure.ac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configure.ac b/configure.ac index 05937be..609d6e7 100644 --- a/configure.ac +++ b/configure.ac @@ -44,4 +44,19 @@ PKG_CHECK_MODULES(XBIFF, xaw7 xmu xbitmaps xext x11) # Checks for headers AC_CHECK_HEADERS([paths.h]) +# Allow builder to set path to look for mailboxes +AC_MSG_CHECKING([for mailbox directory]) +AC_ARG_WITH([mailbox-directory], + [AS_HELP_STRING([--with-mailbox-directory=PATH], + [specify directory to check for system mailboxes])], + [mailbox_directory=$with_mailbox_directory]) + +if test "x$mailbox_directory" != "x"; then + AC_DEFINE_UNQUOTED([MAILBOX_DIRECTORY], ["$mailbox_directory"], + [Directory containing user mailboxes]) + AC_MSG_RESULT([$mailbox_directory]) +else + AC_MSG_RESULT([not set]) +fi + AC_OUTPUT([Makefile]) -- cgit v1.2.3