comparison config.guess @ 2216:352d35ff1c82

[xemacs-hg @ 2004-08-13 20:55:31 by adrian] A small patch to config.guess to detect the PlayStation2 <16667.42748.6448.605562@jin.myrkraverk.com>
author adrian
date Fri, 13 Aug 2004 20:55:31 +0000
parents c33ae14dd6d0
children 3580ae2ce979
comparison
equal deleted inserted replaced
2215:5b25cf17bd61 2216:352d35ff1c82
1 #! /bin/sh 1 #! /bin/sh
2 # Attempt to guess a canonical system name. 2 # Attempt to guess a canonical system name.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4 # Free Software Foundation, Inc. 4 # Free Software Foundation, Inc.
5 5
6 timestamp='2001-01-17' 6 timestamp='2004-08-12'
7 7
8 # This file is free software; you can redistribute it and/or modify it 8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by 9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or 10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version. 11 # (at your option) any later version.
916 #endif 916 #endif
917 #ifdef __MIPSEB__ 917 #ifdef __MIPSEB__
918 printf ("%s-unknown-linux-gnu\n", argv[1]); 918 printf ("%s-unknown-linux-gnu\n", argv[1]);
919 #endif 919 #endif
920 #ifdef __MIPSEL__ 920 #ifdef __MIPSEL__
921 #ifdef __R5900
922 /* Little Endian R5900 running Linux,
923 this *must* be Sony PlayStation 2 */
924 printf ("%sel-PlayStation2-linux-gnu\n", argv[1]);
925 #else
921 printf ("%sel-unknown-linux-gnu\n", argv[1]); 926 printf ("%sel-unknown-linux-gnu\n", argv[1]);
927 #endif
922 #endif 928 #endif
923 return 0; 929 return 0;
924 } 930 }
925 EOF 931 EOF
926 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0 932 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0