Changeset 22549


Ignore:
Timestamp:
03/16/18 14:29:55 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: giving it another shot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/m4/issm_options.m4

    r22548 r22549  
    13101310        AC_ARG_WITH([scalapack-lib],
    13111311          AS_HELP_STRING([--with-scalapack-lib=LIBS],[scalapack libraries to include]),
    1312           [SCALAPACKLIB=$withval],[SCALAPACKLIB=""])
     1312          [SCALAPACKLIB=$withval],[SCALAPACKLIB="no"])
    13131313                         
    13141314        dnl Check whether scalapack is enabled
    13151315        AC_MSG_CHECKING([for scalapack])
    1316         if test "x$SCALAPACK_ROOT" = "xno" ; then
    1317                 if test "x$SCALAPACKLIB" = "xno" ; then
     1316        if test "x$SCALAPACK_ROOT" = "xno" && test "x$SCALAPACKLIB" = "xno"; then
    13181317                        HAVE_SCALAPACK=no
    1319                 fi
    1320         else
     1318        else if test "x$SCALAPACK_ROOT" != "xno"; then
     1319                if ! test -d "$SCALAPACK_ROOT"; then
     1320                 AC_MSG_ERROR([scalapack directory provided ($SCALAPACK_ROOT) does not exist]);
     1321                fi
    13211322                HAVE_SCALAPACK=yes
    1322                 if ! test -d "$SCALAPACK_ROOT"; then
    1323                         AC_MSG_ERROR([scalapack directory provided ($SCALAPACK_ROOT) does not exist]);
    1324                 fi
    13251323                SCALAPACKLIB=-L"$SCALAPACK_ROOT/ -lscalapack"
     1324        else if test "x$SCALAPACKLIB" != "xno"; then
     1325                HAVE_SCALAPACK=yes
     1326        else
     1327           AC_MSG_ERROR([cannot provide both scalapack dir and scalapack-lib])
    13261328        fi
    13271329        AC_MSG_RESULT($HAVE_SCALAPACK)
    13281330       
    13291331        dnl scalapack headers and libraries
    1330         if test "x$HAVE_SCALAPACK" == "xyes"; then
     1332        if test "x$HAVE_SCALAPACK" = "xyes"; then
    13311333                AC_DEFINE([_HAVE_SCALAPACK_],[1],[with Scalapack in ISSM src])
    13321334                AC_SUBST([SCALAPACKLIB])
Note: See TracChangeset for help on using the changeset viewer.