changeset 2086:498bdd71a556

Mac: The UserNotifications framework version test was broken. Hopefully this test for Darwin 18 or higher will work.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 03 Jun 2020 18:38:26 +0000
parents 43453c9a404c
children 082d743f3214
files configure configure.in
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jun 03 05:53:05 2020 +0000
+++ b/configure	Wed Jun 03 18:38:26 2020 +0000
@@ -4676,8 +4676,8 @@
       DW_SRC=dw.m
       DW_DEFINE=__MAC__
       LIBS="$LIBS -framework Cocoa -framework WebKit"
-      OSVER=`uname -r`
-      if test $OSVER > 17.9.9; then
+      OSVER=`uname -r | cut -d. -f1`
+      if test $OSVER -ge "18"; then
          LIBS="$LIBS -framework UserNotifications"
       fi
       build_gtk="no"
--- a/configure.in	Wed Jun 03 05:53:05 2020 +0000
+++ b/configure.in	Wed Jun 03 18:38:26 2020 +0000
@@ -176,8 +176,8 @@
       DW_SRC=dw.m
       DW_DEFINE=__MAC__
       LIBS="$LIBS -framework Cocoa -framework WebKit"
-      OSVER=`uname -r`
-      if test $OSVER > 17.9.9; then
+      OSVER=`uname -r | cut -d. -f1`
+      if test $OSVER -ge "18"; then 
          LIBS="$LIBS -framework UserNotifications"
       fi
       build_gtk="no"