Added code for cygwin.

This commit is contained in:
Janet B. Anderson
2004-04-26 21:49:42 +00:00
parent 068613e447
commit eb40c4e79b
2 changed files with 16 additions and 1 deletions

View File

@@ -72,7 +72,21 @@ case $sysname in
echo ${os}-${cpu}${suffix}
;;
* )
echo unsupported
sysname=`uname -o`
case $sysname in
Cygwin )
os=win32
cpu=`uname -m`
case $cpu in i386 | i486 | i586 | i686 )
cpu=x86
;;
esac
echo ${os}-${cpu}${suffix}
;;
* )
echo unsupported
;;
esac
;;
esac

View File

@@ -29,6 +29,7 @@ sub GetEpicsHostArch { # no args
} elsif ($arch =~ m/sun4-sunos/) { return "sun4-68k";
} elsif ($arch =~ m/i[3-6]86-linux/) { return "linux-x86";
} elsif ($arch =~ m/MSWin32-x86/) { return "win32-x86";
} elsif ($arch =~ m/cygwin/) { return "win32-x86";
} elsif ($arch =~ m/PA-RISC1.1/) { return "hpux-parisc";
} elsif ($arch =~ m/darwin/) { return "darwin-ppc";
} else { return "unsupported"; }