mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 14:08:07 -05:00
configure: force-use -lpthreads on HPUX
When trying to detect pthreads use on HPUX the checks will succeed without the correct -l option but then end up failing at run-time. Reported-by: Eason-Yu on github Fixes #2697 Closes #3025
This commit is contained in:
parent
39c9140cce
commit
6f0afb842c
10
configure.ac
10
configure.ac
@ -3897,6 +3897,16 @@ if test "$want_pthreads" != "no"; then
|
||||
dnl first check for function without lib
|
||||
AC_CHECK_FUNC(pthread_create, [USE_THREADS_POSIX=1] )
|
||||
|
||||
dnl on HPUX, life is more complicated...
|
||||
case $host in
|
||||
*-hp-hpux*)
|
||||
dnl it doesn't actually work without -lpthread
|
||||
USE_THREADS_POSIX=""
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl if it wasn't found without lib, search for it in pthread lib
|
||||
if test "$USE_THREADS_POSIX" != "1"
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user