Thread: pgsql: Fix out-of-tree build for transform modules.

pgsql: Fix out-of-tree build for transform modules.

From
Andrew Gierth
Date:
Fix out-of-tree build for transform modules.

Neither plperl nor plpython installed sufficient header files to
permit transform modules to be built out-of-tree using PGXS. Fix that
by installing all plperl and plpython header files (other than those
with special purposes such as generated data tables), and also install
plpython's special .mk file for mangling regression tests.

(This commit does not fix the windows install, which does not
currently install _any_ plperl or plpython headers.)

Also fix the existing transform modules for hstore and ltree so that
their cross-module #include directives work as anticipated by commit
df163230b9 et seq. This allows them to serve as working examples of
how to reference other modules when doing separate out-of-tree builds.

Discussion: https://postgr.es/m/87o9ej8bgl.fsf%40news-spur.riddles.org.uk

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f1ca5a654d5db32c2af8b28b7fbca38bbb793f56

Modified Files
--------------
contrib/hstore_plperl/Makefile            |  3 ++-
contrib/hstore_plperl/hstore_plperl.c     |  2 +-
contrib/hstore_plpython/Makefile          |  6 ++++--
contrib/hstore_plpython/hstore_plpython.c |  2 +-
contrib/ltree_plpython/Makefile           |  6 ++++--
contrib/ltree_plpython/ltree_plpython.c   |  2 +-
src/pl/plperl/GNUmakefile                 |  2 +-
src/pl/plpython/Makefile                  | 20 ++++++++++++++++++--
src/tools/msvc/Mkvcbuild.pm               |  6 +++---
9 files changed, 35 insertions(+), 14 deletions(-)