summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-23 17:16:57 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-23 17:16:57 +0100
commit97d2836f5e72054f640289a93c4f2dd776c4fd00 (patch)
tree84f60fb06ef7a03103cf2a1499c5602df88e9655 /configure.ac
parentf3640a7312413ef8afc2db1060137a04eea2a016 (diff)
macOS: remove deprecated use of property allowedFileTypes in class NSSavePanel
The recommended replacement requires macos ≥ 11.0 and a new framework: UniformTypeIdentifiers
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a4816b352..586aec5f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1005,6 +1005,10 @@ AS_CASE([$host_os_gui], [cygwin* | mingw*], [
# MacOS X uses Cocoa for graphics.
LIBS="$LIBS -framework Cocoa"
+ macosversion_maj=$(sw_vers -productVersion | cut -d. -f1)
+ AS_IF([test $macosversion_maj -ge 11], [
+ LIBS="$LIBS -framework UniformTypeIdentifiers"
+ ])
AS_IF([test x$have_pthread = xyes], [
AC_DEFINE([HAVE_PTHREAD])