source: issm/oecreview/Archive/24684-25833/ISSM-24875-24876.diff

Last change on this file was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 1.3 KB
  • ../trunk-jpl/m4/issm_options.m4

     
    189189                [VENDOR=${withval}],                                                                                            dnl action if given
    190190                [VENDOR=""]                                                                                                                     dnl action if not given
    191191        )
    192         dnl defaults for host OS related variables
    193         IS_MAC=no
     192
     193        AC_MSG_CHECKING([if this is a Mac build])
     194        case "${host_os}" in
     195                *darwin*)
     196                        IS_MAC=yes
     197                ;;
     198                *)
     199                        IS_MAC=no
     200                ;;
     201        esac
     202        AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"])
     203        AC_MSG_RESULT([${IS_MAC}])
     204
    194205        IS_WINDOWS=no
    195206        AC_MSG_CHECKING([for vendor compilers])
    196207        if test -n "${VENDOR}"; then
     
    285296        AC_SUBST([OSLIBS])
    286297        AC_MSG_RESULT([done])
    287298
    288         AC_MSG_CHECKING([if this is a Mac build])
    289         dnl TODO: The following test is a POSIX-compliant way of testing for a
    290         dnl               substring, but is not very readable. Perhaps there is a more
    291         dnl               readable method of achieving the same?
    292         if test "${host_os#*\"darwin\"}" == "$host_os"; then
    293                 IS_MAC=yes
    294         fi
    295         AM_CONDITIONAL([MAC], [test "${IS_MAC}" == "yes"])
    296         AC_MSG_RESULT([${IS_MAC}])
    297 
    298299        AC_MSG_CHECKING([if this is a Windows build])
    299300        AM_CONDITIONAL([WINDOWS], [test "x${IS_WINDOWS}" == "xyes"])
    300301        AC_MSG_RESULT([${IS_WINDOWS}])
Note: See TracBrowser for help on using the repository browser.