changeset 63094:f9c310d72b76

* configure.in (HAVE_CANCELMENUTRACKING): New test.
author Jan Djärv <jan.h.d@swipnet.se>
date Mon, 06 Jun 2005 20:17:49 +0000
parents 49932d5128a9
children 77fa0f6c686d
files configure.in
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Mon Jun 06 20:17:29 2005 +0000
+++ b/configure.in	Mon Jun 06 20:17:49 2005 +0000
@@ -2345,6 +2345,15 @@
   fi
   # We also have mouse menus.
   HAVE_MENUS=yes
+
+  tmp_CFLAGS="$CFLAGS"
+  CFLAGS="$CFLAGS -framework Carbon"
+  AC_CHECK_FUNC(CancelMenuTracking, have_cmt=yes, have_cmt=no)
+  if test "$have_cmt" = yes; then
+    AC_DEFINE(HAVE_CANCELMENUTRACKING, 1, 
+              [Define to 1 if CancelMenuTracking is available (Mac OSX).])
+  fi
+  CFLAGS="$tmp_CFLAGS"
 fi
 
 ### Use session management (-lSM -lICE) if available