Number: 1099
Title: graphviz-2.12 build with installed libgd fails
Submitter: Peter Breitenlohner
Date: Fri Mar 16 08:51:02 2007
Subsys: Build/Installation
Version: 2.12
System: *-*-
Severity: major
Problem:
The Makefile.am in contrib/diffimg was never adapted to the new handling of installed vs. bundled libgd. As a consequence building the (not to be installed) diffimg program with an installed libgd fails.

Attached is a small patch.
Fix:
Somewhere between graphviz-2.8 and graphviz-2.12 the handling of installed vs. bundled libgd was modified.

Adapt contrib/diffimg/Makefile.am to the new WITH_LIBGD vs. WITH_MYLIBGD semantics.


diff -ur graphviz-2.12.orig/contrib/diffimg/Makefile.am graphviz-2.12/contrib/diffimg/Makefile.am
--- graphviz-2.12.orig/contrib/diffimg/Makefile.am  2006-06-27 14:29:56.000000000 +0200
+++ graphviz-2.12/contrib/diffimg/Makefile.am   2007-03-16 11:58:12.000000000 +0100
@@ -12,11 +12,14 @@
 diffimg_SOURCES = diffimg.c

if WITH_LIBGD -diffimg_LDADD = $(top_builddir)/lib/gd/libgvgd_C.la +if WITH_MYLIBGD +diffimg_LDADD = + $(top_builddir)/lib/gd/libgvgd_C.la @FC_LIBS@ @FT_LIBS@ @JPEG_LIBS@ @PNG_LIBS@ @Z_LIBS@ @MATH_LIBS@ else diffimg_LDADD = @GD_LIBS@ endif +endif

GRAPH = "digraph G { hello -> world }"


Owner: erg
Status: Fixed (16 Mar 2007)