build: make logger and its man page optional
There are other packages that provide a logger program like util-linux We should respekt that Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
bin_PROGRAMS = logger
|
||||
bin_PROGRAMS =
|
||||
sbin_PROGRAMS = syslogd
|
||||
lib_LTLIBRARIES = libsyslog.la
|
||||
noinst_LTLIBRARIES = libcompat.la
|
||||
@@ -25,6 +25,10 @@ if ENABLE_KLOGD
|
||||
sbin_PROGRAMS += klogd
|
||||
endif
|
||||
|
||||
if ENABLE_LOGGER
|
||||
bin_PROGRAMS += logger
|
||||
endif
|
||||
|
||||
AM_CFLAGS = -W -Wall -Wextra
|
||||
AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter -fno-strict-aliasing
|
||||
AM_CPPFLAGS = -DSYSCONFDIR=\"@sysconfdir@\" -DLOCALSTATEDIR=\"@localstatedir@\"
|
||||
@@ -39,10 +43,12 @@ klogd_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
klogd_LDADD = $(LIBS) $(LIBOBJS)
|
||||
klogd_LDADD += libsyslog.la
|
||||
|
||||
if ENABLE_LOGGER
|
||||
logger_SOURCES = logger.c syslog.h
|
||||
logger_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600
|
||||
logger_LDADD = $(LIBS) $(LIBOBJS)
|
||||
logger_LDADD += libsyslog.la
|
||||
endif
|
||||
|
||||
# Convenience library for libsyslog instead of linking with $(LTLIBOBJS),
|
||||
# which would pull in pidfile() and other (strong) symbols as well.
|
||||
|
Reference in New Issue
Block a user