-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
37 lines (27 loc) · 1.2 KB
/
configure.ac
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
34
35
36
37
AC_INIT([pcma], [0.2.0])
AC_CONFIG_HEADERS([config.h])
AC_PROG_SED
AC_HEADER_STDC
AC_CHECK_PROGS(A2X, a2x, "no")
AC_CHECK_PROGS(XMLLINT, xmllint, "no")
AC_CHECK_PROGS(XSLTPROC, xsltproc, "no")
if test "x$A2X" = xno; then AC_MSG_ERROR([a2x is required]); fi
if test "x$XMLLINT" = xno; then AC_MSG_ERROR([xmllint is required]); fi
if test "x$XSLPROC" = xno; then AC_MSG_ERROR([xsltproc is required]); fi
AC_CHECK_PROGS(ASCIIDOC, asciidoc)
AC_CHECK_PROGS(XMLLINT, xmllint)
AC_CHECK_PROGS(XSLTPROC, xsltproc)
AC_CHECK_LIB([msgpack],[msgpack_version],[])
PKG_PROG_PKG_CONFIG
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.16])
PKG_CHECK_MODULES([ZMQ], [libzmq >= 2.1])
AM_PROG_CC_C_O
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 ])
AM_INIT_AUTOMAKE([1.10 -Wall no-define])
AC_OUTPUT(Makefile src/Makefile man/Makefile init/Makefile)