Changeset 27018


Ignore:
Timestamp:
05/23/22 01:38:53 (3 years ago)
Author:
inwoo
Message:

CHG: fix using shapelib. A library of shapelib with v1.5.0 is named as "libshp.so"

File:
1 edited

Legend:

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

    r26950 r27018  
    17831783        if test "x${HAVE_SHAPELIB}" == "xyes"; then
    17841784                SHAPELIBINCL="-I${SHAPELIB_ROOT}/include"
    1785                 SHAPELIBLIB="-L${SHAPELIB_ROOT}/lib -lshape"
     1785                if test -f "${SHAPELIB_ROOT}/lib/libshp.a"; then
     1786                        SHAPELIBLIB="-L${SHAPELIB_ROOT}/lib -lshp"
     1787                else
     1788                        SHAPELIBLIB="-L${SHAPELIB_ROOT}/lib -lshape"
     1789                fi
    17861790                AC_DEFINE([_HAVE_SHAPELIB_], [1], [with shapelib in ISSM src])
    17871791                AC_SUBST([SHAPELIBINCL])
Note: See TracChangeset for help on using the changeset viewer.