comparison configure.in @ 2220:4020bdb806dc

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 17 Dec 2020 02:44:49 +0000
parents 6cdb907755cb
children 5c981407b0f3
comparison
equal deleted inserted replaced
2219:2c82060fda42 2220:4020bdb806dc
74 [ --with-sdk specify this to build with an alternate MacOS SDK location], 74 [ --with-sdk specify this to build with an alternate MacOS SDK location],
75 [with_sdk=$withval], 75 [with_sdk=$withval],
76 [with_sdk=no], 76 [with_sdk=no],
77 ) 77 )
78 78
79 dnl ---------------------- check for '--with-minver' switch -----------------
80 AC_ARG_WITH(minver,
81 [ --with-minver specify this to build with a minimum MacOS version],
82 [with_minver=$withval],
83 [with_minver=no],
84 )
85
79 AC_HEADER_STDC 86 AC_HEADER_STDC
80 AC_HEADER_DIRENT 87 AC_HEADER_DIRENT
81 AC_CHECK_HEADERS(unistd.h) 88 AC_CHECK_HEADERS(unistd.h)
82 AC_CHECK_HEADERS(sys/stat.h) 89 AC_CHECK_HEADERS(sys/stat.h)
83 90
151 case "$with_sdk" in 158 case "$with_sdk" in
152 no) 159 no)
153 ;; 160 ;;
154 *) 161 *)
155 CC="$CC -isysroot$with_sdk" 162 CC="$CC -isysroot$with_sdk"
163 ;;
164 esac
165 case "$with_minver" in
166 no)
167 ;;
168 *)
169 CFLAGS="$CFLAGS -mmacosx-version-min=$with_minver"
170 LIBS="$LIBS -mmacosx-version-min=$with_minver"
156 ;; 171 ;;
157 esac 172 esac
158 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names" 173 SHAREDFLAG="-dynamiclib -flat_namespace -undefined suppress -headerpad_max_install_names"
159 SOSUFFIX=dylib 174 SOSUFFIX=dylib
160 DW_DIR=mac 175 DW_DIR=mac