-AC_MSG_CHECKING([whether to use logfile])
-AC_ARG_WITH(logfile,
- [ --with-logfile=PATH path for file used by logger],[
- if test x"$withval" = x"no"; then
- AC_DEFINE(DISABLE_LOGGER, 1, [Define if the logger should not be used])
- AC_MSG_RESULT([no, syslog])
- elif test "$withval" != "yes"; then
- AC_DEFINE_UNQUOTED(LOGFILEPATH, "$withval", [Path to the log file])
- AC_MSG_RESULT([$withval])
- else
- AC_DEFINE_UNQUOTED(LOGFILEPATH, "/var/log/netatalk.log", [Path to the log file])
- AC_MSG_RESULT([/var/log/netatalk.log])
- fi],[
- AC_DEFINE(DISABLE_LOGGER, 1, [Define if the logger should not be used])
- AC_MSG_RESULT([no, syslog])
- ]
-)
-
-