From 60bf1394517e4d06a37c8b76ee4a65dcef07285b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 14 Nov 2016 11:00:43 -0700 Subject: [PATCH] Don't enable noexec for AIX 5.0-5.2, we need 5.3 and above. --- configure | 10 +++++----- configure.ac | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/configure b/configure index 08e821cce..8be0338ad 100755 --- a/configure +++ b/configure @@ -14882,11 +14882,11 @@ fi fi # LDR_PRELOAD is only supported in AIX 5.3 and later - if test $OSMAJOR -lt 5; then - with_noexec=no - else - RTLD_PRELOAD_VAR="LDR_PRELOAD" - fi + case "$OSREV" in + [1-4].*) with_noexec=no;; + 5.[1-2]*) with_noexec=no;; + *) RTLD_PRELOAD_VAR="LDR_PRELOAD";; + esac # Remove timedir on boot, AIX does not have /var/run INIT_SCRIPT=aix.sh diff --git a/configure.ac b/configure.ac index 45a6f5fe2..438d25cf8 100644 --- a/configure.ac +++ b/configure.ac @@ -1737,11 +1737,11 @@ case "$host" in fi # LDR_PRELOAD is only supported in AIX 5.3 and later - if test $OSMAJOR -lt 5; then - with_noexec=no - else - RTLD_PRELOAD_VAR="LDR_PRELOAD" - fi + case "$OSREV" in + [[1-4]].*) with_noexec=no;; + 5.[[1-2]]*) with_noexec=no;; + *) RTLD_PRELOAD_VAR="LDR_PRELOAD";; + esac # Remove timedir on boot, AIX does not have /var/run INIT_SCRIPT=aix.sh