[gnome-nds-thumbnailer] Simplify configure code
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nds-thumbnailer] Simplify configure code
- Date: Wed, 14 Sep 2011 14:39:35 +0000 (UTC)
commit ed262ff8f485bcbe0233f753ebad87cf29dafaae
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 14 15:39:22 2011 +0100
Simplify configure code
Makefile.am | 6 ++----
configure.ac | 6 +-----
2 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 188e670..0038af7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,10 +2,8 @@
bin_PROGRAMS = gnome-nds-thumbnailer
gnome_nds_thumbnailer_SOURCES = gnome-nds-thumbnailer.c
-
-gnome_nds_thumbnailer_CPPFLAGS = $(GDK_PIXBUF_CFLAGS) $(GIO_CFLAGS)
-
-gnome_nds_thumbnailer_LDADD = $(GDK_PIXBUF_LIBS) $(GIO_LIBS)
+gnome_nds_thumbnailer_CPPFLAGS = $(THUMBNAILER_CFLAGS)
+gnome_nds_thumbnailer_LDADD = $(THUMBNAILER_LIBS)
thumbnailerdir = $(datadir)/thumbnailers/
thumbnailer_DATA = gnome-nds-thumbnailer.thumbnailer
diff --git a/configure.ac b/configure.ac
index d690d8a..3146e3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,11 +9,7 @@ AC_PROG_INSTALL
AC_PROG_SED
AM_PROG_CC_C_O
-PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0, [], [AC_MSG_FAILURE([You need gdk-pixbuf library >= 2.0])])
-AC_SUBST(GDK_PIXBUF_CFLAGS)
-AC_SUBST(GDK_PIXBUF_LIBS)
-
-PKG_CHECK_MODULES(GIO, gio-2.0, [], [AC_MSG_FAILURE([You need glib 2.16 or newer installed])])
+PKG_CHECK_MODULES(THUMBNAILER, gdk-pixbuf-2.0 gio-2.0)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]