[giggle] [coonfigure] Improve autotools configuration a bit more



commit ed012acffc697a87a8783a2baf8a129d0111eebd
Author: Javier Jardón <jjardon gnome org>
Date:   Fri Feb 5 19:27:32 2010 +0100

    [coonfigure] Improve autotools configuration a bit more

 autogen.sh         |    5 +++--
 configure.ac       |   18 ++++++++++++++----
 src/ige-mac-menu.c |    4 ++--
 3 files changed, 19 insertions(+), 8 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 5222d21..671d337 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -13,8 +13,9 @@ PKG_NAME="giggle"
 }
 
 which gnome-autogen.sh || {
-        echo "You need to install gnome-common"
-        exit 1
+    echo "You need to install gnome-common module and make"
+    echo "sure the gnome-autogen.sh script is in your \$PATH."
+    exit 1
 }
 
 USE_GNOME2_MACROS=1 . gnome-autogen.sh
diff --git a/configure.ac b/configure.ac
index 0a4756e..3eb9678 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,13 +18,23 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 # Check for programs
 AC_PROG_CC
-AM_PROG_CC_C_O
+AC_PROG_CC_C_O
 AC_PROG_CXX
 
 # Initialize libtool
 LT_PREREQ([2.2.6])
 LT_INIT([disable-static win32-dll])
 
+# Checks for header files.
+AC_CHECK_HEADERS([fcntl.h locale.h stdlib.h string.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_INLINE
+
+# Checks for library functions.
+AC_FUNC_MKTIME
+AC_CHECK_FUNCS([localtime_r setlocale strchr strrchr strstr])
+
 GNOME_MAINTAINER_MODE_DEFINES
 GNOME_COMPILE_WARNINGS([maximum])
 GNOME_CXX_WARNINGS([yes])
@@ -168,12 +178,12 @@ dnl -----------------------------------------------------------
 AC_CONFIG_FILES([
         Makefile
         data/Makefile
-        libgiggle/Makefile
         libgiggle-git/Makefile
-        plugins/Makefile
-        src/Makefile
+        libgiggle/Makefile
         pixmaps/Makefile
+        plugins/Makefile
         po/Makefile.in
+        src/Makefile
         test/Makefile
 ])
 
diff --git a/src/ige-mac-menu.c b/src/ige-mac-menu.c
index 99bf0af..c6af7c4 100644
--- a/src/ige-mac-menu.c
+++ b/src/ige-mac-menu.c
@@ -317,7 +317,7 @@ carbon_menu_item_update_accelerator (CarbonMenuItem *carbon_item,
 	      UInt8 modifiers = 0;
 
 	      SetMenuItemCommandKey (carbon_item->menu, carbon_item->index,
-				     true, keys[0].keycode);
+				     TRUE, keys[0].keycode);
 
 	      g_free (keys);
 
@@ -349,7 +349,7 @@ carbon_menu_item_update_accelerator (CarbonMenuItem *carbon_item,
   ChangeMenuItemAttributes (carbon_item->menu, carbon_item->index,
 			    0, kMenuItemAttrUseVirtualKey);
   SetMenuItemCommandKey (carbon_item->menu, carbon_item->index,
-			 false, 0);
+			 FALSE, 0);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]