1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Configuration validation subroutine script. |
2 | # Configuration validation subroutine script. |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
4 | # 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
5 | |
5 | |
6 | timestamp='2005-04-22' |
6 | timestamp='2006-02-23' |
7 | |
7 | |
8 | # This file is (in principle) common to ALL GNU software. |
8 | # This file is (in principle) common to ALL GNU software. |
9 | # The presence of a machine in this file suggests that SOME GNU software |
9 | # The presence of a machine in this file suggests that SOME GNU software |
10 | # can handle that machine. It does not imply ALL GNU software can. |
10 | # can handle that machine. It does not imply ALL GNU software can. |
11 | # |
11 | # |
… | |
… | |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | # GNU General Public License for more details. |
20 | # GNU General Public License for more details. |
21 | # |
21 | # |
22 | # You should have received a copy of the GNU General Public License |
22 | # You should have received a copy of the GNU General Public License |
23 | # along with this program; if not, write to the Free Software |
23 | # along with this program; if not, write to the Free Software |
24 | # Foundation, Inc., 59 Temple Place - Suite 330, |
24 | # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA |
25 | # Boston, MA 02111-1307, USA. |
25 | # 02110-1301, USA. |
26 | |
26 | # |
27 | # As a special exception to the GNU General Public License, if you |
27 | # As a special exception to the GNU General Public License, if you |
28 | # distribute this file as part of a program that contains a |
28 | # distribute this file as part of a program that contains a |
29 | # configuration script generated by Autoconf, you may include it under |
29 | # configuration script generated by Autoconf, you may include it under |
30 | # the same distribution terms that you use for the rest of that program. |
30 | # the same distribution terms that you use for the rest of that program. |
|
|
31 | |
31 | |
32 | |
32 | # Please send patches to <config-patches@gnu.org>. Submit a context |
33 | # Please send patches to <config-patches@gnu.org>. Submit a context |
33 | # diff and a properly formatted ChangeLog entry. |
34 | # diff and a properly formatted ChangeLog entry. |
34 | # |
35 | # |
35 | # Configuration subroutine to validate and canonicalize a configuration type. |
36 | # Configuration subroutine to validate and canonicalize a configuration type. |
… | |
… | |
81 | |
82 | |
82 | # Parse command line |
83 | # Parse command line |
83 | while test $# -gt 0 ; do |
84 | while test $# -gt 0 ; do |
84 | case $1 in |
85 | case $1 in |
85 | --time-stamp | --time* | -t ) |
86 | --time-stamp | --time* | -t ) |
86 | echo "$timestamp" ; exit 0 ;; |
87 | echo "$timestamp" ; exit ;; |
87 | --version | -v ) |
88 | --version | -v ) |
88 | echo "$version" ; exit 0 ;; |
89 | echo "$version" ; exit ;; |
89 | --help | --h* | -h ) |
90 | --help | --h* | -h ) |
90 | echo "$usage"; exit 0 ;; |
91 | echo "$usage"; exit ;; |
91 | -- ) # Stop option processing |
92 | -- ) # Stop option processing |
92 | shift; break ;; |
93 | shift; break ;; |
93 | - ) # Use stdin as input. |
94 | - ) # Use stdin as input. |
94 | break ;; |
95 | break ;; |
95 | -* ) |
96 | -* ) |
… | |
… | |
97 | exit 1 ;; |
98 | exit 1 ;; |
98 | |
99 | |
99 | *local*) |
100 | *local*) |
100 | # First pass through any local machine types. |
101 | # First pass through any local machine types. |
101 | echo $1 |
102 | echo $1 |
102 | exit 0;; |
103 | exit ;; |
103 | |
104 | |
104 | * ) |
105 | * ) |
105 | break ;; |
106 | break ;; |
106 | esac |
107 | esac |
107 | done |
108 | done |
… | |
… | |
116 | |
117 | |
117 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
118 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
118 | # Here we must recognize all the valid KERNEL-OS combinations. |
119 | # Here we must recognize all the valid KERNEL-OS combinations. |
119 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
120 | case $maybe_os in |
121 | case $maybe_os in |
121 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ |
122 | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
122 | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) |
123 | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
|
|
124 | storm-chaos* | os2-emx* | rtmk-nova*) |
123 | os=-$maybe_os |
125 | os=-$maybe_os |
124 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
126 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
125 | ;; |
127 | ;; |
126 | *) |
128 | *) |
127 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
129 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
… | |
… | |
168 | basic_machine=$1 |
170 | basic_machine=$1 |
169 | ;; |
171 | ;; |
170 | -hiux*) |
172 | -hiux*) |
171 | os=-hiuxwe2 |
173 | os=-hiuxwe2 |
172 | ;; |
174 | ;; |
|
|
175 | -sco6) |
|
|
176 | os=-sco5v6 |
|
|
177 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
|
|
178 | ;; |
173 | -sco5) |
179 | -sco5) |
174 | os=-sco3.2v5 |
180 | os=-sco3.2v5 |
175 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
181 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
176 | ;; |
182 | ;; |
177 | -sco4) |
183 | -sco4) |
… | |
… | |
181 | -sco3.2.[4-9]*) |
187 | -sco3.2.[4-9]*) |
182 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
188 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
183 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
189 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
184 | ;; |
190 | ;; |
185 | -sco3.2v[4-9]*) |
191 | -sco3.2v[4-9]*) |
|
|
192 | # Don't forget version if it is 3.2v4 or newer. |
|
|
193 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
|
|
194 | ;; |
|
|
195 | -sco5v6*) |
186 | # Don't forget version if it is 3.2v4 or newer. |
196 | # Don't forget version if it is 3.2v4 or newer. |
187 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
197 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
188 | ;; |
198 | ;; |
189 | -sco*) |
199 | -sco*) |
190 | os=-sco3.2v2 |
200 | os=-sco3.2v2 |
… | |
… | |
236 | | d10v | d30v | dlx | dsp16xx \ |
246 | | d10v | d30v | dlx | dsp16xx \ |
237 | | fr30 | frv \ |
247 | | fr30 | frv \ |
238 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
248 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
239 | | i370 | i860 | i960 | ia64 \ |
249 | | i370 | i860 | i960 | ia64 \ |
240 | | ip2k | iq2000 \ |
250 | | ip2k | iq2000 \ |
241 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ |
251 | | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ |
242 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
252 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
243 | | mips16 \ |
253 | | mips16 \ |
244 | | mips64 | mips64el \ |
254 | | mips64 | mips64el \ |
245 | | mips64vr | mips64vrel \ |
255 | | mips64vr | mips64vrel \ |
246 | | mips64orion | mips64orionel \ |
256 | | mips64orion | mips64orionel \ |
247 | | mips64vr4100 | mips64vr4100el \ |
257 | | mips64vr4100 | mips64vr4100el \ |
248 | | mips64vr4300 | mips64vr4300el \ |
258 | | mips64vr4300 | mips64vr4300el \ |
249 | | mips64vr5000 | mips64vr5000el \ |
259 | | mips64vr5000 | mips64vr5000el \ |
|
|
260 | | mips64vr5900 | mips64vr5900el \ |
250 | | mipsisa32 | mipsisa32el \ |
261 | | mipsisa32 | mipsisa32el \ |
251 | | mipsisa32r2 | mipsisa32r2el \ |
262 | | mipsisa32r2 | mipsisa32r2el \ |
252 | | mipsisa64 | mipsisa64el \ |
263 | | mipsisa64 | mipsisa64el \ |
253 | | mipsisa64r2 | mipsisa64r2el \ |
264 | | mipsisa64r2 | mipsisa64r2el \ |
254 | | mipsisa64sb1 | mipsisa64sb1el \ |
265 | | mipsisa64sb1 | mipsisa64sb1el \ |
255 | | mipsisa64sr71k | mipsisa64sr71kel \ |
266 | | mipsisa64sr71k | mipsisa64sr71kel \ |
256 | | mipstx39 | mipstx39el \ |
267 | | mipstx39 | mipstx39el \ |
257 | | mn10200 | mn10300 \ |
268 | | mn10200 | mn10300 \ |
|
|
269 | | mt \ |
258 | | msp430 \ |
270 | | msp430 \ |
|
|
271 | | nios | nios2 \ |
259 | | ns16k | ns32k \ |
272 | | ns16k | ns32k \ |
260 | | openrisc | or32 \ |
273 | | or32 \ |
261 | | pdp10 | pdp11 | pj | pjl \ |
274 | | pdp10 | pdp11 | pj | pjl \ |
262 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
275 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
263 | | pyramid \ |
276 | | pyramid \ |
264 | | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
277 | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ |
265 | | sh64 | sh64le \ |
278 | | sh64 | sh64le \ |
266 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
279 | | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ |
267 | | sparcv8 | sparcv9 | sparcv9b \ |
280 | | sparcv8 | sparcv9 | sparcv9b \ |
268 | | strongarm \ |
281 | | strongarm \ |
269 | | tahoe | thumb | tic4x | tic80 | tron \ |
282 | | tahoe | thumb | tic4x | tic80 | tron \ |
… | |
… | |
271 | | we32k \ |
284 | | we32k \ |
272 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
285 | | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ |
273 | | z8k) |
286 | | z8k) |
274 | basic_machine=$basic_machine-unknown |
287 | basic_machine=$basic_machine-unknown |
275 | ;; |
288 | ;; |
|
|
289 | m32c) |
|
|
290 | basic_machine=$basic_machine-unknown |
|
|
291 | ;; |
276 | m6811 | m68hc11 | m6812 | m68hc12) |
292 | m6811 | m68hc11 | m6812 | m68hc12) |
277 | # Motorola 68HC11/12. |
293 | # Motorola 68HC11/12. |
278 | basic_machine=$basic_machine-unknown |
294 | basic_machine=$basic_machine-unknown |
279 | os=-none |
295 | os=-none |
280 | ;; |
296 | ;; |
281 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
297 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) |
|
|
298 | ;; |
|
|
299 | ms1) |
|
|
300 | basic_machine=mt-unknown |
282 | ;; |
301 | ;; |
283 | |
302 | |
284 | # We use `pc' rather than `unknown' |
303 | # We use `pc' rather than `unknown' |
285 | # because (1) that's what they normally are, and |
304 | # because (1) that's what they normally are, and |
286 | # (2) the word "unknown" tends to confuse beginning users. |
305 | # (2) the word "unknown" tends to confuse beginning users. |
… | |
… | |
319 | | mips64vr-* | mips64vrel-* \ |
338 | | mips64vr-* | mips64vrel-* \ |
320 | | mips64orion-* | mips64orionel-* \ |
339 | | mips64orion-* | mips64orionel-* \ |
321 | | mips64vr4100-* | mips64vr4100el-* \ |
340 | | mips64vr4100-* | mips64vr4100el-* \ |
322 | | mips64vr4300-* | mips64vr4300el-* \ |
341 | | mips64vr4300-* | mips64vr4300el-* \ |
323 | | mips64vr5000-* | mips64vr5000el-* \ |
342 | | mips64vr5000-* | mips64vr5000el-* \ |
|
|
343 | | mips64vr5900-* | mips64vr5900el-* \ |
324 | | mipsisa32-* | mipsisa32el-* \ |
344 | | mipsisa32-* | mipsisa32el-* \ |
325 | | mipsisa32r2-* | mipsisa32r2el-* \ |
345 | | mipsisa32r2-* | mipsisa32r2el-* \ |
326 | | mipsisa64-* | mipsisa64el-* \ |
346 | | mipsisa64-* | mipsisa64el-* \ |
327 | | mipsisa64r2-* | mipsisa64r2el-* \ |
347 | | mipsisa64r2-* | mipsisa64r2el-* \ |
328 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
348 | | mipsisa64sb1-* | mipsisa64sb1el-* \ |
329 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
349 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ |
330 | | mipstx39-* | mipstx39el-* \ |
350 | | mipstx39-* | mipstx39el-* \ |
331 | | mmix-* \ |
351 | | mmix-* \ |
|
|
352 | | mt-* \ |
332 | | msp430-* \ |
353 | | msp430-* \ |
|
|
354 | | nios-* | nios2-* \ |
333 | | none-* | np1-* | ns16k-* | ns32k-* \ |
355 | | none-* | np1-* | ns16k-* | ns32k-* \ |
334 | | orion-* \ |
356 | | orion-* \ |
335 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
357 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
336 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
358 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
337 | | pyramid-* \ |
359 | | pyramid-* \ |
338 | | romp-* | rs6000-* \ |
360 | | romp-* | rs6000-* \ |
339 | | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
361 | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ |
340 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
362 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
341 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
363 | | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ |
342 | | sparclite-* \ |
364 | | sparclite-* \ |
343 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
365 | | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ |
344 | | tahoe-* | thumb-* \ |
366 | | tahoe-* | thumb-* \ |
… | |
… | |
349 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
371 | | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ |
350 | | xstormy16-* | xtensa-* \ |
372 | | xstormy16-* | xtensa-* \ |
351 | | ymp-* \ |
373 | | ymp-* \ |
352 | | z8k-*) |
374 | | z8k-*) |
353 | ;; |
375 | ;; |
|
|
376 | m32c-*) |
|
|
377 | ;; |
354 | # Recognize the various machine names and aliases which stand |
378 | # Recognize the various machine names and aliases which stand |
355 | # for a CPU type and a company and sometimes even an OS. |
379 | # for a CPU type and a company and sometimes even an OS. |
356 | 386bsd) |
380 | 386bsd) |
357 | basic_machine=i386-unknown |
381 | basic_machine=i386-unknown |
358 | os=-bsd |
382 | os=-bsd |
… | |
… | |
683 | os=-morphos |
707 | os=-morphos |
684 | ;; |
708 | ;; |
685 | msdos) |
709 | msdos) |
686 | basic_machine=i386-pc |
710 | basic_machine=i386-pc |
687 | os=-msdos |
711 | os=-msdos |
|
|
712 | ;; |
|
|
713 | ms1-*) |
|
|
714 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` |
688 | ;; |
715 | ;; |
689 | mvs) |
716 | mvs) |
690 | basic_machine=i370-ibm |
717 | basic_machine=i370-ibm |
691 | os=-mvs |
718 | os=-mvs |
692 | ;; |
719 | ;; |
… | |
… | |
759 | ;; |
786 | ;; |
760 | op50n-* | op60c-*) |
787 | op50n-* | op60c-*) |
761 | basic_machine=hppa1.1-oki |
788 | basic_machine=hppa1.1-oki |
762 | os=-proelf |
789 | os=-proelf |
763 | ;; |
790 | ;; |
764 | or32 | or32-*) |
791 | openrisc | openrisc-*) |
765 | basic_machine=or32-unknown |
792 | basic_machine=or32-unknown |
766 | os=-coff |
|
|
767 | ;; |
793 | ;; |
768 | os400) |
794 | os400) |
769 | basic_machine=powerpc-ibm |
795 | basic_machine=powerpc-ibm |
770 | os=-os400 |
796 | os=-os400 |
771 | ;; |
797 | ;; |
… | |
… | |
792 | basic_machine=m68k-tti |
818 | basic_machine=m68k-tti |
793 | ;; |
819 | ;; |
794 | pc532 | pc532-*) |
820 | pc532 | pc532-*) |
795 | basic_machine=ns32k-pc532 |
821 | basic_machine=ns32k-pc532 |
796 | ;; |
822 | ;; |
|
|
823 | pc98) |
|
|
824 | basic_machine=i386-pc |
|
|
825 | ;; |
|
|
826 | pc98-*) |
|
|
827 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` |
|
|
828 | ;; |
797 | pentium | p5 | k5 | k6 | nexgen | viac3) |
829 | pentium | p5 | k5 | k6 | nexgen | viac3) |
798 | basic_machine=i586-pc |
830 | basic_machine=i586-pc |
799 | ;; |
831 | ;; |
800 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
832 | pentiumpro | p6 | 6x86 | athlon | athlon_*) |
801 | basic_machine=i686-pc |
833 | basic_machine=i686-pc |
… | |
… | |
847 | basic_machine=i386-ibm |
879 | basic_machine=i386-ibm |
848 | ;; |
880 | ;; |
849 | pw32) |
881 | pw32) |
850 | basic_machine=i586-unknown |
882 | basic_machine=i586-unknown |
851 | os=-pw32 |
883 | os=-pw32 |
|
|
884 | ;; |
|
|
885 | rdos) |
|
|
886 | basic_machine=i386-pc |
|
|
887 | os=-rdos |
852 | ;; |
888 | ;; |
853 | rom68k) |
889 | rom68k) |
854 | basic_machine=m68k-rom68k |
890 | basic_machine=m68k-rom68k |
855 | os=-coff |
891 | os=-coff |
856 | ;; |
892 | ;; |
… | |
… | |
1087 | basic_machine=pdp11-dec |
1123 | basic_machine=pdp11-dec |
1088 | ;; |
1124 | ;; |
1089 | we32k) |
1125 | we32k) |
1090 | basic_machine=we32k-att |
1126 | basic_machine=we32k-att |
1091 | ;; |
1127 | ;; |
1092 | sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) |
1128 | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
1093 | basic_machine=sh-unknown |
1129 | basic_machine=sh-unknown |
1094 | ;; |
|
|
1095 | sh64) |
|
|
1096 | basic_machine=sh64-unknown |
|
|
1097 | ;; |
1130 | ;; |
1098 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1131 | sparc | sparcv8 | sparcv9 | sparcv9b) |
1099 | basic_machine=sparc-sun |
1132 | basic_machine=sparc-sun |
1100 | ;; |
1133 | ;; |
1101 | cydra) |
1134 | cydra) |
… | |
… | |
1166 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1199 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
1167 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1200 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1168 | | -aos* \ |
1201 | | -aos* \ |
1169 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1202 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1170 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1203 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1171 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ |
1204 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
|
|
1205 | | -openbsd* | -solidbsd* \ |
1172 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1206 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1173 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1207 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1174 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1208 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1175 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1209 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1176 | | -chorusos* | -chorusrdb* \ |
1210 | | -chorusos* | -chorusrdb* \ |
1177 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1211 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1178 | | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ |
1212 | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
|
|
1213 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1179 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1214 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1180 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1215 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1181 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1216 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1182 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1217 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1183 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1218 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1184 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) |
1219 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
|
|
1220 | | -skyos* | -haiku* | -rdos*) |
1185 | # Remember, each alternative MUST END IN *, to match a version number. |
1221 | # Remember, each alternative MUST END IN *, to match a version number. |
1186 | ;; |
1222 | ;; |
1187 | -qnx*) |
1223 | -qnx*) |
1188 | case $basic_machine in |
1224 | case $basic_machine in |
1189 | x86-* | i*86-*) |
1225 | x86-* | i*86-*) |
… | |
… | |
1197 | ;; |
1233 | ;; |
1198 | -nto*) |
1234 | -nto*) |
1199 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1235 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1200 | ;; |
1236 | ;; |
1201 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1237 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
1202 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ |
1238 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ |
1203 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1239 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1204 | ;; |
1240 | ;; |
1205 | -mac*) |
1241 | -mac*) |
1206 | os=`echo $os | sed -e 's|mac|macos|'` |
1242 | os=`echo $os | sed -e 's|mac|macos|'` |
1207 | ;; |
1243 | ;; |
… | |
… | |
1385 | sparc-* | *-sun) |
1421 | sparc-* | *-sun) |
1386 | os=-sunos4.1.1 |
1422 | os=-sunos4.1.1 |
1387 | ;; |
1423 | ;; |
1388 | *-be) |
1424 | *-be) |
1389 | os=-beos |
1425 | os=-beos |
|
|
1426 | ;; |
|
|
1427 | *-haiku) |
|
|
1428 | os=-haiku |
1390 | ;; |
1429 | ;; |
1391 | *-ibm) |
1430 | *-ibm) |
1392 | os=-aix |
1431 | os=-aix |
1393 | ;; |
1432 | ;; |
1394 | *-knuth) |
1433 | *-knuth) |
… | |
… | |
1557 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1596 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` |
1558 | ;; |
1597 | ;; |
1559 | esac |
1598 | esac |
1560 | |
1599 | |
1561 | echo $basic_machine$os |
1600 | echo $basic_machine$os |
1562 | exit 0 |
1601 | exit |
1563 | |
1602 | |
1564 | # Local variables: |
1603 | # Local variables: |
1565 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1604 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
1566 | # time-stamp-start: "timestamp='" |
1605 | # time-stamp-start: "timestamp='" |
1567 | # time-stamp-format: "%:y-%02m-%02d" |
1606 | # time-stamp-format: "%:y-%02m-%02d" |