[php-src] PR #13645: Find SELinux library with pkgconf
| From: | petk | Date: | Sat, 09 Mar 2024 02:02:23 +0000 |
| Subject: | [php-src] PR #13645: Find SELinux library with pkgconf | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25326@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13645
Author: petk
The SELinux library has had pkg-config/pkgconf integration since ~2009. To ease this change, the
check without pkgconf is executed in case the libselinux.pc file is not found on the system.
A sanity check also covers cases where the library path is overriden:
/configure --enable-fpm --with-fpm-selinux \
SELINUX_CFLAGS=-I/path/to/libselinux \
SELINUX_LIBS="-L/path/to/libselinux -lselinux"
This also removes the redundant symbol HAVE_SELINUX_SELINUX_H since the selinux/selinux.h header is
considered a required part of the SELinux library package.