Configure: identify macOS rather with "apple" pattern

Some documentation prefers use of target like arm64-apple-macos11 or
x86_64-apple-macos10.12 (see [1]).

[1] https://developer.apple.com/documentation/xcode/building_a_universal_macos_binary
This commit is contained in:
Martin Pulec
2021-02-03 09:45:01 +01:00
parent ce52d8fb2e
commit aed36755d7

View File

@@ -128,7 +128,7 @@ then
fi
AC_MSG_CHECKING([OS family])
if expr "$host_os" : ".*darwin.*" > /dev/null; then
if test "$host_vendor" = "apple"; then
system=MacOSX
AC_DEFINE([HAVE_MACOSX], [1], [This is Mac X OS])
APPEXT=.app