summaryrefslogtreecommitdiff
path: root/gcc/config.guess
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-06-05 04:12:46 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-06-05 04:12:46 +0000
commit82aaf094905586431ea5c8ef7f54d54f1d4f139c (patch)
tree9d9267e49f2eb38f1aab1c5b2f19eaee572a60ee /gcc/config.guess
parent6b56be8fa0a3fcc2f02167a91bbcbd4e3f3a4b02 (diff)
downloadgcc-82aaf094905586431ea5c8ef7f54d54f1d4f139c.tar.gz
* config.guess: Combine mips-mips-riscos cases, and use cpp to
distinguish sysv/svr4/bsd variants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.guess')
-rwxr-xr-xgcc/config.guess26
1 files changed, 21 insertions, 5 deletions
diff --git a/gcc/config.guess b/gcc/config.guess
index e7254760df0..b9105a94c9f 100755
--- a/gcc/config.guess
+++ b/gcc/config.guess
@@ -116,11 +116,27 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
VAX*:ULTRIX*:*:*)
echo vax-dec-ultrix${UNAME_RELEASE}
exit 0 ;;
- mips:*:4*:UMIPS)
- echo mips-mips-riscos4sysv
- exit 0 ;;
- mips:*:5*:RISCos)
- echo mips-mips-riscos${UNAME_RELEASE}
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ sed 's/^ //' << EOF >dummy.c
+ int main (argc, argv) int argc; char **argv; {
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ ${CC-cc} dummy.c -o dummy && ./dummy "${UNAME_RELEASE}" \
+ && rm dummy.c dummy && exit 0
+ rm -f dummy.c dummy
+ echo mips-mips-riscos{UNAME_RELEASE}
exit 0 ;;
Night_Hawk:Power_UNIX:*:*)
echo powerpc-harris-powerunix