# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1608173089 0 # Node ID 4020bdb806dc5dd2fd47f9b3e4337cb7294ca4bb # Parent 2c82060fda42eeadbfef8d5bebd1faba4fba971d Mac: Add --with-minver option for specifying the minimum MacOS version. Also add a list of build recommendations for platform and feature support. So you can pick the broadest platform support with the features you desire. diff -r 2c82060fda42 -r 4020bdb806dc configure --- a/configure Wed Dec 16 05:59:11 2020 +0000 +++ b/configure Thu Dec 17 02:44:49 2020 +0000 @@ -716,7 +716,6 @@ docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -744,6 +743,7 @@ with_deprecated with_arch with_sdk +with_minver with_x with_glib_prefix with_glib_exec_prefix @@ -811,7 +811,6 @@ sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' @@ -1064,15 +1063,6 @@ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1210,7 +1200,7 @@ for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1363,7 +1353,6 @@ --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1412,6 +1401,7 @@ --with-deprecated specify this to build with deprecated functions --with-arch specify MacOS architecture: one of modern, classic, 32bit, intel, arm, powerpc --with-sdk specify this to build with an alternate MacOS SDK location + --with-minver specify this to build with a minimum MacOS version --with-x use the X Window System --with-glib-prefix=PFX Prefix where GLIB is installed (optional) --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional) @@ -3728,6 +3718,15 @@ +# Check whether --with-minver was given. +if test "${with_minver+set}" = set; then : + withval=$with_minver; with_minver=$withval +else + with_minver=no +fi + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4689,6 +4688,14 @@ CC="$CC -isysroot$with_sdk" ;; esac + case "$with_minver" in + no) + ;; + *) + CFLAGS="$CFLAGS -mmacosx-version-min=$with_minver" + LIBS="$LIBS -mmacosx-version-min=$with_minver" + ;; + esac SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" SOSUFFIX=dylib DW_DIR=mac diff -r 2c82060fda42 -r 4020bdb806dc configure.in --- a/configure.in Wed Dec 16 05:59:11 2020 +0000 +++ b/configure.in Thu Dec 17 02:44:49 2020 +0000 @@ -76,6 +76,13 @@ [with_sdk=no], ) +dnl ---------------------- check for '--with-minver' switch ----------------- +AC_ARG_WITH(minver, + [ --with-minver specify this to build with a minimum MacOS version], + [with_minver=$withval], + [with_minver=no], +) + AC_HEADER_STDC AC_HEADER_DIRENT AC_CHECK_HEADERS(unistd.h) @@ -155,6 +162,14 @@ CC="$CC -isysroot$with_sdk" ;; esac + case "$with_minver" in + no) + ;; + *) + CFLAGS="$CFLAGS -mmacosx-version-min=$with_minver" + LIBS="$LIBS -mmacosx-version-min=$with_minver" + ;; + esac SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" SOSUFFIX=dylib DW_DIR=mac diff -r 2c82060fda42 -r 4020bdb806dc readme.txt --- a/readme.txt Wed Dec 16 05:59:11 2020 +0000 +++ b/readme.txt Thu Dec 17 02:44:49 2020 +0000 @@ -1,7 +1,30 @@ This is a stable release of Dynamic Windows version 3.1. The current Dynamic Windows source base is considered stable on: -OS/2, Mac, Windows, Linux, FreeBSD and Solaris. +OS/2, Mac, Windows, Linux, FreeBSD and OpenSolaris. + +Build Recommendations: +MacOS: + 11.0: configure --with-arch=modern --with-minver=10.14 + 64bit Intel and Apple Silicon support with Dark Mode. + 10.13-10.15: configure --with-minver=10.8 + 64bit Intel with Notifications, Dark Mode for 10.14-15. + 10.8-10.12: configure --with-arch=intel --with-minver=10.8 + 64 and 32bit Intel with Notifications but no Dark Mode. + 10.6: configure --with-arch=classic --with-minver=10.5 + 32bit PowerPC, 64bit and 32bit Intel classic support. +Windows: + 10: Visual Studio 2017-2019, WebView2 and WinToast. + Should run on Vista and later, but sockpipe() only on 10. + Supports domain sockets on Windows 10 dwcompat sockpipe(). + 7-8.1: Visual Studio 2015, WebView2 and WinToast with 8 SDK. + Should run on Vista and later, old sockpipe() on all. + XP: Visual Studio 2010. Old sockpipe() on all versions. + Should run on XP and later, with Aero on Vista and 7. + No notifications or WebView2 and old sockpipe() on all. + 2000: Visual Studio 2005. Remove -DAEROGLASS from CFLAGS. + Should run on 2000 and later, no Aero, notifications, + WebView2 and old sockpipe() on all versions. Known problems: