X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=m4%2Fopenvswitch.m4;h=fa741f646836d5ea7f8b37a3cfec2ce805f16b48;hb=94887cf4caa74bfb5c2fd163cb99b145a6d6e2fb;hp=7a0465bc19a17f441f2ebb052c7d9099bd232361;hpb=c2dc87c9a4b1d995561ced8f8152b138a11ceb5b;p=sliver-openvswitch.git diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index 7a0465bc1..fa741f646 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -63,6 +63,27 @@ AC_DEFUN([OVS_CHECK_WIN32], [WIN32=no]) AM_CONDITIONAL([WIN32], [test "$WIN32" = yes]) if test "$WIN32" = yes; then + AC_ARG_WITH([pthread], + [AS_HELP_STRING([--with-pthread=DIR], + [root of the pthread-win32 directory])], + [ + case "$withval" in + "" | y | ye | yes | n | no) + AC_MSG_ERROR([Invalid --with-pthread value]) + ;; + *) + PTHREAD_INCLUDES="-I$withval/include" + PTHREAD_LDFLAGS="-L$withval/lib/x86" + PTHREAD_LIBS="-lpthreadVC2" + AC_SUBST([PTHREAD_INCLUDES]) + AC_SUBST([PTHREAD_LDFLAGS]) + AC_SUBST([PTHREAD_LIBS]) + ;; + esac + ], [ + AC_MSG_ERROR([pthread directory not specified]) + ] + ) AC_DEFINE([WIN32], [1], [Define to 1 if building on WIN32.]) AH_BOTTOM([#ifdef WIN32 #include "include/windows/windefs.h"