Author: tausq
Date: 2000-04-08 20:09:22 GMT
Um, that was wrong.. this one should work
ld_help_string=`ld --help 2>&1`
if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then
echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0
- if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf64_ia64"; then
+ elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf64_ia64"; then
echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0
elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then
echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0