[clue] building from src where AC_CHECK_HEADER fails

Michael J. Hammel mjhammel at graphics-muse.org
Fri May 31 10:45:13 MDT 2013


On Fri, 2013-05-31 at 10:31 -0600, Mike Bean wrote:
> We are trying to compile xmlcopyeditor on RHEL 6.3
> It is failing because of 
> 
> # grep error config.log
> conftest.cpp:56:42: error: xercesc/util/PlatformUtils.hpp: No such
> file or directory
> conftest.cpp:23:42: error: xercesc/util/PlatformUtils.hpp: No such
> file or directory
> configure:15239: error: Xerces-C headers not found
> Xerces C is installed, i'ts just in a custom directory:
> /gpfs/cots_linux/xerces-c-2.7.0/include/xercesc/util
> 
Try setting CFLAGS on the configure line.  Something like:

CFLAGS="-I /gpfs/cots_linux/xerces-c-2.7.0/include" ./configure
<options>

or maybe

CFLAGS="$CFLAGS -I/gpfs/cots_linux/xerces-c-2.7.0/include" ./configure
<options>

I always get the order mixed up, so maybe try:

./configure CFLAGS="-I /gpfs/cots_linux/xerces-c-2.7.0/include" options

Anyway, something like that.  Setting CFLAGS on the configure line is
supposed to pick up host specific variations for autoconf processing.
Can't say that it always works - with embedded stuff I often have to
hack my own Makefiles to circumvent autoconf.  

-- 
Michael J. Hammel <mjhammel at graphics-muse.org>



More information about the clue mailing list