1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Adjust configure's probe for libselinux so it rejects too-old versions.

We need at least version 2.0.93, so probe for a function that was added
in that version.

Kaigai Kohei
This commit is contained in:
Tom Lane
2011-05-24 15:49:56 -04:00
parent f50655900a
commit 8ff1f6a78c
2 changed files with 14 additions and 14 deletions

View File

@ -960,8 +960,8 @@ fi
# for contrib/sepgsql
if test "$with_selinux" = yes; then
AC_CHECK_LIB(selinux, getpeercon_raw, [],
[AC_MSG_ERROR([library 'libselinux' is required for SELinux support])])
AC_CHECK_LIB(selinux, selinux_sepgsql_context_path, [],
[AC_MSG_ERROR([library 'libselinux', version 2.0.93 or newer, is required for SELinux support])])
fi
# for contrib/uuid-ossp