Lets builders set a specific path for mailboxes when the defaults
don't match the system setup

Signed-off-by: Alan Coopersmith <[email protected]>
---
 configure.ac |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

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])
-- 
1.7.3.2

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to