From: Jan Djärv Date: Mon, 6 Jun 2005 20:17:49 +0000 (+0000) Subject: * configure.in (HAVE_CANCELMENUTRACKING): New test. X-Git-Tag: emacs-pretest-22.0.90~9237 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a7c47af82dde7daf58b30f30ae7d86dc99d2bc2f;p=emacs.git * configure.in (HAVE_CANCELMENUTRACKING): New test. --- diff --git a/configure.in b/configure.in index ec772a5c2a4..884e3309e42 100644 --- a/configure.in +++ b/configure.in @@ -2345,6 +2345,15 @@ if test "${HAVE_CARBON}" = "yes"; then 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