forked from threerings/openvpn-auth-ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
93 lines (74 loc) · 1.51 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
AC_PREREQ(2.57)
AC_INIT(auth-ldap, [2.0], landonf@opendarwin.org)
AC_CONFIG_SRCDIR(${srcdir}/src/auth-ldap.m)
AC_CONFIG_HEADERS(config.h)
AC_CANONICAL_SYSTEM
# Compiler
AC_PROG_CC(clang gcc)
AC_PROG_CC_C99
AC_PROG_OBJC(clang gcc)
TR_WERROR
AC_CACHE_SAVE
# Programs
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(AR, ar, :)
AC_PATH_PROG([RE2C], [re2c], [no])
if test x"$RE2C" = x"no"; then
AC_MSG_ERROR([re2c was not found in your PATH. It can be downloaded from http://re2c.org])
fi
AC_PATH_PROG([DOXYGEN], [doxygen], [no])
if test x"$DOXYGEN" = x"no"; then
DOXYGEN="false"
fi
AC_PATH_PROG([DOT], [dot], [no])
if test x"$DOT" = x"no"; then
DOTDIR=""
else
DOTDIR=`AS_DIRNAME([$DOT])`
fi
AC_SUBST([DOTDIR])
AC_CACHE_SAVE
# Headers
AC_HEADER_STDC
AC_CACHE_SAVE
# Threads
ACX_PTHREAD
AC_CACHE_SAVE
# Platform
OD_CONFIG_PLUGIN
TR_PF_IOCTL
AC_DEFINE([_GNU_SOURCE], 1, [Required for vasprintf() on glibc systems])
AC_CACHE_SAVE
# Functions
AC_CHECK_FUNCS([strlcpy])
AC_CACHE_SAVE
# Libraries
OD_OPENLDAP
TR_OPENSSL
AC_CHECK_FRAMEWORK(Foundation, NSStringFromSelector, [
AC_DEFINE(HAVE_FRAMEWORK_FOUNDATION, 1, [Define if you have the Foundation framework.])
OBJC_LIBS="${OBJC_LIBS} -framework Foundation"
])
AC_CACHE_SAVE
# OpenVPN
OD_OPENVPN_HEADER
AC_CACHE_SAVE
# Objective-C Runtime
OD_OBJC_RUNTIME
AC_CACHE_SAVE
# Output
AC_CONFIG_FILES([
Makefile
docs/Makefile
docs/doxyfile
Mk/autoconf.mk
Mk/compile.mk
Mk/subdir.mk
src/Makefile
tests/Makefile
tools/Makefile
])
AC_OUTPUT