Toby Thain writes: > But 'make check' in the top directory then fails: > ... > test_dbi.c:33:27: error: cgreen/cgreen.h: No such file or directory > > 'make check' in tests/ fails in the same way: > > ~/workspace/libdbi-drivers/tests $ make check > make test_dbi > make[1]: Entering directory `/home/toby/workspace/libdbi-drivers/ > tests' > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -DDBDIR=\"/ > usr/local/var/lib/libdbi\" -g -DDBI_DRIVER_DIR=\"/usr/local/lib/dbd
This is a bit weird. Look at the options that define the directories that should be checked for headers. tests/Makefile.am contains the following definition: INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/tests/cgreen/include -...@includedir@ On my box, this expands to the following in Makefile: INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/tests/cgreen/include -I${prefix}/include Interestingly, on your box all -I options that reference $(top_srcdir) seem to expand to something useless. What definition do you see in your Makefile? Also, do you configure and build in the source directory or in a separate build directory? Also, what OS did you use for your tests, and what are the versions of automake and autoconf? regards, Markus -- Markus Hoenicka http://www.mhoenicka.de AQ score 38 ------------------------------------------------------------------------------ Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d _______________________________________________ Libdbi-drivers-devel mailing list Libdbi-drivers-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel