build-sys: omit mustach compilation when it cannot work

For example mac does not have open_memstream(3), and strndupa(3) can also be
missing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-11-11 16:13:14 +00:00
parent b96f8cd8ad
commit 39b2811aa7
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
6 changed files with 31 additions and 4 deletions

View file

@ -13,9 +13,13 @@ dhcpd_pools_SOURCES = \
src/dhcpd-pools.h \
src/getdata.c \
src/hash.c \
src/mustach-dhcpd-pools.c \
src/mustach.c \
src/mustach.h \
src/other.c \
src/output.c \
src/sort.c
if ENABLE_MUSTACH
dhcpd_pools_SOURCES += \
src/mustach-dhcpd-pools.c \
src/mustach.c \
src/mustach.h
endif