-
Notifications
You must be signed in to change notification settings - Fork 46
/
configure.ac
132 lines (120 loc) · 2.29 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# MUNGE configure.ac
#
# This file is part of the MUNGE Uid 'N' Gid Emporium (MUNGE).
# For details, see <https://github.com/dun/munge>.
##
# Prologue.
##
AC_PREREQ([2.61])
AC_INIT([MUNGE], m4_esyscmd([build-aux/gen-version]))
AC_SUBST([DATE], m4_esyscmd([build-aux/gen-date]))
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/libmunge/munge.h])
AC_REQUIRE_AUX_FILE([tap-driver.sh])
X_AC_WITH_MUNGE_SOCKET
X_AC_WITH_RUNSTATEDIR
X_AC_WITH_SYSTEMDUNITDIR
X_AC_WITH_SYSVINITDDIR
X_AC_WITH_SYSCONFIGDIR
X_AC_WITH_LOGROTATEDDIR
X_AC_WITH_PKGCONFIGDIR
X_AC_HUMOR
AM_INIT_AUTOMAKE([1.12 foreign dist-xz no-dist-gzip])
AM_MAINTAINER_MODE
AM_SILENT_RULES([yes])
AC_USE_SYSTEM_EXTENSIONS
LT_INIT
##
# Checks for programs.
##
X_AC_ARCH
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_SED
AM_PROG_CC_C_O
X_AC_DEBUG
##
# Checks for libraries.
##
X_AC_CHECK_PTHREADS
X_AC_CHECK_COND_LIB(bz2, BZ2_bzBuffToBuffCompress)
X_AC_CHECK_COND_LIB(rt, clock_gettime)
X_AC_CHECK_COND_LIB(z, compress)
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_SEARCH_LIBS(socket, socket)
m4_ifdef([AM_PATH_LIBGCRYPT], [AM_PATH_LIBGCRYPT])
X_AC_PATH_OPENSSL
X_AC_SELECT_CRYPTO_LIB
if test "${CRYPTO_PKG}" = "openssl"; then
X_AC_CHECK_OPENSSL
fi
##
# Checks for header files.
##
AC_CHECK_HEADERS( \
bzlib.h \
ifaddrs.h \
standards.h \
sys/random.h \
zlib.h \
)
##
# Checks for typedefs, structures, and compiler characteristics.
##
AC_C_CONST
AC_TYPE_UID_T
AC_CHECK_TYPES(socklen_t, [], [], [#include <sys/types.h>
#include <sys/socket.h>])
##
# Checks for library functions.
##
AC_CHECK_FUNCS( \
clock_nanosleep \
getentropy \
getifaddrs \
getrandom \
localtime_r \
mlockall \
sysconf \
)
AC_REPLACE_FUNCS( \
inet_ntop \
strlcat \
strlcpy \
)
X_AC_GETGRENT
X_AC_GETGRNAM
X_AC_GETPWNAM
##
# Checks for platform-specific issues.
##
X_AC_AIX
X_AC_DARWIN
##
# Checks for client authentication method.
##
X_AC_SELECT_AUTH_METHOD
##
# Epilogue.
##
AC_CONFIG_FILES( \
Makefile \
src/Makefile \
src/common/Makefile \
src/etc/Makefile \
src/libcommon/Makefile \
src/libmissing/Makefile \
src/libmunge/Makefile \
src/libtap/Makefile \
src/munge/Makefile \
src/munged/Makefile \
src/mungekey/Makefile \
tests/Makefile \
)
AC_OUTPUT