Ignore:
Timestamp:
Jun 6, 2007 4:20:56 PM (13 years ago)
Author:
andreasw
Message:

Added --enable-cbc-parallel configuration flag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/configure.ac

    r611 r620  
    1 # Copyright (C) 2006 International Business Machines.
     1# Copyright (C) 2006, 2007 International Business Machines.
    22# All Rights Reserved.
    33# This file is distributed under the Common Public License.
     
    133133  [Define to the name of the default solver to be used in cbc-generic in small letters])
    134134
    135 #
     135
     136#############################################################################
     137#                       Cbc parallel configuration                          #
     138#############################################################################
     139
     140# First we define a new option, --enable-cbc-parallel
     141
     142AC_ARG_ENABLE([cbc-parallel],
     143[AC_HELP_STRING([--enable-cbc-parallel],
     144                [enables compilation of the SMP version of Cbc])])
     145
     146if test "$enable_cbc_parallel" = yes; then
     147  # Define the preprocessor macro
     148  AC_DEFINE([CBC_THREAD],[1],[Define to 1 if the SMP version of Cbc should be compiled])
     149  AC_CHECK_LIB([rt],[clock_gettime],
     150               [ADDLIBS="-lrt $ADDLIBS"],
     151               [AC_MSG_ERROR([--enable-cbc-parallel selected, but -lrt unavailable])])
     152  AC_CHECK_LIB([pthread],[pthread_create],
     153               [ADDLIBS="-lpthread $ADDLIBS"],
     154               [AC_MSG_ERROR([--enable-cbc-parallel selected, but -lpthreads unavailable])])
     155fi
    136156
    137157##############################################################################
Note: See TracChangeset for help on using the changeset viewer.