forked from pcarrier/pcma
-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in
33 lines (24 loc) · 926 Bytes
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
AC_INIT([pcma], [0.0.1])
AM_INIT_AUTOMAKE
AC_PROG_SED
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG
AC_CHECK_PROG(A2X, a2x, a2x, false)
if test "z$A2X" = 'zfalse'; then
AC_MSG_ERROR([Build requires a2x])
fi
dnl Needed by a2x
AC_CHECK_PROGS(ASCIIDOC, asciidoc)
AC_CHECK_PROGS(XMLLINT, xmllint)
AC_CHECK_PROGS(XSLTPROC, xsltproc)
AC_HEADER_STDC
PKG_CHECK_MODULES([ZMQ], [libzmq >= 2.1])
AC_CHECK_LIB(msgpack,msgpack_version)
AC_ARG_WITH([systemdsystemunitdir],
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
if test "x$with_systemdsystemunitdir" != xno; then
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
fi
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
AC_OUTPUT(Makefile src/Makefile man/Makefile init/Makefile)