-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.in
61 lines (52 loc) · 2.02 KB
/
configure.in
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
AC_PREREQ(2.59)
AC_INIT([gssvpn],[0.5],[[email protected]])
AM_INIT_AUTOMAKE([foreign 1.9])
AC_CONFIG_HEADERS([config.h])
AC_DEFINE([EV_CONFIG_H], [../config.h], [Make libev use global config.h])
AC_PROG_RANLIB
AC_CHECK_HEADERS([fcntl.h netdb.h netinit/in.h pwd.h sys/ioctl.h sys/socket.h syslog.h net/ethernet.h arpa/inet.h])
AC_CHECK_HEADER([net/if.h], [], [], [#include <sys/socket.h>])
AC_CHECK_HEADER([gssapi/gssapi.h], [],
[AC_MSG_ERROR([Requires GSSAPI header])])
AC_CHECK_HEADER([linux/if_tun.h],
AC_DEFINE([HAVE_IF_TUN], [1], [Uses Linux TUN/TAP Driver]), [], [])
AC_CHECK_HEADER([linux/sockios.h],
AC_DEFINE([HAVE_LINUX_SOCKIOS_H], [], [Uses Linux ioctl]), [], [])
AC_CHECK_HEADER([ifaddrs.h],
AC_DEFINE([HAVE_IFADDRS_H], [1], [Has OSX ifaddr]), [], [])
AC_CHECK_HEADER([linux/if_packet.h],
AC_DEFINE([HAVE_IF_PACKET_H], [1], [Has Linux if_packet header]), [], [])
AC_CHECK_HEADER([net/if_dl.h],
AC_DEFINE([HAVE_IF_DL_H], [1], [Has if_dl header]), [], [])
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -FKerberos"
AC_CHECK_HEADER([Kerberos/gssapi.h],
AC_DEFINE([HAVE_KERBEROSLOGIN_H], [1], [Has OSX Kerberos]) \
LIBS="$LIBS -framework Kerberos",
CPPFLAGS="$CPPFLAGS_save"
AC_SEARCH_LIBS([gss_accept_sec_context], [gssapi gssapi_krb5]))
AC_SEARCH_LIBS([gethostbyname], [resolve nsl])
AC_SEARCH_LIBS([socket], [socket])
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_C_CONST
AC_CHECK_FUNCS([gss_accept_sec_context gss_init_sec_context \
gss_wrap gss_unwrap gss_delete_sec_context gss_release_buffer \
gss_acquire_cred], [], [AC_MSG_ERROR([Missing GSSAPI functions])])
AC_CHECK_FUNCS([ioctl setsockopt bind recvfrom sendto socket])
AC_CHECK_FUNCS(memcmp memcpy memmove memset)
m4_include([libev/libev.m4])
AC_CHECK_TYPE(ptrdiff_t,long)
AC_TYPE_SIZE_T
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(__int64)
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(size_t)
AC_CHECK_SIZEOF(ptrdiff_t)
AC_SEARCH_LIBS([gss_accept_sec_context], [gssapi gssapi_krb5])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT