ACLOCAL_AMFLAGS = -I m4
+# The main library
gdk_pixbuf_module_LTLIBRARIES = libpixbufloader-svg.la
libpixbufloader_svg_la_SOURCES = io-svg.c
# dlopen()ed.
libpixbufloader_svg_la_LDFLAGS = -avoid-version -module
+# Install our GTK thumbnailer entry
+thumbnailerdir = $(datadir)/thumbnailers/
+thumbnailer_DATA = libsvgtiny.thumbnailer
+
+# The svg2png test program.
noinst_PROGRAMS = svg2png
svg2png_SOURCES = $(libpixbufloader_svg_la_SOURCES)
svg2png_CPPFLAGS = $(libpixbufloader_svg_la_CPPFLAGS)
AC_MSG_RESULT([$gdk_pixbuf_moduledir])
AC_SUBST([gdk_pixbuf_moduledir])
+AC_MSG_CHECKING([for gdk-pixbuf-thumbnailer location])
+gdk_pixbuf_bindir=$($PKG_CONFIG --variable bindir gdk-pixbuf-2.0)
+gdk_pixbuf_thumbnailer="${gdk_pixbuf_bindir}/gdk-pixbuf-thumbnailer"
+
+AS_IF([test -x "${gdk_pixbuf_thumbnailer}"], [
+ AC_MSG_RESULT([$gdk_pixbuf_thumbnailer])
+ AC_SUBST([gdk_pixbuf_thumbnailer])
+],[
+ AC_MSG_RESULT([no])
+])
+
+
AC_CONFIG_FILES([
Makefile
+ libsvgtiny.thumbnailer
])
LT_INIT([disable-static])