]> git.ipfire.org Git - thirdparty/ulogd2.git/commit
build: fix pgsql fall-back configuration of CFLAGS
authorJeremy Sowden <jeremy@azazel.net>
Tue, 13 Dec 2022 11:19:51 +0000 (11:19 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 14 Mar 2023 22:33:33 +0000 (23:33 +0100)
commit9fa2184c303a237917b76da74f7271dca70d0d90
tree31acaea689f2b8b474b72e7c4c3b520fe5a1850d
parentb6ca4b182ec881f33239c101d5d8d4e903d83d12
build: fix pgsql fall-back configuration of CFLAGS

When using mysql_config and pcap_config to configure `CFLAGS`, one
requests the actual flags:

  $mysql_config --cflags
  $pcap_config --cflags

By constrast, when using pg_config, one requests the include-directory:

  $pg_config --includedir

Therefore, the `-I` option has to be explicitly added.

Fixes: 20727ab8b9fc ("build: use pkg-config or pg_config for libpq")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac