summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 3c55a4d..67d4cba 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;;