Changeset 994 for trunk/Clp/configure.ac


Ignore:
Timestamp:
Apr 23, 2007 8:38:46 PM (13 years ago)
Author:
andreasw
Message:

reran autotools; added support for WSMP (--with-wsmp as configure option)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/configure.ac

    r836 r994  
    6161
    6262#############################################################################
     63#                        Third party linear solvers                         #
     64#############################################################################
     65
     66# WSMP
     67AC_ARG_WITH([wsmp],
     68            AC_HELP_STRING([--with-wsmp],
     69                           [specify WSMP library]),
     70            [use_wsmp=$withval], [use_wsmp=no])
     71
     72if test "$use_wsmp" != "no"; then
     73  LIBS="$use_wsmp $LIBS"
     74  ADDLIBS="$use_wsmp $ADDLIBS"
     75
     76  defval=
     77  AC_MSG_CHECKING([whether user-supplied WSMP library \"$use_wsmp\" works (symbol wssmp_)])
     78  AC_TRY_LINK([],[wssmp_()],
     79              [AC_MSG_RESULT(yes)
     80               defval=2],
     81              [AC_MSG_RESULT(no)])
     82  if test "$defval" = ""; then
     83    AC_MSG_CHECKING([whether user-supplied WSMP library \"$use_wsmp\" works (symbol wssmp)])
     84    AC_TRY_LINK([],[wssmp()],
     85                [AC_MSG_RESULT(yes)
     86                 defval=3],
     87                [AC_MSG_RESULT(no)])
     88  fi
     89  if test "$defval" = ""; then
     90    AC_MSG_ERROR([WSMP library $use_wsmp does not seem to work])
     91  fi
     92
     93  AC_DEFINE_UNQUOTED([WSSMP_BARRIER], [$defval],
     94                     [Define to 2 if wssmp_ is available, and to 3 if wssmp is available])
     95fi
     96
     97#############################################################################
    6398#                             Other dependencies                            #
    6499#############################################################################
Note: See TracChangeset for help on using the changeset viewer.