gnome-utils r8431 - in trunk: . gnome-screenshot logview



Author: cosimoc
Date: Tue Feb 24 15:43:14 2009
New Revision: 8431
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8431&view=rev

Log:
2009-02-24  Cosimo Cecchi  <cosimoc gnome org>

	* configure.ac: add a section that checks for gthread, so that we
	can explicitely	link to it.


Modified:
   trunk/ChangeLog
   trunk/configure.ac
   trunk/gnome-screenshot/ChangeLog
   trunk/gnome-screenshot/Makefile.am
   trunk/gnome-screenshot/gnome-screenshot.c
   trunk/logview/ChangeLog
   trunk/logview/Makefile.am

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Tue Feb 24 15:43:14 2009
@@ -105,6 +105,14 @@
 AC_SUBST(LIBGNOME_LIBS)
 
 dnl *****************************************
+dnl separate check for gthread
+dnl *****************************************
+
+PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= $GLIB_REQUIRED)
+AC_SUBST(GTHREAD_CFLAGS)
+AC_SUBST(GTHREAD_LIBS)
+
+dnl *****************************************
 dnl floppy-buddy needs libglade
 dnl *****************************************
 PKG_CHECK_MODULES(LIBGLADE, libglade-2.0 >= $LIBGLADE_REQUIRED)

Modified: trunk/gnome-screenshot/Makefile.am
==============================================================================
--- trunk/gnome-screenshot/Makefile.am	(original)
+++ trunk/gnome-screenshot/Makefile.am	Tue Feb 24 15:43:14 2009
@@ -4,8 +4,9 @@
 	-I.							\
 	-I$(srcdir)						\
 	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
-	-DUIDIR=\""$(uidir)"\"				\
+	-DUIDIR=\""$(uidir)"\"					\
 	$(GNOME_UTILS_CFLAGS)					\
+	$(GTHREAD_CFLAGS)					\
 	$(NULL)
 
 bin_PROGRAMS = \
@@ -31,6 +32,7 @@
 gnome_screenshot_LDADD =		\
 	$(XSHAPE_LIBS)			\
 	$(GNOME_UTILS_LIBS)		\
+	$(GTHREAD_LIBS)			\
 	$(NULL)
 
 gnome_screenshotdir  = $(datadir)/applications

Modified: trunk/gnome-screenshot/gnome-screenshot.c
==============================================================================
--- trunk/gnome-screenshot/gnome-screenshot.c	(original)
+++ trunk/gnome-screenshot/gnome-screenshot.c	Tue Feb 24 15:43:14 2009
@@ -1190,6 +1190,8 @@
   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
   textdomain (GETTEXT_PACKAGE);
 
+  g_thread_init (NULL);
+
   context = g_option_context_new (_("Take a picture of the screen"));
   g_option_context_set_ignore_unknown_options (context, FALSE);
   g_option_context_set_help_enabled (context, TRUE);

Modified: trunk/logview/Makefile.am
==============================================================================
--- trunk/logview/Makefile.am	(original)
+++ trunk/logview/Makefile.am	Tue Feb 24 15:43:14 2009
@@ -2,6 +2,7 @@
 
 INCLUDES = \
 	$(GNOME_UTILS_CFLAGS)					\
+	$(GTHREAD_CFLAGS)					\
 	-DG_LOG_DOMAIN=\"gnome-system-log\"			\
 	-DGNOMELOCALEDIR=\""$(prefix)/$(DATADIRNAME)/locale"\"	\
 	-DDATADIR=\""$(datadir)"\"				\
@@ -41,6 +42,7 @@
 
 gnome_system_log_LDADD =	\
 	$(GNOME_UTILS_LIBS)	\
+	$(GTHREAD_LIBS)		\
 	$(Z_LIBS)
 
 logview-marshal.h: logview-marshal.list $(GLIB_GENMARSHAL)



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