diff options
| author | Paul Eggert | 2018-08-27 18:59:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-08-27 19:00:14 -0700 |
| commit | f1acdff5e04df90821732333c1bb9d8f586f08d2 (patch) | |
| tree | 71b9a449169d96a7eaeb1bf07d0f14327cf9bfa0 | |
| parent | 717b0341aafb9ae9b93395dba1192b12c4459f0c (diff) | |
| download | emacs-f1acdff5e04df90821732333c1bb9d8f586f08d2.tar.gz emacs-f1acdff5e04df90821732333c1bb9d8f586f08d2.zip | |
Update from Gnulib
* build-aux/config.sub, lib/intprops.h, lib/regex_internal.c:
* lib/regex_internal.h, lib/unistd.in.h, m4/limits-h.m4:
* m4/stdint.m4, m4/unistd_h.m4:
Copy from Gnulib.
* lib/gnulib.mk.in: Regenerate.
| -rwxr-xr-x | build-aux/config.sub | 566 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 6 | ||||
| -rw-r--r-- | lib/intprops.h | 16 | ||||
| -rw-r--r-- | lib/regex_internal.c | 4 | ||||
| -rw-r--r-- | lib/regex_internal.h | 3 | ||||
| -rw-r--r-- | lib/unistd.in.h | 30 | ||||
| -rw-r--r-- | m4/limits-h.m4 | 8 | ||||
| -rw-r--r-- | m4/stdint.m4 | 5 | ||||
| -rw-r--r-- | m4/unistd_h.m4 | 7 |
9 files changed, 352 insertions, 293 deletions
diff --git a/build-aux/config.sub b/build-aux/config.sub index 6e8fa65549e..49b16732eb6 100755 --- a/build-aux/config.sub +++ b/build-aux/config.sub | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # Configuration validation subroutine script. | 2 | # Configuration validation subroutine script. |
| 3 | # Copyright 1992-2018 Free Software Foundation, Inc. | 3 | # Copyright 1992-2018 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | timestamp='2018-08-13' | 5 | timestamp='2018-08-24' |
| 6 | 6 | ||
| 7 | # This file is free software; you can redistribute it and/or modify it | 7 | # This file is free software; you can redistribute it and/or modify it |
| 8 | # under the terms of the GNU General Public License as published by | 8 | # under the terms of the GNU General Public License as published by |
| @@ -692,6 +692,9 @@ case $basic_machine in | |||
| 692 | mac | mpw | mac-mpw) | 692 | mac | mpw | mac-mpw) |
| 693 | basic_machine=m68k-apple | 693 | basic_machine=m68k-apple |
| 694 | ;; | 694 | ;; |
| 695 | microblaze | microblazeel) | ||
| 696 | basic_machine=$basic_machine-xilinx | ||
| 697 | ;; | ||
| 695 | pmac | pmac-mpw) | 698 | pmac | pmac-mpw) |
| 696 | basic_machine=powerpc-apple | 699 | basic_machine=powerpc-apple |
| 697 | ;; | 700 | ;; |
| @@ -699,226 +702,6 @@ case $basic_machine in | |||
| 699 | basic_machine=xps100-honeywell | 702 | basic_machine=xps100-honeywell |
| 700 | ;; | 703 | ;; |
| 701 | 704 | ||
| 702 | # Recognize the basic CPU types without company name. | ||
| 703 | # Some are omitted here because they have special meanings below. | ||
| 704 | 1750a | 580 \ | ||
| 705 | | a29k \ | ||
| 706 | | aarch64 | aarch64_be \ | ||
| 707 | | abacus \ | ||
| 708 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||
| 709 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||
| 710 | | am33_2.0 \ | ||
| 711 | | arc | arceb \ | ||
| 712 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \ | ||
| 713 | | avr | avr32 \ | ||
| 714 | | asmjs \ | ||
| 715 | | ba \ | ||
| 716 | | be32 | be64 \ | ||
| 717 | | bfin \ | ||
| 718 | | c4x | c8051 | clipper | csky \ | ||
| 719 | | d10v | d30v | dlx | dsp16xx \ | ||
| 720 | | e2k | epiphany \ | ||
| 721 | | fido | fr30 | frv | ft32 \ | ||
| 722 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
| 723 | | hexagon \ | ||
| 724 | | i370 | i860 | i960 | ia16 | ia64 \ | ||
| 725 | | ip2k | iq2000 \ | ||
| 726 | | k1om \ | ||
| 727 | | le32 | le64 \ | ||
| 728 | | lm32 \ | ||
| 729 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | ||
| 730 | | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \ | ||
| 731 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | ||
| 732 | | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
| 733 | | mips16 \ | ||
| 734 | | mips64 | mips64el \ | ||
| 735 | | mips64octeon | mips64octeonel \ | ||
| 736 | | mips64orion | mips64orionel \ | ||
| 737 | | mips64r5900 | mips64r5900el \ | ||
| 738 | | mips64vr | mips64vrel \ | ||
| 739 | | mips64vr4100 | mips64vr4100el \ | ||
| 740 | | mips64vr4300 | mips64vr4300el \ | ||
| 741 | | mips64vr5000 | mips64vr5000el \ | ||
| 742 | | mips64vr5900 | mips64vr5900el \ | ||
| 743 | | mipsisa32 | mipsisa32el \ | ||
| 744 | | mipsisa32r2 | mipsisa32r2el \ | ||
| 745 | | mipsisa32r6 | mipsisa32r6el \ | ||
| 746 | | mipsisa64 | mipsisa64el \ | ||
| 747 | | mipsisa64r2 | mipsisa64r2el \ | ||
| 748 | | mipsisa64r6 | mipsisa64r6el \ | ||
| 749 | | mipsisa64sb1 | mipsisa64sb1el \ | ||
| 750 | | mipsisa64sr71k | mipsisa64sr71kel \ | ||
| 751 | | mipsr5900 | mipsr5900el \ | ||
| 752 | | mipstx39 | mipstx39el \ | ||
| 753 | | mn10200 | mn10300 \ | ||
| 754 | | moxie \ | ||
| 755 | | mt \ | ||
| 756 | | msp430 \ | ||
| 757 | | nds32 | nds32le | nds32be \ | ||
| 758 | | nfp \ | ||
| 759 | | nios | nios2 | nios2eb | nios2el \ | ||
| 760 | | ns16k | ns32k \ | ||
| 761 | | open8 | or1k | or1knd | or32 \ | ||
| 762 | | pdp10 | pj | pjl \ | ||
| 763 | | powerpc | powerpc64 | powerpc64le | powerpcle \ | ||
| 764 | | pru \ | ||
| 765 | | pyramid \ | ||
| 766 | | riscv | riscv32 | riscv64 \ | ||
| 767 | | rl78 | rx \ | ||
| 768 | | score \ | ||
| 769 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh[23]ele \ | ||
| 770 | | sh64 | sh64le \ | ||
| 771 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||
| 772 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||
| 773 | | spu \ | ||
| 774 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ||
| 775 | | ubicom32 \ | ||
| 776 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | ||
| 777 | | visium \ | ||
| 778 | | wasm32 \ | ||
| 779 | | x86 | xc16x | xstormy16 | xgate | xtensa \ | ||
| 780 | | z8k | z80) | ||
| 781 | basic_machine=$basic_machine-unknown | ||
| 782 | ;; | ||
| 783 | c54x) | ||
| 784 | basic_machine=tic54x-unknown | ||
| 785 | ;; | ||
| 786 | c55x) | ||
| 787 | basic_machine=tic55x-unknown | ||
| 788 | ;; | ||
| 789 | c6x) | ||
| 790 | basic_machine=tic6x-unknown | ||
| 791 | ;; | ||
| 792 | leon|leon[3-9]) | ||
| 793 | basic_machine=sparc-$basic_machine | ||
| 794 | ;; | ||
| 795 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65) | ||
| 796 | ;; | ||
| 797 | m9s12z | m68hcs12z | hcs12z | s12z) | ||
| 798 | basic_machine=s12z-unknown | ||
| 799 | ;; | ||
| 800 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) | ||
| 801 | basic_machine=s12z-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
| 802 | ;; | ||
| 803 | ms1) | ||
| 804 | basic_machine=mt-unknown | ||
| 805 | ;; | ||
| 806 | strongarm | thumb | xscale) | ||
| 807 | basic_machine=arm-unknown | ||
| 808 | ;; | ||
| 809 | xscaleeb) | ||
| 810 | basic_machine=armeb-unknown | ||
| 811 | ;; | ||
| 812 | |||
| 813 | xscaleel) | ||
| 814 | basic_machine=armel-unknown | ||
| 815 | ;; | ||
| 816 | |||
| 817 | # We use `pc' rather than `unknown' | ||
| 818 | # because (1) that's what they normally are, and | ||
| 819 | # (2) the word "unknown" tends to confuse beginning users. | ||
| 820 | i*86 | x86_64) | ||
| 821 | basic_machine=$basic_machine-pc | ||
| 822 | ;; | ||
| 823 | # Recognize the basic CPU types with company name. | ||
| 824 | 1750a-* | 580-* \ | ||
| 825 | | a29k-* \ | ||
| 826 | | aarch64-* | aarch64_be-* \ | ||
| 827 | | abacus-* \ | ||
| 828 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||
| 829 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||
| 830 | | alphapca5[67]-* | alpha64pca5[67]-* \ | ||
| 831 | | am33_2.0-* \ | ||
| 832 | | arc-* | arceb-* \ | ||
| 833 | | arm-* | arm[lb]e-* | arme[lb]-* | armv*-* \ | ||
| 834 | | avr-* | avr32-* \ | ||
| 835 | | asmjs-* \ | ||
| 836 | | ba-* \ | ||
| 837 | | be32-* | be64-* \ | ||
| 838 | | bfin-* | bs2000-* \ | ||
| 839 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | ||
| 840 | | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \ | ||
| 841 | | d10v-* | d30v-* | dlx-* | dsp16xx-* \ | ||
| 842 | | e2k-* | elxsi-* | epiphany-* \ | ||
| 843 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | ft32-* | fx80-* \ | ||
| 844 | | h8300-* | h8500-* \ | ||
| 845 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||
| 846 | | hexagon-* \ | ||
| 847 | | i370-* | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ||
| 848 | | ip2k-* | iq2000-* \ | ||
| 849 | | k1om-* \ | ||
| 850 | | le32-* | le64-* \ | ||
| 851 | | lm32-* \ | ||
| 852 | | m32c-* | m32r-* | m32rle-* \ | ||
| 853 | | m5200-* | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* | v70-* | w65-* \ | ||
| 854 | | m6811-* | m68hc11-* | m6812-* | m68hc12-* | m68hcs12x-* | nvptx-* | picochip-* \ | ||
| 855 | | m88110-* | m88k-* | maxq-* | mb-* | mcore-* | mep-* | metag-* \ | ||
| 856 | | microblaze-* | microblazeel-* \ | ||
| 857 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||
| 858 | | mips16-* \ | ||
| 859 | | mips64-* | mips64el-* \ | ||
| 860 | | mips64octeon-* | mips64octeonel-* \ | ||
| 861 | | mips64orion-* | mips64orionel-* \ | ||
| 862 | | mips64r5900-* | mips64r5900el-* \ | ||
| 863 | | mips64vr-* | mips64vrel-* \ | ||
| 864 | | mips64vr4100-* | mips64vr4100el-* \ | ||
| 865 | | mips64vr4300-* | mips64vr4300el-* \ | ||
| 866 | | mips64vr5000-* | mips64vr5000el-* \ | ||
| 867 | | mips64vr5900-* | mips64vr5900el-* \ | ||
| 868 | | mipsisa32-* | mipsisa32el-* \ | ||
| 869 | | mipsisa32r2-* | mipsisa32r2el-* \ | ||
| 870 | | mipsisa32r6-* | mipsisa32r6el-* \ | ||
| 871 | | mipsisa64-* | mipsisa64el-* \ | ||
| 872 | | mipsisa64r2-* | mipsisa64r2el-* \ | ||
| 873 | | mipsisa64r6-* | mipsisa64r6el-* \ | ||
| 874 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | ||
| 875 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||
| 876 | | mipsr5900-* | mipsr5900el-* \ | ||
| 877 | | mipstx39-* | mipstx39el-* \ | ||
| 878 | | mmix-* \ | ||
| 879 | | mn10200-* | mn10300-* \ | ||
| 880 | | moxie-* \ | ||
| 881 | | mt-* \ | ||
| 882 | | msp430-* \ | ||
| 883 | | nds32-* | nds32le-* | nds32be-* \ | ||
| 884 | | nfp-* \ | ||
| 885 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | ||
| 886 | | none-* | np1-* | ns16k-* | ns32k-* \ | ||
| 887 | | open8-* \ | ||
| 888 | | or1k*-* \ | ||
| 889 | | or32-* \ | ||
| 890 | | orion-* \ | ||
| 891 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||
| 892 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | ||
| 893 | | pru-* \ | ||
| 894 | | pyramid-* \ | ||
| 895 | | riscv-* | riscv32-* | riscv64-* \ | ||
| 896 | | rl78-* | romp-* | rs6000-* | rx-* \ | ||
| 897 | | score-* \ | ||
| 898 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]ae[lb]-* | sh[23]e-* | she[lb]-* | sh[lb]e-* \ | ||
| 899 | | sh[1234]e[lb]-* | sh[12345][lb]e-* | sh[23]ele-* | sh64-* | sh64le-* \ | ||
| 900 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||
| 901 | | sparclite-* \ | ||
| 902 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | ||
| 903 | | spu-* \ | ||
| 904 | | tahoe-* \ | ||
| 905 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||
| 906 | | tron-* \ | ||
| 907 | | ubicom32-* \ | ||
| 908 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | ||
| 909 | | vax-* \ | ||
| 910 | | visium-* \ | ||
| 911 | | wasm32-* \ | ||
| 912 | | we32k-* \ | ||
| 913 | | x86-* | x86_64-* | xc16x-* | xgate-* | xps100-* \ | ||
| 914 | | xstormy16-* | xtensa*-* \ | ||
| 915 | | ymp-* \ | ||
| 916 | | z8k-* | z80-*) | ||
| 917 | ;; | ||
| 918 | # Recognize the basic CPU types without company name, with glob match. | ||
| 919 | xtensa*) | ||
| 920 | basic_machine=$basic_machine-unknown | ||
| 921 | ;; | ||
| 922 | # Recognize the various machine names and aliases which stand | 705 | # Recognize the various machine names and aliases which stand |
| 923 | # for a CPU type and a company and sometimes even an OS. | 706 | # for a CPU type and a company and sometimes even an OS. |
| 924 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | 707 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
| @@ -927,12 +710,6 @@ case $basic_machine in | |||
| 927 | 3b*) | 710 | 3b*) |
| 928 | basic_machine=we32k-att | 711 | basic_machine=we32k-att |
| 929 | ;; | 712 | ;; |
| 930 | amd64) | ||
| 931 | basic_machine=x86_64-pc | ||
| 932 | ;; | ||
| 933 | amd64-*) | ||
| 934 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
| 935 | ;; | ||
| 936 | blackfin-*) | 713 | blackfin-*) |
| 937 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 714 | basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'` |
| 938 | os=linux | 715 | os=linux |
| @@ -954,20 +731,6 @@ case $basic_machine in | |||
| 954 | basic_machine=c90-cray | 731 | basic_machine=c90-cray |
| 955 | os=${os:-unicos} | 732 | os=${os:-unicos} |
| 956 | ;; | 733 | ;; |
| 957 | cr16 | cr16-*) | ||
| 958 | basic_machine=cr16-unknown | ||
| 959 | os=${os:-elf} | ||
| 960 | ;; | ||
| 961 | crisv32 | crisv32-* | etraxfs*) | ||
| 962 | basic_machine=crisv32-axis | ||
| 963 | ;; | ||
| 964 | cris | cris-* | etrax*) | ||
| 965 | basic_machine=cris-axis | ||
| 966 | ;; | ||
| 967 | crx) | ||
| 968 | basic_machine=crx-unknown | ||
| 969 | os=${os:-elf} | ||
| 970 | ;; | ||
| 971 | decsystem10* | dec10*) | 734 | decsystem10* | dec10*) |
| 972 | basic_machine=pdp10-dec | 735 | basic_machine=pdp10-dec |
| 973 | os=tops10 | 736 | os=tops10 |
| @@ -1079,9 +842,6 @@ case $basic_machine in | |||
| 1079 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 842 | basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'` |
| 1080 | os=linux | 843 | os=linux |
| 1081 | ;; | 844 | ;; |
| 1082 | microblaze*) | ||
| 1083 | basic_machine=microblaze-xilinx | ||
| 1084 | ;; | ||
| 1085 | miniframe) | 845 | miniframe) |
| 1086 | basic_machine=m68000-convergent | 846 | basic_machine=m68000-convergent |
| 1087 | ;; | 847 | ;; |
| @@ -1118,21 +878,6 @@ case $basic_machine in | |||
| 1118 | np1) | 878 | np1) |
| 1119 | basic_machine=np1-gould | 879 | basic_machine=np1-gould |
| 1120 | ;; | 880 | ;; |
| 1121 | neo-tandem) | ||
| 1122 | basic_machine=neo-tandem | ||
| 1123 | ;; | ||
| 1124 | nse-tandem) | ||
| 1125 | basic_machine=nse-tandem | ||
| 1126 | ;; | ||
| 1127 | nsr-tandem) | ||
| 1128 | basic_machine=nsr-tandem | ||
| 1129 | ;; | ||
| 1130 | nsv-tandem) | ||
| 1131 | basic_machine=nsv-tandem | ||
| 1132 | ;; | ||
| 1133 | nsx-tandem) | ||
| 1134 | basic_machine=nsx-tandem | ||
| 1135 | ;; | ||
| 1136 | op50n-* | op60c-*) | 881 | op50n-* | op60c-*) |
| 1137 | basic_machine=hppa1.1-oki | 882 | basic_machine=hppa1.1-oki |
| 1138 | os=proelf | 883 | os=proelf |
| @@ -1157,9 +902,6 @@ case $basic_machine in | |||
| 1157 | pc532 | pc532-*) | 902 | pc532 | pc532-*) |
| 1158 | basic_machine=ns32k-pc532 | 903 | basic_machine=ns32k-pc532 |
| 1159 | ;; | 904 | ;; |
| 1160 | pc98) | ||
| 1161 | basic_machine=i386-pc | ||
| 1162 | ;; | ||
| 1163 | pc98-*) | 905 | pc98-*) |
| 1164 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 906 | basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'` |
| 1165 | ;; | 907 | ;; |
| @@ -1222,12 +964,6 @@ case $basic_machine in | |||
| 1222 | rtpc | rtpc-*) | 964 | rtpc | rtpc-*) |
| 1223 | basic_machine=romp-ibm | 965 | basic_machine=romp-ibm |
| 1224 | ;; | 966 | ;; |
| 1225 | s390 | s390-*) | ||
| 1226 | basic_machine=s390-ibm | ||
| 1227 | ;; | ||
| 1228 | s390x | s390x-*) | ||
| 1229 | basic_machine=s390x-ibm | ||
| 1230 | ;; | ||
| 1231 | sb1) | 967 | sb1) |
| 1232 | basic_machine=mipsisa64sb1-unknown | 968 | basic_machine=mipsisa64sb1-unknown |
| 1233 | ;; | 969 | ;; |
| @@ -1254,12 +990,6 @@ case $basic_machine in | |||
| 1254 | strongarm-* | thumb-*) | 990 | strongarm-* | thumb-*) |
| 1255 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` | 991 | basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` |
| 1256 | ;; | 992 | ;; |
| 1257 | tile*-*) | ||
| 1258 | ;; | ||
| 1259 | tile*) | ||
| 1260 | basic_machine=$basic_machine-unknown | ||
| 1261 | os=${os:-linux-gnu} | ||
| 1262 | ;; | ||
| 1263 | tx39) | 993 | tx39) |
| 1264 | basic_machine=mipstx39-unknown | 994 | basic_machine=mipstx39-unknown |
| 1265 | ;; | 995 | ;; |
| @@ -1272,17 +1002,13 @@ case $basic_machine in | |||
| 1272 | vpp*|vx|vx-*) | 1002 | vpp*|vx|vx-*) |
| 1273 | basic_machine=f301-fujitsu | 1003 | basic_machine=f301-fujitsu |
| 1274 | ;; | 1004 | ;; |
| 1275 | w65*) | 1005 | w65) |
| 1276 | basic_machine=w65-wdc | 1006 | basic_machine=w65-wdc |
| 1277 | os=none | ||
| 1278 | ;; | 1007 | ;; |
| 1279 | w89k-*) | 1008 | w89k-*) |
| 1280 | basic_machine=hppa1.1-winbond | 1009 | basic_machine=hppa1.1-winbond |
| 1281 | os=proelf | 1010 | os=proelf |
| 1282 | ;; | 1011 | ;; |
| 1283 | x64) | ||
| 1284 | basic_machine=x86_64-pc | ||
| 1285 | ;; | ||
| 1286 | xscale-* | xscalee[bl]-*) | 1012 | xscale-* | xscalee[bl]-*) |
| 1287 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` | 1013 | basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` |
| 1288 | ;; | 1014 | ;; |
| @@ -1290,6 +1016,288 @@ case $basic_machine in | |||
| 1290 | basic_machine=none-none | 1016 | basic_machine=none-none |
| 1291 | ;; | 1017 | ;; |
| 1292 | 1018 | ||
| 1019 | c54x) | ||
| 1020 | basic_machine=tic54x-unknown | ||
| 1021 | ;; | ||
| 1022 | c55x) | ||
| 1023 | basic_machine=tic55x-unknown | ||
| 1024 | ;; | ||
| 1025 | c6x) | ||
| 1026 | basic_machine=tic6x-unknown | ||
| 1027 | ;; | ||
| 1028 | leon | leon[3-9]) | ||
| 1029 | basic_machine=sparc-$basic_machine | ||
| 1030 | ;; | ||
| 1031 | m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70) | ||
| 1032 | ;; | ||
| 1033 | ms1) | ||
| 1034 | basic_machine=mt-unknown | ||
| 1035 | ;; | ||
| 1036 | strongarm | thumb | xscale) | ||
| 1037 | basic_machine=arm-unknown | ||
| 1038 | ;; | ||
| 1039 | xscaleeb) | ||
| 1040 | basic_machine=armeb-unknown | ||
| 1041 | ;; | ||
| 1042 | |||
| 1043 | xscaleel) | ||
| 1044 | basic_machine=armel-unknown | ||
| 1045 | ;; | ||
| 1046 | |||
| 1047 | # We use `pc' rather than `unknown' | ||
| 1048 | # because (1) that's what they normally are, and | ||
| 1049 | # (2) the word "unknown" tends to confuse beginning users. | ||
| 1050 | i*86 | x86_64) | ||
| 1051 | basic_machine=$basic_machine-pc | ||
| 1052 | ;; | ||
| 1053 | # These rules are duplicated from below for sake of the special case above; | ||
| 1054 | # i.e. things that normalized to x86 arches should also default to "pc" | ||
| 1055 | pc98) | ||
| 1056 | basic_machine=i386-pc | ||
| 1057 | ;; | ||
| 1058 | x64 | amd64) | ||
| 1059 | basic_machine=x86_64-pc | ||
| 1060 | ;; | ||
| 1061 | |||
| 1062 | # Recognize the cannonical CPU Types that limit and/or modify the | ||
| 1063 | # company names they are paired with. | ||
| 1064 | amd64-*) | ||
| 1065 | basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
| 1066 | ;; | ||
| 1067 | cr16) | ||
| 1068 | basic_machine=cr16-unknown | ||
| 1069 | os=${os:-elf} | ||
| 1070 | ;; | ||
| 1071 | cr16-*) | ||
| 1072 | os=${os:-elf} | ||
| 1073 | ;; | ||
| 1074 | crisv32 | crisv32-* | etraxfs*) | ||
| 1075 | basic_machine=crisv32-axis | ||
| 1076 | ;; | ||
| 1077 | cris | cris-* | etrax*) | ||
| 1078 | basic_machine=cris-axis | ||
| 1079 | ;; | ||
| 1080 | crx-*) | ||
| 1081 | os=${os:-elf} | ||
| 1082 | ;; | ||
| 1083 | crx) | ||
| 1084 | basic_machine=crx-unknown | ||
| 1085 | os=${os:-elf} | ||
| 1086 | ;; | ||
| 1087 | m9s12z | m68hcs12z | hcs12z | s12z) | ||
| 1088 | basic_machine=s12z-unknown | ||
| 1089 | ;; | ||
| 1090 | m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*) | ||
| 1091 | basic_machine=s12z-`echo "$basic_machine" | sed 's/^[^-]*-//'` | ||
| 1092 | ;; | ||
| 1093 | neo-tandem) | ||
| 1094 | basic_machine=neo-tandem | ||
| 1095 | ;; | ||
| 1096 | nse-tandem) | ||
| 1097 | basic_machine=nse-tandem | ||
| 1098 | ;; | ||
| 1099 | nsr-tandem) | ||
| 1100 | basic_machine=nsr-tandem | ||
| 1101 | ;; | ||
| 1102 | nsv-tandem) | ||
| 1103 | basic_machine=nsv-tandem | ||
| 1104 | ;; | ||
| 1105 | nsx-tandem) | ||
| 1106 | basic_machine=nsx-tandem | ||
| 1107 | ;; | ||
| 1108 | s390 | s390-*) | ||
| 1109 | basic_machine=s390-ibm | ||
| 1110 | ;; | ||
| 1111 | s390x | s390x-*) | ||
| 1112 | basic_machine=s390x-ibm | ||
| 1113 | ;; | ||
| 1114 | tile*-*) | ||
| 1115 | os=${os:-linux-gnu} | ||
| 1116 | ;; | ||
| 1117 | tile*) | ||
| 1118 | basic_machine=$basic_machine-unknown | ||
| 1119 | os=${os:-linux-gnu} | ||
| 1120 | ;; | ||
| 1121 | |||
| 1122 | # Recognize the cannonical CPU types that are allowed with any | ||
| 1123 | # company name. | ||
| 1124 | 1750a-* | 580-* \ | ||
| 1125 | | a29k-* \ | ||
| 1126 | | aarch64-* | aarch64_be-* \ | ||
| 1127 | | abacus-* \ | ||
| 1128 | | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | ||
| 1129 | | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | ||
| 1130 | | alphapca5[67]-* | alpha64pca5[67]-* \ | ||
| 1131 | | am33_2.0-* \ | ||
| 1132 | | arc-* | arceb-* \ | ||
| 1133 | | arm-* | arm[lb]e-* | arme[lb]-* | armv*-* \ | ||
| 1134 | | avr-* | avr32-* \ | ||
| 1135 | | asmjs-* \ | ||
| 1136 | | ba-* \ | ||
| 1137 | | be32-* | be64-* \ | ||
| 1138 | | bfin-* | bs2000-* \ | ||
| 1139 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | ||
| 1140 | | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \ | ||
| 1141 | | d10v-* | d30v-* | dlx-* | dsp16xx-* \ | ||
| 1142 | | e2k-* | elxsi-* | epiphany-* \ | ||
| 1143 | | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | ft32-* | fx80-* \ | ||
| 1144 | | h8300-* | h8500-* \ | ||
| 1145 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | ||
| 1146 | | hexagon-* \ | ||
| 1147 | | i370-* | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ | ||
| 1148 | | ip2k-* | iq2000-* \ | ||
| 1149 | | k1om-* \ | ||
| 1150 | | le32-* | le64-* \ | ||
| 1151 | | lm32-* \ | ||
| 1152 | | m32c-* | m32r-* | m32rle-* \ | ||
| 1153 | | m5200-* | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* | v70-* | w65-* \ | ||
| 1154 | | m6811-* | m68hc11-* | m6812-* | m68hc12-* | m68hcs12x-* | nvptx-* | picochip-* \ | ||
| 1155 | | m88110-* | m88k-* | maxq-* | mb-* | mcore-* | mep-* | metag-* \ | ||
| 1156 | | microblaze-* | microblazeel-* \ | ||
| 1157 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | ||
| 1158 | | mips16-* \ | ||
| 1159 | | mips64-* | mips64el-* \ | ||
| 1160 | | mips64octeon-* | mips64octeonel-* \ | ||
| 1161 | | mips64orion-* | mips64orionel-* \ | ||
| 1162 | | mips64r5900-* | mips64r5900el-* \ | ||
| 1163 | | mips64vr-* | mips64vrel-* \ | ||
| 1164 | | mips64vr4100-* | mips64vr4100el-* \ | ||
| 1165 | | mips64vr4300-* | mips64vr4300el-* \ | ||
| 1166 | | mips64vr5000-* | mips64vr5000el-* \ | ||
| 1167 | | mips64vr5900-* | mips64vr5900el-* \ | ||
| 1168 | | mipsisa32-* | mipsisa32el-* \ | ||
| 1169 | | mipsisa32r2-* | mipsisa32r2el-* \ | ||
| 1170 | | mipsisa32r6-* | mipsisa32r6el-* \ | ||
| 1171 | | mipsisa64-* | mipsisa64el-* \ | ||
| 1172 | | mipsisa64r2-* | mipsisa64r2el-* \ | ||
| 1173 | | mipsisa64r6-* | mipsisa64r6el-* \ | ||
| 1174 | | mipsisa64sb1-* | mipsisa64sb1el-* \ | ||
| 1175 | | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | ||
| 1176 | | mipsr5900-* | mipsr5900el-* \ | ||
| 1177 | | mipstx39-* | mipstx39el-* \ | ||
| 1178 | | mmix-* \ | ||
| 1179 | | mn10200-* | mn10300-* \ | ||
| 1180 | | moxie-* \ | ||
| 1181 | | mt-* \ | ||
| 1182 | | msp430-* \ | ||
| 1183 | | nds32-* | nds32le-* | nds32be-* \ | ||
| 1184 | | nfp-* \ | ||
| 1185 | | nios-* | nios2-* | nios2eb-* | nios2el-* \ | ||
| 1186 | | none-* | np1-* | ns16k-* | ns32k-* \ | ||
| 1187 | | open8-* \ | ||
| 1188 | | or1k*-* \ | ||
| 1189 | | or32-* \ | ||
| 1190 | | orion-* \ | ||
| 1191 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | ||
| 1192 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | powerpcspe-* \ | ||
| 1193 | | pru-* \ | ||
| 1194 | | pyramid-* \ | ||
| 1195 | | riscv-* | riscv32-* | riscv64-* \ | ||
| 1196 | | rl78-* | romp-* | rs6000-* | rx-* \ | ||
| 1197 | | score-* \ | ||
| 1198 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]ae[lb]-* | sh[23]e-* | she[lb]-* | sh[lb]e-* \ | ||
| 1199 | | sh[1234]e[lb]-* | sh[12345][lb]e-* | sh[23]ele-* | sh64-* | sh64le-* \ | ||
| 1200 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | ||
| 1201 | | sparclite-* \ | ||
| 1202 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ | ||
| 1203 | | spu-* \ | ||
| 1204 | | tahoe-* \ | ||
| 1205 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | ||
| 1206 | | tron-* \ | ||
| 1207 | | ubicom32-* \ | ||
| 1208 | | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | ||
| 1209 | | vax-* \ | ||
| 1210 | | visium-* \ | ||
| 1211 | | wasm32-* \ | ||
| 1212 | | we32k-* \ | ||
| 1213 | | x86-* | x86_64-* | xc16x-* | xgate-* | xps100-* \ | ||
| 1214 | | xstormy16-* | xtensa*-* \ | ||
| 1215 | | ymp-* \ | ||
| 1216 | | z8k-* | z80-*) | ||
| 1217 | ;; | ||
| 1218 | |||
| 1219 | # Recognize the basic CPU types without company name. | ||
| 1220 | # Some are omitted here because they have special meanings below. | ||
| 1221 | 1750a | 580 \ | ||
| 1222 | | a29k \ | ||
| 1223 | | aarch64 | aarch64_be \ | ||
| 1224 | | abacus \ | ||
| 1225 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | ||
| 1226 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | ||
| 1227 | | am33_2.0 \ | ||
| 1228 | | arc | arceb \ | ||
| 1229 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \ | ||
| 1230 | | avr | avr32 \ | ||
| 1231 | | asmjs \ | ||
| 1232 | | ba \ | ||
| 1233 | | be32 | be64 \ | ||
| 1234 | | bfin \ | ||
| 1235 | | c4x | c8051 | clipper | csky \ | ||
| 1236 | | d10v | d30v | dlx | dsp16xx \ | ||
| 1237 | | e2k | epiphany \ | ||
| 1238 | | fido | fr30 | frv | ft32 \ | ||
| 1239 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | ||
| 1240 | | hexagon \ | ||
| 1241 | | i370 | i860 | i960 | ia16 | ia64 \ | ||
| 1242 | | ip2k | iq2000 \ | ||
| 1243 | | k1om \ | ||
| 1244 | | le32 | le64 \ | ||
| 1245 | | lm32 \ | ||
| 1246 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ | ||
| 1247 | | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip \ | ||
| 1248 | | maxq | mb | mcore | mep | metag \ | ||
| 1249 | | mips | mipsbe | mipseb | mipsel | mipsle \ | ||
| 1250 | | mips16 \ | ||
| 1251 | | mips64 | mips64el \ | ||
| 1252 | | mips64octeon | mips64octeonel \ | ||
| 1253 | | mips64orion | mips64orionel \ | ||
| 1254 | | mips64r5900 | mips64r5900el \ | ||
| 1255 | | mips64vr | mips64vrel \ | ||
| 1256 | | mips64vr4100 | mips64vr4100el \ | ||
| 1257 | | mips64vr4300 | mips64vr4300el \ | ||
| 1258 | | mips64vr5000 | mips64vr5000el \ | ||
| 1259 | | mips64vr5900 | mips64vr5900el \ | ||
| 1260 | | mipsisa32 | mipsisa32el \ | ||
| 1261 | | mipsisa32r2 | mipsisa32r2el \ | ||
| 1262 | | mipsisa32r6 | mipsisa32r6el \ | ||
| 1263 | | mipsisa64 | mipsisa64el \ | ||
| 1264 | | mipsisa64r2 | mipsisa64r2el \ | ||
| 1265 | | mipsisa64r6 | mipsisa64r6el \ | ||
| 1266 | | mipsisa64sb1 | mipsisa64sb1el \ | ||
| 1267 | | mipsisa64sr71k | mipsisa64sr71kel \ | ||
| 1268 | | mipsr5900 | mipsr5900el \ | ||
| 1269 | | mipstx39 | mipstx39el \ | ||
| 1270 | | mn10200 | mn10300 \ | ||
| 1271 | | moxie \ | ||
| 1272 | | mt \ | ||
| 1273 | | msp430 \ | ||
| 1274 | | nds32 | nds32le | nds32be \ | ||
| 1275 | | nfp \ | ||
| 1276 | | nios | nios2 | nios2eb | nios2el \ | ||
| 1277 | | ns16k | ns32k \ | ||
| 1278 | | open8 | or1k | or1knd | or32 \ | ||
| 1279 | | pdp10 | pj | pjl \ | ||
| 1280 | | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \ | ||
| 1281 | | pru \ | ||
| 1282 | | pyramid \ | ||
| 1283 | | riscv | riscv32 | riscv64 \ | ||
| 1284 | | rl78 | rx \ | ||
| 1285 | | score \ | ||
| 1286 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh[23]ele \ | ||
| 1287 | | sh64 | sh64le \ | ||
| 1288 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | ||
| 1289 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | ||
| 1290 | | spu \ | ||
| 1291 | | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ||
| 1292 | | ubicom32 \ | ||
| 1293 | | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | ||
| 1294 | | visium \ | ||
| 1295 | | wasm32 \ | ||
| 1296 | | x86 | xc16x | xstormy16 | xgate | xtensa* \ | ||
| 1297 | | z8k | z80) | ||
| 1298 | basic_machine=$basic_machine-unknown | ||
| 1299 | ;; | ||
| 1300 | |||
| 1293 | *) | 1301 | *) |
| 1294 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 | 1302 | echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2 |
| 1295 | exit 1 | 1303 | exit 1 |
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index 666105b74bb..2e265b3068b 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -303,6 +303,7 @@ GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@ | |||
| 303 | GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ | 303 | GNULIB_GETLOGIN = @GNULIB_GETLOGIN@ |
| 304 | GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ | 304 | GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@ |
| 305 | GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ | 305 | GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@ |
| 306 | GNULIB_GETPASS = @GNULIB_GETPASS@ | ||
| 306 | GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ | 307 | GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@ |
| 307 | GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ | 308 | GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@ |
| 308 | GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ | 309 | GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@ |
| @@ -548,6 +549,7 @@ HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@ | |||
| 548 | HAVE_GETLOGIN = @HAVE_GETLOGIN@ | 549 | HAVE_GETLOGIN = @HAVE_GETLOGIN@ |
| 549 | HAVE_GETOPT_H = @HAVE_GETOPT_H@ | 550 | HAVE_GETOPT_H = @HAVE_GETOPT_H@ |
| 550 | HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ | 551 | HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@ |
| 552 | HAVE_GETPASS = @HAVE_GETPASS@ | ||
| 551 | HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ | 553 | HAVE_GETSUBOPT = @HAVE_GETSUBOPT@ |
| 552 | HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ | 554 | HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@ |
| 553 | HAVE_GRANTPT = @HAVE_GRANTPT@ | 555 | HAVE_GRANTPT = @HAVE_GRANTPT@ |
| @@ -854,6 +856,7 @@ REPLACE_GETGROUPS = @REPLACE_GETGROUPS@ | |||
| 854 | REPLACE_GETLINE = @REPLACE_GETLINE@ | 856 | REPLACE_GETLINE = @REPLACE_GETLINE@ |
| 855 | REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ | 857 | REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@ |
| 856 | REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ | 858 | REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@ |
| 859 | REPLACE_GETPASS = @REPLACE_GETPASS@ | ||
| 857 | REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ | 860 | REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@ |
| 858 | REPLACE_GMTIME = @REPLACE_GMTIME@ | 861 | REPLACE_GMTIME = @REPLACE_GMTIME@ |
| 859 | REPLACE_ISATTY = @REPLACE_ISATTY@ | 862 | REPLACE_ISATTY = @REPLACE_ISATTY@ |
| @@ -3098,6 +3101,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H | |||
| 3098 | -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \ | 3101 | -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \ |
| 3099 | -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \ | 3102 | -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \ |
| 3100 | -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \ | 3103 | -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \ |
| 3104 | -e 's/@''GNULIB_GETPASS''@/$(GNULIB_GETPASS)/g' \ | ||
| 3101 | -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \ | 3105 | -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \ |
| 3102 | -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \ | 3106 | -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \ |
| 3103 | -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \ | 3107 | -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \ |
| @@ -3141,6 +3145,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H | |||
| 3141 | -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ | 3145 | -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \ |
| 3142 | -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ | 3146 | -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \ |
| 3143 | -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ | 3147 | -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \ |
| 3148 | -e 's|@''HAVE_GETPASS''@|$(HAVE_GETPASS)|g' \ | ||
| 3144 | -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ | 3149 | -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \ |
| 3145 | -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ | 3150 | -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \ |
| 3146 | -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ | 3151 | -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \ |
| @@ -3184,6 +3189,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H | |||
| 3184 | -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ | 3189 | -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \ |
| 3185 | -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ | 3190 | -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \ |
| 3186 | -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ | 3191 | -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \ |
| 3192 | -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \ | ||
| 3187 | -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ | 3193 | -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \ |
| 3188 | -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ | 3194 | -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \ |
| 3189 | -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ | 3195 | -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \ |
diff --git a/lib/intprops.h b/lib/intprops.h index 15e470cbc6e..3d6b3cf4d9b 100644 --- a/lib/intprops.h +++ b/lib/intprops.h | |||
| @@ -22,12 +22,13 @@ | |||
| 22 | 22 | ||
| 23 | #include <limits.h> | 23 | #include <limits.h> |
| 24 | 24 | ||
| 25 | /* Return a value with the common real type of E and V and the value of V. */ | 25 | /* Return a value with the common real type of E and V and the value of V. |
| 26 | #define _GL_INT_CONVERT(e, v) (0 * (e) + (v)) | 26 | Do not evaluate E. */ |
| 27 | #define _GL_INT_CONVERT(e, v) ((1 ? 0 : (e)) + (v)) | ||
| 27 | 28 | ||
| 28 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see | 29 | /* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see |
| 29 | <https://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>. */ | 30 | <https://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>. */ |
| 30 | #define _GL_INT_NEGATE_CONVERT(e, v) (0 * (e) - (v)) | 31 | #define _GL_INT_NEGATE_CONVERT(e, v) ((1 ? 0 : (e)) - (v)) |
| 31 | 32 | ||
| 32 | /* The extra casts in the following macros work around compiler bugs, | 33 | /* The extra casts in the following macros work around compiler bugs, |
| 33 | e.g., in Cray C 5.0.3.0. */ | 34 | e.g., in Cray C 5.0.3.0. */ |
| @@ -40,13 +41,14 @@ | |||
| 40 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) | 41 | #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) |
| 41 | 42 | ||
| 42 | /* Return 1 if the real expression E, after promotion, has a | 43 | /* Return 1 if the real expression E, after promotion, has a |
| 43 | signed or floating type. */ | 44 | signed or floating type. Do not evaluate E. */ |
| 44 | #define EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) | 45 | #define EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) |
| 45 | 46 | ||
| 46 | 47 | ||
| 47 | /* Minimum and maximum values for integer types and expressions. */ | 48 | /* Minimum and maximum values for integer types and expressions. */ |
| 48 | 49 | ||
| 49 | /* The width in bits of the integer type or expression T. | 50 | /* The width in bits of the integer type or expression T. |
| 51 | Do not evaluate T. | ||
| 50 | Padding bits are not supported; this is checked at compile-time below. */ | 52 | Padding bits are not supported; this is checked at compile-time below. */ |
| 51 | #define TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT) | 53 | #define TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT) |
| 52 | 54 | ||
| @@ -58,7 +60,7 @@ | |||
| 58 | : ((((t) 1 << (TYPE_WIDTH (t) - 2)) - 1) * 2 + 1))) | 60 | : ((((t) 1 << (TYPE_WIDTH (t) - 2)) - 1) * 2 + 1))) |
| 59 | 61 | ||
| 60 | /* The maximum and minimum values for the type of the expression E, | 62 | /* The maximum and minimum values for the type of the expression E, |
| 61 | after integer promotion. E should not have side effects. */ | 63 | after integer promotion. E is not evaluated. */ |
| 62 | #define _GL_INT_MINIMUM(e) \ | 64 | #define _GL_INT_MINIMUM(e) \ |
| 63 | (EXPR_SIGNED (e) \ | 65 | (EXPR_SIGNED (e) \ |
| 64 | ? ~ _GL_SIGNED_INT_MAXIMUM (e) \ | 66 | ? ~ _GL_SIGNED_INT_MAXIMUM (e) \ |
| @@ -340,8 +342,8 @@ | |||
| 340 | Arguments should be free of side effects. */ | 342 | Arguments should be free of side effects. */ |
| 341 | #define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \ | 343 | #define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \ |
| 342 | op_result_overflow (a, b, \ | 344 | op_result_overflow (a, b, \ |
| 343 | _GL_INT_MINIMUM (0 * (b) + (a)), \ | 345 | _GL_INT_MINIMUM ((1 ? 0 : (b)) + (a)), \ |
| 344 | _GL_INT_MAXIMUM (0 * (b) + (a))) | 346 | _GL_INT_MAXIMUM ((1 ? 0 : (b)) + (a))) |
| 345 | 347 | ||
| 346 | /* Store the low-order bits of A + B, A - B, A * B, respectively, into *R. | 348 | /* Store the low-order bits of A + B, A - B, A * B, respectively, into *R. |
| 347 | Return 1 if the result overflows. See above for restrictions. */ | 349 | Return 1 if the result overflows. See above for restrictions. */ |
diff --git a/lib/regex_internal.c b/lib/regex_internal.c index 32373565e6d..e3ce4abfa6b 100644 --- a/lib/regex_internal.c +++ b/lib/regex_internal.c | |||
| @@ -317,7 +317,7 @@ build_wcs_upper_buffer (re_string_t *pstr) | |||
| 317 | mbclen = __mbrtowc (&wc, | 317 | mbclen = __mbrtowc (&wc, |
| 318 | ((const char *) pstr->raw_mbs + pstr->raw_mbs_idx | 318 | ((const char *) pstr->raw_mbs + pstr->raw_mbs_idx |
| 319 | + byte_idx), remain_len, &pstr->cur_state); | 319 | + byte_idx), remain_len, &pstr->cur_state); |
| 320 | if (BE (mbclen < (size_t) -2, 1)) | 320 | if (BE (0 < mbclen && mbclen < (size_t) -2, 1)) |
| 321 | { | 321 | { |
| 322 | wchar_t wcu = __towupper (wc); | 322 | wchar_t wcu = __towupper (wc); |
| 323 | if (wcu != wc) | 323 | if (wcu != wc) |
| @@ -386,7 +386,7 @@ build_wcs_upper_buffer (re_string_t *pstr) | |||
| 386 | else | 386 | else |
| 387 | p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + src_idx; | 387 | p = (const char *) pstr->raw_mbs + pstr->raw_mbs_idx + src_idx; |
| 388 | mbclen = __mbrtowc (&wc, p, remain_len, &pstr->cur_state); | 388 | mbclen = __mbrtowc (&wc, p, remain_len, &pstr->cur_state); |
| 389 | if (BE (mbclen < (size_t) -2, 1)) | 389 | if (BE (0 < mbclen && mbclen < (size_t) -2, 1)) |
| 390 | { | 390 | { |
| 391 | wchar_t wcu = __towupper (wc); | 391 | wchar_t wcu = __towupper (wc); |
| 392 | if (wcu != wc) | 392 | if (wcu != wc) |
diff --git a/lib/regex_internal.h b/lib/regex_internal.h index 7bbe802bc53..dd0900b719f 100644 --- a/lib/regex_internal.h +++ b/lib/regex_internal.h | |||
| @@ -149,7 +149,10 @@ | |||
| 149 | /* Rename to standard API for using out of glibc. */ | 149 | /* Rename to standard API for using out of glibc. */ |
| 150 | #ifndef _LIBC | 150 | #ifndef _LIBC |
| 151 | # undef __wctype | 151 | # undef __wctype |
| 152 | # undef __iswalnum | ||
| 152 | # undef __iswctype | 153 | # undef __iswctype |
| 154 | # undef __towlower | ||
| 155 | # undef __towupper | ||
| 153 | # define __wctype wctype | 156 | # define __wctype wctype |
| 154 | # define __iswalnum iswalnum | 157 | # define __iswalnum iswalnum |
| 155 | # define __iswctype iswctype | 158 | # define __iswctype iswctype |
diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 55bbb6ca3b7..66f254d60f5 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h | |||
| @@ -935,6 +935,36 @@ _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - " | |||
| 935 | #endif | 935 | #endif |
| 936 | 936 | ||
| 937 | 937 | ||
| 938 | #if @GNULIB_GETPASS@ | ||
| 939 | /* Function getpass() from module 'getpass': | ||
| 940 | Read a password from /dev/tty or stdin. | ||
| 941 | Function getpass() from module 'getpass-gnu': | ||
| 942 | Read a password of arbitrary length from /dev/tty or stdin. */ | ||
| 943 | # if @REPLACE_GETPASS@ | ||
| 944 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 945 | # undef getpass | ||
| 946 | # define getpass rpl_getpass | ||
| 947 | # endif | ||
| 948 | _GL_FUNCDECL_RPL (getpass, char *, (const char *prompt) | ||
| 949 | _GL_ARG_NONNULL ((1))); | ||
| 950 | _GL_CXXALIAS_RPL (getpass, char *, (const char *prompt)); | ||
| 951 | # else | ||
| 952 | # if !@HAVE_GETPASS@ | ||
| 953 | _GL_FUNCDECL_SYS (getpass, char *, (const char *prompt) | ||
| 954 | _GL_ARG_NONNULL ((1))); | ||
| 955 | # endif | ||
| 956 | _GL_CXXALIAS_SYS (getpass, char *, (const char *prompt)); | ||
| 957 | # endif | ||
| 958 | _GL_CXXALIASWARN (getpass); | ||
| 959 | #elif defined GNULIB_POSIXCHECK | ||
| 960 | # undef getpass | ||
| 961 | # if HAVE_RAW_DECL_GETPASS | ||
| 962 | _GL_WARN_ON_USE (getpass, "getpass is unportable - " | ||
| 963 | "use gnulib module getpass or getpass-gnu for portability"); | ||
| 964 | # endif | ||
| 965 | #endif | ||
| 966 | |||
| 967 | |||
| 938 | #if @GNULIB_GETUSERSHELL@ | 968 | #if @GNULIB_GETUSERSHELL@ |
| 939 | /* Return the next valid login shell on the system, or NULL when the end of | 969 | /* Return the next valid login shell on the system, or NULL when the end of |
| 940 | the list has been reached. */ | 970 | the list has been reached. */ |
diff --git a/m4/limits-h.m4 b/m4/limits-h.m4 index 511dcef5e04..83886634396 100644 --- a/m4/limits-h.m4 +++ b/m4/limits-h.m4 | |||
| @@ -29,3 +29,11 @@ AC_DEFUN_ONCE([gl_LIMITS_H], | |||
| 29 | AC_SUBST([LIMITS_H]) | 29 | AC_SUBST([LIMITS_H]) |
| 30 | AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"]) | 30 | AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"]) |
| 31 | ]) | 31 | ]) |
| 32 | |||
| 33 | dnl Unconditionally enables the replacement of <limits.h>. | ||
| 34 | AC_DEFUN([gl_REPLACE_LIMITS_H], | ||
| 35 | [ | ||
| 36 | AC_REQUIRE([gl_LIMITS_H]) | ||
| 37 | LIMITS_H='limits.h' | ||
| 38 | AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"]) | ||
| 39 | ]) | ||
diff --git a/m4/stdint.m4 b/m4/stdint.m4 index b86184c2ea6..38dbbedffec 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # stdint.m4 serial 51 | 1 | # stdint.m4 serial 52 |
| 2 | dnl Copyright (C) 2001-2018 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2001-2018 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -364,8 +364,7 @@ int32_t i32 = INT32_C (0x7fffffff); | |||
| 364 | esac | 364 | esac |
| 365 | 365 | ||
| 366 | dnl The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH. | 366 | dnl The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH. |
| 367 | LIMITS_H=limits.h | 367 | gl_REPLACE_LIMITS_H |
| 368 | AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"]) | ||
| 369 | 368 | ||
| 370 | AC_SUBST([HAVE_C99_STDINT_H]) | 369 | AC_SUBST([HAVE_C99_STDINT_H]) |
| 371 | AC_SUBST([HAVE_SYS_BITYPES_H]) | 370 | AC_SUBST([HAVE_SYS_BITYPES_H]) |
diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4 index 159c48aeef1..3ba64da8a0b 100644 --- a/m4/unistd_h.m4 +++ b/m4/unistd_h.m4 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | # unistd_h.m4 serial 73 | 1 | # unistd_h.m4 serial 74 |
| 2 | dnl Copyright (C) 2006-2018 Free Software Foundation, Inc. | 2 | dnl Copyright (C) 2006-2018 Free Software Foundation, Inc. |
| 3 | dnl This file is free software; the Free Software Foundation | 3 | dnl This file is free software; the Free Software Foundation |
| 4 | dnl gives unlimited permission to copy and/or distribute it, | 4 | dnl gives unlimited permission to copy and/or distribute it, |
| @@ -43,7 +43,7 @@ AC_DEFUN([gl_UNISTD_H], | |||
| 43 | #endif | 43 | #endif |
| 44 | ]], [chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat | 44 | ]], [chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat |
| 45 | fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups | 45 | fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups |
| 46 | gethostname getlogin getlogin_r getpagesize | 46 | gethostname getlogin getlogin_r getpagesize getpass |
| 47 | getusershell setusershell endusershell | 47 | getusershell setusershell endusershell |
| 48 | group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite | 48 | group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite |
| 49 | readlink readlinkat rmdir sethostname sleep symlink symlinkat | 49 | readlink readlinkat rmdir sethostname sleep symlink symlinkat |
| @@ -83,6 +83,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], | |||
| 83 | GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN]) | 83 | GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN]) |
| 84 | GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) | 84 | GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R]) |
| 85 | GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) | 85 | GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE]) |
| 86 | GNULIB_GETPASS=0; AC_SUBST([GNULIB_GETPASS]) | ||
| 86 | GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) | 87 | GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL]) |
| 87 | GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER]) | 88 | GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER]) |
| 88 | GNULIB_ISATTY=0; AC_SUBST([GNULIB_ISATTY]) | 89 | GNULIB_ISATTY=0; AC_SUBST([GNULIB_ISATTY]) |
| @@ -126,6 +127,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], | |||
| 126 | HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) | 127 | HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) |
| 127 | HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) | 128 | HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) |
| 128 | HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) | 129 | HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) |
| 130 | HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS]) | ||
| 129 | HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER]) | 131 | HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER]) |
| 130 | HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) | 132 | HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) |
| 131 | HAVE_LINK=1; AC_SUBST([HAVE_LINK]) | 133 | HAVE_LINK=1; AC_SUBST([HAVE_LINK]) |
| @@ -168,6 +170,7 @@ AC_DEFUN([gl_UNISTD_H_DEFAULTS], | |||
| 168 | REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) | 170 | REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) |
| 169 | REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) | 171 | REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) |
| 170 | REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) | 172 | REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) |
| 173 | REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS]) | ||
| 171 | REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY]) | 174 | REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY]) |
| 172 | REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) | 175 | REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) |
| 173 | REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) | 176 | REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) |