Support for pthreads on MinGW-w64
This commit is contained in:
parent
a9c46369e8
commit
94cb469bbf
2 changed files with 6 additions and 1 deletions
1
README
1
README
|
@ -20,6 +20,7 @@ Basic *nix build instructions:
|
|||
Basic Windows build instructions, using MinGW:
|
||||
Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
|
||||
* Make sure you have mstcpip.h in MinGW\include
|
||||
If using MinGW-w64, install pthreads-w64
|
||||
Install libcurl devel (http://curl.haxx.se/download.html)
|
||||
* Make sure you have libcurl.m4 in MinGW\share\aclocal
|
||||
* Make sure you have curl-config in MinGW\bin
|
||||
|
|
|
@ -44,7 +44,11 @@ case $target in
|
|||
esac
|
||||
|
||||
AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)
|
||||
AC_CHECK_LIB(pthread, pthread_create, PTHREAD_LIBS=-lpthread)
|
||||
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthread",
|
||||
AC_CHECK_LIB([pthreadGC2], [pthread_create], PTHREAD_LIBS="-lpthreadGC2",
|
||||
AC_CHECK_LIB([pthreadGC1], [pthread_create], PTHREAD_LIBS="-lpthreadGC1",
|
||||
AC_CHECK_LIB([pthreadGC], [pthread_create], PTHREAD_LIBS="-lpthreadGC"
|
||||
))))
|
||||
|
||||
AM_CONDITIONAL([WANT_JANSSON], [test x$request_jansson = xtrue])
|
||||
AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
|
||||
|
|
Loading…
Reference in a new issue