New upstream version 2.5.9+ds1
Norbert Preining
3 years ago
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
635 | 635 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
636 | 636 | || chmod -R a+r "$(distdir)" |
637 | 637 | dist-gzip: distdir |
638 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
638 | tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz | |
639 | 639 | $(am__post_remove_distdir) |
640 | 640 | |
641 | 641 | dist-bzip2: distdir |
661 | 661 | @echo WARNING: "Support for shar distribution archives is" \ |
662 | 662 | "deprecated." >&2 |
663 | 663 | @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 |
664 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
664 | shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz | |
665 | 665 | $(am__post_remove_distdir) |
666 | 666 | |
667 | 667 | dist-zip: distdir |
679 | 679 | distcheck: dist |
680 | 680 | case '$(DIST_ARCHIVES)' in \ |
681 | 681 | *.tar.gz*) \ |
682 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
682 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\ | |
683 | 683 | *.tar.bz2*) \ |
684 | 684 | bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ |
685 | 685 | *.tar.lz*) \ |
689 | 689 | *.tar.Z*) \ |
690 | 690 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
691 | 691 | *.shar.gz*) \ |
692 | GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ | |
692 | eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ | |
693 | 693 | *.zip*) \ |
694 | 694 | unzip $(distdir).zip ;;\ |
695 | 695 | esac |
0 | 2019-03-18 | |
1 | Version 2.5.9 | |
2 | Updated Unicode character names and normalization data to 12.0.0 | |
3 | Various improvements for testing, compiling, and documentation. | |
4 | ||
0 | 5 | 2018-06-18 |
1 | 6 | Version 2.5.8 |
2 | 7 | Updated Unicode character names and normalization data to 11.0.0 |
6 | 6 | See the Documentation folder for information on the TECkit mapping language |
7 | 7 | and conversion tool usage notes. |
8 | 8 | |
9 | The TECkit libraries have been updated to support the Unicode 11.0.0 character | |
9 | The TECkit libraries have been updated to support the Unicode 12.0.0 character | |
10 | 10 | repertoire. |
11 | 11 | |
12 | 12 | Starting with TECkit version 2.5.7 there are several changes with the Windows |
312 | 312 | long fileSize = ftell(mapFile); |
313 | 313 | fseek(mapFile, 0, SEEK_SET); |
314 | 314 | |
315 | unsigned char* buf = (unsigned char*)malloc(fileSize); | |
315 | unsigned char* buf = static_cast<unsigned char*>(malloc(fileSize)); | |
316 | 316 | if (buf == 0) { |
317 | 317 | fprintf(stderr, "unable to read mapping file for %s (file %s)\n", mappingName.c_str(), mapFileName.c_str()); |
318 | 318 | exit(1); |
356 | 356 | size_t len = fread(buf, 1, sizeof(buf), ctlFile); |
357 | 357 | done = len < sizeof(buf); |
358 | 358 | if (!XML_Parse(parser, buf, len, done)) { |
359 | fprintf(stderr, "XML parse error: %s at line %lu\n", XML_ErrorString(XML_GetErrorCode(parser)), (unsigned long)XML_GetCurrentLineNumber(parser)); | |
359 | fprintf(stderr, "XML parse error: %s at line %lu\n", XML_ErrorString(XML_GetErrorCode(parser)), static_cast<unsigned long>(XML_GetCurrentLineNumber(parser))); | |
360 | 360 | status = 1; |
361 | 361 | } |
362 | 362 | } while (!status && !done); |
453 | 453 | while (1) { |
454 | 454 | UInt32 sourceUsed, destUsed, destUsed2; |
455 | 455 | status = TECkit_ConvertBuffer(converter, |
456 | (Byte*)marker.data(), | |
456 | reinterpret_cast<const Byte*>(marker.data()), | |
457 | 457 | marker.size() * 2, |
458 | 458 | &sourceUsed, |
459 | (Byte*)cnvMarker.data(), | |
459 | const_cast<Byte*>(reinterpret_cast<const Byte*>(cnvMarker.data())), | |
460 | 460 | cnvMarker.size(), |
461 | 461 | &destUsed, |
462 | 462 | true); |
465 | 465 | continue; |
466 | 466 | } |
467 | 467 | status = TECkit_Flush(converter, |
468 | (Byte*)cnvMarker.data() + destUsed, | |
468 | const_cast<Byte*>(reinterpret_cast<const Byte*>(cnvMarker.data()) + destUsed), | |
469 | 469 | cnvMarker.size() - destUsed, |
470 | 470 | &destUsed2); |
471 | 471 | if (status == kStatus_OutputBufferFull) { |
490 | 490 | UInt32 sourceUsed, destUsed, destUsed2; |
491 | 491 | |
492 | 492 | status = TECkit_ConvertBuffer(converter, |
493 | (Byte*)&inChar, | |
493 | reinterpret_cast<const Byte*>(&inChar), | |
494 | 494 | 2, |
495 | 495 | &sourceUsed, |
496 | 496 | &buf[0], |
587 | 587 | map<string,string>::const_iterator i; |
588 | 588 | switch (dataType) { |
589 | 589 | case BODY_TEXT: |
590 | write_converted((Byte*)reader.text.data(), reader.text.length(), converterStack.back(), outFile); | |
590 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length(), converterStack.back(), outFile); | |
591 | 591 | break; |
592 | 592 | |
593 | 593 | case SFM: |
597 | 597 | else |
598 | 598 | converterStack.assign(1, converters[i->second]); |
599 | 599 | reader.text.insert(reader.text.begin(), reader.escapeChar); |
600 | write_converted((Byte*)reader.text.data(), reader.text.length(), sfmConverter, outFile); | |
600 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length(), sfmConverter, outFile); | |
601 | 601 | break; |
602 | 602 | |
603 | 603 | case INLINE_MARKER: |
607 | 607 | else |
608 | 608 | converterStack.assign(1, converters[i->second]); |
609 | 609 | reader.text.insert(reader.text.begin(), reader.escapeChar); |
610 | write_converted((Byte*)reader.text.data(), reader.text.length(), inlineConverter, outFile); | |
610 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length(), inlineConverter, outFile); | |
611 | 611 | break; |
612 | 612 | |
613 | 613 | case INLINE_START: |
618 | 618 | converterStack.push_back(converters[i->second]); |
619 | 619 | reader.text.insert(reader.text.begin(), reader.inlineEscapeChar); |
620 | 620 | reader.text.insert(reader.text.end(), reader.startInline); |
621 | write_converted((Byte*)reader.text.data(), reader.text.length(), inlineConverter, outFile); | |
621 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length(), inlineConverter, outFile); | |
622 | 622 | break; |
623 | 623 | |
624 | 624 | case INLINE_END: |
625 | 625 | reader.text.insert(reader.text.end(), reader.endInline); |
626 | write_converted((Byte*)reader.text.data(), reader.text.length(), inlineConverter, outFile); | |
626 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length(), inlineConverter, outFile); | |
627 | 627 | converterStack.pop_back(); |
628 | 628 | break; |
629 | 629 | } |
680 | 680 | static string cnvMarker; |
681 | 681 | switch (dataType) { |
682 | 682 | case BODY_TEXT: |
683 | write_converted((Byte*)reader.text.data(), reader.text.length() * 2, converterStack.back(), outFile); | |
683 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length() * 2, converterStack.back(), outFile); | |
684 | 684 | break; |
685 | 685 | |
686 | 686 | case SFM: |
691 | 691 | else |
692 | 692 | converterStack.assign(1, converters[i->second]); |
693 | 693 | reader.text.insert(reader.text.begin(), reader.escapeChar); |
694 | write_converted((Byte*)reader.text.data(), reader.text.length() * 2, sfmConverter, outFile); | |
694 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length() * 2, sfmConverter, outFile); | |
695 | 695 | break; |
696 | 696 | |
697 | 697 | case INLINE_MARKER: |
702 | 702 | else |
703 | 703 | converterStack.assign(1, converters[i->second]); |
704 | 704 | reader.text.insert(reader.text.begin(), reader.inlineEscapeChar); |
705 | write_converted((Byte*)reader.text.data(), reader.text.length() * 2, inlineConverter, outFile); | |
705 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length() * 2, inlineConverter, outFile); | |
706 | 706 | break; |
707 | 707 | |
708 | 708 | case INLINE_START: |
714 | 714 | converterStack.push_back(converters[i->second]); |
715 | 715 | reader.text.insert(reader.text.begin(), reader.inlineEscapeChar); |
716 | 716 | reader.text.insert(reader.text.end(), reader.startInline); |
717 | write_converted((Byte*)reader.text.data(), reader.text.length() * 2, inlineConverter, outFile); | |
717 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length() * 2, inlineConverter, outFile); | |
718 | 718 | break; |
719 | 719 | |
720 | 720 | case INLINE_END: |
721 | 721 | reader.text.insert(reader.text.end(), reader.endInline); |
722 | write_converted((Byte*)reader.text.data(), reader.text.length() * 2, inlineConverter, outFile); | |
722 | write_converted(reinterpret_cast<const Byte*>(reader.text.data()), reader.text.length() * 2, inlineConverter, outFile); | |
723 | 723 | converterStack.pop_back(); |
724 | 724 | break; |
725 | 725 | } |
8 | 8 | #define INLINE_START 2 |
9 | 9 | #define INLINE_END 3 |
10 | 10 | #define INLINE_MARKER 4 |
11 | #define UNI_REPLACEMENT_CHAR (uint32_t)0x0000FFFD | |
12 | #define UNI_MAX_BMP (uint32_t)0x0000FFFF | |
13 | #define UNI_MAX_UTF16 (uint32_t)0x0010FFFF | |
11 | #define UNI_REPLACEMENT_CHAR uint32_t(0x0000FFFD) | |
12 | #define UNI_MAX_BMP uint32_t(0x0000FFFF) | |
13 | #define UNI_MAX_UTF16 uint32_t(0x0010FFFF) | |
14 | 14 | |
15 | 15 | template<class C> |
16 | 16 | class sfReader |
0 | #ifndef __ushort_chartraits_h__ | |
1 | #define __ushort_chartraits_h__ | |
0 | #pragma once | |
2 | 1 | |
3 | 2 | #include <iostream> |
4 | 3 | #include <string> |
51 | 50 | { |
52 | 51 | const char_type* __p = __s; |
53 | 52 | while (*__p) ++__p; |
54 | return (__p - __s); | |
53 | return static_cast<size_t>(__p - __s); | |
55 | 54 | } |
56 | 55 | |
57 | 56 | static const char_type* |
64 | 63 | |
65 | 64 | static char_type* |
66 | 65 | move(char_type* __s1, const char_type* __s2, size_t __n) |
67 | { return (char_type*) memmove(__s1, __s2, __n * sizeof(char_type)); } | |
66 | { return static_cast<char_type*>(memmove(__s1, __s2, __n * sizeof(char_type))); } | |
68 | 67 | |
69 | 68 | static char_type* |
70 | 69 | copy(char_type* __s1, const char_type* __s2, size_t __n) |
71 | { return (char_type*) memcpy(__s1, __s2, __n * sizeof(char_type)); } | |
70 | { return static_cast<char_type*>(memcpy(__s1, __s2, __n * sizeof(char_type))); } | |
72 | 71 | |
73 | 72 | static char_type* |
74 | 73 | assign(char_type* __s, size_t __n, char_type __a) |
90 | 89 | { return __c1 == __c2; } |
91 | 90 | |
92 | 91 | static int_type |
93 | eof() { return static_cast<int_type>(-1); } | |
92 | eof() { return int_type(-1); } | |
94 | 93 | |
95 | 94 | static int_type |
96 | 95 | not_eof(const int_type& __c) |
97 | 96 | { return eq_int_type(__c, eof()) ? int_type(0) : __c; } |
98 | 97 | }; |
99 | 98 | } |
100 | ||
101 | #endif |
0 | # generated automatically by aclocal 1.15 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
0 | # generated automatically by aclocal 1.15.1 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
3 | 3 | |
4 | 4 | # This file is free software; the Free Software Foundation |
5 | 5 | # gives unlimited permission to copy and/or distribute it, |
19 | 19 | If you have problems, you may need to regenerate the build system entirely. |
20 | 20 | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
21 | 21 | |
22 | # Copyright (C) 2002-2014 Free Software Foundation, Inc. | |
22 | # Copyright (C) 2002-2017 Free Software Foundation, Inc. | |
23 | 23 | # |
24 | 24 | # This file is free software; the Free Software Foundation |
25 | 25 | # gives unlimited permission to copy and/or distribute it, |
34 | 34 | [am__api_version='1.15' |
35 | 35 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
36 | 36 | dnl require some minimum version. Point them to the right macro. |
37 | m4_if([$1], [1.15], [], | |
37 | m4_if([$1], [1.15.1], [], | |
38 | 38 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
39 | 39 | ]) |
40 | 40 | |
50 | 50 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
51 | 51 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
52 | 52 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
53 | [AM_AUTOMAKE_VERSION([1.15])dnl | |
53 | [AM_AUTOMAKE_VERSION([1.15.1])dnl | |
54 | 54 | m4_ifndef([AC_AUTOCONF_VERSION], |
55 | 55 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
56 | 56 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
57 | 57 | |
58 | 58 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
59 | 59 | |
60 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
60 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
61 | 61 | # |
62 | 62 | # This file is free software; the Free Software Foundation |
63 | 63 | # gives unlimited permission to copy and/or distribute it, |
109 | 109 | |
110 | 110 | # AM_CONDITIONAL -*- Autoconf -*- |
111 | 111 | |
112 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
112 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. | |
113 | 113 | # |
114 | 114 | # This file is free software; the Free Software Foundation |
115 | 115 | # gives unlimited permission to copy and/or distribute it, |
140 | 140 | Usually this means the macro was only invoked conditionally.]]) |
141 | 141 | fi])]) |
142 | 142 | |
143 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
143 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
144 | 144 | # |
145 | 145 | # This file is free software; the Free Software Foundation |
146 | 146 | # gives unlimited permission to copy and/or distribute it, |
331 | 331 | |
332 | 332 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
333 | 333 | |
334 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
334 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
335 | 335 | # |
336 | 336 | # This file is free software; the Free Software Foundation |
337 | 337 | # gives unlimited permission to copy and/or distribute it, |
407 | 407 | |
408 | 408 | # Do all the work for Automake. -*- Autoconf -*- |
409 | 409 | |
410 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
410 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
411 | 411 | # |
412 | 412 | # This file is free software; the Free Software Foundation |
413 | 413 | # gives unlimited permission to copy and/or distribute it, |
604 | 604 | done |
605 | 605 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
606 | 606 | |
607 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
607 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
608 | 608 | # |
609 | 609 | # This file is free software; the Free Software Foundation |
610 | 610 | # gives unlimited permission to copy and/or distribute it, |
625 | 625 | fi |
626 | 626 | AC_SUBST([install_sh])]) |
627 | 627 | |
628 | # Copyright (C) 2003-2014 Free Software Foundation, Inc. | |
628 | # Copyright (C) 2003-2017 Free Software Foundation, Inc. | |
629 | 629 | # |
630 | 630 | # This file is free software; the Free Software Foundation |
631 | 631 | # gives unlimited permission to copy and/or distribute it, |
647 | 647 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
648 | 648 | # From Jim Meyering |
649 | 649 | |
650 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
650 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
651 | 651 | # |
652 | 652 | # This file is free software; the Free Software Foundation |
653 | 653 | # gives unlimited permission to copy and/or distribute it, |
682 | 682 | |
683 | 683 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
684 | 684 | |
685 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
685 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
686 | 686 | # |
687 | 687 | # This file is free software; the Free Software Foundation |
688 | 688 | # gives unlimited permission to copy and/or distribute it, |
732 | 732 | |
733 | 733 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
734 | 734 | |
735 | # Copyright (C) 1997-2014 Free Software Foundation, Inc. | |
735 | # Copyright (C) 1997-2017 Free Software Foundation, Inc. | |
736 | 736 | # |
737 | 737 | # This file is free software; the Free Software Foundation |
738 | 738 | # gives unlimited permission to copy and/or distribute it, |
773 | 773 | # Obsolete and "removed" macros, that must however still report explicit |
774 | 774 | # error messages when used, to smooth transition. |
775 | 775 | # |
776 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
776 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
777 | 777 | # |
778 | 778 | # This file is free software; the Free Software Foundation |
779 | 779 | # gives unlimited permission to copy and/or distribute it, |
800 | 800 | |
801 | 801 | # Helper functions for option handling. -*- Autoconf -*- |
802 | 802 | |
803 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
803 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
804 | 804 | # |
805 | 805 | # This file is free software; the Free Software Foundation |
806 | 806 | # gives unlimited permission to copy and/or distribute it, |
829 | 829 | AC_DEFUN([_AM_IF_OPTION], |
830 | 830 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
831 | 831 | |
832 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
832 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
833 | 833 | # |
834 | 834 | # This file is free software; the Free Software Foundation |
835 | 835 | # gives unlimited permission to copy and/or distribute it, |
876 | 876 | # For backward compatibility. |
877 | 877 | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
878 | 878 | |
879 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
879 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
880 | 880 | # |
881 | 881 | # This file is free software; the Free Software Foundation |
882 | 882 | # gives unlimited permission to copy and/or distribute it, |
895 | 895 | |
896 | 896 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
897 | 897 | |
898 | # Copyright (C) 1996-2014 Free Software Foundation, Inc. | |
898 | # Copyright (C) 1996-2017 Free Software Foundation, Inc. | |
899 | 899 | # |
900 | 900 | # This file is free software; the Free Software Foundation |
901 | 901 | # gives unlimited permission to copy and/or distribute it, |
976 | 976 | rm -f conftest.file |
977 | 977 | ]) |
978 | 978 | |
979 | # Copyright (C) 2009-2014 Free Software Foundation, Inc. | |
979 | # Copyright (C) 2009-2017 Free Software Foundation, Inc. | |
980 | 980 | # |
981 | 981 | # This file is free software; the Free Software Foundation |
982 | 982 | # gives unlimited permission to copy and/or distribute it, |
1036 | 1036 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1037 | 1037 | ]) |
1038 | 1038 | |
1039 | # Copyright (C) 2001-2014 Free Software Foundation, Inc. | |
1039 | # Copyright (C) 2001-2017 Free Software Foundation, Inc. | |
1040 | 1040 | # |
1041 | 1041 | # This file is free software; the Free Software Foundation |
1042 | 1042 | # gives unlimited permission to copy and/or distribute it, |
1064 | 1064 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1065 | 1065 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1066 | 1066 | |
1067 | # Copyright (C) 2006-2014 Free Software Foundation, Inc. | |
1067 | # Copyright (C) 2006-2017 Free Software Foundation, Inc. | |
1068 | 1068 | # |
1069 | 1069 | # This file is free software; the Free Software Foundation |
1070 | 1070 | # gives unlimited permission to copy and/or distribute it, |
1083 | 1083 | |
1084 | 1084 | # Check how to create a tarball. -*- Autoconf -*- |
1085 | 1085 | |
1086 | # Copyright (C) 2004-2014 Free Software Foundation, Inc. | |
1086 | # Copyright (C) 2004-2017 Free Software Foundation, Inc. | |
1087 | 1087 | # |
1088 | 1088 | # This file is free software; the Free Software Foundation |
1089 | 1089 | # gives unlimited permission to copy and/or distribute it, |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | # Copyright 1992-2015 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2015-08-20' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-24' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
26 | 26 | # Originally written by Per Bothner; maintained since 2000 by Ben Elliston. |
27 | 27 | # |
28 | 28 | # You can get the latest version of this script from: |
29 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
29 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
30 | 30 | # |
31 | 31 | # Please send patches to <config-patches@gnu.org>. |
32 | 32 | |
38 | 38 | |
39 | 39 | Output the configuration name of the system \`$me' is run on. |
40 | 40 | |
41 | Operation modes: | |
41 | Options: | |
42 | 42 | -h, --help print this help, then exit |
43 | 43 | -t, --time-stamp print date of last modification, then exit |
44 | 44 | -v, --version print version number, then exit |
49 | 49 | GNU config.guess ($timestamp) |
50 | 50 | |
51 | 51 | Originally written by Per Bothner. |
52 | Copyright 1992-2015 Free Software Foundation, Inc. | |
52 | Copyright 1992-2018 Free Software Foundation, Inc. | |
53 | 53 | |
54 | 54 | This is free software; see the source for copying conditions. There is NO |
55 | 55 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
106 | 106 | dummy=$tmp/dummy ; |
107 | 107 | tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; |
108 | 108 | case $CC_FOR_BUILD,$HOST_CC,$CC in |
109 | ,,) echo "int x;" > $dummy.c ; | |
109 | ,,) echo "int x;" > "$dummy.c" ; | |
110 | 110 | for c in cc gcc c89 c99 ; do |
111 | if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then | |
111 | if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | |
112 | 112 | CC_FOR_BUILD="$c"; break ; |
113 | 113 | fi ; |
114 | 114 | done ; |
131 | 131 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
132 | 132 | UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
133 | 133 | |
134 | case "${UNAME_SYSTEM}" in | |
134 | case "$UNAME_SYSTEM" in | |
135 | 135 | Linux|GNU|GNU/*) |
136 | 136 | # If the system lacks a compiler, then just pick glibc. |
137 | 137 | # We could probably try harder. |
138 | 138 | LIBC=gnu |
139 | 139 | |
140 | eval $set_cc_for_build | |
141 | cat <<-EOF > $dummy.c | |
140 | eval "$set_cc_for_build" | |
141 | cat <<-EOF > "$dummy.c" | |
142 | 142 | #include <features.h> |
143 | 143 | #if defined(__UCLIBC__) |
144 | 144 | LIBC=uclibc |
148 | 148 | LIBC=gnu |
149 | 149 | #endif |
150 | 150 | EOF |
151 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | |
151 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" | |
152 | ||
153 | # If ldd exists, use it to detect musl libc. | |
154 | if command -v ldd >/dev/null && \ | |
155 | ldd --version 2>&1 | grep -q ^musl | |
156 | then | |
157 | LIBC=musl | |
158 | fi | |
152 | 159 | ;; |
153 | 160 | esac |
154 | 161 | |
155 | 162 | # Note: order is significant - the case branches are not exclusive. |
156 | 163 | |
157 | case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | |
164 | case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in | |
158 | 165 | *:NetBSD:*:*) |
159 | 166 | # NetBSD (nbsd) targets should (where applicable) match one or |
160 | 167 | # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, |
168 | 175 | # portion of the name. We always set it to "unknown". |
169 | 176 | sysctl="sysctl -n hw.machine_arch" |
170 | 177 | UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ |
171 | /sbin/$sysctl 2>/dev/null || \ | |
172 | /usr/sbin/$sysctl 2>/dev/null || \ | |
178 | "/sbin/$sysctl" 2>/dev/null || \ | |
179 | "/usr/sbin/$sysctl" 2>/dev/null || \ | |
173 | 180 | echo unknown)` |
174 | case "${UNAME_MACHINE_ARCH}" in | |
181 | case "$UNAME_MACHINE_ARCH" in | |
175 | 182 | armeb) machine=armeb-unknown ;; |
176 | 183 | arm*) machine=arm-unknown ;; |
177 | 184 | sh3el) machine=shl-unknown ;; |
178 | 185 | sh3eb) machine=sh-unknown ;; |
179 | 186 | sh5el) machine=sh5le-unknown ;; |
180 | 187 | earmv*) |
181 | arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
182 | endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` | |
183 | machine=${arch}${endian}-unknown | |
188 | arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` | |
189 | endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` | |
190 | machine="${arch}${endian}"-unknown | |
184 | 191 | ;; |
185 | *) machine=${UNAME_MACHINE_ARCH}-unknown ;; | |
192 | *) machine="$UNAME_MACHINE_ARCH"-unknown ;; | |
186 | 193 | esac |
187 | 194 | # The Operating System including object format, if it has switched |
188 | # to ELF recently, or will in the future. | |
189 | case "${UNAME_MACHINE_ARCH}" in | |
190 | arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
191 | eval $set_cc_for_build | |
195 | # to ELF recently (or will in the future) and ABI. | |
196 | case "$UNAME_MACHINE_ARCH" in | |
197 | earm*) | |
198 | os=netbsdelf | |
199 | ;; | |
200 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) | |
201 | eval "$set_cc_for_build" | |
192 | 202 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
193 | 203 | | grep -q __ELF__ |
194 | 204 | then |
204 | 214 | ;; |
205 | 215 | esac |
206 | 216 | # Determine ABI tags. |
207 | case "${UNAME_MACHINE_ARCH}" in | |
217 | case "$UNAME_MACHINE_ARCH" in | |
208 | 218 | earm*) |
209 | 219 | expr='s/^earmv[0-9]/-eabi/;s/eb$//' |
210 | abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` | |
220 | abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` | |
211 | 221 | ;; |
212 | 222 | esac |
213 | 223 | # The OS release |
215 | 225 | # thus, need a distinct triplet. However, they do not need |
216 | 226 | # kernel version information, so it can be replaced with a |
217 | 227 | # suitable tag, in the style of linux-gnu. |
218 | case "${UNAME_VERSION}" in | |
228 | case "$UNAME_VERSION" in | |
219 | 229 | Debian*) |
220 | 230 | release='-gnu' |
221 | 231 | ;; |
222 | 232 | *) |
223 | release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
233 | release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` | |
224 | 234 | ;; |
225 | 235 | esac |
226 | 236 | # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: |
227 | 237 | # contains redundant information, the shorter form: |
228 | 238 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
229 | echo "${machine}-${os}${release}${abi}" | |
239 | echo "$machine-${os}${release}${abi}" | |
230 | 240 | exit ;; |
231 | 241 | *:Bitrig:*:*) |
232 | 242 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` |
233 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
243 | echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" | |
234 | 244 | exit ;; |
235 | 245 | *:OpenBSD:*:*) |
236 | 246 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
237 | echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} | |
247 | echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" | |
248 | exit ;; | |
249 | *:LibertyBSD:*:*) | |
250 | UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` | |
251 | echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" | |
252 | exit ;; | |
253 | *:MidnightBSD:*:*) | |
254 | echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" | |
238 | 255 | exit ;; |
239 | 256 | *:ekkoBSD:*:*) |
240 | echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} | |
257 | echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" | |
241 | 258 | exit ;; |
242 | 259 | *:SolidBSD:*:*) |
243 | echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} | |
260 | echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" | |
244 | 261 | exit ;; |
245 | 262 | macppc:MirBSD:*:*) |
246 | echo powerpc-unknown-mirbsd${UNAME_RELEASE} | |
263 | echo powerpc-unknown-mirbsd"$UNAME_RELEASE" | |
247 | 264 | exit ;; |
248 | 265 | *:MirBSD:*:*) |
249 | echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} | |
266 | echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" | |
250 | 267 | exit ;; |
251 | 268 | *:Sortix:*:*) |
252 | echo ${UNAME_MACHINE}-unknown-sortix | |
253 | exit ;; | |
269 | echo "$UNAME_MACHINE"-unknown-sortix | |
270 | exit ;; | |
271 | *:Redox:*:*) | |
272 | echo "$UNAME_MACHINE"-unknown-redox | |
273 | exit ;; | |
274 | mips:OSF1:*.*) | |
275 | echo mips-dec-osf1 | |
276 | exit ;; | |
254 | 277 | alpha:OSF1:*:*) |
255 | 278 | case $UNAME_RELEASE in |
256 | 279 | *4.0) |
267 | 290 | ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` |
268 | 291 | case "$ALPHA_CPU_TYPE" in |
269 | 292 | "EV4 (21064)") |
270 | UNAME_MACHINE="alpha" ;; | |
293 | UNAME_MACHINE=alpha ;; | |
271 | 294 | "EV4.5 (21064)") |
272 | UNAME_MACHINE="alpha" ;; | |
295 | UNAME_MACHINE=alpha ;; | |
273 | 296 | "LCA4 (21066/21068)") |
274 | UNAME_MACHINE="alpha" ;; | |
297 | UNAME_MACHINE=alpha ;; | |
275 | 298 | "EV5 (21164)") |
276 | UNAME_MACHINE="alphaev5" ;; | |
299 | UNAME_MACHINE=alphaev5 ;; | |
277 | 300 | "EV5.6 (21164A)") |
278 | UNAME_MACHINE="alphaev56" ;; | |
301 | UNAME_MACHINE=alphaev56 ;; | |
279 | 302 | "EV5.6 (21164PC)") |
280 | UNAME_MACHINE="alphapca56" ;; | |
303 | UNAME_MACHINE=alphapca56 ;; | |
281 | 304 | "EV5.7 (21164PC)") |
282 | UNAME_MACHINE="alphapca57" ;; | |
305 | UNAME_MACHINE=alphapca57 ;; | |
283 | 306 | "EV6 (21264)") |
284 | UNAME_MACHINE="alphaev6" ;; | |
307 | UNAME_MACHINE=alphaev6 ;; | |
285 | 308 | "EV6.7 (21264A)") |
286 | UNAME_MACHINE="alphaev67" ;; | |
309 | UNAME_MACHINE=alphaev67 ;; | |
287 | 310 | "EV6.8CB (21264C)") |
288 | UNAME_MACHINE="alphaev68" ;; | |
311 | UNAME_MACHINE=alphaev68 ;; | |
289 | 312 | "EV6.8AL (21264B)") |
290 | UNAME_MACHINE="alphaev68" ;; | |
313 | UNAME_MACHINE=alphaev68 ;; | |
291 | 314 | "EV6.8CX (21264D)") |
292 | UNAME_MACHINE="alphaev68" ;; | |
315 | UNAME_MACHINE=alphaev68 ;; | |
293 | 316 | "EV6.9A (21264/EV69A)") |
294 | UNAME_MACHINE="alphaev69" ;; | |
317 | UNAME_MACHINE=alphaev69 ;; | |
295 | 318 | "EV7 (21364)") |
296 | UNAME_MACHINE="alphaev7" ;; | |
319 | UNAME_MACHINE=alphaev7 ;; | |
297 | 320 | "EV7.9 (21364A)") |
298 | UNAME_MACHINE="alphaev79" ;; | |
321 | UNAME_MACHINE=alphaev79 ;; | |
299 | 322 | esac |
300 | 323 | # A Pn.n version is a patched version. |
301 | 324 | # A Vn.n version is a released version. |
302 | 325 | # A Tn.n version is a released field test version. |
303 | 326 | # A Xn.n version is an unreleased experimental baselevel. |
304 | 327 | # 1.2 uses "1.2" for uname -r. |
305 | echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
328 | echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" | |
306 | 329 | # Reset EXIT trap before exiting to avoid spurious non-zero exit code. |
307 | 330 | exitcode=$? |
308 | 331 | trap '' 0 |
309 | 332 | exit $exitcode ;; |
310 | Alpha\ *:Windows_NT*:*) | |
311 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
312 | # Should we change UNAME_MACHINE based on the output of uname instead | |
313 | # of the specific Alpha model? | |
314 | echo alpha-pc-interix | |
315 | exit ;; | |
316 | 21064:Windows_NT:50:3) | |
317 | echo alpha-dec-winnt3.5 | |
318 | exit ;; | |
319 | 333 | Amiga*:UNIX_System_V:4.0:*) |
320 | 334 | echo m68k-unknown-sysv4 |
321 | 335 | exit ;; |
322 | 336 | *:[Aa]miga[Oo][Ss]:*:*) |
323 | echo ${UNAME_MACHINE}-unknown-amigaos | |
337 | echo "$UNAME_MACHINE"-unknown-amigaos | |
324 | 338 | exit ;; |
325 | 339 | *:[Mm]orph[Oo][Ss]:*:*) |
326 | echo ${UNAME_MACHINE}-unknown-morphos | |
340 | echo "$UNAME_MACHINE"-unknown-morphos | |
327 | 341 | exit ;; |
328 | 342 | *:OS/390:*:*) |
329 | 343 | echo i370-ibm-openedition |
335 | 349 | echo powerpc-ibm-os400 |
336 | 350 | exit ;; |
337 | 351 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
338 | echo arm-acorn-riscix${UNAME_RELEASE} | |
352 | echo arm-acorn-riscix"$UNAME_RELEASE" | |
339 | 353 | exit ;; |
340 | 354 | arm*:riscos:*:*|arm*:RISCOS:*:*) |
341 | 355 | echo arm-unknown-riscos |
362 | 376 | sparc) echo sparc-icl-nx7; exit ;; |
363 | 377 | esac ;; |
364 | 378 | s390x:SunOS:*:*) |
365 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
379 | echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
366 | 380 | exit ;; |
367 | 381 | sun4H:SunOS:5.*:*) |
368 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
382 | echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
369 | 383 | exit ;; |
370 | 384 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
371 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
385 | echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" | |
372 | 386 | exit ;; |
373 | 387 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
374 | echo i386-pc-auroraux${UNAME_RELEASE} | |
388 | echo i386-pc-auroraux"$UNAME_RELEASE" | |
375 | 389 | exit ;; |
376 | 390 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
377 | eval $set_cc_for_build | |
378 | SUN_ARCH="i386" | |
391 | eval "$set_cc_for_build" | |
392 | SUN_ARCH=i386 | |
379 | 393 | # If there is a compiler, see if it is configured for 64-bit objects. |
380 | 394 | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. |
381 | 395 | # This test works for both compilers. |
382 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
396 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
383 | 397 | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ |
384 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
398 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
385 | 399 | grep IS_64BIT_ARCH >/dev/null |
386 | 400 | then |
387 | SUN_ARCH="x86_64" | |
401 | SUN_ARCH=x86_64 | |
388 | 402 | fi |
389 | 403 | fi |
390 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
404 | echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
391 | 405 | exit ;; |
392 | 406 | sun4*:SunOS:6*:*) |
393 | 407 | # According to config.sub, this is the proper way to canonicalize |
394 | 408 | # SunOS6. Hard to guess exactly what SunOS6 will be like, but |
395 | 409 | # it's likely to be more like Solaris than SunOS4. |
396 | echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
410 | echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
397 | 411 | exit ;; |
398 | 412 | sun4*:SunOS:*:*) |
399 | 413 | case "`/usr/bin/arch -k`" in |
402 | 416 | ;; |
403 | 417 | esac |
404 | 418 | # Japanese Language versions have a version number like `4.1.3-JL'. |
405 | echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` | |
419 | echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" | |
406 | 420 | exit ;; |
407 | 421 | sun3*:SunOS:*:*) |
408 | echo m68k-sun-sunos${UNAME_RELEASE} | |
422 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
409 | 423 | exit ;; |
410 | 424 | sun*:*:4.2BSD:*) |
411 | 425 | UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` |
412 | test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 | |
426 | test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 | |
413 | 427 | case "`/bin/arch`" in |
414 | 428 | sun3) |
415 | echo m68k-sun-sunos${UNAME_RELEASE} | |
429 | echo m68k-sun-sunos"$UNAME_RELEASE" | |
416 | 430 | ;; |
417 | 431 | sun4) |
418 | echo sparc-sun-sunos${UNAME_RELEASE} | |
432 | echo sparc-sun-sunos"$UNAME_RELEASE" | |
419 | 433 | ;; |
420 | 434 | esac |
421 | 435 | exit ;; |
422 | 436 | aushp:SunOS:*:*) |
423 | echo sparc-auspex-sunos${UNAME_RELEASE} | |
437 | echo sparc-auspex-sunos"$UNAME_RELEASE" | |
424 | 438 | exit ;; |
425 | 439 | # The situation for MiNT is a little confusing. The machine name |
426 | 440 | # can be virtually everything (everything which is not |
431 | 445 | # MiNT. But MiNT is downward compatible to TOS, so this should |
432 | 446 | # be no problem. |
433 | 447 | atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) |
434 | echo m68k-atari-mint${UNAME_RELEASE} | |
448 | echo m68k-atari-mint"$UNAME_RELEASE" | |
435 | 449 | exit ;; |
436 | 450 | atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) |
437 | echo m68k-atari-mint${UNAME_RELEASE} | |
451 | echo m68k-atari-mint"$UNAME_RELEASE" | |
438 | 452 | exit ;; |
439 | 453 | *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) |
440 | echo m68k-atari-mint${UNAME_RELEASE} | |
454 | echo m68k-atari-mint"$UNAME_RELEASE" | |
441 | 455 | exit ;; |
442 | 456 | milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) |
443 | echo m68k-milan-mint${UNAME_RELEASE} | |
457 | echo m68k-milan-mint"$UNAME_RELEASE" | |
444 | 458 | exit ;; |
445 | 459 | hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) |
446 | echo m68k-hades-mint${UNAME_RELEASE} | |
460 | echo m68k-hades-mint"$UNAME_RELEASE" | |
447 | 461 | exit ;; |
448 | 462 | *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) |
449 | echo m68k-unknown-mint${UNAME_RELEASE} | |
463 | echo m68k-unknown-mint"$UNAME_RELEASE" | |
450 | 464 | exit ;; |
451 | 465 | m68k:machten:*:*) |
452 | echo m68k-apple-machten${UNAME_RELEASE} | |
466 | echo m68k-apple-machten"$UNAME_RELEASE" | |
453 | 467 | exit ;; |
454 | 468 | powerpc:machten:*:*) |
455 | echo powerpc-apple-machten${UNAME_RELEASE} | |
469 | echo powerpc-apple-machten"$UNAME_RELEASE" | |
456 | 470 | exit ;; |
457 | 471 | RISC*:Mach:*:*) |
458 | 472 | echo mips-dec-mach_bsd4.3 |
459 | 473 | exit ;; |
460 | 474 | RISC*:ULTRIX:*:*) |
461 | echo mips-dec-ultrix${UNAME_RELEASE} | |
475 | echo mips-dec-ultrix"$UNAME_RELEASE" | |
462 | 476 | exit ;; |
463 | 477 | VAX*:ULTRIX*:*:*) |
464 | echo vax-dec-ultrix${UNAME_RELEASE} | |
478 | echo vax-dec-ultrix"$UNAME_RELEASE" | |
465 | 479 | exit ;; |
466 | 480 | 2020:CLIX:*:* | 2430:CLIX:*:*) |
467 | echo clipper-intergraph-clix${UNAME_RELEASE} | |
481 | echo clipper-intergraph-clix"$UNAME_RELEASE" | |
468 | 482 | exit ;; |
469 | 483 | mips:*:*:UMIPS | mips:*:*:RISCos) |
470 | eval $set_cc_for_build | |
471 | sed 's/^ //' << EOF >$dummy.c | |
484 | eval "$set_cc_for_build" | |
485 | sed 's/^ //' << EOF > "$dummy.c" | |
472 | 486 | #ifdef __cplusplus |
473 | 487 | #include <stdio.h> /* for printf() prototype */ |
474 | 488 | int main (int argc, char *argv[]) { |
477 | 491 | #endif |
478 | 492 | #if defined (host_mips) && defined (MIPSEB) |
479 | 493 | #if defined (SYSTYPE_SYSV) |
480 | printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); | |
494 | printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); | |
481 | 495 | #endif |
482 | 496 | #if defined (SYSTYPE_SVR4) |
483 | printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); | |
497 | printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); | |
484 | 498 | #endif |
485 | 499 | #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) |
486 | printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); | |
500 | printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); | |
487 | 501 | #endif |
488 | 502 | #endif |
489 | 503 | exit (-1); |
490 | 504 | } |
491 | 505 | EOF |
492 | $CC_FOR_BUILD -o $dummy $dummy.c && | |
493 | dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
494 | SYSTEM_NAME=`$dummy $dummyarg` && | |
506 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && | |
507 | dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && | |
508 | SYSTEM_NAME=`"$dummy" "$dummyarg"` && | |
495 | 509 | { echo "$SYSTEM_NAME"; exit; } |
496 | echo mips-mips-riscos${UNAME_RELEASE} | |
510 | echo mips-mips-riscos"$UNAME_RELEASE" | |
497 | 511 | exit ;; |
498 | 512 | Motorola:PowerMAX_OS:*:*) |
499 | 513 | echo powerpc-motorola-powermax |
519 | 533 | AViiON:dgux:*:*) |
520 | 534 | # DG/UX returns AViiON for all architectures |
521 | 535 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
522 | if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] | |
536 | if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] | |
523 | 537 | then |
524 | if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ | |
525 | [ ${TARGET_BINARY_INTERFACE}x = x ] | |
538 | if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ | |
539 | [ "$TARGET_BINARY_INTERFACE"x = x ] | |
526 | 540 | then |
527 | echo m88k-dg-dgux${UNAME_RELEASE} | |
541 | echo m88k-dg-dgux"$UNAME_RELEASE" | |
528 | 542 | else |
529 | echo m88k-dg-dguxbcs${UNAME_RELEASE} | |
543 | echo m88k-dg-dguxbcs"$UNAME_RELEASE" | |
530 | 544 | fi |
531 | 545 | else |
532 | echo i586-dg-dgux${UNAME_RELEASE} | |
546 | echo i586-dg-dgux"$UNAME_RELEASE" | |
533 | 547 | fi |
534 | 548 | exit ;; |
535 | 549 | M88*:DolphinOS:*:*) # DolphinOS (SVR3) |
546 | 560 | echo m68k-tektronix-bsd |
547 | 561 | exit ;; |
548 | 562 | *:IRIX*:*:*) |
549 | echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` | |
563 | echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" | |
550 | 564 | exit ;; |
551 | 565 | ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. |
552 | 566 | echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id |
558 | 572 | if [ -x /usr/bin/oslevel ] ; then |
559 | 573 | IBM_REV=`/usr/bin/oslevel` |
560 | 574 | else |
561 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
562 | fi | |
563 | echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} | |
575 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
576 | fi | |
577 | echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" | |
564 | 578 | exit ;; |
565 | 579 | *:AIX:2:3) |
566 | 580 | if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then |
567 | eval $set_cc_for_build | |
568 | sed 's/^ //' << EOF >$dummy.c | |
581 | eval "$set_cc_for_build" | |
582 | sed 's/^ //' << EOF > "$dummy.c" | |
569 | 583 | #include <sys/systemcfg.h> |
570 | 584 | |
571 | 585 | main() |
576 | 590 | exit(0); |
577 | 591 | } |
578 | 592 | EOF |
579 | if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` | |
593 | if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` | |
580 | 594 | then |
581 | 595 | echo "$SYSTEM_NAME" |
582 | 596 | else |
590 | 604 | exit ;; |
591 | 605 | *:AIX:*:[4567]) |
592 | 606 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
593 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then | |
607 | if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then | |
594 | 608 | IBM_ARCH=rs6000 |
595 | 609 | else |
596 | 610 | IBM_ARCH=powerpc |
599 | 613 | IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | |
600 | 614 | awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` |
601 | 615 | else |
602 | IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} | |
603 | fi | |
604 | echo ${IBM_ARCH}-ibm-aix${IBM_REV} | |
616 | IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" | |
617 | fi | |
618 | echo "$IBM_ARCH"-ibm-aix"$IBM_REV" | |
605 | 619 | exit ;; |
606 | 620 | *:AIX:*:*) |
607 | 621 | echo rs6000-ibm-aix |
608 | 622 | exit ;; |
609 | ibmrt:4.4BSD:*|romp-ibm:BSD:*) | |
623 | ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) | |
610 | 624 | echo romp-ibm-bsd4.4 |
611 | 625 | exit ;; |
612 | 626 | ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and |
613 | echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to | |
627 | echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to | |
614 | 628 | exit ;; # report: romp-ibm BSD 4.3 |
615 | 629 | *:BOSX:*:*) |
616 | 630 | echo rs6000-bull-bosx |
625 | 639 | echo m68k-hp-bsd4.4 |
626 | 640 | exit ;; |
627 | 641 | 9000/[34678]??:HP-UX:*:*) |
628 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
629 | case "${UNAME_MACHINE}" in | |
630 | 9000/31? ) HP_ARCH=m68000 ;; | |
631 | 9000/[34]?? ) HP_ARCH=m68k ;; | |
642 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
643 | case "$UNAME_MACHINE" in | |
644 | 9000/31?) HP_ARCH=m68000 ;; | |
645 | 9000/[34]??) HP_ARCH=m68k ;; | |
632 | 646 | 9000/[678][0-9][0-9]) |
633 | 647 | if [ -x /usr/bin/getconf ]; then |
634 | 648 | sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` |
635 | 649 | sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` |
636 | case "${sc_cpu_version}" in | |
637 | 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 | |
638 | 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 | |
650 | case "$sc_cpu_version" in | |
651 | 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 | |
652 | 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 | |
639 | 653 | 532) # CPU_PA_RISC2_0 |
640 | case "${sc_kernel_bits}" in | |
641 | 32) HP_ARCH="hppa2.0n" ;; | |
642 | 64) HP_ARCH="hppa2.0w" ;; | |
643 | '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 | |
654 | case "$sc_kernel_bits" in | |
655 | 32) HP_ARCH=hppa2.0n ;; | |
656 | 64) HP_ARCH=hppa2.0w ;; | |
657 | '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 | |
644 | 658 | esac ;; |
645 | 659 | esac |
646 | 660 | fi |
647 | if [ "${HP_ARCH}" = "" ]; then | |
648 | eval $set_cc_for_build | |
649 | sed 's/^ //' << EOF >$dummy.c | |
661 | if [ "$HP_ARCH" = "" ]; then | |
662 | eval "$set_cc_for_build" | |
663 | sed 's/^ //' << EOF > "$dummy.c" | |
650 | 664 | |
651 | 665 | #define _HPUX_SOURCE |
652 | 666 | #include <stdlib.h> |
679 | 693 | exit (0); |
680 | 694 | } |
681 | 695 | EOF |
682 | (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` | |
696 | (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` | |
683 | 697 | test -z "$HP_ARCH" && HP_ARCH=hppa |
684 | 698 | fi ;; |
685 | 699 | esac |
686 | if [ ${HP_ARCH} = "hppa2.0w" ] | |
700 | if [ "$HP_ARCH" = hppa2.0w ] | |
687 | 701 | then |
688 | eval $set_cc_for_build | |
702 | eval "$set_cc_for_build" | |
689 | 703 | |
690 | 704 | # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating |
691 | 705 | # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler |
696 | 710 | # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess |
697 | 711 | # => hppa64-hp-hpux11.23 |
698 | 712 | |
699 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | | |
713 | if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | | |
700 | 714 | grep -q __LP64__ |
701 | 715 | then |
702 | HP_ARCH="hppa2.0w" | |
716 | HP_ARCH=hppa2.0w | |
703 | 717 | else |
704 | HP_ARCH="hppa64" | |
718 | HP_ARCH=hppa64 | |
705 | 719 | fi |
706 | 720 | fi |
707 | echo ${HP_ARCH}-hp-hpux${HPUX_REV} | |
721 | echo "$HP_ARCH"-hp-hpux"$HPUX_REV" | |
708 | 722 | exit ;; |
709 | 723 | ia64:HP-UX:*:*) |
710 | HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` | |
711 | echo ia64-hp-hpux${HPUX_REV} | |
724 | HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` | |
725 | echo ia64-hp-hpux"$HPUX_REV" | |
712 | 726 | exit ;; |
713 | 727 | 3050*:HI-UX:*:*) |
714 | eval $set_cc_for_build | |
715 | sed 's/^ //' << EOF >$dummy.c | |
728 | eval "$set_cc_for_build" | |
729 | sed 's/^ //' << EOF > "$dummy.c" | |
716 | 730 | #include <unistd.h> |
717 | 731 | int |
718 | 732 | main () |
737 | 751 | exit (0); |
738 | 752 | } |
739 | 753 | EOF |
740 | $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && | |
754 | $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && | |
741 | 755 | { echo "$SYSTEM_NAME"; exit; } |
742 | 756 | echo unknown-hitachi-hiuxwe2 |
743 | 757 | exit ;; |
744 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) | |
758 | 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) | |
745 | 759 | echo hppa1.1-hp-bsd |
746 | 760 | exit ;; |
747 | 761 | 9000/8??:4.3bsd:*:*) |
750 | 764 | *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) |
751 | 765 | echo hppa1.0-hp-mpeix |
752 | 766 | exit ;; |
753 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) | |
767 | hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) | |
754 | 768 | echo hppa1.1-hp-osf |
755 | 769 | exit ;; |
756 | 770 | hp8??:OSF1:*:*) |
758 | 772 | exit ;; |
759 | 773 | i*86:OSF1:*:*) |
760 | 774 | if [ -x /usr/sbin/sysversion ] ; then |
761 | echo ${UNAME_MACHINE}-unknown-osf1mk | |
775 | echo "$UNAME_MACHINE"-unknown-osf1mk | |
762 | 776 | else |
763 | echo ${UNAME_MACHINE}-unknown-osf1 | |
777 | echo "$UNAME_MACHINE"-unknown-osf1 | |
764 | 778 | fi |
765 | 779 | exit ;; |
766 | 780 | parisc*:Lites*:*:*) |
785 | 799 | echo c4-convex-bsd |
786 | 800 | exit ;; |
787 | 801 | CRAY*Y-MP:*:*:*) |
788 | echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
802 | echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
789 | 803 | exit ;; |
790 | 804 | CRAY*[A-Z]90:*:*:*) |
791 | echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | |
805 | echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ | |
792 | 806 | | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ |
793 | 807 | -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ |
794 | 808 | -e 's/\.[^.]*$/.X/' |
795 | 809 | exit ;; |
796 | 810 | CRAY*TS:*:*:*) |
797 | echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
811 | echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
798 | 812 | exit ;; |
799 | 813 | CRAY*T3E:*:*:*) |
800 | echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
814 | echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
801 | 815 | exit ;; |
802 | 816 | CRAY*SV1:*:*:*) |
803 | echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
817 | echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
804 | 818 | exit ;; |
805 | 819 | *:UNICOS/mp:*:*) |
806 | echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' | |
820 | echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' | |
807 | 821 | exit ;; |
808 | 822 | F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) |
809 | FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` | |
810 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
811 | FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` | |
823 | FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` | |
824 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
825 | FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` | |
812 | 826 | echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
813 | 827 | exit ;; |
814 | 828 | 5000:UNIX_System_V:4.*:*) |
815 | FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` | |
816 | FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` | |
829 | FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` | |
830 | FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` | |
817 | 831 | echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" |
818 | 832 | exit ;; |
819 | 833 | i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) |
820 | echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} | |
834 | echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" | |
821 | 835 | exit ;; |
822 | 836 | sparc*:BSD/OS:*:*) |
823 | echo sparc-unknown-bsdi${UNAME_RELEASE} | |
837 | echo sparc-unknown-bsdi"$UNAME_RELEASE" | |
824 | 838 | exit ;; |
825 | 839 | *:BSD/OS:*:*) |
826 | echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} | |
840 | echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" | |
827 | 841 | exit ;; |
828 | 842 | *:FreeBSD:*:*) |
829 | 843 | UNAME_PROCESSOR=`/usr/bin/uname -p` |
830 | case ${UNAME_PROCESSOR} in | |
844 | case "$UNAME_PROCESSOR" in | |
831 | 845 | amd64) |
832 | echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
833 | *) | |
834 | echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; | |
846 | UNAME_PROCESSOR=x86_64 ;; | |
847 | i386) | |
848 | UNAME_PROCESSOR=i586 ;; | |
835 | 849 | esac |
850 | echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
836 | 851 | exit ;; |
837 | 852 | i*:CYGWIN*:*) |
838 | echo ${UNAME_MACHINE}-pc-cygwin | |
853 | echo "$UNAME_MACHINE"-pc-cygwin | |
839 | 854 | exit ;; |
840 | 855 | *:MINGW64*:*) |
841 | echo ${UNAME_MACHINE}-pc-mingw64 | |
856 | echo "$UNAME_MACHINE"-pc-mingw64 | |
842 | 857 | exit ;; |
843 | 858 | *:MINGW*:*) |
844 | echo ${UNAME_MACHINE}-pc-mingw32 | |
859 | echo "$UNAME_MACHINE"-pc-mingw32 | |
845 | 860 | exit ;; |
846 | 861 | *:MSYS*:*) |
847 | echo ${UNAME_MACHINE}-pc-msys | |
848 | exit ;; | |
849 | i*:windows32*:*) | |
850 | # uname -m includes "-pc" on this system. | |
851 | echo ${UNAME_MACHINE}-mingw32 | |
862 | echo "$UNAME_MACHINE"-pc-msys | |
852 | 863 | exit ;; |
853 | 864 | i*:PW*:*) |
854 | echo ${UNAME_MACHINE}-pc-pw32 | |
865 | echo "$UNAME_MACHINE"-pc-pw32 | |
855 | 866 | exit ;; |
856 | 867 | *:Interix*:*) |
857 | case ${UNAME_MACHINE} in | |
868 | case "$UNAME_MACHINE" in | |
858 | 869 | x86) |
859 | echo i586-pc-interix${UNAME_RELEASE} | |
870 | echo i586-pc-interix"$UNAME_RELEASE" | |
860 | 871 | exit ;; |
861 | 872 | authenticamd | genuineintel | EM64T) |
862 | echo x86_64-unknown-interix${UNAME_RELEASE} | |
873 | echo x86_64-unknown-interix"$UNAME_RELEASE" | |
863 | 874 | exit ;; |
864 | 875 | IA64) |
865 | echo ia64-unknown-interix${UNAME_RELEASE} | |
876 | echo ia64-unknown-interix"$UNAME_RELEASE" | |
866 | 877 | exit ;; |
867 | 878 | esac ;; |
868 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) | |
869 | echo i${UNAME_MACHINE}-pc-mks | |
870 | exit ;; | |
871 | 8664:Windows_NT:*) | |
872 | echo x86_64-pc-mks | |
873 | exit ;; | |
874 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) | |
875 | # How do we know it's Interix rather than the generic POSIX subsystem? | |
876 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we | |
877 | # UNAME_MACHINE based on the output of uname instead of i386? | |
878 | echo i586-pc-interix | |
879 | exit ;; | |
880 | 879 | i*:UWIN*:*) |
881 | echo ${UNAME_MACHINE}-pc-uwin | |
880 | echo "$UNAME_MACHINE"-pc-uwin | |
882 | 881 | exit ;; |
883 | 882 | amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) |
884 | 883 | echo x86_64-unknown-cygwin |
885 | 884 | exit ;; |
886 | p*:CYGWIN*:*) | |
887 | echo powerpcle-unknown-cygwin | |
888 | exit ;; | |
889 | 885 | prep*:SunOS:5.*:*) |
890 | echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | |
886 | echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" | |
891 | 887 | exit ;; |
892 | 888 | *:GNU:*:*) |
893 | 889 | # the GNU system |
894 | echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | |
890 | echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" | |
895 | 891 | exit ;; |
896 | 892 | *:GNU/*:*:*) |
897 | 893 | # other systems with GNU libc and userland |
898 | echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} | |
894 | echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" | |
899 | 895 | exit ;; |
900 | 896 | i*86:Minix:*:*) |
901 | echo ${UNAME_MACHINE}-pc-minix | |
897 | echo "$UNAME_MACHINE"-pc-minix | |
902 | 898 | exit ;; |
903 | 899 | aarch64:Linux:*:*) |
904 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
900 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
905 | 901 | exit ;; |
906 | 902 | aarch64_be:Linux:*:*) |
907 | 903 | UNAME_MACHINE=aarch64_be |
908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
904 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
909 | 905 | exit ;; |
910 | 906 | alpha:Linux:*:*) |
911 | 907 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
918 | 914 | EV68*) UNAME_MACHINE=alphaev68 ;; |
919 | 915 | esac |
920 | 916 | objdump --private-headers /bin/sh | grep -q ld.so.1 |
921 | if test "$?" = 0 ; then LIBC="gnulibc1" ; fi | |
922 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
917 | if test "$?" = 0 ; then LIBC=gnulibc1 ; fi | |
918 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
923 | 919 | exit ;; |
924 | 920 | arc:Linux:*:* | arceb:Linux:*:*) |
925 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
921 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
926 | 922 | exit ;; |
927 | 923 | arm*:Linux:*:*) |
928 | eval $set_cc_for_build | |
924 | eval "$set_cc_for_build" | |
929 | 925 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
930 | 926 | | grep -q __ARM_EABI__ |
931 | 927 | then |
932 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
928 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
933 | 929 | else |
934 | 930 | if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
935 | 931 | | grep -q __ARM_PCS_VFP |
936 | 932 | then |
937 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
933 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi | |
938 | 934 | else |
939 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf | |
935 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf | |
940 | 936 | fi |
941 | 937 | fi |
942 | 938 | exit ;; |
943 | 939 | avr32*:Linux:*:*) |
944 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
940 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
945 | 941 | exit ;; |
946 | 942 | cris:Linux:*:*) |
947 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
943 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
948 | 944 | exit ;; |
949 | 945 | crisv32:Linux:*:*) |
950 | echo ${UNAME_MACHINE}-axis-linux-${LIBC} | |
946 | echo "$UNAME_MACHINE"-axis-linux-"$LIBC" | |
951 | 947 | exit ;; |
952 | 948 | e2k:Linux:*:*) |
953 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
949 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
954 | 950 | exit ;; |
955 | 951 | frv:Linux:*:*) |
956 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
952 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
957 | 953 | exit ;; |
958 | 954 | hexagon:Linux:*:*) |
959 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
955 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
960 | 956 | exit ;; |
961 | 957 | i*86:Linux:*:*) |
962 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
958 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
963 | 959 | exit ;; |
964 | 960 | ia64:Linux:*:*) |
965 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
961 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
962 | exit ;; | |
963 | k1om:Linux:*:*) | |
964 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
966 | 965 | exit ;; |
967 | 966 | m32r*:Linux:*:*) |
968 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
967 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
969 | 968 | exit ;; |
970 | 969 | m68*:Linux:*:*) |
971 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
970 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
972 | 971 | exit ;; |
973 | 972 | mips:Linux:*:* | mips64:Linux:*:*) |
974 | eval $set_cc_for_build | |
975 | sed 's/^ //' << EOF >$dummy.c | |
973 | eval "$set_cc_for_build" | |
974 | sed 's/^ //' << EOF > "$dummy.c" | |
976 | 975 | #undef CPU |
977 | 976 | #undef ${UNAME_MACHINE} |
978 | 977 | #undef ${UNAME_MACHINE}el |
986 | 985 | #endif |
987 | 986 | #endif |
988 | 987 | EOF |
989 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | |
990 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } | |
988 | eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" | |
989 | test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } | |
991 | 990 | ;; |
991 | mips64el:Linux:*:*) | |
992 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
993 | exit ;; | |
992 | 994 | openrisc*:Linux:*:*) |
993 | echo or1k-unknown-linux-${LIBC} | |
995 | echo or1k-unknown-linux-"$LIBC" | |
994 | 996 | exit ;; |
995 | 997 | or32:Linux:*:* | or1k*:Linux:*:*) |
996 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
998 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
997 | 999 | exit ;; |
998 | 1000 | padre:Linux:*:*) |
999 | echo sparc-unknown-linux-${LIBC} | |
1001 | echo sparc-unknown-linux-"$LIBC" | |
1000 | 1002 | exit ;; |
1001 | 1003 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
1002 | echo hppa64-unknown-linux-${LIBC} | |
1004 | echo hppa64-unknown-linux-"$LIBC" | |
1003 | 1005 | exit ;; |
1004 | 1006 | parisc:Linux:*:* | hppa:Linux:*:*) |
1005 | 1007 | # Look for CPU level |
1006 | 1008 | case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
1007 | PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; | |
1008 | PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; | |
1009 | *) echo hppa-unknown-linux-${LIBC} ;; | |
1009 | PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; | |
1010 | PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; | |
1011 | *) echo hppa-unknown-linux-"$LIBC" ;; | |
1010 | 1012 | esac |
1011 | 1013 | exit ;; |
1012 | 1014 | ppc64:Linux:*:*) |
1013 | echo powerpc64-unknown-linux-${LIBC} | |
1015 | echo powerpc64-unknown-linux-"$LIBC" | |
1014 | 1016 | exit ;; |
1015 | 1017 | ppc:Linux:*:*) |
1016 | echo powerpc-unknown-linux-${LIBC} | |
1018 | echo powerpc-unknown-linux-"$LIBC" | |
1017 | 1019 | exit ;; |
1018 | 1020 | ppc64le:Linux:*:*) |
1019 | echo powerpc64le-unknown-linux-${LIBC} | |
1021 | echo powerpc64le-unknown-linux-"$LIBC" | |
1020 | 1022 | exit ;; |
1021 | 1023 | ppcle:Linux:*:*) |
1022 | echo powerpcle-unknown-linux-${LIBC} | |
1024 | echo powerpcle-unknown-linux-"$LIBC" | |
1025 | exit ;; | |
1026 | riscv32:Linux:*:* | riscv64:Linux:*:*) | |
1027 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1023 | 1028 | exit ;; |
1024 | 1029 | s390:Linux:*:* | s390x:Linux:*:*) |
1025 | echo ${UNAME_MACHINE}-ibm-linux-${LIBC} | |
1030 | echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" | |
1026 | 1031 | exit ;; |
1027 | 1032 | sh64*:Linux:*:*) |
1028 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1033 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1029 | 1034 | exit ;; |
1030 | 1035 | sh*:Linux:*:*) |
1031 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1036 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1032 | 1037 | exit ;; |
1033 | 1038 | sparc:Linux:*:* | sparc64:Linux:*:*) |
1034 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1039 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1035 | 1040 | exit ;; |
1036 | 1041 | tile*:Linux:*:*) |
1037 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1042 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1038 | 1043 | exit ;; |
1039 | 1044 | vax:Linux:*:*) |
1040 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
1045 | echo "$UNAME_MACHINE"-dec-linux-"$LIBC" | |
1041 | 1046 | exit ;; |
1042 | 1047 | x86_64:Linux:*:*) |
1043 | echo ${UNAME_MACHINE}-pc-linux-${LIBC} | |
1048 | if objdump -f /bin/sh | grep -q elf32-x86-64; then | |
1049 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32 | |
1050 | else | |
1051 | echo "$UNAME_MACHINE"-pc-linux-"$LIBC" | |
1052 | fi | |
1044 | 1053 | exit ;; |
1045 | 1054 | xtensa*:Linux:*:*) |
1046 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
1055 | echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" | |
1047 | 1056 | exit ;; |
1048 | 1057 | i*86:DYNIX/ptx:4*:*) |
1049 | 1058 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1057 | 1066 | # I am not positive that other SVR4 systems won't match this, |
1058 | 1067 | # I just have to hope. -- rms. |
1059 | 1068 | # Use sysv4.2uw... so that sysv4* matches it. |
1060 | echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} | |
1069 | echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" | |
1061 | 1070 | exit ;; |
1062 | 1071 | i*86:OS/2:*:*) |
1063 | 1072 | # If we were able to find `uname', then EMX Unix compatibility |
1064 | 1073 | # is probably installed. |
1065 | echo ${UNAME_MACHINE}-pc-os2-emx | |
1074 | echo "$UNAME_MACHINE"-pc-os2-emx | |
1066 | 1075 | exit ;; |
1067 | 1076 | i*86:XTS-300:*:STOP) |
1068 | echo ${UNAME_MACHINE}-unknown-stop | |
1077 | echo "$UNAME_MACHINE"-unknown-stop | |
1069 | 1078 | exit ;; |
1070 | 1079 | i*86:atheos:*:*) |
1071 | echo ${UNAME_MACHINE}-unknown-atheos | |
1080 | echo "$UNAME_MACHINE"-unknown-atheos | |
1072 | 1081 | exit ;; |
1073 | 1082 | i*86:syllable:*:*) |
1074 | echo ${UNAME_MACHINE}-pc-syllable | |
1083 | echo "$UNAME_MACHINE"-pc-syllable | |
1075 | 1084 | exit ;; |
1076 | 1085 | i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) |
1077 | echo i386-unknown-lynxos${UNAME_RELEASE} | |
1086 | echo i386-unknown-lynxos"$UNAME_RELEASE" | |
1078 | 1087 | exit ;; |
1079 | 1088 | i*86:*DOS:*:*) |
1080 | echo ${UNAME_MACHINE}-pc-msdosdjgpp | |
1081 | exit ;; | |
1082 | i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) | |
1083 | UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` | |
1089 | echo "$UNAME_MACHINE"-pc-msdosdjgpp | |
1090 | exit ;; | |
1091 | i*86:*:4.*:*) | |
1092 | UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` | |
1084 | 1093 | if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then |
1085 | echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} | |
1094 | echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" | |
1086 | 1095 | else |
1087 | echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} | |
1096 | echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" | |
1088 | 1097 | fi |
1089 | 1098 | exit ;; |
1090 | 1099 | i*86:*:5:[678]*) |
1094 | 1103 | *Pentium) UNAME_MACHINE=i586 ;; |
1095 | 1104 | *Pent*|*Celeron) UNAME_MACHINE=i686 ;; |
1096 | 1105 | esac |
1097 | echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} | |
1106 | echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" | |
1098 | 1107 | exit ;; |
1099 | 1108 | i*86:*:3.2:*) |
1100 | 1109 | if test -f /usr/options/cb.name; then |
1101 | 1110 | UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` |
1102 | echo ${UNAME_MACHINE}-pc-isc$UNAME_REL | |
1111 | echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" | |
1103 | 1112 | elif /bin/uname -X 2>/dev/null >/dev/null ; then |
1104 | 1113 | UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` |
1105 | 1114 | (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 |
1109 | 1118 | && UNAME_MACHINE=i686 |
1110 | 1119 | (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ |
1111 | 1120 | && UNAME_MACHINE=i686 |
1112 | echo ${UNAME_MACHINE}-pc-sco$UNAME_REL | |
1121 | echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" | |
1113 | 1122 | else |
1114 | echo ${UNAME_MACHINE}-pc-sysv32 | |
1123 | echo "$UNAME_MACHINE"-pc-sysv32 | |
1115 | 1124 | fi |
1116 | 1125 | exit ;; |
1117 | 1126 | pc:*:*:*) |
1119 | 1128 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1120 | 1129 | # the processor, so we play safe by assuming i586. |
1121 | 1130 | # Note: whatever this is, it MUST be the same as what config.sub |
1122 | # prints for the "djgpp" host, or else GDB configury will decide that | |
1131 | # prints for the "djgpp" host, or else GDB configure will decide that | |
1123 | 1132 | # this is a cross-build. |
1124 | 1133 | echo i586-pc-msdosdjgpp |
1125 | 1134 | exit ;; |
1131 | 1140 | exit ;; |
1132 | 1141 | i860:*:4.*:*) # i860-SVR4 |
1133 | 1142 | if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then |
1134 | echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 | |
1143 | echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 | |
1135 | 1144 | else # Add other i860-SVR4 vendors below as they are discovered. |
1136 | echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 | |
1145 | echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 | |
1137 | 1146 | fi |
1138 | 1147 | exit ;; |
1139 | 1148 | mini*:CTIX:SYS*5:*) |
1153 | 1162 | test -r /etc/.relid \ |
1154 | 1163 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1155 | 1164 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1156 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1165 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1157 | 1166 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1158 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1167 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1159 | 1168 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1160 | 1169 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1161 | 1170 | && { echo i486-ncr-sysv4; exit; } ;; |
1164 | 1173 | test -r /etc/.relid \ |
1165 | 1174 | && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` |
1166 | 1175 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1167 | && { echo i486-ncr-sysv4.3${OS_REL}; exit; } | |
1176 | && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } | |
1168 | 1177 | /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ |
1169 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } | |
1178 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } | |
1170 | 1179 | /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ |
1171 | && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; | |
1180 | && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; | |
1172 | 1181 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1173 | echo m68k-unknown-lynxos${UNAME_RELEASE} | |
1182 | echo m68k-unknown-lynxos"$UNAME_RELEASE" | |
1174 | 1183 | exit ;; |
1175 | 1184 | mc68030:UNIX_System_V:4.*:*) |
1176 | 1185 | echo m68k-atari-sysv4 |
1177 | 1186 | exit ;; |
1178 | 1187 | TSUNAMI:LynxOS:2.*:*) |
1179 | echo sparc-unknown-lynxos${UNAME_RELEASE} | |
1188 | echo sparc-unknown-lynxos"$UNAME_RELEASE" | |
1180 | 1189 | exit ;; |
1181 | 1190 | rs6000:LynxOS:2.*:*) |
1182 | echo rs6000-unknown-lynxos${UNAME_RELEASE} | |
1191 | echo rs6000-unknown-lynxos"$UNAME_RELEASE" | |
1183 | 1192 | exit ;; |
1184 | 1193 | PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) |
1185 | echo powerpc-unknown-lynxos${UNAME_RELEASE} | |
1194 | echo powerpc-unknown-lynxos"$UNAME_RELEASE" | |
1186 | 1195 | exit ;; |
1187 | 1196 | SM[BE]S:UNIX_SV:*:*) |
1188 | echo mips-dde-sysv${UNAME_RELEASE} | |
1197 | echo mips-dde-sysv"$UNAME_RELEASE" | |
1189 | 1198 | exit ;; |
1190 | 1199 | RM*:ReliantUNIX-*:*:*) |
1191 | 1200 | echo mips-sni-sysv4 |
1196 | 1205 | *:SINIX-*:*:*) |
1197 | 1206 | if uname -p 2>/dev/null >/dev/null ; then |
1198 | 1207 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1199 | echo ${UNAME_MACHINE}-sni-sysv4 | |
1208 | echo "$UNAME_MACHINE"-sni-sysv4 | |
1200 | 1209 | else |
1201 | 1210 | echo ns32k-sni-sysv |
1202 | 1211 | fi |
1216 | 1225 | exit ;; |
1217 | 1226 | i*86:VOS:*:*) |
1218 | 1227 | # From Paul.Green@stratus.com. |
1219 | echo ${UNAME_MACHINE}-stratus-vos | |
1228 | echo "$UNAME_MACHINE"-stratus-vos | |
1220 | 1229 | exit ;; |
1221 | 1230 | *:VOS:*:*) |
1222 | 1231 | # From Paul.Green@stratus.com. |
1223 | 1232 | echo hppa1.1-stratus-vos |
1224 | 1233 | exit ;; |
1225 | 1234 | mc68*:A/UX:*:*) |
1226 | echo m68k-apple-aux${UNAME_RELEASE} | |
1235 | echo m68k-apple-aux"$UNAME_RELEASE" | |
1227 | 1236 | exit ;; |
1228 | 1237 | news*:NEWS-OS:6*:*) |
1229 | 1238 | echo mips-sony-newsos6 |
1230 | 1239 | exit ;; |
1231 | 1240 | R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) |
1232 | 1241 | if [ -d /usr/nec ]; then |
1233 | echo mips-nec-sysv${UNAME_RELEASE} | |
1242 | echo mips-nec-sysv"$UNAME_RELEASE" | |
1234 | 1243 | else |
1235 | echo mips-unknown-sysv${UNAME_RELEASE} | |
1244 | echo mips-unknown-sysv"$UNAME_RELEASE" | |
1236 | 1245 | fi |
1237 | 1246 | exit ;; |
1238 | 1247 | BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. |
1251 | 1260 | echo x86_64-unknown-haiku |
1252 | 1261 | exit ;; |
1253 | 1262 | SX-4:SUPER-UX:*:*) |
1254 | echo sx4-nec-superux${UNAME_RELEASE} | |
1263 | echo sx4-nec-superux"$UNAME_RELEASE" | |
1255 | 1264 | exit ;; |
1256 | 1265 | SX-5:SUPER-UX:*:*) |
1257 | echo sx5-nec-superux${UNAME_RELEASE} | |
1266 | echo sx5-nec-superux"$UNAME_RELEASE" | |
1258 | 1267 | exit ;; |
1259 | 1268 | SX-6:SUPER-UX:*:*) |
1260 | echo sx6-nec-superux${UNAME_RELEASE} | |
1269 | echo sx6-nec-superux"$UNAME_RELEASE" | |
1261 | 1270 | exit ;; |
1262 | 1271 | SX-7:SUPER-UX:*:*) |
1263 | echo sx7-nec-superux${UNAME_RELEASE} | |
1272 | echo sx7-nec-superux"$UNAME_RELEASE" | |
1264 | 1273 | exit ;; |
1265 | 1274 | SX-8:SUPER-UX:*:*) |
1266 | echo sx8-nec-superux${UNAME_RELEASE} | |
1275 | echo sx8-nec-superux"$UNAME_RELEASE" | |
1267 | 1276 | exit ;; |
1268 | 1277 | SX-8R:SUPER-UX:*:*) |
1269 | echo sx8r-nec-superux${UNAME_RELEASE} | |
1278 | echo sx8r-nec-superux"$UNAME_RELEASE" | |
1279 | exit ;; | |
1280 | SX-ACE:SUPER-UX:*:*) | |
1281 | echo sxace-nec-superux"$UNAME_RELEASE" | |
1270 | 1282 | exit ;; |
1271 | 1283 | Power*:Rhapsody:*:*) |
1272 | echo powerpc-apple-rhapsody${UNAME_RELEASE} | |
1284 | echo powerpc-apple-rhapsody"$UNAME_RELEASE" | |
1273 | 1285 | exit ;; |
1274 | 1286 | *:Rhapsody:*:*) |
1275 | echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | |
1287 | echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" | |
1276 | 1288 | exit ;; |
1277 | 1289 | *:Darwin:*:*) |
1278 | 1290 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1279 | eval $set_cc_for_build | |
1291 | eval "$set_cc_for_build" | |
1280 | 1292 | if test "$UNAME_PROCESSOR" = unknown ; then |
1281 | 1293 | UNAME_PROCESSOR=powerpc |
1282 | 1294 | fi |
1283 | if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then | |
1284 | if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | |
1295 | if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then | |
1296 | if [ "$CC_FOR_BUILD" != no_compiler_found ]; then | |
1285 | 1297 | if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
1286 | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1287 | grep IS_64BIT_ARCH >/dev/null | |
1298 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1299 | grep IS_64BIT_ARCH >/dev/null | |
1288 | 1300 | then |
1289 | 1301 | case $UNAME_PROCESSOR in |
1290 | 1302 | i386) UNAME_PROCESSOR=x86_64 ;; |
1291 | 1303 | powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1292 | 1304 | esac |
1305 | fi | |
1306 | # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc | |
1307 | if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ | |
1308 | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | |
1309 | grep IS_PPC >/dev/null | |
1310 | then | |
1311 | UNAME_PROCESSOR=powerpc | |
1293 | 1312 | fi |
1294 | 1313 | fi |
1295 | 1314 | elif test "$UNAME_PROCESSOR" = i386 ; then |
1301 | 1320 | # that Apple uses in portable devices. |
1302 | 1321 | UNAME_PROCESSOR=x86_64 |
1303 | 1322 | fi |
1304 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | |
1323 | echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" | |
1305 | 1324 | exit ;; |
1306 | 1325 | *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1307 | 1326 | UNAME_PROCESSOR=`uname -p` |
1308 | if test "$UNAME_PROCESSOR" = "x86"; then | |
1327 | if test "$UNAME_PROCESSOR" = x86; then | |
1309 | 1328 | UNAME_PROCESSOR=i386 |
1310 | 1329 | UNAME_MACHINE=pc |
1311 | 1330 | fi |
1312 | echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} | |
1331 | echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" | |
1313 | 1332 | exit ;; |
1314 | 1333 | *:QNX:*:4*) |
1315 | 1334 | echo i386-pc-qnx |
1316 | 1335 | exit ;; |
1317 | NEO-?:NONSTOP_KERNEL:*:*) | |
1318 | echo neo-tandem-nsk${UNAME_RELEASE} | |
1336 | NEO-*:NONSTOP_KERNEL:*:*) | |
1337 | echo neo-tandem-nsk"$UNAME_RELEASE" | |
1319 | 1338 | exit ;; |
1320 | 1339 | NSE-*:NONSTOP_KERNEL:*:*) |
1321 | echo nse-tandem-nsk${UNAME_RELEASE} | |
1322 | exit ;; | |
1323 | NSR-?:NONSTOP_KERNEL:*:*) | |
1324 | echo nsr-tandem-nsk${UNAME_RELEASE} | |
1340 | echo nse-tandem-nsk"$UNAME_RELEASE" | |
1341 | exit ;; | |
1342 | NSR-*:NONSTOP_KERNEL:*:*) | |
1343 | echo nsr-tandem-nsk"$UNAME_RELEASE" | |
1344 | exit ;; | |
1345 | NSV-*:NONSTOP_KERNEL:*:*) | |
1346 | echo nsv-tandem-nsk"$UNAME_RELEASE" | |
1347 | exit ;; | |
1348 | NSX-*:NONSTOP_KERNEL:*:*) | |
1349 | echo nsx-tandem-nsk"$UNAME_RELEASE" | |
1325 | 1350 | exit ;; |
1326 | 1351 | *:NonStop-UX:*:*) |
1327 | 1352 | echo mips-compaq-nonstopux |
1330 | 1355 | echo bs2000-siemens-sysv |
1331 | 1356 | exit ;; |
1332 | 1357 | DS/*:UNIX_System_V:*:*) |
1333 | echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} | |
1358 | echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" | |
1334 | 1359 | exit ;; |
1335 | 1360 | *:Plan9:*:*) |
1336 | 1361 | # "uname -m" is not consistent, so use $cputype instead. 386 |
1337 | 1362 | # is converted to i386 for consistency with other x86 |
1338 | 1363 | # operating systems. |
1339 | if test "$cputype" = "386"; then | |
1364 | if test "$cputype" = 386; then | |
1340 | 1365 | UNAME_MACHINE=i386 |
1341 | 1366 | else |
1342 | 1367 | UNAME_MACHINE="$cputype" |
1343 | 1368 | fi |
1344 | echo ${UNAME_MACHINE}-unknown-plan9 | |
1369 | echo "$UNAME_MACHINE"-unknown-plan9 | |
1345 | 1370 | exit ;; |
1346 | 1371 | *:TOPS-10:*:*) |
1347 | 1372 | echo pdp10-unknown-tops10 |
1362 | 1387 | echo pdp10-unknown-its |
1363 | 1388 | exit ;; |
1364 | 1389 | SEI:*:*:SEIUX) |
1365 | echo mips-sei-seiux${UNAME_RELEASE} | |
1390 | echo mips-sei-seiux"$UNAME_RELEASE" | |
1366 | 1391 | exit ;; |
1367 | 1392 | *:DragonFly:*:*) |
1368 | echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` | |
1393 | echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" | |
1369 | 1394 | exit ;; |
1370 | 1395 | *:*VMS:*:*) |
1371 | 1396 | UNAME_MACHINE=`(uname -p) 2>/dev/null` |
1372 | case "${UNAME_MACHINE}" in | |
1397 | case "$UNAME_MACHINE" in | |
1373 | 1398 | A*) echo alpha-dec-vms ; exit ;; |
1374 | 1399 | I*) echo ia64-dec-vms ; exit ;; |
1375 | 1400 | V*) echo vax-dec-vms ; exit ;; |
1378 | 1403 | echo i386-pc-xenix |
1379 | 1404 | exit ;; |
1380 | 1405 | i*86:skyos:*:*) |
1381 | echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' | |
1406 | echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" | |
1382 | 1407 | exit ;; |
1383 | 1408 | i*86:rdos:*:*) |
1384 | echo ${UNAME_MACHINE}-pc-rdos | |
1409 | echo "$UNAME_MACHINE"-pc-rdos | |
1385 | 1410 | exit ;; |
1386 | 1411 | i*86:AROS:*:*) |
1387 | echo ${UNAME_MACHINE}-pc-aros | |
1412 | echo "$UNAME_MACHINE"-pc-aros | |
1388 | 1413 | exit ;; |
1389 | 1414 | x86_64:VMkernel:*:*) |
1390 | echo ${UNAME_MACHINE}-unknown-esx | |
1415 | echo "$UNAME_MACHINE"-unknown-esx | |
1416 | exit ;; | |
1417 | amd64:Isilon\ OneFS:*:*) | |
1418 | echo x86_64-unknown-onefs | |
1391 | 1419 | exit ;; |
1392 | 1420 | esac |
1393 | 1421 | |
1422 | echo "$0: unable to guess system type" >&2 | |
1423 | ||
1424 | case "$UNAME_MACHINE:$UNAME_SYSTEM" in | |
1425 | mips:Linux | mips64:Linux) | |
1426 | # If we got here on MIPS GNU/Linux, output extra information. | |
1427 | cat >&2 <<EOF | |
1428 | ||
1429 | NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize | |
1430 | the system type. Please install a C compiler and try again. | |
1431 | EOF | |
1432 | ;; | |
1433 | esac | |
1434 | ||
1394 | 1435 | cat >&2 <<EOF |
1395 | $0: unable to guess system type | |
1396 | ||
1397 | This script, last modified $timestamp, has failed to recognize | |
1398 | the operating system you are using. It is advised that you | |
1399 | download the most up to date version of the config scripts from | |
1400 | ||
1401 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
1436 | ||
1437 | This script (version $timestamp), has failed to recognize the | |
1438 | operating system you are using. If your script is old, overwrite *all* | |
1439 | copies of config.guess and config.sub with the latest versions from: | |
1440 | ||
1441 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess | |
1402 | 1442 | and |
1403 | http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
1404 | ||
1405 | If the version you run ($0) is already up to date, please | |
1406 | send the following data and any information you think might be | |
1407 | pertinent to <config-patches@gnu.org> in order to provide the needed | |
1408 | information to handle your system. | |
1443 | https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
1444 | ||
1445 | If $0 has already been updated, send the following data and any | |
1446 | information you think might be pertinent to config-patches@gnu.org to | |
1447 | provide the necessary information to handle your system. | |
1409 | 1448 | |
1410 | 1449 | config.guess timestamp = $timestamp |
1411 | 1450 | |
1424 | 1463 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` |
1425 | 1464 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` |
1426 | 1465 | |
1427 | UNAME_MACHINE = ${UNAME_MACHINE} | |
1428 | UNAME_RELEASE = ${UNAME_RELEASE} | |
1429 | UNAME_SYSTEM = ${UNAME_SYSTEM} | |
1430 | UNAME_VERSION = ${UNAME_VERSION} | |
1466 | UNAME_MACHINE = "$UNAME_MACHINE" | |
1467 | UNAME_RELEASE = "$UNAME_RELEASE" | |
1468 | UNAME_SYSTEM = "$UNAME_SYSTEM" | |
1469 | UNAME_VERSION = "$UNAME_VERSION" | |
1431 | 1470 | EOF |
1432 | 1471 | |
1433 | 1472 | exit 1 |
1434 | 1473 | |
1435 | 1474 | # Local variables: |
1436 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1475 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1437 | 1476 | # time-stamp-start: "timestamp='" |
1438 | 1477 | # time-stamp-format: "%:y-%02m-%02d" |
1439 | 1478 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | # Copyright 1992-2015 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2015-08-20' | |
2 | # Copyright 1992-2018 Free Software Foundation, Inc. | |
3 | ||
4 | timestamp='2018-02-22' | |
5 | 5 | |
6 | 6 | # This file is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License as published by |
14 | 14 | # General Public License for more details. |
15 | 15 | # |
16 | 16 | # You should have received a copy of the GNU General Public License |
17 | # along with this program; if not, see <http://www.gnu.org/licenses/>. | |
17 | # along with this program; if not, see <https://www.gnu.org/licenses/>. | |
18 | 18 | # |
19 | 19 | # As a special exception to the GNU General Public License, if you |
20 | 20 | # distribute this file as part of a program that contains a |
32 | 32 | # Otherwise, we print the canonical config type on stdout and succeed. |
33 | 33 | |
34 | 34 | # You can get the latest version of this script from: |
35 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
35 | # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub | |
36 | 36 | |
37 | 37 | # This file is supposed to be the same for all GNU packages |
38 | 38 | # and recognize all the CPU types, system types and aliases |
52 | 52 | me=`echo "$0" | sed -e 's,.*/,,'` |
53 | 53 | |
54 | 54 | usage="\ |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS | |
56 | $0 [OPTION] ALIAS | |
55 | Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS | |
57 | 56 | |
58 | 57 | Canonicalize a configuration name. |
59 | 58 | |
60 | Operation modes: | |
59 | Options: | |
61 | 60 | -h, --help print this help, then exit |
62 | 61 | -t, --time-stamp print date of last modification, then exit |
63 | 62 | -v, --version print version number, then exit |
67 | 66 | version="\ |
68 | 67 | GNU config.sub ($timestamp) |
69 | 68 | |
70 | Copyright 1992-2015 Free Software Foundation, Inc. | |
69 | Copyright 1992-2018 Free Software Foundation, Inc. | |
71 | 70 | |
72 | 71 | This is free software; see the source for copying conditions. There is NO |
73 | 72 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
94 | 93 | |
95 | 94 | *local*) |
96 | 95 | # First pass through any local machine types. |
97 | echo $1 | |
96 | echo "$1" | |
98 | 97 | exit ;; |
99 | 98 | |
100 | 99 | * ) |
112 | 111 | |
113 | 112 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
114 | 113 | # Here we must recognize all the valid KERNEL-OS combinations. |
115 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
114 | maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
116 | 115 | case $maybe_os in |
117 | 116 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
118 | 117 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
119 | 118 | knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ |
120 | kopensolaris*-gnu* | \ | |
119 | kopensolaris*-gnu* | cloudabi*-eabi* | \ | |
121 | 120 | storm-chaos* | os2-emx* | rtmk-nova*) |
122 | 121 | os=-$maybe_os |
123 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
122 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
124 | 123 | ;; |
125 | 124 | android-linux) |
126 | 125 | os=-linux-android |
127 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
126 | basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown | |
128 | 127 | ;; |
129 | 128 | *) |
130 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
131 | if [ $basic_machine != $1 ] | |
132 | then os=`echo $1 | sed 's/.*-/-/'` | |
129 | basic_machine=`echo "$1" | sed 's/-[^-]*$//'` | |
130 | if [ "$basic_machine" != "$1" ] | |
131 | then os=`echo "$1" | sed 's/.*-/-/'` | |
133 | 132 | else os=; fi |
134 | 133 | ;; |
135 | 134 | esac |
178 | 177 | ;; |
179 | 178 | -sco6) |
180 | 179 | os=-sco5v6 |
181 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
180 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
182 | 181 | ;; |
183 | 182 | -sco5) |
184 | 183 | os=-sco3.2v5 |
185 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
184 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
186 | 185 | ;; |
187 | 186 | -sco4) |
188 | 187 | os=-sco3.2v4 |
189 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
188 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
190 | 189 | ;; |
191 | 190 | -sco3.2.[4-9]*) |
192 | 191 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` |
193 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
192 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
194 | 193 | ;; |
195 | 194 | -sco3.2v[4-9]*) |
196 | 195 | # Don't forget version if it is 3.2v4 or newer. |
197 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
196 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
198 | 197 | ;; |
199 | 198 | -sco5v6*) |
200 | 199 | # Don't forget version if it is 3.2v4 or newer. |
201 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
200 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
202 | 201 | ;; |
203 | 202 | -sco*) |
204 | 203 | os=-sco3.2v2 |
205 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
204 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
206 | 205 | ;; |
207 | 206 | -udk*) |
208 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
207 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
209 | 208 | ;; |
210 | 209 | -isc) |
211 | 210 | os=-isc2.2 |
212 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
211 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
213 | 212 | ;; |
214 | 213 | -clix*) |
215 | 214 | basic_machine=clipper-intergraph |
216 | 215 | ;; |
217 | 216 | -isc*) |
218 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` | |
217 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'` | |
219 | 218 | ;; |
220 | 219 | -lynx*178) |
221 | 220 | os=-lynxos178 |
227 | 226 | os=-lynxos |
228 | 227 | ;; |
229 | 228 | -ptx*) |
230 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | |
231 | ;; | |
232 | -windowsnt*) | |
233 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | |
229 | basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'` | |
234 | 230 | ;; |
235 | 231 | -psos*) |
236 | 232 | os=-psos |
263 | 259 | | fido | fr30 | frv | ft32 \ |
264 | 260 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
265 | 261 | | hexagon \ |
266 | | i370 | i860 | i960 | ia64 \ | |
262 | | i370 | i860 | i960 | ia16 | ia64 \ | |
267 | 263 | | ip2k | iq2000 \ |
268 | 264 | | k1om \ |
269 | 265 | | le32 | le64 \ |
299 | 295 | | nios | nios2 | nios2eb | nios2el \ |
300 | 296 | | ns16k | ns32k \ |
301 | 297 | | open8 | or1k | or1knd | or32 \ |
302 | | pdp10 | pdp11 | pj | pjl \ | |
298 | | pdp10 | pj | pjl \ | |
303 | 299 | | powerpc | powerpc64 | powerpc64le | powerpcle \ |
300 | | pru \ | |
304 | 301 | | pyramid \ |
305 | 302 | | riscv32 | riscv64 \ |
306 | 303 | | rl78 | rx \ |
314 | 311 | | ubicom32 \ |
315 | 312 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ |
316 | 313 | | visium \ |
317 | | we32k \ | |
314 | | wasm32 \ | |
318 | 315 | | x86 | xc16x | xstormy16 | xtensa \ |
319 | 316 | | z8k | z80) |
320 | 317 | basic_machine=$basic_machine-unknown |
335 | 332 | basic_machine=$basic_machine-unknown |
336 | 333 | os=-none |
337 | 334 | ;; |
338 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) | |
335 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | |
339 | 336 | ;; |
340 | 337 | ms1) |
341 | 338 | basic_machine=mt-unknown |
364 | 361 | ;; |
365 | 362 | # Object if more than one company name word. |
366 | 363 | *-*-*) |
367 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
364 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
368 | 365 | exit 1 |
369 | 366 | ;; |
370 | 367 | # Recognize the basic CPU types with company name. |
387 | 384 | | h8300-* | h8500-* \ |
388 | 385 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
389 | 386 | | hexagon-* \ |
390 | | i*86-* | i860-* | i960-* | ia64-* \ | |
387 | | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | |
391 | 388 | | ip2k-* | iq2000-* \ |
392 | 389 | | k1om-* \ |
393 | 390 | | le32-* | le64-* \ |
428 | 425 | | orion-* \ |
429 | 426 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
430 | 427 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ |
428 | | pru-* \ | |
431 | 429 | | pyramid-* \ |
432 | 430 | | riscv32-* | riscv64-* \ |
433 | 431 | | rl78-* | romp-* | rs6000-* | rx-* \ |
444 | 442 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ |
445 | 443 | | vax-* \ |
446 | 444 | | visium-* \ |
445 | | wasm32-* \ | |
447 | 446 | | we32k-* \ |
448 | 447 | | x86-* | x86_64-* | xc16x-* | xps100-* \ |
449 | 448 | | xstormy16-* | xtensa*-* \ |
457 | 456 | # Recognize the various machine names and aliases which stand |
458 | 457 | # for a CPU type and a company and sometimes even an OS. |
459 | 458 | 386bsd) |
460 | basic_machine=i386-unknown | |
459 | basic_machine=i386-pc | |
461 | 460 | os=-bsd |
462 | 461 | ;; |
463 | 462 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
491 | 490 | basic_machine=x86_64-pc |
492 | 491 | ;; |
493 | 492 | amd64-*) |
494 | basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
493 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
495 | 494 | ;; |
496 | 495 | amdahl) |
497 | 496 | basic_machine=580-amdahl |
520 | 519 | basic_machine=i386-pc |
521 | 520 | os=-aros |
522 | 521 | ;; |
523 | asmjs) | |
522 | asmjs) | |
524 | 523 | basic_machine=asmjs-unknown |
525 | 524 | ;; |
526 | 525 | aux) |
536 | 535 | os=-linux |
537 | 536 | ;; |
538 | 537 | blackfin-*) |
539 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` | |
538 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
540 | 539 | os=-linux |
541 | 540 | ;; |
542 | 541 | bluegene*) |
544 | 543 | os=-cnk |
545 | 544 | ;; |
546 | 545 | c54x-*) |
547 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
546 | basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
548 | 547 | ;; |
549 | 548 | c55x-*) |
550 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
549 | basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
551 | 550 | ;; |
552 | 551 | c6x-*) |
553 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` | |
552 | basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
554 | 553 | ;; |
555 | 554 | c90) |
556 | 555 | basic_machine=c90-cray |
639 | 638 | basic_machine=rs6000-bull |
640 | 639 | os=-bosx |
641 | 640 | ;; |
642 | dpx2* | dpx2*-bull) | |
641 | dpx2*) | |
643 | 642 | basic_machine=m68k-bull |
644 | 643 | os=-sysv3 |
644 | ;; | |
645 | e500v[12]) | |
646 | basic_machine=powerpc-unknown | |
647 | os=$os"spe" | |
648 | ;; | |
649 | e500v[12]-*) | |
650 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
651 | os=$os"spe" | |
645 | 652 | ;; |
646 | 653 | ebmon29k) |
647 | 654 | basic_machine=a29k-amd |
732 | 739 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
733 | 740 | basic_machine=hppa1.0-hp |
734 | 741 | ;; |
735 | hppa-next) | |
736 | os=-nextstep3 | |
737 | ;; | |
738 | 742 | hppaosf) |
739 | 743 | basic_machine=hppa1.1-hp |
740 | 744 | os=-osf |
747 | 751 | basic_machine=i370-ibm |
748 | 752 | ;; |
749 | 753 | i*86v32) |
750 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
754 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
751 | 755 | os=-sysv32 |
752 | 756 | ;; |
753 | 757 | i*86v4*) |
754 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
758 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
755 | 759 | os=-sysv4 |
756 | 760 | ;; |
757 | 761 | i*86v) |
758 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
762 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
759 | 763 | os=-sysv |
760 | 764 | ;; |
761 | 765 | i*86sol2) |
762 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` | |
766 | basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` | |
763 | 767 | os=-solaris2 |
764 | 768 | ;; |
765 | 769 | i386mach) |
766 | 770 | basic_machine=i386-mach |
767 | 771 | os=-mach |
768 | 772 | ;; |
769 | i386-vsta | vsta) | |
773 | vsta) | |
770 | 774 | basic_machine=i386-unknown |
771 | 775 | os=-vsta |
772 | 776 | ;; |
785 | 789 | os=-sysv |
786 | 790 | ;; |
787 | 791 | leon-*|leon[3-9]-*) |
788 | basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'` | |
792 | basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'` | |
789 | 793 | ;; |
790 | 794 | m68knommu) |
791 | 795 | basic_machine=m68k-unknown |
792 | 796 | os=-linux |
793 | 797 | ;; |
794 | 798 | m68knommu-*) |
795 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` | |
799 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
796 | 800 | os=-linux |
797 | ;; | |
798 | m88k-omron*) | |
799 | basic_machine=m88k-omron | |
800 | 801 | ;; |
801 | 802 | magnum | m3230) |
802 | 803 | basic_machine=mips-mips |
829 | 830 | os=-mint |
830 | 831 | ;; |
831 | 832 | mips3*-*) |
832 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` | |
833 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'` | |
833 | 834 | ;; |
834 | 835 | mips3*) |
835 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | |
836 | basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown | |
836 | 837 | ;; |
837 | 838 | monitor) |
838 | 839 | basic_machine=m68k-rom68k |
851 | 852 | os=-msdos |
852 | 853 | ;; |
853 | 854 | ms1-*) |
854 | basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` | |
855 | basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` | |
855 | 856 | ;; |
856 | 857 | msys) |
857 | 858 | basic_machine=i686-pc |
893 | 894 | basic_machine=v70-nec |
894 | 895 | os=-sysv |
895 | 896 | ;; |
896 | next | m*-next ) | |
897 | next | m*-next) | |
897 | 898 | basic_machine=m68k-next |
898 | 899 | case $os in |
899 | 900 | -nextstep* ) |
938 | 939 | nsr-tandem) |
939 | 940 | basic_machine=nsr-tandem |
940 | 941 | ;; |
942 | nsv-tandem) | |
943 | basic_machine=nsv-tandem | |
944 | ;; | |
945 | nsx-tandem) | |
946 | basic_machine=nsx-tandem | |
947 | ;; | |
941 | 948 | op50n-* | op60c-*) |
942 | 949 | basic_machine=hppa1.1-oki |
943 | 950 | os=-proelf |
970 | 977 | os=-linux |
971 | 978 | ;; |
972 | 979 | parisc-*) |
973 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` | |
980 | basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
974 | 981 | os=-linux |
975 | 982 | ;; |
976 | 983 | pbd) |
986 | 993 | basic_machine=i386-pc |
987 | 994 | ;; |
988 | 995 | pc98-*) |
989 | basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` | |
996 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
990 | 997 | ;; |
991 | 998 | pentium | p5 | k5 | k6 | nexgen | viac3) |
992 | 999 | basic_machine=i586-pc |
1001 | 1008 | basic_machine=i786-pc |
1002 | 1009 | ;; |
1003 | 1010 | pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) |
1004 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1011 | basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1005 | 1012 | ;; |
1006 | 1013 | pentiumpro-* | p6-* | 6x86-* | athlon-*) |
1007 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1014 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1008 | 1015 | ;; |
1009 | 1016 | pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) |
1010 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1017 | basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1011 | 1018 | ;; |
1012 | 1019 | pentium4-*) |
1013 | basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1020 | basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1014 | 1021 | ;; |
1015 | 1022 | pn) |
1016 | 1023 | basic_machine=pn-gould |
1020 | 1027 | ppc | ppcbe) basic_machine=powerpc-unknown |
1021 | 1028 | ;; |
1022 | 1029 | ppc-* | ppcbe-*) |
1023 | basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1024 | ;; | |
1025 | ppcle | powerpclittle | ppc-le | powerpc-little) | |
1030 | basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1031 | ;; | |
1032 | ppcle | powerpclittle) | |
1026 | 1033 | basic_machine=powerpcle-unknown |
1027 | 1034 | ;; |
1028 | 1035 | ppcle-* | powerpclittle-*) |
1029 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1036 | basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1030 | 1037 | ;; |
1031 | 1038 | ppc64) basic_machine=powerpc64-unknown |
1032 | 1039 | ;; |
1033 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1034 | ;; | |
1035 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) | |
1040 | ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1041 | ;; | |
1042 | ppc64le | powerpc64little) | |
1036 | 1043 | basic_machine=powerpc64le-unknown |
1037 | 1044 | ;; |
1038 | 1045 | ppc64le-* | powerpc64little-*) |
1039 | basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1046 | basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1040 | 1047 | ;; |
1041 | 1048 | ps2) |
1042 | 1049 | basic_machine=i386-ibm |
1090 | 1097 | sequent) |
1091 | 1098 | basic_machine=i386-sequent |
1092 | 1099 | ;; |
1093 | sh) | |
1094 | basic_machine=sh-hitachi | |
1095 | os=-hms | |
1096 | ;; | |
1097 | 1100 | sh5el) |
1098 | 1101 | basic_machine=sh5le-unknown |
1099 | 1102 | ;; |
1100 | sh64) | |
1101 | basic_machine=sh64-unknown | |
1102 | ;; | |
1103 | sparclite-wrs | simso-wrs) | |
1103 | simso-wrs) | |
1104 | 1104 | basic_machine=sparclite-wrs |
1105 | 1105 | os=-vxworks |
1106 | 1106 | ;; |
1119 | 1119 | os=-sysv4 |
1120 | 1120 | ;; |
1121 | 1121 | strongarm-* | thumb-*) |
1122 | basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1122 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | |
1123 | 1123 | ;; |
1124 | 1124 | sun2) |
1125 | 1125 | basic_machine=m68000-sun |
1241 | 1241 | basic_machine=hppa1.1-winbond |
1242 | 1242 | os=-proelf |
1243 | 1243 | ;; |
1244 | x64) | |
1245 | basic_machine=x86_64-pc | |
1246 | ;; | |
1244 | 1247 | xbox) |
1245 | 1248 | basic_machine=i686-pc |
1246 | 1249 | os=-mingw32 |
1249 | 1252 | basic_machine=xps100-honeywell |
1250 | 1253 | ;; |
1251 | 1254 | xscale-* | xscalee[bl]-*) |
1252 | basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` | |
1255 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | |
1253 | 1256 | ;; |
1254 | 1257 | ymp) |
1255 | 1258 | basic_machine=ymp-cray |
1256 | 1259 | os=-unicos |
1257 | ;; | |
1258 | z8k-*-coff) | |
1259 | basic_machine=z8k-unknown | |
1260 | os=-sim | |
1261 | ;; | |
1262 | z80-*-coff) | |
1263 | basic_machine=z80-unknown | |
1264 | os=-sim | |
1265 | 1260 | ;; |
1266 | 1261 | none) |
1267 | 1262 | basic_machine=none-none |
1291 | 1286 | vax) |
1292 | 1287 | basic_machine=vax-dec |
1293 | 1288 | ;; |
1294 | pdp10) | |
1295 | # there are many clones, so DEC is not a safe bet | |
1296 | basic_machine=pdp10-unknown | |
1297 | ;; | |
1298 | 1289 | pdp11) |
1299 | 1290 | basic_machine=pdp11-dec |
1300 | 1291 | ;; |
1304 | 1295 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1305 | 1296 | basic_machine=sh-unknown |
1306 | 1297 | ;; |
1307 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) | |
1308 | basic_machine=sparc-sun | |
1309 | ;; | |
1310 | 1298 | cydra) |
1311 | 1299 | basic_machine=cydra-cydrome |
1312 | 1300 | ;; |
1326 | 1314 | # Make sure to match an already-canonicalized machine name. |
1327 | 1315 | ;; |
1328 | 1316 | *) |
1329 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
1317 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | |
1330 | 1318 | exit 1 |
1331 | 1319 | ;; |
1332 | 1320 | esac |
1334 | 1322 | # Here we canonicalize certain aliases for manufacturers. |
1335 | 1323 | case $basic_machine in |
1336 | 1324 | *-digital*) |
1337 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
1325 | basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'` | |
1338 | 1326 | ;; |
1339 | 1327 | *-commodore*) |
1340 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
1328 | basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'` | |
1341 | 1329 | ;; |
1342 | 1330 | *) |
1343 | 1331 | ;; |
1348 | 1336 | if [ x"$os" != x"" ] |
1349 | 1337 | then |
1350 | 1338 | case $os in |
1351 | # First match some system type aliases | |
1352 | # that might get confused with valid system types. | |
1339 | # First match some system type aliases that might get confused | |
1340 | # with valid system types. | |
1353 | 1341 | # -solaris* is a basic system type, with this one exception. |
1354 | 1342 | -auroraux) |
1355 | 1343 | os=-auroraux |
1360 | 1348 | -solaris) |
1361 | 1349 | os=-solaris2 |
1362 | 1350 | ;; |
1363 | -svr4*) | |
1364 | os=-sysv4 | |
1365 | ;; | |
1366 | 1351 | -unixware*) |
1367 | 1352 | os=-sysv4.2uw |
1368 | 1353 | ;; |
1369 | 1354 | -gnu/linux*) |
1370 | 1355 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
1371 | 1356 | ;; |
1372 | # First accept the basic system types. | |
1357 | # es1800 is here to avoid being matched by es* (a different OS) | |
1358 | -es1800*) | |
1359 | os=-ose | |
1360 | ;; | |
1361 | # Now accept the basic system types. | |
1373 | 1362 | # The portable systems comes first. |
1374 | # Each alternative MUST END IN A *, to match a version number. | |
1363 | # Each alternative MUST end in a * to match a version number. | |
1375 | 1364 | # -sysv* is not here because it comes later, after sysvr4. |
1376 | 1365 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1377 | 1366 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
1381 | 1370 | | -aos* | -aros* | -cloudabi* | -sortix* \ |
1382 | 1371 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1383 | 1372 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1384 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1385 | | -bitrig* | -openbsd* | -solidbsd* \ | |
1373 | | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \ | |
1374 | | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \ | |
1386 | 1375 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1387 | 1376 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1388 | 1377 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1389 | 1378 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1390 | | -chorusos* | -chorusrdb* | -cegcc* \ | |
1379 | | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ | |
1391 | 1380 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1392 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1381 | | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1393 | 1382 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ |
1394 | 1383 | | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ |
1395 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | |
1384 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \ | |
1396 | 1385 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1397 | 1386 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ |
1398 | 1387 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1399 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | |
1388 | | -morphos* | -superux* | -rtmk* | -windiss* \ | |
1400 | 1389 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1401 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*) | |
1390 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \ | |
1391 | | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \ | |
1392 | | -midnightbsd*) | |
1402 | 1393 | # Remember, each alternative MUST END IN *, to match a version number. |
1403 | 1394 | ;; |
1404 | 1395 | -qnx*) |
1415 | 1406 | -nto*) |
1416 | 1407 | os=`echo $os | sed -e 's|nto|nto-qnx|'` |
1417 | 1408 | ;; |
1418 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | |
1419 | | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | |
1409 | -sim | -xray | -os68k* | -v88r* \ | |
1410 | | -windows* | -osx | -abug | -netware* | -os9* \ | |
1420 | 1411 | | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) |
1421 | 1412 | ;; |
1422 | 1413 | -mac*) |
1423 | os=`echo $os | sed -e 's|mac|macos|'` | |
1414 | os=`echo "$os" | sed -e 's|mac|macos|'` | |
1424 | 1415 | ;; |
1425 | 1416 | -linux-dietlibc) |
1426 | 1417 | os=-linux-dietlibc |
1429 | 1420 | os=`echo $os | sed -e 's|linux|linux-gnu|'` |
1430 | 1421 | ;; |
1431 | 1422 | -sunos5*) |
1432 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
1423 | os=`echo "$os" | sed -e 's|sunos5|solaris2|'` | |
1433 | 1424 | ;; |
1434 | 1425 | -sunos6*) |
1435 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
1426 | os=`echo "$os" | sed -e 's|sunos6|solaris3|'` | |
1436 | 1427 | ;; |
1437 | 1428 | -opened*) |
1438 | 1429 | os=-openedition |
1443 | 1434 | -wince*) |
1444 | 1435 | os=-wince |
1445 | 1436 | ;; |
1446 | -osfrose*) | |
1447 | os=-osfrose | |
1448 | ;; | |
1449 | -osf*) | |
1450 | os=-osf | |
1451 | ;; | |
1452 | 1437 | -utek*) |
1453 | 1438 | os=-bsd |
1454 | 1439 | ;; |
1473 | 1458 | -nova*) |
1474 | 1459 | os=-rtmk-nova |
1475 | 1460 | ;; |
1476 | -ns2 ) | |
1461 | -ns2) | |
1477 | 1462 | os=-nextstep2 |
1478 | 1463 | ;; |
1479 | 1464 | -nsk*) |
1495 | 1480 | -oss*) |
1496 | 1481 | os=-sysv3 |
1497 | 1482 | ;; |
1498 | -svr4) | |
1483 | -svr4*) | |
1499 | 1484 | os=-sysv4 |
1500 | 1485 | ;; |
1501 | 1486 | -svr3) |
1510 | 1495 | -ose*) |
1511 | 1496 | os=-ose |
1512 | 1497 | ;; |
1513 | -es1800*) | |
1514 | os=-ose | |
1515 | ;; | |
1516 | -xenix) | |
1517 | os=-xenix | |
1518 | ;; | |
1519 | 1498 | -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) |
1520 | 1499 | os=-mint |
1521 | 1500 | ;; |
1522 | -aros*) | |
1523 | os=-aros | |
1524 | ;; | |
1525 | 1501 | -zvmoe) |
1526 | 1502 | os=-zvmoe |
1527 | 1503 | ;; |
1528 | 1504 | -dicos*) |
1529 | 1505 | os=-dicos |
1530 | 1506 | ;; |
1507 | -pikeos*) | |
1508 | # Until real need of OS specific support for | |
1509 | # particular features comes up, bare metal | |
1510 | # configurations are quite functional. | |
1511 | case $basic_machine in | |
1512 | arm*) | |
1513 | os=-eabi | |
1514 | ;; | |
1515 | *) | |
1516 | os=-elf | |
1517 | ;; | |
1518 | esac | |
1519 | ;; | |
1531 | 1520 | -nacl*) |
1521 | ;; | |
1522 | -ios) | |
1532 | 1523 | ;; |
1533 | 1524 | -none) |
1534 | 1525 | ;; |
1535 | 1526 | *) |
1536 | 1527 | # Get rid of the `-' at the beginning of $os. |
1537 | 1528 | os=`echo $os | sed 's/[^-]*-//'` |
1538 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
1529 | echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2 | |
1539 | 1530 | exit 1 |
1540 | 1531 | ;; |
1541 | 1532 | esac |
1625 | 1616 | sparc-* | *-sun) |
1626 | 1617 | os=-sunos4.1.1 |
1627 | 1618 | ;; |
1619 | pru-*) | |
1620 | os=-elf | |
1621 | ;; | |
1628 | 1622 | *-be) |
1629 | 1623 | os=-beos |
1630 | 1624 | ;; |
1631 | *-haiku) | |
1632 | os=-haiku | |
1633 | ;; | |
1634 | 1625 | *-ibm) |
1635 | 1626 | os=-aix |
1636 | 1627 | ;; |
1670 | 1661 | m88k-omron*) |
1671 | 1662 | os=-luna |
1672 | 1663 | ;; |
1673 | *-next ) | |
1664 | *-next) | |
1674 | 1665 | os=-nextstep |
1675 | 1666 | ;; |
1676 | 1667 | *-sequent) |
1684 | 1675 | ;; |
1685 | 1676 | i370-*) |
1686 | 1677 | os=-mvs |
1687 | ;; | |
1688 | *-next) | |
1689 | os=-nextstep3 | |
1690 | 1678 | ;; |
1691 | 1679 | *-gould) |
1692 | 1680 | os=-sysv |
1797 | 1785 | vendor=stratus |
1798 | 1786 | ;; |
1799 | 1787 | esac |
1800 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
1788 | basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"` | |
1801 | 1789 | ;; |
1802 | 1790 | esac |
1803 | 1791 | |
1804 | echo $basic_machine$os | |
1792 | echo "$basic_machine$os" | |
1805 | 1793 | exit |
1806 | 1794 | |
1807 | 1795 | # Local variables: |
1808 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
1796 | # eval: (add-hook 'write-file-functions 'time-stamp) | |
1809 | 1797 | # time-stamp-start: "timestamp='" |
1810 | 1798 | # time-stamp-format: "%:y-%02m-%02d" |
1811 | 1799 | # time-stamp-end: "'" |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for teckit 2.5.8. | |
2 | # Generated by GNU Autoconf 2.69 for teckit 2.5.9. | |
3 | 3 | # |
4 | # Report bugs to <nrsi@sil.org>. | |
4 | # Report bugs to <wstech@sil.org>. | |
5 | 5 | # |
6 | 6 | # |
7 | 7 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
273 | 273 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
274 | 274 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
275 | 275 | else |
276 | $as_echo "$0: Please tell bug-autoconf@gnu.org and nrsi@sil.org about | |
277 | $0: your system, including any error possibly output before | |
278 | $0: this message. Then install a modern shell, or manually | |
279 | $0: run the script under such a shell if you do have one." | |
276 | $as_echo "$0: Please tell bug-autoconf@gnu.org and wstech@sil.org | |
277 | $0: about your system, including any error possibly output | |
278 | $0: before this message. Then install a modern shell, or | |
279 | $0: manually run the script under such a shell if you do | |
280 | $0: have one." | |
280 | 281 | fi |
281 | 282 | exit 1 |
282 | 283 | fi |
588 | 589 | # Identity of this package. |
589 | 590 | PACKAGE_NAME='teckit' |
590 | 591 | PACKAGE_TARNAME='teckit' |
591 | PACKAGE_VERSION='2.5.8' | |
592 | PACKAGE_STRING='teckit 2.5.8' | |
593 | PACKAGE_BUGREPORT='nrsi@sil.org' | |
592 | PACKAGE_VERSION='2.5.9' | |
593 | PACKAGE_STRING='teckit 2.5.9' | |
594 | PACKAGE_BUGREPORT='wstech@sil.org' | |
594 | 595 | PACKAGE_URL='' |
595 | 596 | |
596 | 597 | ac_unique_file="source/UnicodeNames.cpp" |
1363 | 1364 | # Omit some internal or obsolete options to make the list less imposing. |
1364 | 1365 | # This message is too long to be a string in the A/UX 3.1 sh. |
1365 | 1366 | cat <<_ACEOF |
1366 | \`configure' configures teckit 2.5.8 to adapt to many kinds of systems. | |
1367 | \`configure' configures teckit 2.5.9 to adapt to many kinds of systems. | |
1367 | 1368 | |
1368 | 1369 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1369 | 1370 | |
1435 | 1436 | |
1436 | 1437 | if test -n "$ac_init_help"; then |
1437 | 1438 | case $ac_init_help in |
1438 | short | recursive ) echo "Configuration of teckit 2.5.8:";; | |
1439 | short | recursive ) echo "Configuration of teckit 2.5.9:";; | |
1439 | 1440 | esac |
1440 | 1441 | cat <<\_ACEOF |
1441 | 1442 | |
1497 | 1498 | Use these variables to override the choices made by `configure' or to help |
1498 | 1499 | it to find libraries and programs with nonstandard names/locations. |
1499 | 1500 | |
1500 | Report bugs to <nrsi@sil.org>. | |
1501 | Report bugs to <wstech@sil.org>. | |
1501 | 1502 | _ACEOF |
1502 | 1503 | ac_status=$? |
1503 | 1504 | fi |
1560 | 1561 | test -n "$ac_init_help" && exit $ac_status |
1561 | 1562 | if $ac_init_version; then |
1562 | 1563 | cat <<\_ACEOF |
1563 | teckit configure 2.5.8 | |
1564 | teckit configure 2.5.9 | |
1564 | 1565 | generated by GNU Autoconf 2.69 |
1565 | 1566 | |
1566 | 1567 | Copyright (C) 2012 Free Software Foundation, Inc. |
2026 | 2027 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
2027 | 2028 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
2028 | 2029 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
2029 | ( $as_echo "## --------------------------- ## | |
2030 | ## Report this to nrsi@sil.org ## | |
2031 | ## --------------------------- ##" | |
2030 | ( $as_echo "## ----------------------------- ## | |
2031 | ## Report this to wstech@sil.org ## | |
2032 | ## ----------------------------- ##" | |
2032 | 2033 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2033 | 2034 | ;; |
2034 | 2035 | esac |
2050 | 2051 | This file contains any messages produced by compilers while |
2051 | 2052 | running configure, to aid debugging if configure makes a mistake. |
2052 | 2053 | |
2053 | It was created by teckit $as_me 2.5.8, which was | |
2054 | It was created by teckit $as_me 2.5.9, which was | |
2054 | 2055 | generated by GNU Autoconf 2.69. Invocation command line was |
2055 | 2056 | |
2056 | 2057 | $ $0 $@ |
3028 | 3029 | |
3029 | 3030 | # Define the identity of the package. |
3030 | 3031 | PACKAGE='teckit' |
3031 | VERSION='2.5.8' | |
3032 | VERSION='2.5.9' | |
3032 | 3033 | |
3033 | 3034 | |
3034 | 3035 | cat >>confdefs.h <<_ACEOF |
16781 | 16782 | SYSTEM_EXPAT_FALSE= |
16782 | 16783 | fi |
16783 | 16784 | |
16784 | expat_CFLAGS="$CFLAGS" | |
16785 | expat_CFLAGS="" | |
16785 | 16786 | expat_LIBS="$LIBS" |
16786 | 16787 | CFLAGS="$noexpat_CFLAGS" |
16787 | 16788 | LIBS="$noexpat_LIBS" |
17341 | 17342 | # report actual input values of CONFIG_FILES etc. instead of their |
17342 | 17343 | # values after options handling. |
17343 | 17344 | ac_log=" |
17344 | This file was extended by teckit $as_me 2.5.8, which was | |
17345 | This file was extended by teckit $as_me 2.5.9, which was | |
17345 | 17346 | generated by GNU Autoconf 2.69. Invocation command line was |
17346 | 17347 | |
17347 | 17348 | CONFIG_FILES = $CONFIG_FILES |
17401 | 17402 | Configuration commands: |
17402 | 17403 | $config_commands |
17403 | 17404 | |
17404 | Report bugs to <nrsi@sil.org>." | |
17405 | Report bugs to <wstech@sil.org>." | |
17405 | 17406 | |
17406 | 17407 | _ACEOF |
17407 | 17408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
17408 | 17409 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
17409 | 17410 | ac_cs_version="\\ |
17410 | teckit config.status 2.5.8 | |
17411 | teckit config.status 2.5.9 | |
17411 | 17412 | configured by $0, generated by GNU Autoconf 2.69, |
17412 | 17413 | with options \\"\$ac_cs_config\\" |
17413 | 17414 | |
18716 | 18717 | cat <<_LT_EOF >> "$cfgfile" |
18717 | 18718 | #! $SHELL |
18718 | 18719 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
18719 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18720 | 18720 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
18721 | 18721 | |
18722 | 18722 | # Provide generalized library-building support services. |
0 | 0 | AC_PREREQ(2.54) |
1 | AC_INIT(teckit, 2.5.8, nrsi@sil.org) | |
1 | AC_INIT(teckit, 2.5.9, wstech@sil.org) | |
2 | 2 | AM_CONFIG_HEADER([config.h]) |
3 | 3 | AC_CONFIG_SRCDIR([source/UnicodeNames.cpp]) |
4 | 4 | AC_CONFIG_MACRO_DIR([m4]) |
110 | 110 | noexpat_LIBS="$LIBS" |
111 | 111 | AC_CHECK_LIB(expat, XML_ExpatVersion) |
112 | 112 | AM_CONDITIONAL(SYSTEM_EXPAT, test x$ac_cv_lib_expat_XML_ExpatVersion = xyes) |
113 | expat_CFLAGS="$CFLAGS" | |
113 | expat_CFLAGS="" | |
114 | 114 | expat_LIBS="$LIBS" |
115 | 115 | CFLAGS="$noexpat_CFLAGS" |
116 | 116 | LIBS="$noexpat_LIBS" |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2013-05-30.07; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2014 Free Software Foundation, Inc. | |
3 | scriptversion=2016-01-11.22; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2017 Free Software Foundation, Inc. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
785 | 785 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
786 | 786 | # time-stamp-start: "scriptversion=" |
787 | 787 | # time-stamp-format: "%:y-%02m-%02d.%02H" |
788 | # time-stamp-time-zone: "UTC" | |
788 | # time-stamp-time-zone: "UTC0" | |
789 | 789 | # time-stamp-end: "; # UTC" |
790 | 790 | # End: |
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
Binary diff not shown
0 | # Makefile.in generated by automake 1.15 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.15.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | # Copyright (C) 1994-2014 Free Software Foundation, Inc. | |
3 | # Copyright (C) 1994-2017 Free Software Foundation, Inc. | |
4 | 4 | |
5 | 5 | # This Makefile.in is free software; the Free Software Foundation |
6 | 6 | # gives unlimited permission to copy and/or distribute it, |
11 | 11 | |
12 | 12 | Rest of the project: |
13 | 13 | |
14 | Copyright 2002-2018, SIL International | |
14 | Copyright 2002-2019, SIL International | |
15 | 15 | All rights reserved. |
16 | 16 | |
17 | 17 | This library is free software; you can redistribute it and/or modify |
30 | 30 | |
31 | 31 | PROGRAM=libtool |
32 | 32 | PACKAGE=libtool |
33 | VERSION="2.4.6 Debian-2.4.6-0.1" | |
33 | VERSION="2.4.6 Debian-2.4.6-2" | |
34 | 34 | package_revision=2.4.6 |
35 | 35 | |
36 | 36 | |
2067 | 2067 | compiler: $LTCC |
2068 | 2068 | compiler flags: $LTCFLAGS |
2069 | 2069 | linker: $LD (gnu? $with_gnu_ld) |
2070 | version: $progname (GNU libtool) 2.4.6 | |
2070 | version: $progname $scriptversion Debian-2.4.6-2 | |
2071 | 2071 | automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` |
2072 | 2072 | autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` |
2073 | 2073 |
727 | 727 | cat <<_LT_EOF >> "$cfgfile" |
728 | 728 | #! $SHELL |
729 | 729 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
730 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
731 | 730 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
732 | 731 | |
733 | 732 | # Provide generalized library-building support services. |
74 | 74 | const UInt32 byteMask = 0x000000BFUL; |
75 | 75 | const UInt32 byteMark = 0x00000080UL; |
76 | 76 | |
77 | #define FOUR_CHAR_CODE(a,b,c,d) (UInt32)((a << 24) + (b << 16) + (c << 8) + d) | |
77 | #define FOUR_CHAR_CODE(a,b,c,d) UInt32((a << 24) + (b << 16) + (c << 8) + d) | |
78 | 78 | |
79 | 79 | const UInt32 kCode_Byte = FOUR_CHAR_CODE('B','y','t','e'); |
80 | 80 | const UInt32 kCode_BU = FOUR_CHAR_CODE('B','-','>','U'); |
141 | 141 | { |
142 | 142 | TECkit_Status result = kStatus_CompilationFailed; |
143 | 143 | try { |
144 | Compiler* cmp = new Compiler(txt, len, kForm_Unspecified, (bool)doCompression, false, errFunc, userData); | |
144 | Compiler* cmp = new Compiler(txt, len, kForm_Unspecified, bool(doCompression), false, errFunc, userData); | |
145 | 145 | cmp->GetCompiledTable(*outTable, *outLen); |
146 | 146 | if (*outTable == 0) |
147 | 147 | result = kStatus_CompilationFailed; |
195 | 195 | const CharName *c = &gUnicodeNames[0]; |
196 | 196 | while (c->name != 0) |
197 | 197 | if (c->usv == usv) |
198 | return (char*)c->name; | |
198 | return const_cast<char*>(c->name); | |
199 | 199 | else |
200 | 200 | ++c; |
201 | 201 | return NULL; |
251 | 251 | TECkit_GetUnicodeValue(char* name) |
252 | 252 | { |
253 | 253 | const CharName *c = &gUnicodeNames[0]; |
254 | int len = strlen(name); | |
254 | size_t len = strlen(name); | |
255 | 255 | while (c->name != 0) |
256 | 256 | if (unicodeNameCompare(c->name, name, len) == 0) |
257 | return c->usv; | |
257 | return static_cast<int>(c->usv); | |
258 | 258 | else |
259 | 259 | ++c; |
260 | 260 | return -1; |
523 | 523 | compiledSize = 0; |
524 | 524 | usedExtStringRules = false; |
525 | 525 | |
526 | textPtr = (const unsigned char*)txt; | |
526 | textPtr = reinterpret_cast<const unsigned char*>(txt); | |
527 | 527 | textEnd = textPtr + len; |
528 | 528 | |
529 | 529 | ungotten = kInvalidChar; |
627 | 627 | errorState = false; |
628 | 628 | |
629 | 629 | string32::const_iterator i; |
630 | switch ((int)tok.type) { | |
630 | switch (int(tok.type)) { | |
631 | 631 | default: |
632 | 632 | Error("this can't happen!"); |
633 | 633 | break; |
770 | 770 | case '^': |
771 | 771 | // negation can only apply to a few things: |
772 | 772 | GetNextToken(); |
773 | switch ((int)tok.type) { | |
773 | switch (int(tok.type)) { | |
774 | 774 | case tok_Number: |
775 | 775 | AppendLiteral(tok.val, true); |
776 | 776 | break; |
942 | 942 | |
943 | 943 | case '{': |
944 | 944 | { |
945 | int repeatMin = 0; | |
946 | int repeatMax = 15; | |
945 | UInt32 repeatMin = 0; | |
946 | UInt32 repeatMax = 15; | |
947 | 947 | GetNextToken(); |
948 | 948 | if (tok.type == tok_Number) { |
949 | 949 | repeatMin = repeatMax = tok.val; |
996 | 996 | break; |
997 | 997 | if (!ExpectToken(tok_Number, "expected (NUMBER) STRING after Name")) |
998 | 998 | break; |
999 | int nameID = tok.val; | |
999 | UInt16 nameID = tok.val; | |
1000 | 1000 | if (!ExpectToken(')', "expected (NUMBER) STRING after Name")) |
1001 | 1001 | break; |
1002 | 1002 | ReadNameString(nameID); |
1128 | 1128 | bool ellipsisOK = false; |
1129 | 1129 | while (tok.type != ')' && tok.type != tok_Newline) { |
1130 | 1130 | GetNextToken(); |
1131 | switch ((int)tok.type) { | |
1131 | switch (int(tok.type)) { | |
1132 | 1132 | case tok_USV: |
1133 | 1133 | if (classType == 'B') { |
1134 | 1134 | Error("can't use Unicode value in byte encoding"); |
1249 | 1249 | break; |
1250 | 1250 | |
1251 | 1251 | default: |
1252 | Error("unexpected token within class", string((const char*)tokStart, (const char*)textPtr - (const char*)tokStart).c_str()); | |
1252 | Error("unexpected token within class", string(reinterpret_cast<const char *>(tokStart), reinterpret_cast<const char *>(textPtr - tokStart)).c_str()); | |
1253 | 1253 | break; |
1254 | 1254 | } |
1255 | 1255 | } |
1338 | 1338 | string trailer("</teckitMapping>\n"); |
1339 | 1339 | |
1340 | 1340 | compiledSize = header.length() + xmlRepresentation.length() + trailer.length(); |
1341 | compiledTable = (Byte*)malloc(compiledSize + 1); | |
1341 | compiledTable = static_cast<Byte*>(malloc(compiledSize + 1)); | |
1342 | 1342 | if (compiledTable == NULL) |
1343 | 1343 | throw bad_alloc(); |
1344 | 1344 | |
1377 | 1377 | // pack all the name records |
1378 | 1378 | string namesData; |
1379 | 1379 | for (vector<UInt16>::const_iterator i = nameIDs.begin(); i != nameIDs.end(); ++i) { |
1380 | appendToTable(offsets, (const char*)&offset, sizeof(offset)); | |
1380 | appendToTable(offsets, reinterpret_cast<const char*>(&offset), sizeof(offset)); | |
1381 | 1381 | NameRec r; |
1382 | 1382 | WRITE(r.nameID, *i); |
1383 | 1383 | WRITE(r.nameLength, names[*i].length()); |
1384 | namesData.append((const char*)&r, sizeof(r)); | |
1384 | namesData.append(reinterpret_cast<const char*>(&r), sizeof(r)); | |
1385 | 1385 | namesData.append(names[*i]); |
1386 | 1386 | if ((namesData.length() & 1) != 0) |
1387 | namesData.append(1, (char)0); | |
1387 | namesData.append(1, '\0'); | |
1388 | 1388 | offset += namesData.length() - prevLength; |
1389 | 1389 | prevLength = namesData.length(); |
1390 | 1390 | } |
1391 | 1391 | if ((namesData.length() & 2) != 0) |
1392 | namesData.append(2, (char)0); | |
1392 | namesData.append(2, '\0'); | |
1393 | 1393 | offset += namesData.length() - prevLength; |
1394 | 1394 | |
1395 | 1395 | // pack the offsets to the actual mapping tables |
1396 | 1396 | vector<string>::const_iterator t; |
1397 | 1397 | for (t = fwdTables.begin(); t != fwdTables.end(); ++t) { |
1398 | appendToTable(offsets, (const char*)&offset, sizeof(offset)); | |
1398 | appendToTable(offsets, reinterpret_cast<const char*>(&offset), sizeof(offset)); | |
1399 | 1399 | offset += t->size(); |
1400 | 1400 | } |
1401 | 1401 | for (t = revTables.end(); t != revTables.begin(); ) { |
1402 | 1402 | --t; |
1403 | appendToTable(offsets, (const char*)&offset, sizeof(offset)); | |
1403 | appendToTable(offsets, reinterpret_cast<const char*>(&offset), sizeof(offset)); | |
1404 | 1404 | offset += t->size(); |
1405 | 1405 | } |
1406 | 1406 | |
1416 | 1416 | for (t = revTables.begin(); t != revTables.end(); ++t) |
1417 | 1417 | compiledSize += t->length(); |
1418 | 1418 | |
1419 | compiledTable = (Byte*)malloc(compiledSize); | |
1419 | compiledTable = static_cast<Byte*>(malloc(compiledSize)); | |
1420 | 1420 | if (compiledTable != 0) { |
1421 | char* cp = (char*)compiledTable; | |
1421 | Byte* cp = compiledTable; | |
1422 | 1422 | memcpy(cp, &fh, sizeof(fh)); |
1423 | 1423 | cp += sizeof(fh); |
1424 | 1424 | memcpy(cp, offsets.data(), offsets.length()); |
1434 | 1434 | memcpy(cp, t->data(), t->length()); |
1435 | 1435 | cp += t->length(); |
1436 | 1436 | } |
1437 | if ((char*)compiledTable + compiledSize != cp) | |
1437 | if (compiledTable + compiledSize != cp) | |
1438 | 1438 | cerr << "error!" << endl; |
1439 | 1439 | } |
1440 | 1440 | else |
1444 | 1444 | if (errorCount == 0 && cmp) { |
1445 | 1445 | // do the compression... |
1446 | 1446 | unsigned long destLen = compiledSize * 11 / 10 + 20; |
1447 | Byte* dest = (Byte*)malloc(destLen + 8); | |
1447 | Byte* dest = static_cast<Byte*>(malloc(destLen + 8)); | |
1448 | 1448 | if (dest != 0) { |
1449 | 1449 | int result = compress2(dest + 8, &destLen, compiledTable, compiledSize, Z_BEST_COMPRESSION); |
1450 | 1450 | if (result == Z_OK) { |
1451 | 1451 | destLen += 8; |
1452 | dest = (Byte*)realloc(dest, destLen); // shrink dest to fit | |
1453 | WRITE(((FileHeader*)dest)->type, kMagicNumberCmp); | |
1454 | WRITE(((FileHeader*)dest)->version, compiledSize); | |
1452 | dest = static_cast<Byte*>(realloc(dest, destLen)); // shrink dest to fit | |
1453 | WRITE(reinterpret_cast<FileHeader*>(dest)->type, kMagicNumberCmp); | |
1454 | WRITE(reinterpret_cast<FileHeader*>(dest)->version, compiledSize); | |
1455 | 1455 | free(compiledTable); |
1456 | 1456 | compiledTable = dest; |
1457 | 1457 | compiledSize = destLen; |
1499 | 1499 | } else { bytesToWrite = 2; |
1500 | 1500 | c = 0x0000fffd; |
1501 | 1501 | }; |
1502 | rval.append((size_t)bytesToWrite, 0); | |
1503 | int index = rval.length(); | |
1502 | rval.append(size_t(bytesToWrite), 0); | |
1503 | size_t index = rval.length(); | |
1504 | 1504 | switch (bytesToWrite) { /* note: code falls through cases! */ |
1505 | case 4: rval[--index] = (c | byteMark) & byteMask; c >>= 6; | |
1506 | case 3: rval[--index] = (c | byteMark) & byteMask; c >>= 6; | |
1507 | case 2: rval[--index] = (c | byteMark) & byteMask; c >>= 6; | |
1505 | case 4: rval[--index] = static_cast<char>((c | byteMark) & byteMask); c >>= 6; | |
1506 | case 3: rval[--index] = static_cast<char>((c | byteMark) & byteMask); c >>= 6; | |
1507 | case 2: rval[--index] = static_cast<char>((c | byteMark) & byteMask); c >>= 6; | |
1508 | 1508 | case 1: rval[--index] = c | firstByteMark[bytesToWrite]; |
1509 | 1509 | }; |
1510 | 1510 | } |
1745 | 1745 | tok.strval.erase(tok.strval.begin(), tok.strval.end()); |
1746 | 1746 | #endif |
1747 | 1747 | while (len-- > 0) |
1748 | tok.strval.append(1, *str++); | |
1748 | tok.strval.append(1, static_cast<UInt32>(*str++)); | |
1749 | 1749 | return tok_Identifier; |
1750 | 1750 | } |
1751 | 1751 | |
1789 | 1789 | |
1790 | 1790 | case kForm_UTF16BE: |
1791 | 1791 | CHECK_AVAIL(2); |
1792 | rval = *textPtr++ << 8; | |
1792 | rval = static_cast<UInt32>(*textPtr++) << 8; | |
1793 | 1793 | rval += *textPtr++; |
1794 | 1794 | if (rval >= kSurrogateHighStart && rval <= kSurrogateHighEnd) { |
1795 | 1795 | // check that 2 more bytes are available |
1796 | 1796 | CHECK_AVAIL(2); |
1797 | UInt32 low = *textPtr++ << 8; | |
1797 | UInt32 low = static_cast<UInt32>(*textPtr++) << 8; | |
1798 | 1798 | low += *textPtr++; |
1799 | 1799 | rval = ((rval - kSurrogateHighStart) << halfShift) + (low - kSurrogateLowStart) + halfBase; |
1800 | 1800 | } |
1803 | 1803 | case kForm_UTF16LE: |
1804 | 1804 | CHECK_AVAIL(2); |
1805 | 1805 | rval = *textPtr++; |
1806 | rval += *textPtr++ << 8; | |
1806 | rval += static_cast<UInt32>(*textPtr++) << 8; | |
1807 | 1807 | if (rval >= kSurrogateHighStart && rval <= kSurrogateHighEnd) { |
1808 | 1808 | CHECK_AVAIL(2); |
1809 | 1809 | UInt32 low = *textPtr++; |
1810 | low += *textPtr++ << 8; | |
1810 | low += static_cast<UInt32>(*textPtr++) << 8; | |
1811 | 1811 | rval = ((rval - kSurrogateHighStart) << halfShift) + (low - kSurrogateLowStart) + halfBase; |
1812 | 1812 | } |
1813 | 1813 | break; |
1814 | 1814 | |
1815 | 1815 | case kForm_UTF32BE: |
1816 | 1816 | CHECK_AVAIL(4); |
1817 | rval = *textPtr++ << 24; | |
1818 | rval += *textPtr++ << 16; | |
1819 | rval += *textPtr++ << 8; | |
1817 | rval = static_cast<UInt32>(*textPtr++) << 24; | |
1818 | rval += static_cast<UInt32>(*textPtr++) << 16; | |
1819 | rval += static_cast<UInt32>(*textPtr++) << 8; | |
1820 | 1820 | rval += *textPtr++; |
1821 | 1821 | break; |
1822 | 1822 | |
1823 | 1823 | case kForm_UTF32LE: |
1824 | 1824 | CHECK_AVAIL(4); |
1825 | 1825 | rval = *textPtr++; |
1826 | rval += *textPtr++ << 8; | |
1827 | rval += *textPtr++ << 16; | |
1828 | rval += *textPtr++ << 24; | |
1826 | rval += static_cast<UInt32>(*textPtr++) << 8; | |
1827 | rval += static_cast<UInt32>(*textPtr++) << 16; | |
1828 | rval += static_cast<UInt32>(*textPtr++) << 24; | |
1829 | 1829 | break; |
1830 | 1830 | } |
1831 | 1831 | |
1945 | 1945 | case '/': |
1946 | 1946 | case '=': |
1947 | 1947 | case '@': |
1948 | tok.type = (tokenType)currCh; | |
1948 | tok.type = tokenType(currCh); | |
1949 | 1949 | return true; |
1950 | 1950 | |
1951 | 1951 | case '<': |
1952 | tok.type = (tokenType)'<'; | |
1952 | tok.type = tokenType('<'); | |
1953 | 1953 | if (textPtr < textEnd) { |
1954 | 1954 | if ((currCh = getChar()) == '>') |
1955 | 1955 | tok.type = tok_Map; |
1959 | 1959 | return true; |
1960 | 1960 | |
1961 | 1961 | case '.': |
1962 | tok.type = (tokenType)'.'; | |
1962 | tok.type = tokenType('.'); | |
1963 | 1963 | if (textPtr < textEnd) { |
1964 | 1964 | if ((currCh = getChar()) == '.') |
1965 | 1965 | tok.type = tok_Ellipsis; |
1977 | 1977 | goto DEFAULT; |
1978 | 1978 | } |
1979 | 1979 | } |
1980 | tok.type = (tokenType)'_'; | |
1980 | tok.type = tokenType('_'); | |
1981 | 1981 | return true; |
1982 | 1982 | |
1983 | 1983 | case '0': |
2132 | 2132 | cout << " at line " << line << endl; |
2133 | 2133 | } |
2134 | 2134 | else |
2135 | (*errorFunction)(errFuncUserData, (char*)msg, (char*)s, line); | |
2135 | (*errorFunction)(errFuncUserData, const_cast<char*>(msg), const_cast<char*>(s), line); | |
2136 | 2136 | errorState = true; |
2137 | 2137 | ++errorCount; |
2138 | 2138 | } |
2355 | 2355 | } |
2356 | 2356 | |
2357 | 2357 | void |
2358 | Compiler::SetMinMax(int repeatMin, int repeatMax) | |
2358 | Compiler::SetMinMax(UInt32 repeatMin, UInt32 repeatMax) | |
2359 | 2359 | { |
2360 | 2360 | Item* item = 0; |
2361 | 2361 | switch (ruleState) { |
2576 | 2576 | continue; |
2577 | 2577 | |
2578 | 2578 | default: |
2579 | cerr << "bad rep elem type: " << (int)i->type << endl; | |
2579 | cerr << "bad rep elem type: " << i->type << endl; | |
2580 | 2580 | break; |
2581 | 2581 | } |
2582 | 2582 | } |
2943 | 2943 | } |
2944 | 2944 | |
2945 | 2945 | void |
2946 | Compiler::appendMatchElem(string& packedRule, Item& item, int index, | |
2946 | Compiler::appendMatchElem(string& packedRule, Item& item, unsigned int index, | |
2947 | 2947 | vector<MatClass>& matchClasses) |
2948 | 2948 | { |
2949 | 2949 | MatchElem m; |
2950 | 2950 | WRITE(m.value.usv.data, 0); |
2951 | WRITE(m.flags.repeat, (item.repeatMin << 4) + item.repeatMax); | |
2951 | WRITE(m.flags.repeat, (static_cast<UInt32>(item.repeatMin) << 4) + item.repeatMax); | |
2952 | 2952 | if (item.negate) |
2953 | 2953 | WRITE(m.flags.type, kMatchElem_Negate); |
2954 | 2954 | else |
2996 | 2996 | WRITE(m.flags.type, READ(m.flags.type) | (kMatchElem_NonLit + kMatchElem_Type_EOS)); |
2997 | 2997 | break; |
2998 | 2998 | } |
2999 | const char* p = (const char*)&m; | |
3000 | packedRule.append(p, sizeof(m)); | |
2999 | packedRule.append(reinterpret_cast<const char*>(&m), sizeof(m)); | |
3001 | 3000 | } |
3002 | 3001 | |
3003 | 3002 | void |
3038 | 3037 | WRITE(r.flags.type, kRepElem_Unmapped); |
3039 | 3038 | break; |
3040 | 3039 | } |
3041 | const char* p = (const char*)&r; | |
3042 | packedRule.append(p, sizeof(r)); | |
3040 | packedRule.append(reinterpret_cast<const char*>(&r), sizeof(r)); | |
3043 | 3041 | } |
3044 | 3042 | |
3045 | 3043 | vector<Compiler::Item> |
3067 | 3065 | UInt8 plane = ch >> 16; |
3068 | 3066 | UInt8 page = (ch & 0x00ffff) >> 8; |
3069 | 3067 | if (buildVars.planeMap.size() <= plane) |
3070 | buildVars.planeMap.resize(plane + 1, 0xff); | |
3071 | if ((UInt8)buildVars.planeMap[plane] == (UInt8)0xff) { | |
3068 | buildVars.planeMap.resize(plane + 1, '\xff'); | |
3069 | if (UInt8(buildVars.planeMap[plane]) == 0xff) { | |
3072 | 3070 | buildVars.planeMap[plane] = buildVars.pageMaps.size(); |
3073 | 3071 | buildVars.pageMaps.resize(buildVars.pageMaps.size() + 1); |
3074 | buildVars.pageMaps.back().resize(256, 0xff); | |
3075 | } | |
3076 | UInt8 planeIndex = buildVars.planeMap[plane]; | |
3072 | buildVars.pageMaps.back().resize(256, '\xff'); | |
3073 | } | |
3074 | UInt8 planeIndex = static_cast<UInt8>(buildVars.planeMap[plane]); | |
3077 | 3075 | string& pageMap = buildVars.pageMaps[planeIndex]; |
3078 | if ((UInt8)pageMap[page] == (UInt8)0xff) { | |
3076 | if (UInt8(pageMap[page]) == 0xff) { | |
3079 | 3077 | pageMap[page] = buildVars.charMaps.size(); |
3080 | 3078 | buildVars.charMaps.resize(buildVars.charMaps.size() + 1); |
3081 | 3079 | buildVars.charMaps.back().resize(256); |
3082 | 3080 | } |
3083 | vector<UInt16>& charMap = buildVars.charMaps[(UInt8)pageMap[page]]; | |
3081 | vector<UInt16>& charMap = buildVars.charMaps[UInt8(pageMap[page])]; | |
3084 | 3082 | charMap[ch & 0x0000ff] = index; |
3085 | 3083 | } |
3086 | 3084 | |
3087 | 3085 | void |
3088 | Compiler::align(string& table, int alignment) | |
3089 | { | |
3090 | int remainder = table.size() % alignment; | |
3086 | Compiler::align(string& table, string::size_type alignment) | |
3087 | { | |
3088 | const string::size_type length = table.size(); | |
3089 | const string::size_type remainder = length % alignment; | |
3091 | 3090 | if (remainder != 0) |
3092 | table.resize(table.size() + alignment - remainder); | |
3091 | table.resize(length + alignment - remainder); | |
3093 | 3092 | } |
3094 | 3093 | |
3095 | 3094 | class Member { |
3267 | 3266 | // mapping to Unicode: direct lookup can only support one Unicode character |
3268 | 3267 | if (rule.replaceStr.size() == 1) { |
3269 | 3268 | const Item& rep = rule.replaceStr.front(); |
3270 | int t = rep.tag.length() > 0 ? findTag(rep.tag, rule.matchStr) : 0; | |
3269 | vector<Item>::size_type tag; | |
3270 | if (rep.tag.length() > 0) { | |
3271 | const int result = findTag(rep.tag, rule.matchStr); | |
3272 | if (result < 0) { | |
3273 | Error("tag not found", rep.tag.c_str(), rule.lineNumber); | |
3274 | continue; | |
3275 | } | |
3276 | tag = static_cast<vector<Item>::size_type>(result); | |
3277 | } else { | |
3278 | tag = 0; | |
3279 | } | |
3271 | 3280 | switch (rep.type) { |
3272 | 3281 | case 0: |
3273 | 3282 | WRITE(lookup[i].usv, rep.val); |
3275 | 3284 | |
3276 | 3285 | case kMatchElem_Type_Class: |
3277 | 3286 | { |
3278 | if (t == -1) { | |
3279 | Error("tag not found", rep.tag.c_str(), rule.lineNumber); | |
3280 | continue; | |
3281 | } | |
3282 | const Item& mat = rule.matchStr[t]; |