-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathconfigure.ac
75 lines (62 loc) · 1.48 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
# ConMan configure.ac
AC_PREREQ([2.61])
AC_INIT([ConMan], m4_esyscmd([build-aux/gen-version]))
AC_SUBST([DATE], m4_esyscmd([build-aux/gen-date]))
AC_SUBST([CONMAN_CONF], ["\${sysconfdir}/conman.conf"])
AC_SUBST([CONMAN_HOST], ["127.0.0.1"])
AC_SUBST([CONMAN_PORT], ["7890"])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_LIBOBJ_DIR([portable])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/server.c])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
X_AC_RUNSTATEDIR
X_AC_WITH_SYSTEMDUNITDIR
X_AC_WITH_SYSVINITDDIR
X_AC_WITH_SYSCONFIGDIR
AM_INIT_AUTOMAKE([1.12 dist-xz foreign no-dist-gzip subdir-objects])
AM_MAINTAINER_MODE
AM_SILENT_RULES([yes])
# checks for programs
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MKDIR_P
AC_PROG_SED
X_AC_ENABLE_DEBUG
# checks for libraries
AC_CHECK_LIB([socket], [socket])
AS_IF([test "x${ac_cv_lib_socket_socket}" = xyes],
[AC_SEARCH_LIBS([inet_addr], [nsl])])
X_AC_CHECK_PTHREADS
X_AC_WITH_FREEIPMI
X_AC_WITH_TCP_WRAPPERS
# checks for header files
AC_CHECK_HEADERS([ \
paths.h \
sys/inotify.h \
])
X_AC_CHECK_STDBOOL
# checks for types
AC_CHECK_TYPES([socklen_t], [], [],
[[#include <sys/types.h>
#include <sys/socket.h>]])
# checks for structures
# checks for compiler characteristics
# checks for library functions
AC_CHECK_FUNCS([ \
inet_aton \
inet_ntop \
inet_pton \
localtime_r \
strcasecmp \
strncasecmp \
toint \
])
AC_REPLACE_FUNCS([ \
strlcat \
strlcpy \
])
# checks for system services
AC_CONFIG_FILES([Makefile])
AC_OUTPUT