summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-09-11 02:04:44 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-09-11 02:04:44 -0400
commite790203a754a95ac16ea713f55bfb88c7f612cec (patch)
tree738a2f62fed390ea5b95993ec7fb792d381131d8
parent0e749c1c84326a51f0f8a80c6db49c31c8e920ab (diff)
downloadlighttpd1.4-e790203a754a95ac16ea713f55bfb88c7f612cec.tar.gz
lighttpd1.4-e790203a754a95ac16ea713f55bfb88c7f612cec.zip
[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
-rw-r--r--configure.ac8
1 files 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([----------------------------------------])