From 61f0ede1383c1a2e6725f0416cef939eb3c66414 Mon Sep 17 00:00:00 2001 From: Michael Zucchi Date: Mon, 26 Jul 1999 06:39:39 +0000 Subject: [PATCH] Only build the relevant loaders which require extra libraries if we 1999-07-26 Michael Zucchi * src/Makefile.am (*_LIB): Only build the relevant loaders which require extra libraries if we actually have those libraries. --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/Makefile.am | 28 +++++++++++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 6093b15f45..8bc05a8085 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +1999-07-26 Michael Zucchi + + * src/Makefile.am (*_LIB): Only build the relevant loaders which + require extra libraries if we actually have those libraries. + 1999-07-23 Richard Hestilow * src/gdk-pixbuf.h: Include glib.h as it uses g* datatypes diff --git a/gdk-pixbuf/Makefile.am b/gdk-pixbuf/Makefile.am index fddf0bd26a..b79eb088e7 100644 --- a/gdk-pixbuf/Makefile.am +++ b/gdk-pixbuf/Makefile.am @@ -4,12 +4,30 @@ lib_LTLIBRARIES = \ libexecdir = $(libdir)/gdk-pixbuf/loaders +if HAVE_PNG +PNG_LIB = libpixbuf-png.la +endif + +if HAVE_JPEG +JPEG_LIB = libpixbuf-jpeg.la +endif + +if HAVE_GIF +GIF_LIB = libpixbuf-gif.la +endif + +if HAVE_TIFF +TIFF_LIB = libpixbuf-tiff.la +endif + +XPM_LIB = libpixbuf-xpm.la + libexec_LTLIBRARIES = \ - libpixbuf-png.la \ - libpixbuf-jpeg.la \ - libpixbuf-gif.la \ - libpixbuf-xpm.la \ - libpixbuf-tiff.la + $(PNG_LIB) \ + $(JPEG_LIB) \ + $(GIF_LIB) \ + $(XPM_LIB) \ + $(TIFF_LIB) noinst_PROGRAMS = testpixbuf DEPS = libgdk_pixbuf.la