… | |
… | |
65 | |
65 | |
66 | AC_ARG_ENABLE(iftype, |
66 | AC_ARG_ENABLE(iftype, |
67 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
67 | [AC_HELP_STRING(--enable-iftype[=TYPE/SUBTYPE], [ |
68 | Use kernel/net device interface TYPE/SUBTYPE. |
68 | Use kernel/net device interface TYPE/SUBTYPE. |
69 | Working combinations are: |
69 | Working combinations are: |
70 | "native/linux" "tincd/linux" "tincd/freebsd"; |
70 | "native/linux" |
|
|
71 | "tincd/linux" |
|
|
72 | "tincd/freebsd" |
|
|
73 | "tincd/openbsd" |
|
|
74 | "tincd/darwin" |
|
|
75 | "native/cygwin"; |
71 | Untested combinations are: |
76 | Untested combinations are: |
72 | "tincd/netbsd" "tincd/darwin" "tincd/solaris" |
77 | "tincd/netbsd" |
73 | "tincd/openbsd" "tincd/cygwin"; |
78 | "tincd/solaris" |
|
|
79 | "tincd/mingw"; |
74 | Broken combinations are: |
80 | Broken combinations are: |
75 | "native/cygwin"; |
81 | "tincd/cygwin"; |
76 | The default is to autodetect. |
82 | The default is to autodetect. |
77 | ])], |
83 | ])], |
78 | [ |
84 | [ |
79 | IFTYPE=`echo $enableval | sed s%/.*%%` |
85 | IFTYPE=`echo $enableval | sed s%/.*%%` |
80 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
86 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
… | |
… | |
115 | IFTYPE=tincd |
121 | IFTYPE=tincd |
116 | IFSUBTYPE=netbsd |
122 | IFSUBTYPE=netbsd |
117 | AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) |
123 | AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) |
118 | ;; |
124 | ;; |
119 | *cygwin*) |
125 | *cygwin*) |
120 | IFTYPE=tincd |
126 | IFTYPE=native |
121 | IFSUBTYPE=cygwin |
127 | IFSUBTYPE=cygwin |
122 | AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) |
128 | AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) |
123 | ;; |
129 | ;; |
124 | *) |
130 | *) |
125 | AC_MSG_ERROR("Unknown operating system.") |
131 | AC_MSG_ERROR("Unknown operating system.") |
… | |
… | |
137 | AC_LANG(C++) |
143 | AC_LANG(C++) |
138 | AC_CHECK_HEADERS(ext/hash_map) |
144 | AC_CHECK_HEADERS(ext/hash_map) |
139 | |
145 | |
140 | dnl Checks for header files. |
146 | dnl Checks for header files. |
141 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
147 | AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ |
142 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h cygwin.h arpa/inet.h \ |
148 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h sys/cygwin.h arpa/inet.h \ |
143 | sys/poll.h sys/mman.h netinet/in.h]) |
149 | sys/poll.h sys/mman.h netinet/in.h]) |
144 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
150 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
145 | [ |
151 | [ |
146 | #include <sys/types.h> |
152 | #include <sys/types.h> |
147 | #include <sys/socket.h> |
153 | #include <sys/socket.h> |
… | |
… | |
217 | |
223 | |
218 | AC_CACHE_SAVE |
224 | AC_CACHE_SAVE |
219 | |
225 | |
220 | dnl These are defined in files in m4/ |
226 | dnl These are defined in files in m4/ |
221 | tinc_TUNTAP |
227 | tinc_TUNTAP |
|
|
228 | |
222 | tinc_OPENSSL |
229 | tinc_OPENSSL |
|
|
230 | if test "x$openssl_include" != x; then |
|
|
231 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
|
|
232 | fi |
223 | dnl tinc_ZLIB |
233 | dnl tinc_ZLIB |
224 | |
234 | |
225 | AC_ARG_ENABLE(rohc, |
235 | AC_ARG_ENABLE(rohc, |
226 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
236 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
227 | [ |
237 | [ |
… | |
… | |
255 | AC_ARG_ENABLE(http-proxy, |
265 | AC_ARG_ENABLE(http-proxy, |
256 | [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], |
266 | [AC_HELP_STRING(--enable-http-proxy, [enable http proxy connect support (default disabled).])], |
257 | AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) |
267 | AC_DEFINE_UNQUOTED(ENABLE_HTTP_PROXY, 1, [http proxy connect support.]) |
258 | ) |
268 | ) |
259 | |
269 | |
260 | HMAC=12 dnl see also the AC_HELP_STRING |
270 | HMAC=8 dnl see also the AC_HELP_STRING |
261 | AC_ARG_ENABLE(hmac-length, |
271 | AC_ARG_ENABLE(hmac-length, |
262 | [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], |
272 | [AC_HELP_STRING(--enable-hmac-length=BYTES, [use a hmac of length BYTES bytes (default 12). Allowed values are 4, 8, 12, 16.])], |
263 | HMAC=$enableval |
273 | HMAC=$enableval |
264 | ) |
274 | ) |
265 | AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) |
275 | AC_DEFINE_UNQUOTED(HMACLENGTH, $HMAC, [Size of HMAC in each packet in bytes.]) |