diff options
author | Jeremy Sowden <jeremy@azazel.net> | 2022-01-09 11:57:52 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-01-11 22:15:33 +0100 |
commit | a5e7a7a73950cc881cd25e4775ad30726e415d3a (patch) | |
tree | 858b3d7deb10f5289ff604ff3021c4714f5d007f | |
parent | f807212797e94533f73c4e8640e43cd00d5648d9 (diff) |
build: if `--enable-pgsql` is `yes`, abort if libpq is not found
If PostgreSQL support has been explicitly requested, abort if it is not
available.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 41eeb52..62c43d6 100644 --- a/configure.ac +++ b/configure.ac @@ -104,6 +104,12 @@ AS_IF([test "x$enable_pgsql" != "xno"], [ AC_MSG_RESULT([no]) ]) + AS_IF([test "x$libpq_LIBS" = "x"], [ + AS_IF([test "x$enable_pgsql" = "xyes"], [ + AC_MSG_ERROR([libpq not found]) + ]) + ]) + ]) ]) |