-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfigure.ac
60 lines (41 loc) · 1.24 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
AC_PREREQ(2.60)
AC_INIT(knot-cloud-sdk-c, 0.01)
AM_INIT_AUTOMAKE([silent-rules subdir-objects foreign])
AC_CONFIG_HEADERS([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
AC_PREFIX_DEFAULT(/usr/local)
PKG_PROG_PKG_CONFIG
COMPILER_WARNING_CFLAGS
COMPILER_BUILD_CFLAGS
AC_LANG_C
AC_PROG_CC
AC_PROG_CC_PIE
m4_define([_LT_AC_TAGCONFIG], [])
m4_ifdef([AC_LIBTOOL_TAGS], [AC_LIBTOOL_TAGS([])])
AM_PROG_AR
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_CONFIG_FILES([Makefile src/Makefile src/knotcloudsdkc.pc])
AC_SUBST([ARFLAGS], ["cr"])
PKG_CHECK_MODULES(ELL, ell,
[AC_DEFINE([HAVE_ELL],[1],[Use ELL])],
[AC_MSG_ERROR("ell missing")])
AC_SUBST(ELL_CFLAGS)
AC_SUBST(ELL_LIBS)
PKG_CHECK_MODULES(JSON, json-c,
[AC_DEFINE([HAVE_JSON],[1],[Use JSON])],
[AC_MSG_ERROR("json-c missing")])
AC_SUBST(JSON_CFLAGS)
AC_SUBST(JSON_LIBS)
PKG_CHECK_MODULES(RABBITMQ, [librabbitmq >= 0.10.0],
[AC_DEFINE([HAVE_RABBITMQ],[1],[Use RABBITMQ])],
[AC_MSG_ERROR("librabbitmq v0.10.0 missing")])
AC_SUBST(RABBITMQ_CFLAGS)
AC_SUBST(RABBITMQ_LIBS)
PKG_CHECK_MODULES(KNOTPROTO, knotprotocol,
[AC_DEFINE([HAVE_KNOTPROTO],[1],[Use KNOTPROTO])],
[AC_MSG_ERROR("knotprotocol missing")])
AC_SUBST(KNOTPROTO_CFLAGS)
AC_SUBST(KNOTPROTO_LIBS)
AC_OUTPUT