mirror of
https://github.com/python/cpython.git
synced 2024-11-29 21:05:33 +08:00
improve ac_sys_system/release, add ac_syts_cpu
This commit is contained in:
parent
d4c26469d6
commit
45ee2eaf29
@ -74,8 +74,11 @@ AC_SUBST(MACHDEP)
|
|||||||
AC_MSG_CHECKING(MACHDEP)
|
AC_MSG_CHECKING(MACHDEP)
|
||||||
if test -z "$MACHDEP"
|
if test -z "$MACHDEP"
|
||||||
then
|
then
|
||||||
ac_sys_system=`uname -s | tr -d ' ' | tr '[[A-Z]]' '[[a-z]]'`
|
ac_sys_system=`uname -s | tr -d '[[/ ]]' | tr '[[A-Z]]' '[[a-z]]'`
|
||||||
ac_sys_release=`uname -r | tr -d ' ' | sed 's/\..*//'`
|
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"
|
MACHDEP="$ac_sys_system$ac_sys_release"
|
||||||
case MACHDEP in
|
case MACHDEP in
|
||||||
'') MACHDEP=unknown;;
|
'') MACHDEP=unknown;;
|
||||||
|
Loading…
Reference in New Issue
Block a user