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
- # 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)
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
])
if test x$have_ige_mac == x
then
#
# Not found - check for the old integration functions in
- # a -ligemacintegration library.
- 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,
[
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)
# 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"
if test x$have_ige_mac == x
then
#
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.
#
# 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)
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)