diff options
author | Max Kellermann <max@duempel.org> | 2014-11-21 14:51:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-11-21 14:56:13 +0100 |
commit | 62288907dd014d87d9b156933873363d97d8199b (patch) | |
tree | e9207eaa36697d9db5b1a5bb3187f3d58075a7f1 | |
parent | cdbdcec71508bb9b8f61e607b2072e6b09ec4b6e (diff) | |
download | mpd-62288907dd014d87d9b156933873363d97d8199b.tar.gz mpd-62288907dd014d87d9b156933873363d97d8199b.tar.xz mpd-62288907dd014d87d9b156933873363d97d8199b.zip |
configure.ac: allow disabling syslog() support
-rw-r--r-- | configure.ac | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 99a1f1ec0..f1986c40f 100644 --- a/configure.ac +++ b/configure.ac @@ -195,8 +195,19 @@ dnl --------------------------------------------------------------------------- AC_SEARCH_LIBS([clock_gettime], [rt]) -AC_SEARCH_LIBS([syslog], [bsd socket inet], - [AC_DEFINE(HAVE_SYSLOG, 1, [Define if syslog() is available])]) +AC_ARG_ENABLE(syslog, + AS_HELP_STRING([--enable-syslog], + [enable syslog support (default: auto)]),, + enable_syslog=auto) +if test x$enable_syslog != xno; then + AC_SEARCH_LIBS([syslog], [bsd socket inet], + [found_syslog=yes], + [found_syslog=no]) +fi +MPD_AUTO_RESULT([syslog], [syslog support], [syslog() not available]) +if test x$enable_syslog = xyes; then + AC_DEFINE(HAVE_SYSLOG, 1, [Define if syslog() is available]) +fi AC_SEARCH_LIBS([socket], [socket]) AC_SEARCH_LIBS([gethostbyname], [nsl]) |