… | |
… | |
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 | "native/cygwin"; |
71 | Untested combinations are: |
74 | Untested combinations are: |
72 | "tincd/netbsd" "tincd/darwin" "tincd/solaris" |
75 | "tincd/netbsd" |
|
|
76 | "tincd/darwin" |
|
|
77 | "tincd/solaris" |
73 | "tincd/openbsd" "tincd/cygwin"; |
78 | "tincd/openbsd"; |
74 | Broken combinations are: |
79 | Broken combinations are: |
75 | "native/cygwin"; |
80 | "tincd/cygwin"; |
76 | The default is to autodetect. |
81 | The default is to autodetect. |
77 | ])], |
82 | ])], |
78 | [ |
83 | [ |
79 | IFTYPE=`echo $enableval | sed s%/.*%%` |
84 | IFTYPE=`echo $enableval | sed s%/.*%%` |
80 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
85 | IFSUBTYPE=`echo $enableval | sed s%.*/%%` |
… | |
… | |
115 | IFTYPE=tincd |
120 | IFTYPE=tincd |
116 | IFSUBTYPE=netbsd |
121 | IFSUBTYPE=netbsd |
117 | AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) |
122 | AC_DEFINE(HAVE_NETBSD, 1, [NetBSD]) |
118 | ;; |
123 | ;; |
119 | *cygwin*) |
124 | *cygwin*) |
120 | IFTYPE=tincd |
125 | IFTYPE=native |
121 | IFSUBTYPE=cygwin |
126 | IFSUBTYPE=cygwin |
122 | AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) |
127 | AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin]) |
123 | ;; |
128 | ;; |
124 | *) |
129 | *) |
125 | AC_MSG_ERROR("Unknown operating system.") |
130 | AC_MSG_ERROR("Unknown operating system.") |
… | |
… | |
137 | AC_LANG(C++) |
142 | AC_LANG(C++) |
138 | AC_CHECK_HEADERS(ext/hash_map) |
143 | AC_CHECK_HEADERS(ext/hash_map) |
139 | |
144 | |
140 | dnl Checks for header files. |
145 | 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 \ |
146 | 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 \ |
147 | 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]) |
148 | 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], [], [], |
149 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
145 | [ |
150 | [ |
146 | #include <sys/types.h> |
151 | #include <sys/types.h> |
147 | #include <sys/socket.h> |
152 | #include <sys/socket.h> |
… | |
… | |
217 | |
222 | |
218 | AC_CACHE_SAVE |
223 | AC_CACHE_SAVE |
219 | |
224 | |
220 | dnl These are defined in files in m4/ |
225 | dnl These are defined in files in m4/ |
221 | tinc_TUNTAP |
226 | tinc_TUNTAP |
|
|
227 | |
222 | tinc_OPENSSL |
228 | tinc_OPENSSL |
|
|
229 | if test "x$openssl_include" != x; then |
223 | CXXFLAGS="-I$openssl_include" |
230 | CXXFLAGS="$CXXFLAGS -I$openssl_include" |
|
|
231 | fi |
224 | dnl tinc_ZLIB |
232 | dnl tinc_ZLIB |
225 | |
233 | |
226 | AC_ARG_ENABLE(rohc, |
234 | AC_ARG_ENABLE(rohc, |
227 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
235 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
228 | [ |
236 | [ |