From e790203a754a95ac16ea713f55bfb88c7f612cec Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Wed, 11 Sep 2019 02:04:44 -0400 Subject: [PATCH] [build] PGSQL_CFLAGS with pkg-config for postgres (#2965) x-ref: "pg_config is deprecated to build postgres client applications" https://redmine.lighttpd.net/issues/2965 --- configure.ac | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 662e17f9..6afa419f 100644 --- a/configure.ac +++ b/configure.ac @@ -298,7 +298,7 @@ AC_ARG_WITH([pgsql], ) AC_MSG_RESULT([$WITH_PGSQL]) -PGSQL_INCLUDE= +PGSQL_CFLAGS= PGSQL_LIBS= if test "$WITH_PGSQL" != no; then @@ -320,12 +320,12 @@ if test "$WITH_PGSQL" != no; then AC_MSG_ERROR([pg_config not exists or not executable, use --with-pgsql=path-to-pg_config]) fi - PGSQL_INCLUDE="-I`"$PGSQL_CONFIG" --includedir`" + PGSQL_CFLAGS="-I`"$PGSQL_CONFIG" --includedir`" PGSQL_LIBS="-L`"$PGSQL_CONFIG" --libdir` -lpq" fi AC_MSG_CHECKING([for PgSQL includes at]) - AC_MSG_RESULT([$PGSQL_INCLUDE]) + AC_MSG_RESULT([$PGSQL_CFLAGS]) AC_MSG_CHECKING([for PgSQL libraries at]) AC_MSG_RESULT([$PGSQL_LIBS]) @@ -335,7 +335,7 @@ fi AM_CONDITIONAL([BUILD_WITH_PGSQL], [test "$WITH_PGSQL" != no]) AC_SUBST([PGSQL_LIBS]) -AC_SUBST([PGSQL_INCLUDE]) +AC_SUBST([PGSQL_CFLAGS]) dnl Checks for libdbi library AC_MSG_NOTICE([----------------------------------------])