2c6180e7a5
- Add rsyslog-pgsql-pkg-config.patch: use pkgconfig to find the right libraries/directories for postgresql. According to pgsql upstream, pg_config must only be used to buildpgsql modules. Makes it usable with pgsql 11 OBS-URL: https://build.opensuse.org/request/show/681661 OBS-URL: https://build.opensuse.org/package/show/Base:System/rsyslog?expand=0&rev=307
31 lines
830 B
Diff
31 lines
830 B
Diff
Index: rsyslog-8.39.0/configure.ac
|
|
===================================================================
|
|
--- rsyslog-8.39.0.orig/configure.ac
|
|
+++ rsyslog-8.39.0/configure.ac
|
|
@@ -794,24 +794,7 @@ AC_ARG_ENABLE(pgsql,
|
|
[enable_pgsql=no]
|
|
)
|
|
if test "x$enable_pgsql" = "xyes"; then
|
|
- AC_CHECK_PROG(
|
|
- [PG_CONFIG],
|
|
- [pg_config],
|
|
- [pg_config],
|
|
- [no],,,
|
|
- )
|
|
- if test "x${PG_CONFIG}" = "xno"; then
|
|
- AC_MSG_FAILURE([pg_config not found])
|
|
- fi
|
|
- AC_CHECK_LIB(
|
|
- [pq],
|
|
- [PQconnectdb],
|
|
- [PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
|
|
- PGSQL_LIBS="-L`$PG_CONFIG --libdir` -lpq"
|
|
- ],
|
|
- [AC_MSG_FAILURE([PgSQL library is missing])],
|
|
- [-L`$PG_CONFIG --libdir`]
|
|
- )
|
|
+ PKG_CHECK_MODULES([PGSQL], [libpq])
|
|
fi
|
|
AM_CONDITIONAL(ENABLE_PGSQL, test x$enable_pgsql = xyes)
|
|
AC_SUBST(PGSQL_CFLAGS)
|