From d7b558fd99a3b6c276e3caed557aa189b7a7255b Mon Sep 17 00:00:00 2001 From: rahuel Date: Thu, 9 Feb 2006 15:21:04 +0000 Subject: [PATCH] -lpthread for osf and shell syntax error --- salome_adm/unix/config_files/check_pthreads.m4 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/salome_adm/unix/config_files/check_pthreads.m4 b/salome_adm/unix/config_files/check_pthreads.m4 index 80aef2aad..eb511eca3 100644 --- a/salome_adm/unix/config_files/check_pthreads.m4 +++ b/salome_adm/unix/config_files/check_pthreads.m4 @@ -38,9 +38,15 @@ if test $flag = no; then AC_CHECK_LIB(posix4,nanosleep, LIBS_PTHREADS="-lposix4",LIBS_PTHREADS="") AC_CHECK_LIB(pthread,pthread_mutex_lock, LIBS_PTHREADS="-lpthread $LIBS_PTHREADS",LIBS_PTHREADS="") +else + case $host_os in + osf*) + LIBS_PTHREADS="-lpthread $LIBS_PTHREADS" + ;; + esac fi -if test $flag = no && x$LIBS_PTHREADS = x; then +if test $flag = no && test x$LIBS_PTHREADS = x; then threads_ok=no else threads_ok=yes -- 2.39.2