From: Ulrich Müller Date: Sun, 5 Aug 2012 05:00:52 +0000 (-0700) Subject: * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header. X-Git-Tag: emacs-24.2.90~852 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=32d9ba9ac2ae534cb687b81d990355f77c65aaf2;p=emacs.git * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header. Fixes: debbugs:11979 --- diff --git a/ChangeLog b/ChangeLog index 76aae066a85..cdf55a377eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-08-05 Ulrich Müller + + * configure.ac: Disable paxctl if binaries don't have a + PT_PAX_FLAGS program header. (Bug#11979) + 2012-08-03 Eli Zaretskii * lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/stat-time.$(O), 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.