configure: Allow pthread_create to be in the C library.

This commit is contained in:
Alexandre Julliard 2013-01-08 13:14:11 +01:00
parent a58ae36aed
commit 02aa14518b
2 changed files with 11 additions and 4 deletions

10
configure vendored
View File

@ -7255,7 +7255,11 @@ fi
if test "$ac_cv_header_pthread_h" = "yes" if test "$ac_cv_header_pthread_h" = "yes"
then then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
if test "x$ac_cv_func_pthread_create" = xyes; then :
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
$as_echo_n "checking for pthread_create in -lpthread... " >&6; } $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
if ${ac_cv_lib_pthread_pthread_create+:} false; then : if ${ac_cv_lib_pthread_pthread_create+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
@ -7297,7 +7301,9 @@ if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
fi fi
fi fi
if test "x$LIBPTHREAD" = "x"; then :
fi
if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
case "x$with_pthread" in case "x$with_pthread" in
xno) ;; xno) ;;
*) as_fn_error $? "pthread ${notice_platform}development files not found. *) as_fn_error $? "pthread ${notice_platform}development files not found.

View File

@ -954,9 +954,10 @@ dnl **** Check for pthread ****
if test "$ac_cv_header_pthread_h" = "yes" if test "$ac_cv_header_pthread_h" = "yes"
then then
AC_CHECK_LIB(pthread,pthread_create,[AC_SUBST(LIBPTHREAD,"-lpthread")]) AC_CHECK_FUNC(pthread_create,,[AC_CHECK_LIB(pthread,pthread_create,[AC_SUBST(LIBPTHREAD,"-lpthread")])])
fi fi
WINE_ERROR_WITH(pthread,[test "x$LIBPTHREAD" = "x"],[pthread ${notice_platform}development files not found. WINE_ERROR_WITH(pthread,[test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x],
[pthread ${notice_platform}development files not found.
Wine cannot support threads without libpthread.]) Wine cannot support threads without libpthread.])
dnl **** Check for X11 **** dnl **** Check for X11 ****