Page 1 of 1

GVC_CFLAGS and GVC_LIBS configure flags not honoured

Posted: 2009-04-13T03:48:43-07:00
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

Re: GVC_CFLAGS and GVC_LIBS configure flags not honoured

Posted: 2009-04-13T05:25:30-07:00
by magick
Thanks. We'll get a patch into the ImageMagick Subversion trunk by sometime tomorrow.

Re: GVC_CFLAGS and GVC_LIBS configure flags not honoured

Posted: 2009-04-13T17:05:35-07:00
by patspam
Fantastic, thanks for the speedy reply!

Patrick