X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=configure.in;h=d20da0cb2945757c56f3ec712532b4c11f30ef79;hp=78622af1cdaa86af90a59d46f29a8eb82e916255;hb=refs%2Fheads%2F1.1-threads;hpb=c6d2b9d734859ccbd9582b28351983a12b04abb0 diff --git a/configure.in b/configure.in index 78622af1..d20da0cb 100644 --- a/configure.in +++ b/configure.in @@ -71,6 +71,15 @@ case $host_os in ;; esac +case $host_os in + *mingw*) + ;; + *) + LIBS="-pthread $LIBS" + CFLAGS="-pthread $CFLAGS" + ;; +esac + AC_ARG_ENABLE(tunemu, AS_HELP_STRING([--enable-tunemu], [enable support for the tunemu driver]), [ AC_DEFINE(ENABLE_TUNEMU, 1, [Support for tunemu]) @@ -127,7 +136,7 @@ dnl Checks for library functions. AC_FUNC_MEMCMP AC_FUNC_ALLOCA AC_TYPE_SIGNAL -AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random select strdup strerror strsignal strtol system time unsetenv vsyslog writev], +AC_CHECK_FUNCS([asprintf daemon fchmod flock ftime fork get_current_dir_name gettimeofday mlockall putenv random select strdup strerror strsignal strtol system time unsetenv usleep vsyslog writev], [], [], [#include "have.h"] ) AC_FUNC_MALLOC @@ -152,7 +161,6 @@ dnl These are defined in files in m4/ AC_ARG_WITH(libgcrypt, AC_HELP_STRING([--with-libgcrypt], [enable use of libgcrypt instead of OpenSSL])], []) -tinc_LIBEVENT tinc_ZLIB tinc_LZO @@ -173,6 +181,6 @@ AC_ARG_ENABLE(jumbograms, AC_SUBST(INCLUDES) -AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile lib/Makefile m4/Makefile]) +AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile m4/Makefile]) AC_OUTPUT