mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 02:33:41 +00:00
Fix #533
This commit is contained in:
@@ -149,9 +149,6 @@
|
||||
/* Define to 1 if you have the <port.h> header file. */
|
||||
#undef HAVE_PORT_H
|
||||
|
||||
/* Define if you have POSIX threads libraries and header files. */
|
||||
#undef HAVE_PTHREAD
|
||||
|
||||
/* Have PTHREAD_PRIO_INHERIT. */
|
||||
#undef HAVE_PTHREAD_PRIO_INHERIT
|
||||
|
||||
|
||||
@@ -15545,9 +15545,9 @@ test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
|
||||
|
||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
||||
if test x"$ax_pthread_ok" = xyes; then
|
||||
|
||||
$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
|
||||
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
CC="$PTHREAD_CC"
|
||||
:
|
||||
else
|
||||
ax_pthread_ok=no
|
||||
|
||||
+3
-1
@@ -267,7 +267,9 @@ AC_CHECK_LIB(socket, connect)
|
||||
dnl Checks for library functions.
|
||||
AC_CHECK_FUNCS([malloc memset socket])
|
||||
|
||||
AX_PTHREAD(, AC_MSG_ERROR(Can not find pthreads. This is required.))
|
||||
AX_PTHREAD([LIBS="$PTHREAD_LIBS $LIBS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
CC="$PTHREAD_CC"], AC_MSG_ERROR(Can not find pthreads. This is required.))
|
||||
|
||||
AM_COND_IF([USE_SYSTEM_SHARED_LIB],
|
||||
[],
|
||||
|
||||
Reference in New Issue
Block a user