diff options
author | Ulrich Müller <ulm@gentoo.org> | 2012-08-04 22:00:52 -0700 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2012-08-04 22:00:52 -0700 |
commit | 32d9ba9ac2ae534cb687b81d990355f77c65aaf2 (patch) | |
tree | 5a8405b7db6b462cac1216ae1028ad9685261597 /configure.ac | |
parent | 615b0bf0b41efe0c607de3e5b0b656cc67bd1f5d (diff) | |
download | emacs-32d9ba9ac2ae534cb687b81d990355f77c65aaf2.tar.gz |
* configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.
Fixes: debbugs:11979
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e9e04a4daef..2a6291e8243 100644 --- a/configure.ac +++ b/configure.ac @@ -731,6 +731,12 @@ AC_PATH_PROG(GZIP_PROG, gzip) if test $opsys = gnu-linux; then AC_PATH_PROG(PAXCTL, paxctl,, [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin]) + if test "X$PAXCTL" != X; then + AC_MSG_CHECKING([whether binaries have a PT_PAX_FLAGS header]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])], + [if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then AC_MSG_RESULT(yes) + else AC_MSG_RESULT(no); PAXCTL=""; fi]) + fi fi ## Need makeinfo >= 4.7 (?) to build the manuals. |