Changeset 261 for trunk/coin.m4


Ignore:
Timestamp:
Mar 16, 2007 8:50:36 AM (14 years ago)
Author:
andreasw
Message:

corrected pthread check for Mumps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r253 r261  
    27882788
    27892789  # library extension
     2790  AC_LANG_PUSH(C)
     2791  AC_CHECK_LIB([pthread],[pthread_create],[LIBS="-lpthread $LIBS"; ADDLIBS="-lpthread $ADDLIBS"],[])
     2792  AC_LANG_POP(C)
     2793
    27902794  case "$CC" in
    27912795    cl* | */cl* | CL* | */CL*)
     
    28162820    if test -r $coin_mumpsobjdir/.MakeOk; then
    28172821      use_mumps=BUILD
     2822      # Mumps needs pthreads
     2823      AC_LANG_PUSH(C)
     2824      AC_CHECK_LIB([pthread],[pthread_create],[LIBS="-lpthread $LIBS"; ADDLIBS="-lpthread $ADDLIBS"],[])
     2825      AC_LANG_POP(C)
    28182826    else
    28192827      use_mumps=
     
    28232831
    28242832if test x"$use_mumps" != x; then
    2825   # Mumps needs pthreads
    2826   AC_LANG_PUSH(C)
    2827   AC_CHECK_LIB([pthread],[pthread_create],[LIBS="-lpthread $LIBS"; ADDLIBS="-lpthread $ADDLIBS"],[])
    2828   AC_LANG_POP(C)
    28292833
    28302834  # and we need the Fortran runtime libraries if we want to link with C/C++
Note: See TracChangeset for help on using the changeset viewer.