[PATCH] Allow SYSLOG_FACILITY to be modified with a new configure option called ...
authorDan Sledz <dsledz@isilon.com>
Mon, 17 Nov 2008 01:40:03 +0000 (17:40 -0800)
committerTim Prouty <tprouty@samba.org>
Tue, 25 Nov 2008 01:36:38 +0000 (17:36 -0800)
source/configure.in

index 32d21b7907897a4ff6ac9d91f462451f0f12af38..33e30a4188fa741c40620f6570306a2fd1533c87 100644 (file)
@@ -4368,6 +4368,22 @@ AC_ARG_WITH(syslog,
   AC_MSG_RESULT(no)
 )
 
+#################################################
+# check for custom syslog facility
+AC_MSG_CHECKING(whether to use a custom syslog facility)
+AC_ARG_WITH(syslog-facility,
+[AS_HELP_STRING([--with-syslog-facility], [Use a custom syslog facility (default=none)])],
+[
+  if test "$withval" = "no" ; then
+    AC_MSG_ERROR([argument to --with-syslog-facility must be a string])
+  else
+     if test "$withval" != "yes" ; then
+        syslog_facility="$withval"
+       AC_DEFINE_UNQUOTED(SYSLOG_FACILITY,$syslog_facility, [syslog facility to log to])
+     fi
+  fi
+])
+
 #################################################
 # check for experimental disk-quotas support