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