[php-src] PR #13644: Find AppArmor library with pkgconf
| From: | petk | Date: | Sat, 09 Mar 2024 01:58:51 +0000 |
| Subject: | [php-src] PR #13644: Find AppArmor library with pkgconf | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25325@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13644
Author: petk
The AppArmor library has had pkg-config/pkgconf integration since its early versions (2012), when it
was integrated from the libaalogparse into the AppArmor project. To ease this change, the check
without pkgconf is executed in case the libapparmor.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-apparmor \
APPARMOR_CFLAGS=-I/path/to/libapparmor \
APPARMOR_LIBS="-L/path/to/libapparmor -lapparmor"
This also removes the redundant symbol HAVE_SYS_APPARMOR_H since the sys/apparmor.h header is
considered a required part of the AppArmor library package.