From ddac9ce59abee2f53d6243b05c502966dfc9ad56 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Thu, 10 Jul 2003 22:52:15 +0000 Subject: [PATCH] linux-usermode-better-test-20030710 test the source tree and not the running kernel --- acinclude.m4 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index e5906ab33..903dd979e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -558,11 +558,13 @@ else fi _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/XX\$/$AFS_SYSKVERS/` AFS_SYSNAME="$_AFS_SYSNAME" - AFS_ISUML=`cat /proc/cpuinfo | awk '/^model name/ {print $[]4}'` - if test "x${AFS_ISUML}" = "xUML"; then - _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/linux/umlinux/` + if test -f "$LINUX_KERNEL_PATH/include/linux/autoconf.h"; then + AFS_ISUML=`awk '$[]2 == "CONFIG_USERMODE"{print $[]3}' $LINUX_KERNEL_PATH/include/linux/autoconf.h` + if test "x${AFS_ISUML}" = "x1"; then + _AFS_SYSNAME=`echo $AFS_SYSNAME|sed s/linux/umlinux/` + fi + AFS_SYSNAME="$_AFS_SYSNAME" fi - AFS_SYSNAME="$_AFS_SYSNAME" ;; esac AC_MSG_RESULT($AFS_SYSNAME) -- 2.39.5