Ignore:
Timestamp:
Dec 2, 2012 1:02:29 PM (7 years ago)
Author:
stefan
Message:

sync with trunk: added --disable-pthread-mumps

Location:
ThirdParty/Mumps/stable/1.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/stable/1.4

  • ThirdParty/Mumps/stable/1.4/configure.ac

    r2635 r2684  
    8787esac
    8888
    89 # check for pthread.h header file
    90 AC_COIN_CHECK_HEADER([pthread.h],,[MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"])
     89# Mumps can make use of pthreads
     90# check for pthread.h header file and library
     91AC_ARG_ENABLE([pthread-mumps],
     92  [AC_HELP_STRING([--disable-pthread-mumps],[disable use of pthread library])],
     93  [enable_pthread_mumps=$enableval],
     94  [enable_pthread_mumps=yes])
     95if test $enable_pthread_mumps = yes ; then
     96  AC_COIN_CHECK_HEADER([pthread.h],[],[enable_pthread_mumps=no])
     97fi
     98if test $enable_pthread_mumps = yes ; then
     99  AC_CHECK_LIB([pthread],[pthread_create],
     100    [MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS"],
     101    [enable_pthread_mumps=no])
     102fi
     103if test $enable_pthread_mumps = no ; then
     104  MY_DEFS="$MY_DEFS -DWITHOUT_PTHREAD=1"
     105fi
    91106
    92107MY_DEFS="$MY_DEFS -DALLOW_NON_INIT -DMUMPS_ARITH=MUMPS_ARITH_d"
     
    103118  MY_FDEFS="$MY_FDEFS -Dmetis"
    104119fi
    105 
    106 # Mumps can make use of pthreads
    107 AC_CHECK_LIB([pthread],[pthread_create],[MUMPS_PCLIBS="-lpthread $MUMPS_PCLIBS"])
    108120
    109121# Verify that we can compile Fortran 90 code
Note: See TracChangeset for help on using the changeset viewer.