forked from virtuozzo/nsb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
84 lines (68 loc) · 1.59 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
AC_INIT([nsb], [0.0.13], [[email protected]])
m4_ifdef([AM_SILENT_RULES],
[AM_SILENT_RULES([yes])],
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AM_PROG_CC_C_O
AC_PATH_PROG([M4], [m4])
AC_CONFIG_MACRO_DIR([m4])
AC_GNU_SOURCE
LT_INIT
AC_CONFIG_HEADERS([nsb_config.h])
AC_CONFIG_FILES([
Makefile
protobuf/Makefile
])
AM_PATH_PYTHON([2.7])
AC_SUBST(generatordir, ${pythondir}/nsb)
AC_CHECK_PROG(PROTOC_CHECK, protoc, yes)
if test x"$PROTOC_CHECK" != x"yes" ; then
AC_MSG_ERROR([protobuf-compiler is required.])
fi
AC_CHECK_PROG(PROTOC_C_CHECK, protoc-c, yes)
if test x"$PROTOC_C_CHECK" != x"yes" ; then
AC_MSG_ERROR([protobuf-c-compiler is required.])
fi
AC_CHECK_LIB(
[protobuf-c],
[protobuf_c_message_get_packed_size],
[],
[AC_MSG_ERROR([*** libprotobuf-c not found.])
])
AC_CHECK_LIB(
[compel],
[compel_prepare],
[],
[AC_MSG_ERROR([*** libcompel not found.])
])
AC_CHECK_LIB(
[unwind],
[_ULx86_64_create_addr_space],
[],
[AC_MSG_ERROR([*** libunwind not found.])
])
AC_CHECK_LIB(
[unwind-x86_64],
[_Ux86_64_get_reg],
[],
[AC_MSG_ERROR([*** libunwind-x86_64 not found.])
])
AC_CHECK_LIB(
[unwind-ptrace],
[_UPT_accessors],
[],
[AC_MSG_ERROR([*** libunwind-x86_64 not found.])
])
AC_CHECK_LIB(
[elf],
[elf_version],
[],
[AC_MSG_ERROR([*** libelf not found.])
])
AC_PYTHON_MODULE(elftools.elf.elffile)
AC_PYTHON_MODULE(google.protobuf)
AC_SUBST([NSB_GENERATOR], ${ac_pwd}/generator/nsbgen.py)
AC_SUBST([NSB_PATCHER], ${ac_pwd}/nsb)
AC_SUBST([NSB_TESTS], ${ac_pwd}/tests)
AC_SUBST([NSB_LIBS], ${LIBS})
AC_OUTPUT