diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-05 22:04:28 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-05 22:04:28 +0000 |
commit | 785960b1edc1de8818d919ac05c3c8b62ce56ae0 (patch) | |
tree | 3be3ebc4813934e4e3c1d88f53efb8d803d931da | |
parent | 914cb0597722f4feb16185ec5fba496a619d0523 (diff) |
First check for the new GTK+/OS X integration functions, then the old
ones; it appears that at least one user's -ligemacintegration has both
(see bug 4823), and we should choose the new ones in that case.
Also, always set have_ige_mac if we have the functions.
Fix tpyoes while we're at it.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33106 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | acinclude.m4 | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index ff46e26c32..ca9703f603 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1764,44 +1764,46 @@ AC_DEFUN([AC_WIRESHARK_OSX_INTEGRATION_CHECK], LIBS="$GTK_LIBS $LIBS" # - # Check for the old integration functions in the Gtk framework. + # Check for the new integration functions in a -ligemacintegration + # library. # - AC_CHECK_LIB(Gtk, ige_mac_menu_set_menu_bar, + AC_CHECK_LIB(igemacintegration, gtk_osxapplication_set_menu_bar, [ - AC_DEFINE(HAVE_IGE_MAC_INTEGRATION, 1, - [Define to 1 if the the Gtk+ framework or a separate library inclues the Imendio IGE Mac OS X Integration functions.]) + AC_DEFINE(HAVE_GTKOSXAPPLICATION, 1, + [Define to 1 if -ligemacintegration includes the GtkOSXApplication Integration functions.]) have_ige_mac=yes # We don't want gtk stuff in LIBS (which is reset below) so # manually set GTK_LIBS (which is more appropriate) - GTK_LIBS="$GTK_LIBS -lGtk" + GTK_LIBS="$GTK_LIBS -ligemacintegration" ]) if test x$have_ige_mac == x then # # Not found - check for the old integration functions in - # a -ligemacintegration library. + # the Gtk framework. # - AC_CHECK_LIB(igemacintegration, ige_mac_menu_set_menu_bar, + AC_CHECK_LIB(Gtk, ige_mac_menu_set_menu_bar, [ AC_DEFINE(HAVE_IGE_MAC_INTEGRATION, 1, - [Define to 1 if the the Gtk+ framework or a separate library inclues the Imendio IGE Mac OS X Integration functions.]) + [Define to 1 if the the Gtk+ framework or a separate library includes the Imendio IGE Mac OS X Integration functions.]) + have_ige_mac=yes # We don't want gtk stuff in LIBS (which is reset below) so # manually set GTK_LIBS (which is more appropriate) - GTK_LIBS="$GTK_LIBS -ligemacintegration" + GTK_LIBS="$GTK_LIBS -lGtk" ]) fi - + if test x$have_ige_mac == x then # - # Not found - check for the new integration functions in + # Not found - check for the old integration functions in # a -ligemacintegration library. # - AC_CHECK_LIB(igemacintegration, gtk_osxapplication_set_menu_bar, + AC_CHECK_LIB(igemacintegration, ige_mac_menu_set_menu_bar, [ - AC_DEFINE(HAVE_GTKOSXAPPLICATION, 1, - [Define to 1 if the the Gtk+ framework or a separate library inclues the GtkOSXApplication Integration functions.]) + AC_DEFINE(HAVE_IGE_MAC_INTEGRATION, 1, + [Define to 1 if the the Gtk+ framework or a separate library includes the Imendio IGE Mac OS X Integration functions.]) have_ige_mac=yes # We don't want gtk stuff in LIBS (which is reset below) so # manually set GTK_LIBS (which is more appropriate) |