GVC_CFLAGS and GVC_LIBS configure flags not honoured
Posted: 2009-04-13T03:48:43-07:00
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
./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