Changeset 25646


Ignore:
Timestamp:
10/06/20 20:43:23 (4 years ago)
Author:
jdquinn
Message:

BUG: Again trying to supplement macOS implementations of libc that do not have fmemopen

File:
1 edited

Legend:

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

    r25643 r25646  
    195195                *darwin*)
    196196                        IS_MAC=yes
     197                        AC_DEFINE([_MAC_], [1], [is macOS])
    197198                ;;
    198199                *)
    199200                        IS_MAC=no
     201                        AC_DEFINE([_MAC_], [0], [is macOS])
    200202                ;;
    201203        esac
     
    204206
    205207        if test "${IS_MAC}" == "yes"; then
    206                 AC_MSG_CHECKING([for fmemopen])
    207                 FMEMOPEN=no
     208                AC_MSG_CHECKING([if system lib.c has fmemopen])
    208209                if [[ $(system_profiler SPSoftwareDataType | $(which grep) "System Version:" | sed -e "s/[[:space:]]*System Version: macOS //" | cut -d "." -f 2) -ge 13 ]]; then
    209                         FMEMOPEN=yes
    210                 fi
    211                 AM_CONDITIONAL([HAS_FMEMOPEN], [test "${FMEMOPEN}" == "yes"])
    212                 AC_MSG_RESULT([${FMEMOPEN}])
     210                        SYSTEM_FMEMOPEN="yes"
     211                        AC_DEFINE([_SYSTEM_FMEMOPEN_], [1], [does system lib.c have fmemopen])
     212                else
     213                        SYSTEM_FMEMOPEN="no"
     214                        AC_DEFINE([_SYSTEM_FMEMOPEN_], [0], [does system lib.c have fmemopen])
     215                fi
     216                AM_CONDITIONAL([SYSTEM_HAS_FMEMOPEN], [test "${SYSTEM_FMEMOPEN}" == "yes"])
     217                AC_MSG_RESULT([${SYSTEM_FMEMOPEN}])
    213218        fi
    214219
Note: See TracChangeset for help on using the changeset viewer.