forked from skinsbursky/spfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
72 lines (56 loc) · 1.39 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
AC_INIT([spfs], [0.09.009], [[email protected]])
m4_ifdef([AM_SILENT_RULES],
[AM_SILENT_RULES([yes])],
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
AM_INIT_AUTOMAKE([subdir-objects])
AM_PROG_CC_C_O
AC_GNU_SOURCE
AC_CONFIG_HEADERS([spfs_config.h])
AC_CONFIG_FILES([
Makefile
])
AC_CHECK_FUNCS([fork setxattr fdatasync utimensat])
AC_CHECK_FUNCS([posix_fallocate fstatat openat readlinkat])
AC_CHECK_HEADER(
[sys/capability.h],
[],
[AC_MSG_ERROR([*** install libcap-dev(el)])],
[])
AC_CHECK_HEADER(
[libnl3/netlink/msg.h],
[],
[AC_MSG_ERROR([*** install libnl3-devel (libnl-3-dev)])],
[])
AC_CHECK_LIB(
[fuse],
[fuse_mount],
[],
[AC_MSG_ERROR([*** libfuse not found.])
])
AC_CHECK_LIB(
[pthread],
[pthread_create],
[],
[AC_MSG_ERROR([*** libpthread not found.])
])
AC_CHECK_LIB(
[ulockmgr],
[ulockmgr_op],
[],
[AC_MSG_ERROR([*** libulockmgr not found.])
])
AC_CHECK_LIB(
[nl-3],
[nla_attr_size],
[],
[AC_MSG_ERROR([*** libnl-3 not found.])
])
FUSE_USE_VERSION=26
AC_DEFINE_UNQUOTED(FUSE_USE_VERSION, $FUSE_USE_VERSION, [spfs])
FS_NAME=spfs
AC_DEFINE_UNQUOTED(FS_NAME, "$FS_NAME", [spfs])
CLIENT_NAME=spfs-client
AC_DEFINE_UNQUOTED(CLIENT_NAME, "$CLIENT_NAME", [spfs])
MANAGER_NAME=spfs-manager
AC_DEFINE_UNQUOTED(MANAGER_NAME, "$MANAGER_NAME", [spfs])
AC_OUTPUT