]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
-lpthread for osf and shell syntax error
authorrahuel <rahuel@opencascade.com>
Thu, 9 Feb 2006 15:21:04 +0000 (15:21 +0000)
committerrahuel <rahuel@opencascade.com>
Thu, 9 Feb 2006 15:21:04 +0000 (15:21 +0000)
salome_adm/unix/config_files/check_pthreads.m4

index 80aef2aad184d0e6509be9383e3422b254bf336c..eb511eca3ab55040b6696d5c654e5b010365bc4f 100644 (file)
@@ -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