Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog...
authorDan Sledz <dsledz@isilon.com>
Mon, 17 Nov 2008 01:40:03 +0000 (17:40 -0800)
committerTim Prouty <tprouty@samba.org>
Mon, 24 Nov 2008 23:34:33 +0000 (15:34 -0800)
source3/configure.in

index 9214d031b3d496c693245f3b41b52ab478542739..90339d770c388df044a42922f3ef3e1f262268ed 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