Explanation:
It needs $(top_builddir)/lib to include generated expr/y.tab.h in lib
Command:
(mkdir -p build && cd build && ../configure -q && make)
Error:
make[3]: Entering directory '/home/costa/oss/graphviz/build/lib/gvpr'
CC actions.lo
In file included from ../../../lib/expr/expr.h:28,
from ../../../lib/gvpr/actions.h:18,
from ../../../lib/gvpr/actions.c:16:
../../../lib/expr/exparse.h:4:10: fatal error: expr/y.tab.h: No such file or directory
4 | #include <expr/y.tab.h>
| ^~~~~~~~~~~~~~
compilation terminated.
AM_CPPFLAGS = \
-I$(top_srcdir)/lib \
+ -I$(top_builddir)/lib \
-I$(top_srcdir)/lib/common \
-I$(top_builddir)/lib/common \
-I$(top_srcdir)/lib/cgraph \