GVC_CFLAGS and GVC_LIBS configure flags not honoured

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
patspam

GVC_CFLAGS and GVC_LIBS configure flags not honoured

Post by patspam »

GVC_CFLAGS and GVC_LIBS are flags to ImageMagick's configure script that allow you to set environment variables for GraphViz (GVC) support.

./configure --help says:

GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
GVC_LIBS linker flags for GVC, overriding pkg-config


However if you try to use them:

./configure GVC_CFLAGS=-I/mydir/include/graphviz GVC_LIBS="-L/mydir/lib -lgvc -lgraph -lcdt"

They are ignored.

This seems to be because on line 38081 of configure the flags are initialised to "" regardless of what you pass in:
GVC_CFLAGS=""
GVC_LIBS=""


Commenting out these 2 lines appears to solve the problem:
#GVC_CFLAGS=""
#GVC_LIBS=""


Cheers,

Patrick
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: GVC_CFLAGS and GVC_LIBS configure flags not honoured

Post by magick »

Thanks. We'll get a patch into the ImageMagick Subversion trunk by sometime tomorrow.
patspam

Re: GVC_CFLAGS and GVC_LIBS configure flags not honoured

Post by patspam »

Fantastic, thanks for the speedy reply!

Patrick
Post Reply