mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-09 06:18:06 +00:00
Check pthread first
This commit is contained in:
parent
72a15389c9
commit
b86f89616c
15
configure.ac
15
configure.ac
@ -161,17 +161,16 @@ AC_LINK_IFELSE(
|
|||||||
LIBS=$SAVED_LIBS
|
LIBS=$SAVED_LIBS
|
||||||
CFLAGS=$SAVED_CFLAGS
|
CFLAGS=$SAVED_CFLAGS
|
||||||
|
|
||||||
has_winpthread=false
|
has_pthread=false
|
||||||
|
AC_CHECK_LIB(pthread, pthread_create, has_pthread=true)
|
||||||
|
PTHREAD_LIBS=-lpthread
|
||||||
|
|
||||||
|
if test "x$has_pthread" != xtrue; then
|
||||||
if test "x$have_win32" = xtrue; then
|
if test "x$have_win32" = xtrue; then
|
||||||
has_winpthread=true
|
AC_CHECK_LIB(winpthread, nanosleep, ,
|
||||||
AC_CHECK_LIB(winpthread, nanosleep, , has_winpthread=false)
|
AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
|
||||||
PTHREAD_LIBS=-lwinpthread
|
PTHREAD_LIBS=-lwinpthread
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$has_winpthread" != xtrue; then
|
|
||||||
AC_CHECK_LIB(pthread, pthread_create, ,
|
|
||||||
AC_MSG_ERROR([Could not find pthread library - please install libpthread]))
|
|
||||||
PTHREAD_LIBS=-lpthread
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([adl],
|
AC_ARG_ENABLE([adl],
|
||||||
|
Loading…
Reference in New Issue
Block a user