Changeset 25662


Ignore:
Timestamp:
10/08/20 17:54:25 (4 years ago)
Author:
jdquinn
Message:

BUG: Need to add fmemopen conditional again as build fails to compile on Pine Island otherwise

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

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

    r25658 r25662  
    204204        AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"])
    205205        AC_MSG_RESULT([${IS_MAC}])
     206
     207        dnl If macOS, check if system copy of libc has fmemopen (if it is not
     208        dnl macOS, we do not check, but still must set SYSTEM_HAS_FMEMOPEN)
     209        SYSTEM_FMEMOPEN="no"
     210        if test "${IS_MAC}" == "yes"; then
     211                AC_MSG_CHECKING([if system libc has fmemopen])
     212                if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then
     213                        SYSTEM_FMEMOPEN="yes"
     214                fi
     215        fi
     216        AM_CONDITIONAL([SYSTEM_HAS_FMEMOPEN], [test "${SYSTEM_FMEMOPEN}" == "yes"])
     217        AC_MSG_RESULT([${SYSTEM_FMEMOPEN}])
    206218
    207219        IS_WINDOWS=no
  • issm/trunk-jpl/src/c/Makefile.am

    r25658 r25662  
    353353        ./modules/ModelProcessorx/Dakota/CreateParametersDakota.cpp \
    354354        ./modules/ModelProcessorx/Dakota/UpdateElementsAndMaterialsDakota.cpp \
    355         ./modules/QmuStatisticsx/QmuStatisticsx.cpp  \
    356355        ./cores/dakota_core.cpp
     356        if SYSTEM_FMEMOPEN
     357                issm_sources += ./modules/QmuStatisticsx/QmuStatisticsx.cpp
     358        fi
    357359endif
    358360#}}}
Note: See TracChangeset for help on using the changeset viewer.