From b3613e25356178a0f733e6f0ade3fcf0add8fb53 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Tue, 12 Sep 2017 10:31:03 +0900 Subject: [PATCH] configure: check for read access on system.map This lets us fallback gracefully to /System.map, which is more open by default and binary identical on rhel systems --- configure | 6 +++--- configure.ac | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index d5de9813..ed894e52 100755 --- a/configure +++ b/configure @@ -4836,11 +4836,11 @@ esac { $as_echo "$as_me:$LINENO: checking for System.map" >&5 $as_echo_n "checking for System.map... " >&6; } -if test -f "$MCCTRL_LINUX_SYMTAB"; then +if test -r "$MCCTRL_LINUX_SYMTAB"; then MCCTRL_LINUX_SYMTAB="$MCCTRL_LINUX_SYMTAB" -elif test -f "/boot/System.map-`uname -r`"; then +elif test -r "/boot/System.map-`uname -r`"; then MCCTRL_LINUX_SYMTAB="/boot/System.map-`uname -r`" -elif test -f "$KDIR/System.map"; then +elif test -r "$KDIR/System.map"; then MCCTRL_LINUX_SYMTAB="$KDIR/System.map" fi diff --git a/configure.ac b/configure.ac index c858ca2b..01356507 100644 --- a/configure.ac +++ b/configure.ac @@ -340,11 +340,11 @@ case "X$WITH_SYSTEM_MAP" in esac AC_MSG_CHECKING([[for System.map]]) -if test -f "$MCCTRL_LINUX_SYMTAB"; then +if test -r "$MCCTRL_LINUX_SYMTAB"; then MCCTRL_LINUX_SYMTAB="$MCCTRL_LINUX_SYMTAB" -elif test -f "/boot/System.map-`uname -r`"; then +elif test -r "/boot/System.map-`uname -r`"; then MCCTRL_LINUX_SYMTAB="/boot/System.map-`uname -r`" -elif test -f "$KDIR/System.map"; then +elif test -r "$KDIR/System.map"; then MCCTRL_LINUX_SYMTAB="$KDIR/System.map" fi