… | |
… | |
137 | AC_LANG(C++) |
137 | AC_LANG(C++) |
138 | AC_CHECK_HEADERS(ext/hash_map) |
138 | AC_CHECK_HEADERS(ext/hash_map) |
139 | |
139 | |
140 | dnl Checks for header files. |
140 | 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 \ |
141 | 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 netinet/in.h]) |
142 | sys/file.h sys/ioctl.h sys/param.h sys/time.h netinet/in_systm.h cygwin.h arpa/inet.h \ |
|
|
143 | sys/poll.h sys/mman.h netinet/in.h]) |
143 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
144 | AC_CHECK_HEADERS([net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h netinet/in_systm.h], [], [], |
144 | [ |
145 | [ |
145 | #include <sys/types.h> |
146 | #include <sys/types.h> |
146 | #include <sys/socket.h> |
147 | #include <sys/socket.h> |
147 | #ifdef HAVE_NETINET_IN_H |
148 | #ifdef HAVE_NETINET_IN_H |
… | |
… | |
194 | |
195 | |
195 | AC_LANG_PUSH(C) |
196 | AC_LANG_PUSH(C) |
196 | |
197 | |
197 | AC_HEADER_STDC |
198 | AC_HEADER_STDC |
198 | |
199 | |
|
|
200 | dnl argl, could somebody catapult darwin into the 21st century??? |
199 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall) |
201 | AC_CHECK_FUNCS(asprintf daemon get_current_dir_name putenv select strerror strsignal strtol unsetenv mlockall poll) |
200 | |
202 | |
201 | AC_FUNC_ALLOCA |
203 | AC_FUNC_ALLOCA |
202 | |
204 | |
203 | dnl Support for SunOS |
205 | dnl Support for SunOS |
204 | |
206 | |
… | |
… | |
216 | AC_CACHE_SAVE |
218 | AC_CACHE_SAVE |
217 | |
219 | |
218 | dnl These are defined in files in m4/ |
220 | dnl These are defined in files in m4/ |
219 | tinc_TUNTAP |
221 | tinc_TUNTAP |
220 | tinc_OPENSSL |
222 | tinc_OPENSSL |
|
|
223 | CXXFLAGS="-I$openssl_include" |
221 | dnl tinc_ZLIB |
224 | dnl tinc_ZLIB |
222 | |
225 | |
223 | AC_ARG_ENABLE(rohc, |
226 | AC_ARG_ENABLE(rohc, |
224 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
227 | [AC_HELP_STRING(--enable-rohc, [enable robust header compression (rfc3095).])], |
225 | [ |
228 | [ |