From 45ee2eaf29704187974ee74e1ef1dfb70e1dac68 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 28 Aug 1995 02:44:00 +0000 Subject: [PATCH] improve ac_sys_system/release, add ac_syts_cpu --- configure.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 3c55a4d801e..67d4cbac64a 100644 --- a/configure.in +++ b/configure.in @@ -74,8 +74,11 @@ AC_SUBST(MACHDEP) AC_MSG_CHECKING(MACHDEP) if test -z "$MACHDEP" then - ac_sys_system=`uname -s | tr -d ' ' | tr '[[A-Z]]' '[[a-z]]'` - ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'` + ac_sys_system=`uname -s | tr -d '[[/ ]]' | tr '[[A-Z]]' '[[a-z]]'` + ac_sys_release=`uname -r | tr -d '[[/ ]]' | sed 's/\..*//'` + ac_sys_cpu=`(uname -p 2>/dev/null || uname -m) | + tr '[[A-Z]]' '[[-a-z]]'` +## MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu" MACHDEP="$ac_sys_system$ac_sys_release" case MACHDEP in '') MACHDEP=unknown;;