First check for the new GTK+/OS X integration functions, then the old
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 5 Jun 2010 22:04:28 +0000 (22:04 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 5 Jun 2010 22:04:28 +0000 (22:04 +0000)
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

acinclude.m4

index ff46e26c328d4a459224563b0fb814da4a2d4f9e..ca9703f603577283cab13fe7d045b9a3cf165a85 100644 (file)
@@ -1764,44 +1764,46 @@ AC_DEFUN([AC_WIRESHARK_OSX_INTEGRATION_CHECK],
        LIBS="$GTK_LIBS $LIBS"
 
        #
        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)
                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.
+               # 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,
                [
                        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"
                ])
        fi
                ])
        fi
-       
+
        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)