* Go back to the old way of generating the system name, and allow it

to be specified in configure (using `--with-system=SYSTEM').
This commit is contained in:
Eelco Dolstra 2004-05-18 09:45:46 +00:00
parent 8e9fd57ef9
commit 1d08093b48

View file

@ -22,9 +22,12 @@ AC_CANONICAL_HOST
# Construct a Nix system name (like "i686-linux").
AC_MSG_CHECKING([for the canonical Nix system name])
machine_name=`uname -m`
sys_name=`uname -s | tr [A-Z] [a-z]`
system="${machine_name}-${sys_name}"
#machine_name=`uname -m`
#sys_name=`uname -s | tr [A-Z] [a-z]`
#system="${machine_name}-${sys_name}"
AC_ARG_WITH(system, AC_HELP_STRING([--with-system=SYSTEM],
[platform identifier (e.g., `i686-linux')]),
system=$withval, system="$host_cpu-$host_os")
AC_MSG_RESULT($system)
AC_SUBST(system)
AC_DEFINE_UNQUOTED(SYSTEM, ["$system"], [platform identifier (`cpu-os')])