I am building libecpg 13.1 but 13.3 behaves in the same manner and my build fails with:
path.c: In function 'get_html_path':
path.c:787:38: error: 'HTMLDIR' undeclared (first use in this function) 787 | make_relative_path(ret_path, HTMLDIR, PGBINDIR, my_exec_path); | ^~~~~~~
path.c:787:38: note: each undeclared identifier is reported only once for each function it appears in
path.c: In function 'get_man_path':
path.c:796:38: error: 'MANDIR' undeclared (first use in this function); did you mean 'MAXDIM'? 796 | make_relative_path(ret_path, MANDIR, PGBINDIR, my_exec_path); | ^~~~~~ | MAXDIM
make[2]: *** [<builtin>: path.o] Error 1