configure: Use pg_config to locate the header location

Changelog-Fixed: build: On some operating systems the postgresql library would not get picked up. `./configure` now uses `pg_config` to locate the headers.
This commit is contained in:
Christian Decker
2020-08-27 14:40:24 +02:00
committed by Rusty Russell
parent 3ae4ce736d
commit 0a501b3646
3 changed files with 11 additions and 4 deletions

View File

@@ -8,7 +8,7 @@
#if HAVE_POSTGRES
/* Indented in order not to trigger the inclusion order check */
#include <postgresql/libpq-fe.h>
#include <libpq-fe.h>
/* Cherry-picked from here: libpq/src/interfaces/ecpg/ecpglib/pg_type.h */
#define BYTEAOID 17