summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément DAVID <clement.david@esi-group.com>2019-10-04 09:42:44 +0200
committerClément DAVID <clement.david@esi-group.com>2019-10-04 10:01:51 +0200
commitea94d2dcf5e6856d24b6d86ee15f43ceb3b1085c (patch)
tree4ddd037d8d99f36203678be1fb1c29b4261ba09b
parent1027146451424bf5c2987f3bbf46e86bae7704be (diff)
downloadscilab-ea94d2dcf5e6856d24b6d86ee15f43ceb3b1085c.zip
scilab-ea94d2dcf5e6856d24b6d86ee15f43ceb3b1085c.tar.gz
Linux: update to automake 1.16.1
Change-Id: I7cd40ec68f2d9af93c5bf2fba9db471f2b0ae6e6
-rw-r--r--scilab/Makefile.in123
-rw-r--r--scilab/aclocal.m4193
-rwxr-xr-xscilab/config/ar-lib6
-rwxr-xr-xscilab/config/compile10
-rwxr-xr-xscilab/config/config.guess642
-rwxr-xr-xscilab/config/config.sub2534
-rwxr-xr-xscilab/config/depcomp10
-rwxr-xr-xscilab/config/install-sh45
-rw-r--r--scilab/config/ltmain.sh2
-rwxr-xr-xscilab/config/missing16
-rwxr-xr-xscilab/config/mkinstalldirs6
-rwxr-xr-xscilab/configure191
-rw-r--r--scilab/contrib/Makefile.in14
-rw-r--r--scilab/desktop/Makefile.in16
-rw-r--r--scilab/desktop/images/icons/Makefile.in14
-rw-r--r--scilab/modules/Makefile.in16
-rw-r--r--scilab/modules/action_binding/Makefile.in80
-rw-r--r--scilab/modules/api_scilab/Makefile.in141
-rw-r--r--scilab/modules/arnoldi/Makefile.in90
-rw-r--r--scilab/modules/ast/Makefile.in1229
-rw-r--r--scilab/modules/atoms/Makefile.in14
-rw-r--r--scilab/modules/boolean/Makefile.in81
-rw-r--r--scilab/modules/cacsd/Makefile.in172
-rw-r--r--scilab/modules/call_scilab/Makefile.in76
-rw-r--r--scilab/modules/commons/Makefile.in69
-rw-r--r--scilab/modules/compatibility_functions/Makefile.in14
-rw-r--r--scilab/modules/completion/Makefile.in175
-rw-r--r--scilab/modules/console/Makefile.in249
-rw-r--r--scilab/modules/core/Makefile.in576
-rw-r--r--scilab/modules/core/includes/machine.h.in6
-rw-r--r--scilab/modules/coverage/Makefile.in126
-rw-r--r--scilab/modules/data_structures/Makefile.in70
-rw-r--r--scilab/modules/demo_tools/Makefile.in14
-rw-r--r--scilab/modules/development_tools/Makefile.in14
-rw-r--r--scilab/modules/development_tools/src/fake/Makefile.in14
-rw-r--r--scilab/modules/differential_equations/Makefile.in164
-rw-r--r--scilab/modules/dynamic_link/Makefile.in115
-rw-r--r--scilab/modules/dynamic_link/src/scripts/Makefile.in59
-rw-r--r--scilab/modules/dynamic_link/src/scripts/aclocal.m4193
-rwxr-xr-xscilab/modules/dynamic_link/src/scripts/configure191
-rw-r--r--scilab/modules/elementary_functions/Makefile.in615
-rw-r--r--scilab/modules/external_objects/Makefile.in440
-rw-r--r--scilab/modules/external_objects_java/Makefile.in230
-rw-r--r--scilab/modules/fftw/Makefile.in154
-rw-r--r--scilab/modules/fileio/Makefile.in536
-rw-r--r--scilab/modules/functions/Makefile.in90
-rw-r--r--scilab/modules/functions_manager/Makefile.in86
-rw-r--r--scilab/modules/genetic_algorithms/Makefile.in14
-rw-r--r--scilab/modules/graph/Makefile.in14
-rw-r--r--scilab/modules/graphic_export/Makefile.in135
-rw-r--r--scilab/modules/graphic_objects/Makefile.in290
-rw-r--r--scilab/modules/graphics/Makefile.in2241
-rw-r--r--scilab/modules/gui/Makefile.in777
-rw-r--r--scilab/modules/hdf5/Makefile.in367
-rw-r--r--scilab/modules/helptools/Makefile.in70
-rw-r--r--scilab/modules/history_browser/Makefile.in69
-rw-r--r--scilab/modules/history_manager/Makefile.in140
-rw-r--r--scilab/modules/integer/Makefile.in241
-rw-r--r--scilab/modules/interpolation/Makefile.in115
-rw-r--r--scilab/modules/io/Makefile.in177
-rw-r--r--scilab/modules/javasci/Makefile.in78
-rw-r--r--scilab/modules/jvm/Makefile.in161
-rw-r--r--scilab/modules/linear_algebra/Makefile.in200
-rw-r--r--scilab/modules/localization/Makefile.in135
-rw-r--r--scilab/modules/m2sci/Makefile.in14
-rw-r--r--scilab/modules/matio/Makefile.in172
-rw-r--r--scilab/modules/mexlib/Makefile.in91
-rw-r--r--scilab/modules/modules_manager/Makefile.in14
-rw-r--r--scilab/modules/mpi/Makefile.in120
-rw-r--r--scilab/modules/optimization/Makefile.in101
-rw-r--r--scilab/modules/output_stream/Makefile.in170
-rw-r--r--scilab/modules/overloading/Makefile.in14
-rw-r--r--scilab/modules/parallel/Makefile.in50
-rw-r--r--scilab/modules/parameters/Makefile.in51
-rw-r--r--scilab/modules/polynomials/Makefile.in115
-rw-r--r--scilab/modules/prebuildjava/Makefile.in14
-rw-r--r--scilab/modules/preferences/Makefile.in85
-rw-r--r--scilab/modules/randlib/Makefile.in111
-rw-r--r--scilab/modules/renderer/Makefile.in75
-rw-r--r--scilab/modules/scicos/Makefile.in803
-rw-r--r--scilab/modules/scicos_blocks/Makefile.in1646
-rw-r--r--scilab/modules/scinotes/Makefile.in85
-rw-r--r--scilab/modules/signal_processing/Makefile.in105
-rw-r--r--scilab/modules/simulated_annealing/Makefile.in14
-rw-r--r--scilab/modules/slint/Makefile.in416
-rw-r--r--scilab/modules/sound/Makefile.in56
-rw-r--r--scilab/modules/sparse/Makefile.in191
-rw-r--r--scilab/modules/special_functions/Makefile.in110
-rw-r--r--scilab/modules/spreadsheet/Makefile.in160
-rw-r--r--scilab/modules/statistics/Makefile.in116
-rw-r--r--scilab/modules/string/Makefile.in341
-rw-r--r--scilab/modules/tclsci/Makefile.in195
-rw-r--r--scilab/modules/threads/Makefile.in63
-rw-r--r--scilab/modules/time/Makefile.in101
-rw-r--r--scilab/modules/types/Makefile.in87
-rw-r--r--scilab/modules/ui_data/Makefile.in111
-rw-r--r--scilab/modules/umfpack/Makefile.in145
-rw-r--r--scilab/modules/webtools/Makefile.in120
-rw-r--r--scilab/modules/windows_tools/Makefile.in50
-rw-r--r--scilab/modules/xcos/Makefile.in182
-rw-r--r--scilab/modules/xml/Makefile.in322
101 files changed, 15340 insertions, 6421 deletions
diff --git a/scilab/Makefile.in b/scilab/Makefile.in
index 7f036cc..7e5da5f 100644
--- a/scilab/Makefile.in
+++ b/scilab/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile.in generated by automake 1.15.1 from Makefile.am. 1# Makefile.in generated by automake 1.16.1 from Makefile.am.
2# @configure_input@ 2# @configure_input@
3 3
4# Copyright (C) 1994-2017 Free Software Foundation, Inc. 4# Copyright (C) 1994-2018 Free Software Foundation, Inc.
5 5
6# This Makefile.in is free software; the Free Software Foundation 6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it, 7# gives unlimited permission to copy and/or distribute it,
@@ -339,7 +339,19 @@ am__v_at_0 = @
339am__v_at_1 = 339am__v_at_1 =
340DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes 340DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/modules/core/includes
341depcomp = $(SHELL) $(top_srcdir)/config/depcomp 341depcomp = $(SHELL) $(top_srcdir)/config/depcomp
342am__depfiles_maybe = depfiles 342am__maybe_remake_depfiles = depfiles
343am__depfiles_remade = modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po \
344 modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_getlastjob-GetLastJob.Po \
345 modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwriteboolean-readwriteboolean.Po \
346 modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po \
347 modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritematrix-readwritematrix.Po \
348 modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritestring-readwritestring.Po \
349 modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c-myprog.Po \
350 modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c_simple-simple_call_scilab.Po \
351 modules/startup/src/c/$(DEPDIR)/scilab_bin-initMPI.Po \
352 modules/startup/src/c/$(DEPDIR)/scilab_cli_bin-initMPI.Po \
353 modules/startup/src/cpp/$(DEPDIR)/scilab_bin-scilab.Po \
354 modules/startup/src/cpp/$(DEPDIR)/scilab_cli_bin-scilab.Po
343am__mv = mv -f 355am__mv = mv -f
344COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 356COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
345 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 357 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
@@ -418,7 +430,7 @@ am__recursive_targets = \
418 $(RECURSIVE_CLEAN_TARGETS) \ 430 $(RECURSIVE_CLEAN_TARGETS) \
419 $(am__extra_recursive_targets) 431 $(am__extra_recursive_targets)
420AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ 432AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
421 cscope distdir dist dist-all distcheck 433 cscope distdir distdir-am dist dist-all distcheck
422am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 434am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
423# Read a list of newline-separated strings from the standard input, 435# Read a list of newline-separated strings from the standard input,
424# and print each of them once, without duplicates. Input order is 436# and print each of them once, without duplicates. Input order is
@@ -482,11 +494,11 @@ am__DIST_COMMON = $(srcdir)/Makefile.in \
482 $(top_srcdir)/modules/atoms/tests/unit_tests/repositories.orig.in \ 494 $(top_srcdir)/modules/atoms/tests/unit_tests/repositories.orig.in \
483 $(top_srcdir)/modules/core/includes/machine.h.in \ 495 $(top_srcdir)/modules/core/includes/machine.h.in \
484 $(top_srcdir)/modules/core/includes/version.h.in \ 496 $(top_srcdir)/modules/core/includes/version.h.in \
485 $(top_srcdir)/modules/helptools/etc/SciDocConf.xml.in COPYING \ 497 $(top_srcdir)/modules/helptools/etc/SciDocConf.xml.in \
486 config/ar-lib config/compile config/config.guess \ 498 ABOUT-NLS COPYING config/ar-lib config/compile \
487 config/config.rpath config/config.sub config/depcomp \ 499 config/config.guess config/config.rpath config/config.sub \
488 config/install-sh config/ltmain.sh config/missing \ 500 config/depcomp config/install-sh config/ltmain.sh \
489 config/mkinstalldirs 501 config/missing config/mkinstalldirs
490DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 502DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
491distdir = $(PACKAGE)-$(VERSION) 503distdir = $(PACKAGE)-$(VERSION)
492top_distdir = $(distdir) 504top_distdir = $(distdir)
@@ -813,7 +825,6 @@ pdfdir = @pdfdir@
813prefix = @prefix@ 825prefix = @prefix@
814program_transform_name = @program_transform_name@ 826program_transform_name = @program_transform_name@
815psdir = @psdir@ 827psdir = @psdir@
816runstatedir = @runstatedir@
817sbindir = @sbindir@ 828sbindir = @sbindir@
818sharedstatedir = @sharedstatedir@ 829sharedstatedir = @sharedstatedir@
819srcdir = @srcdir@ 830srcdir = @srcdir@
@@ -1005,8 +1016,8 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
1005 echo ' $(SHELL) ./config.status'; \ 1016 echo ' $(SHELL) ./config.status'; \
1006 $(SHELL) ./config.status;; \ 1017 $(SHELL) ./config.status;; \
1007 *) \ 1018 *) \
1008 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ 1019 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
1009 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ 1020 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
1010 esac; 1021 esac;
1011$(top_srcdir)/Makefile.call_scilab.am $(am__empty): 1022$(top_srcdir)/Makefile.call_scilab.am $(am__empty):
1012 1023
@@ -1259,18 +1270,24 @@ mostlyclean-compile:
1259distclean-compile: 1270distclean-compile:
1260 -rm -f *.tab.c 1271 -rm -f *.tab.c
1261 1272
1262@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po@am__quote@ 1273@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po@am__quote@ # am--include-marker
1263@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_getlastjob-GetLastJob.Po@am__quote@ 1274@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_getlastjob-GetLastJob.Po@am__quote@ # am--include-marker
1264@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwriteboolean-readwriteboolean.Po@am__quote@ 1275@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwriteboolean-readwriteboolean.Po@am__quote@ # am--include-marker
1265@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po@am__quote@ 1276@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po@am__quote@ # am--include-marker
1266@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritematrix-readwritematrix.Po@am__quote@ 1277@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritematrix-readwritematrix.Po@am__quote@ # am--include-marker
1267@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritestring-readwritestring.Po@am__quote@ 1278@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritestring-readwritestring.Po@am__quote@ # am--include-marker
1268@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c-myprog.Po@am__quote@ 1279@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c-myprog.Po@am__quote@ # am--include-marker
1269@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c_simple-simple_call_scilab.Po@am__quote@ 1280@AMDEP_TRUE@@am__include@ @am__quote@modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c_simple-simple_call_scilab.Po@am__quote@ # am--include-marker
1270@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/c/$(DEPDIR)/scilab_bin-initMPI.Po@am__quote@ 1281@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/c/$(DEPDIR)/scilab_bin-initMPI.Po@am__quote@ # am--include-marker
1271@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/c/$(DEPDIR)/scilab_cli_bin-initMPI.Po@am__quote@ 1282@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/c/$(DEPDIR)/scilab_cli_bin-initMPI.Po@am__quote@ # am--include-marker
1272@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/cpp/$(DEPDIR)/scilab_bin-scilab.Po@am__quote@ 1283@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/cpp/$(DEPDIR)/scilab_bin-scilab.Po@am__quote@ # am--include-marker
1273@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/cpp/$(DEPDIR)/scilab_cli_bin-scilab.Po@am__quote@ 1284@AMDEP_TRUE@@am__include@ @am__quote@modules/startup/src/cpp/$(DEPDIR)/scilab_cli_bin-scilab.Po@am__quote@ # am--include-marker
1285
1286$(am__depfiles_remade):
1287 @$(MKDIR_P) $(@D)
1288 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
1289
1290am--depfiles: $(am__depfiles_remade)
1274 1291
1275.c.o: 1292.c.o:
1276@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 1293@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
@@ -1780,7 +1797,10 @@ check-TESTS: $(TESTS)
1780 test "$$failed" -eq 0; \ 1797 test "$$failed" -eq 0; \
1781 else :; fi 1798 else :; fi
1782 1799
1783distdir: $(DISTFILES) 1800distdir: $(BUILT_SOURCES)
1801 $(MAKE) $(AM_MAKEFLAGS) distdir-am
1802
1803distdir-am: $(DISTFILES)
1784 $(am__remove_distdir) 1804 $(am__remove_distdir)
1785 test -d "$(distdir)" || mkdir "$(distdir)" 1805 test -d "$(distdir)" || mkdir "$(distdir)"
1786 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 1806 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
@@ -2021,7 +2041,18 @@ clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
2021 2041
2022distclean: distclean-recursive 2042distclean: distclean-recursive
2023 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 2043 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
2024 -rm -rf modules/call_scilab/examples/basicExamples/$(DEPDIR) modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR) modules/startup/src/c/$(DEPDIR) modules/startup/src/cpp/$(DEPDIR) 2044 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po
2045 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_getlastjob-GetLastJob.Po
2046 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwriteboolean-readwriteboolean.Po
2047 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po
2048 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritematrix-readwritematrix.Po
2049 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritestring-readwritestring.Po
2050 -rm -f modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c-myprog.Po
2051 -rm -f modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c_simple-simple_call_scilab.Po
2052 -rm -f modules/startup/src/c/$(DEPDIR)/scilab_bin-initMPI.Po
2053 -rm -f modules/startup/src/c/$(DEPDIR)/scilab_cli_bin-initMPI.Po
2054 -rm -f modules/startup/src/cpp/$(DEPDIR)/scilab_bin-scilab.Po
2055 -rm -f modules/startup/src/cpp/$(DEPDIR)/scilab_cli_bin-scilab.Po
2025 -rm -f Makefile 2056 -rm -f Makefile
2026distclean-am: clean-am distclean-compile distclean-generic \ 2057distclean-am: clean-am distclean-compile distclean-generic \
2027 distclean-hdr distclean-libtool distclean-tags 2058 distclean-hdr distclean-libtool distclean-tags
@@ -2070,7 +2101,18 @@ installcheck-am:
2070maintainer-clean: maintainer-clean-recursive 2101maintainer-clean: maintainer-clean-recursive
2071 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 2102 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
2072 -rm -rf $(top_srcdir)/autom4te.cache 2103 -rm -rf $(top_srcdir)/autom4te.cache
2073 -rm -rf modules/call_scilab/examples/basicExamples/$(DEPDIR) modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR) modules/startup/src/c/$(DEPDIR) modules/startup/src/cpp/$(DEPDIR) 2104 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_DisableInteractiveMode-DisableInteractiveMode.Po
2105 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_c_getlastjob-GetLastJob.Po
2106 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwriteboolean-readwriteboolean.Po
2107 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritecomplexmatrix-readwritecomplexmatrix.Po
2108 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritematrix-readwritematrix.Po
2109 -rm -f modules/call_scilab/examples/basicExamples/$(DEPDIR)/call_scilab_readwritestring-readwritestring.Po
2110 -rm -f modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c-myprog.Po
2111 -rm -f modules/call_scilab/examples/call_scilab/c/common/$(DEPDIR)/call_scilab_c_simple-simple_call_scilab.Po
2112 -rm -f modules/startup/src/c/$(DEPDIR)/scilab_bin-initMPI.Po
2113 -rm -f modules/startup/src/c/$(DEPDIR)/scilab_cli_bin-initMPI.Po
2114 -rm -f modules/startup/src/cpp/$(DEPDIR)/scilab_bin-scilab.Po
2115 -rm -f modules/startup/src/cpp/$(DEPDIR)/scilab_cli_bin-scilab.Po
2074 -rm -f Makefile 2116 -rm -f Makefile
2075maintainer-clean-am: distclean-am maintainer-clean-generic 2117maintainer-clean-am: distclean-am maintainer-clean-generic
2076 2118
@@ -2094,19 +2136,20 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
2094.MAKE: $(am__recursive_targets) check-am install-am install-strip 2136.MAKE: $(am__recursive_targets) check-am install-am install-strip
2095 2137
2096.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \ 2138.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
2097 am--refresh check check-TESTS check-am clean clean-binPROGRAMS \ 2139 am--depfiles am--refresh check check-TESTS check-am clean \
2098 clean-checkPROGRAMS clean-cscope clean-generic clean-libtool \ 2140 clean-binPROGRAMS clean-checkPROGRAMS clean-cscope \
2099 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ 2141 clean-generic clean-libtool cscope cscopelist-am ctags \
2100 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ 2142 ctags-am dist dist-all dist-bzip2 dist-gzip dist-lzip \
2101 distcheck distclean distclean-compile distclean-generic \ 2143 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
2102 distclean-hdr distclean-libtool distclean-tags distcleancheck \ 2144 distclean-compile distclean-generic distclean-hdr \
2103 distdir distuninstallcheck dvi dvi-am html html-am info \ 2145 distclean-libtool distclean-tags distcleancheck distdir \
2104 info-am install install-am install-binPROGRAMS \ 2146 distuninstallcheck dvi dvi-am html html-am info info-am \
2105 install-binSCRIPTS install-data install-data-am \ 2147 install install-am install-binPROGRAMS install-binSCRIPTS \
2106 install-data-local install-dvi install-dvi-am install-exec \ 2148 install-data install-data-am install-data-local install-dvi \
2107 install-exec-am install-html install-html-am install-info \ 2149 install-dvi-am install-exec install-exec-am install-html \
2108 install-info-am install-infofilesDATA install-man install-pdf \ 2150 install-html-am install-info install-info-am \
2109 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \ 2151 install-infofilesDATA install-man install-pdf install-pdf-am \
2152 install-pkgconfigDATA install-ps install-ps-am \
2110 install-rootDATA install-strip install-valgrindDATA \ 2153 install-rootDATA install-strip install-valgrindDATA \
2111 installcheck installcheck-am installdirs installdirs-am \ 2154 installcheck installcheck-am installdirs installdirs-am \
2112 maintainer-clean maintainer-clean-generic mostlyclean \ 2155 maintainer-clean maintainer-clean-generic mostlyclean \
diff --git a/scilab/aclocal.m4 b/scilab/aclocal.m4
index 8cf277e..9747636 100644
--- a/scilab/aclocal.m4
+++ b/scilab/aclocal.m4
@@ -1,6 +1,6 @@
1# generated automatically by aclocal 1.15.1 -*- Autoconf -*- 1# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
2 2
3# Copyright (C) 1996-2017 Free Software Foundation, Inc. 3# Copyright (C) 1996-2018 Free Software Foundation, Inc.
4 4
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
@@ -2352,7 +2352,7 @@ fi
2352AC_SUBST([$1])dnl 2352AC_SUBST([$1])dnl
2353]) 2353])
2354 2354
2355# Copyright (C) 2002-2017 Free Software Foundation, Inc. 2355# Copyright (C) 2002-2018 Free Software Foundation, Inc.
2356# 2356#
2357# This file is free software; the Free Software Foundation 2357# This file is free software; the Free Software Foundation
2358# gives unlimited permission to copy and/or distribute it, 2358# gives unlimited permission to copy and/or distribute it,
@@ -2364,10 +2364,10 @@ AC_SUBST([$1])dnl
2364# generated from the m4 files accompanying Automake X.Y. 2364# generated from the m4 files accompanying Automake X.Y.
2365# (This private macro should not be called outside this file.) 2365# (This private macro should not be called outside this file.)
2366AC_DEFUN([AM_AUTOMAKE_VERSION], 2366AC_DEFUN([AM_AUTOMAKE_VERSION],
2367[am__api_version='1.15' 2367[am__api_version='1.16'
2368dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 2368dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
2369dnl require some minimum version. Point them to the right macro. 2369dnl require some minimum version. Point them to the right macro.
2370m4_if([$1], [1.15.1], [], 2370m4_if([$1], [1.16.1], [],
2371 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 2371 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
2372]) 2372])
2373 2373
@@ -2383,12 +2383,12 @@ m4_define([_AM_AUTOCONF_VERSION], [])
2383# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 2383# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
2384# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 2384# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
2385AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 2385AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
2386[AM_AUTOMAKE_VERSION([1.15.1])dnl 2386[AM_AUTOMAKE_VERSION([1.16.1])dnl
2387m4_ifndef([AC_AUTOCONF_VERSION], 2387m4_ifndef([AC_AUTOCONF_VERSION],
2388 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 2388 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
2389_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 2389_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
2390 2390
2391# Copyright (C) 2011-2017 Free Software Foundation, Inc. 2391# Copyright (C) 2011-2018 Free Software Foundation, Inc.
2392# 2392#
2393# This file is free software; the Free Software Foundation 2393# This file is free software; the Free Software Foundation
2394# gives unlimited permission to copy and/or distribute it, 2394# gives unlimited permission to copy and/or distribute it,
@@ -2450,7 +2450,7 @@ AC_SUBST([AR])dnl
2450 2450
2451# AM_AUX_DIR_EXPAND -*- Autoconf -*- 2451# AM_AUX_DIR_EXPAND -*- Autoconf -*-
2452 2452
2453# Copyright (C) 2001-2017 Free Software Foundation, Inc. 2453# Copyright (C) 2001-2018 Free Software Foundation, Inc.
2454# 2454#
2455# This file is free software; the Free Software Foundation 2455# This file is free software; the Free Software Foundation
2456# gives unlimited permission to copy and/or distribute it, 2456# gives unlimited permission to copy and/or distribute it,
@@ -2502,7 +2502,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
2502 2502
2503# AM_CONDITIONAL -*- Autoconf -*- 2503# AM_CONDITIONAL -*- Autoconf -*-
2504 2504
2505# Copyright (C) 1997-2017 Free Software Foundation, Inc. 2505# Copyright (C) 1997-2018 Free Software Foundation, Inc.
2506# 2506#
2507# This file is free software; the Free Software Foundation 2507# This file is free software; the Free Software Foundation
2508# gives unlimited permission to copy and/or distribute it, 2508# gives unlimited permission to copy and/or distribute it,
@@ -2533,7 +2533,7 @@ AC_CONFIG_COMMANDS_PRE(
2533Usually this means the macro was only invoked conditionally.]]) 2533Usually this means the macro was only invoked conditionally.]])
2534fi])]) 2534fi])])
2535 2535
2536# Copyright (C) 1999-2017 Free Software Foundation, Inc. 2536# Copyright (C) 1999-2018 Free Software Foundation, Inc.
2537# 2537#
2538# This file is free software; the Free Software Foundation 2538# This file is free software; the Free Software Foundation
2539# gives unlimited permission to copy and/or distribute it, 2539# gives unlimited permission to copy and/or distribute it,
@@ -2724,13 +2724,12 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
2724 2724
2725# Generate code to set up dependency tracking. -*- Autoconf -*- 2725# Generate code to set up dependency tracking. -*- Autoconf -*-
2726 2726
2727# Copyright (C) 1999-2017 Free Software Foundation, Inc. 2727# Copyright (C) 1999-2018 Free Software Foundation, Inc.
2728# 2728#
2729# This file is free software; the Free Software Foundation 2729# This file is free software; the Free Software Foundation
2730# gives unlimited permission to copy and/or distribute it, 2730# gives unlimited permission to copy and/or distribute it,
2731# with or without modifications, as long as this notice is preserved. 2731# with or without modifications, as long as this notice is preserved.
2732 2732
2733
2734# _AM_OUTPUT_DEPENDENCY_COMMANDS 2733# _AM_OUTPUT_DEPENDENCY_COMMANDS
2735# ------------------------------ 2734# ------------------------------
2736AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 2735AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
@@ -2738,49 +2737,41 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2738 # Older Autoconf quotes --file arguments for eval, but not when files 2737 # Older Autoconf quotes --file arguments for eval, but not when files
2739 # are listed without --file. Let's play safe and only enable the eval 2738 # are listed without --file. Let's play safe and only enable the eval
2740 # if we detect the quoting. 2739 # if we detect the quoting.
2741 case $CONFIG_FILES in 2740 # TODO: see whether this extra hack can be removed once we start
2742 *\'*) eval set x "$CONFIG_FILES" ;; 2741 # requiring Autoconf 2.70 or later.
2743 *) set x $CONFIG_FILES ;; 2742 AS_CASE([$CONFIG_FILES],
2744 esac 2743 [*\'*], [eval set x "$CONFIG_FILES"],
2744 [*], [set x $CONFIG_FILES])
2745 shift 2745 shift
2746 for mf 2746 # Used to flag and report bootstrapping failures.
2747 am_rc=0
2748 for am_mf
2747 do 2749 do
2748 # Strip MF so we end up with the name of the file. 2750 # Strip MF so we end up with the name of the file.
2749 mf=`echo "$mf" | sed -e 's/:.*$//'` 2751 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
2750 # Check whether this is an Automake generated Makefile or not. 2752 # Check whether this is an Automake generated Makefile which includes
2751 # We used to match only the files named 'Makefile.in', but 2753 # dependency-tracking related rules and includes.
2752 # some people rename them; so instead we look at the file content. 2754 # Grep'ing the whole file directly is not great: AIX grep has a line
2753 # Grep'ing the first line is not enough: some people post-process
2754 # each Makefile.in and add a new line on top of each file to say so.
2755 # Grep'ing the whole file is not good either: AIX grep has a line
2756 # limit of 2048, but all sed's we know have understand at least 4000. 2755 # limit of 2048, but all sed's we know have understand at least 4000.
2757 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 2756 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
2758 dirpart=`AS_DIRNAME("$mf")` 2757 || continue
2759 else 2758 am_dirpart=`AS_DIRNAME(["$am_mf"])`
2760 continue 2759 am_filepart=`AS_BASENAME(["$am_mf"])`
2761 fi 2760 AM_RUN_LOG([cd "$am_dirpart" \
2762 # Extract the definition of DEPDIR, am__include, and am__quote 2761 && sed -e '/# am--include-marker/d' "$am_filepart" \
2763 # from the Makefile without running 'make'. 2762 | $MAKE -f - am--depfiles]) || am_rc=$?
2764 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2765 test -z "$DEPDIR" && continue
2766 am__include=`sed -n 's/^am__include = //p' < "$mf"`
2767 test -z "$am__include" && continue
2768 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2769 # Find all dependency output files, they are included files with
2770 # $(DEPDIR) in their names. We invoke sed twice because it is the
2771 # simplest approach to changing $(DEPDIR) to its actual value in the
2772 # expansion.
2773 for file in `sed -n "
2774 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2775 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
2776 # Make sure the directory exists.
2777 test -f "$dirpart/$file" && continue
2778 fdir=`AS_DIRNAME(["$file"])`
2779 AS_MKDIR_P([$dirpart/$fdir])
2780 # echo "creating $dirpart/$file"
2781 echo '# dummy' > "$dirpart/$file"
2782 done
2783 done 2763 done
2764 if test $am_rc -ne 0; then
2765 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
2766 for automatic dependency tracking. Try re-running configure with the
2767 '--disable-dependency-tracking' option to at least be able to build
2768 the package (albeit without support for automatic dependency tracking).])
2769 fi
2770 AS_UNSET([am_dirpart])
2771 AS_UNSET([am_filepart])
2772 AS_UNSET([am_mf])
2773 AS_UNSET([am_rc])
2774 rm -f conftest-deps.mk
2784} 2775}
2785])# _AM_OUTPUT_DEPENDENCY_COMMANDS 2776])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2786 2777
@@ -2789,18 +2780,17 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2789# ----------------------------- 2780# -----------------------------
2790# This macro should only be invoked once -- use via AC_REQUIRE. 2781# This macro should only be invoked once -- use via AC_REQUIRE.
2791# 2782#
2792# This code is only required when automatic dependency tracking 2783# This code is only required when automatic dependency tracking is enabled.
2793# is enabled. FIXME. This creates each '.P' file that we will 2784# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
2794# need in order to bootstrap the dependency handling code. 2785# order to bootstrap the dependency handling code.
2795AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 2786AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2796[AC_CONFIG_COMMANDS([depfiles], 2787[AC_CONFIG_COMMANDS([depfiles],
2797 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 2788 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2798 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 2789 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
2799])
2800 2790
2801# Do all the work for Automake. -*- Autoconf -*- 2791# Do all the work for Automake. -*- Autoconf -*-
2802 2792
2803# Copyright (C) 1996-2017 Free Software Foundation, Inc. 2793# Copyright (C) 1996-2018 Free Software Foundation, Inc.
2804# 2794#
2805# This file is free software; the Free Software Foundation 2795# This file is free software; the Free Software Foundation
2806# gives unlimited permission to copy and/or distribute it, 2796# gives unlimited permission to copy and/or distribute it,
@@ -2887,8 +2877,8 @@ AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
2887AC_REQUIRE([AC_PROG_MKDIR_P])dnl 2877AC_REQUIRE([AC_PROG_MKDIR_P])dnl
2888# For better backward compatibility. To be removed once Automake 1.9.x 2878# For better backward compatibility. To be removed once Automake 1.9.x
2889# dies out for good. For more background, see: 2879# dies out for good. For more background, see:
2890# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2880# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2891# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2881# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2892AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 2882AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
2893# We need awk for the "check" target (and possibly the TAP driver). The 2883# We need awk for the "check" target (and possibly the TAP driver). The
2894# system "awk" is bad on some platforms. 2884# system "awk" is bad on some platforms.
@@ -2955,7 +2945,7 @@ END
2955Aborting the configuration process, to ensure you take notice of the issue. 2945Aborting the configuration process, to ensure you take notice of the issue.
2956 2946
2957You can download and install GNU coreutils to get an 'rm' implementation 2947You can download and install GNU coreutils to get an 'rm' implementation
2958that behaves properly: <http://www.gnu.org/software/coreutils/>. 2948that behaves properly: <https://www.gnu.org/software/coreutils/>.
2959 2949
2960If you want to complete the configuration process using your problematic 2950If you want to complete the configuration process using your problematic
2961'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2951'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
@@ -2997,7 +2987,7 @@ for _am_header in $config_headers :; do
2997done 2987done
2998echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 2988echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
2999 2989
3000# Copyright (C) 2001-2017 Free Software Foundation, Inc. 2990# Copyright (C) 2001-2018 Free Software Foundation, Inc.
3001# 2991#
3002# This file is free software; the Free Software Foundation 2992# This file is free software; the Free Software Foundation
3003# gives unlimited permission to copy and/or distribute it, 2993# gives unlimited permission to copy and/or distribute it,
@@ -3018,7 +3008,7 @@ if test x"${install_sh+set}" != xset; then
3018fi 3008fi
3019AC_SUBST([install_sh])]) 3009AC_SUBST([install_sh])])
3020 3010
3021# Copyright (C) 2003-2017 Free Software Foundation, Inc. 3011# Copyright (C) 2003-2018 Free Software Foundation, Inc.
3022# 3012#
3023# This file is free software; the Free Software Foundation 3013# This file is free software; the Free Software Foundation
3024# gives unlimited permission to copy and/or distribute it, 3014# gives unlimited permission to copy and/or distribute it,
@@ -3040,7 +3030,7 @@ AC_SUBST([am__leading_dot])])
3040# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 3030# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
3041# From Jim Meyering 3031# From Jim Meyering
3042 3032
3043# Copyright (C) 1996-2017 Free Software Foundation, Inc. 3033# Copyright (C) 1996-2018 Free Software Foundation, Inc.
3044# 3034#
3045# This file is free software; the Free Software Foundation 3035# This file is free software; the Free Software Foundation
3046# gives unlimited permission to copy and/or distribute it, 3036# gives unlimited permission to copy and/or distribute it,
@@ -3075,7 +3065,7 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
3075 3065
3076# Check to see how 'make' treats includes. -*- Autoconf -*- 3066# Check to see how 'make' treats includes. -*- Autoconf -*-
3077 3067
3078# Copyright (C) 2001-2017 Free Software Foundation, Inc. 3068# Copyright (C) 2001-2018 Free Software Foundation, Inc.
3079# 3069#
3080# This file is free software; the Free Software Foundation 3070# This file is free software; the Free Software Foundation
3081# gives unlimited permission to copy and/or distribute it, 3071# gives unlimited permission to copy and/or distribute it,
@@ -3083,49 +3073,42 @@ AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
3083 3073
3084# AM_MAKE_INCLUDE() 3074# AM_MAKE_INCLUDE()
3085# ----------------- 3075# -----------------
3086# Check to see how make treats includes. 3076# Check whether make has an 'include' directive that can support all
3077# the idioms we need for our automatic dependency tracking code.
3087AC_DEFUN([AM_MAKE_INCLUDE], 3078AC_DEFUN([AM_MAKE_INCLUDE],
3088[am_make=${MAKE-make} 3079[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
3089cat > confinc << 'END' 3080cat > confinc.mk << 'END'
3090am__doit: 3081am__doit:
3091 @echo this is the am__doit target 3082 @echo this is the am__doit target >confinc.out
3092.PHONY: am__doit 3083.PHONY: am__doit
3093END 3084END
3094# If we don't find an include directive, just comment out the code.
3095AC_MSG_CHECKING([for style of include used by $am_make])
3096am__include="#" 3085am__include="#"
3097am__quote= 3086am__quote=
3098_am_result=none 3087# BSD make does it like this.
3099# First try GNU make style include. 3088echo '.include "confinc.mk" # ignored' > confmf.BSD
3100echo "include confinc" > confmf 3089# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3101# Ignore all kinds of additional output from 'make'. 3090echo 'include confinc.mk # ignored' > confmf.GNU
3102case `$am_make -s -f confmf 2> /dev/null` in #( 3091_am_result=no
3103*the\ am__doit\ target*) 3092for s in GNU BSD; do
3104 am__include=include 3093 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
3105 am__quote= 3094 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
3106 _am_result=GNU 3095 ['0:this is the am__doit target'],
3107 ;; 3096 [AS_CASE([$s],
3108esac 3097 [BSD], [am__include='.include' am__quote='"'],
3109# Now try BSD make style include. 3098 [am__include='include' am__quote=''])])
3110if test "$am__include" = "#"; then 3099 if test "$am__include" != "#"; then
3111 echo '.include "confinc"' > confmf 3100 _am_result="yes ($s style)"
3112 case `$am_make -s -f confmf 2> /dev/null` in #( 3101 break
3113 *the\ am__doit\ target*) 3102 fi
3114 am__include=.include 3103done
3115 am__quote="\"" 3104rm -f confinc.* confmf.*
3116 _am_result=BSD 3105AC_MSG_RESULT([${_am_result}])
3117 ;; 3106AC_SUBST([am__include])])
3118 esac 3107AC_SUBST([am__quote])])
3119fi
3120AC_SUBST([am__include])
3121AC_SUBST([am__quote])
3122AC_MSG_RESULT([$_am_result])
3123rm -f confinc confmf
3124])
3125 3108
3126# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 3109# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
3127 3110
3128# Copyright (C) 1997-2017 Free Software Foundation, Inc. 3111# Copyright (C) 1997-2018 Free Software Foundation, Inc.
3129# 3112#
3130# This file is free software; the Free Software Foundation 3113# This file is free software; the Free Software Foundation
3131# gives unlimited permission to copy and/or distribute it, 3114# gives unlimited permission to copy and/or distribute it,
@@ -3164,7 +3147,7 @@ fi
3164 3147
3165# Helper functions for option handling. -*- Autoconf -*- 3148# Helper functions for option handling. -*- Autoconf -*-
3166 3149
3167# Copyright (C) 2001-2017 Free Software Foundation, Inc. 3150# Copyright (C) 2001-2018 Free Software Foundation, Inc.
3168# 3151#
3169# This file is free software; the Free Software Foundation 3152# This file is free software; the Free Software Foundation
3170# gives unlimited permission to copy and/or distribute it, 3153# gives unlimited permission to copy and/or distribute it,
@@ -3193,7 +3176,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
3193AC_DEFUN([_AM_IF_OPTION], 3176AC_DEFUN([_AM_IF_OPTION],
3194[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 3177[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
3195 3178
3196# Copyright (C) 1999-2017 Free Software Foundation, Inc. 3179# Copyright (C) 1999-2018 Free Software Foundation, Inc.
3197# 3180#
3198# This file is free software; the Free Software Foundation 3181# This file is free software; the Free Software Foundation
3199# gives unlimited permission to copy and/or distribute it, 3182# gives unlimited permission to copy and/or distribute it,
@@ -3240,7 +3223,7 @@ AC_LANG_POP([C])])
3240# For backward compatibility. 3223# For backward compatibility.
3241AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 3224AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
3242 3225
3243# Copyright (C) 2001-2017 Free Software Foundation, Inc. 3226# Copyright (C) 2001-2018 Free Software Foundation, Inc.
3244# 3227#
3245# This file is free software; the Free Software Foundation 3228# This file is free software; the Free Software Foundation
3246# gives unlimited permission to copy and/or distribute it, 3229# gives unlimited permission to copy and/or distribute it,
@@ -3259,7 +3242,7 @@ AC_DEFUN([AM_RUN_LOG],
3259 3242
3260# Check to make sure that the build environment is sane. -*- Autoconf -*- 3243# Check to make sure that the build environment is sane. -*- Autoconf -*-
3261 3244
3262# Copyright (C) 1996-2017 Free Software Foundation, Inc. 3245# Copyright (C) 1996-2018 Free Software Foundation, Inc.
3263# 3246#
3264# This file is free software; the Free Software Foundation 3247# This file is free software; the Free Software Foundation
3265# gives unlimited permission to copy and/or distribute it, 3248# gives unlimited permission to copy and/or distribute it,
@@ -3340,7 +3323,7 @@ AC_CONFIG_COMMANDS_PRE(
3340rm -f conftest.file 3323rm -f conftest.file
3341]) 3324])
3342 3325
3343# Copyright (C) 2009-2017 Free Software Foundation, Inc. 3326# Copyright (C) 2009-2018 Free Software Foundation, Inc.
3344# 3327#
3345# This file is free software; the Free Software Foundation 3328# This file is free software; the Free Software Foundation
3346# gives unlimited permission to copy and/or distribute it, 3329# gives unlimited permission to copy and/or distribute it,
@@ -3400,7 +3383,7 @@ AC_SUBST([AM_BACKSLASH])dnl
3400_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 3383_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
3401]) 3384])
3402 3385
3403# Copyright (C) 2001-2017 Free Software Foundation, Inc. 3386# Copyright (C) 2001-2018 Free Software Foundation, Inc.
3404# 3387#
3405# This file is free software; the Free Software Foundation 3388# This file is free software; the Free Software Foundation
3406# gives unlimited permission to copy and/or distribute it, 3389# gives unlimited permission to copy and/or distribute it,
@@ -3428,7 +3411,7 @@ fi
3428INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3411INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3429AC_SUBST([INSTALL_STRIP_PROGRAM])]) 3412AC_SUBST([INSTALL_STRIP_PROGRAM])])
3430 3413
3431# Copyright (C) 2006-2017 Free Software Foundation, Inc. 3414# Copyright (C) 2006-2018 Free Software Foundation, Inc.
3432# 3415#
3433# This file is free software; the Free Software Foundation 3416# This file is free software; the Free Software Foundation
3434# gives unlimited permission to copy and/or distribute it, 3417# gives unlimited permission to copy and/or distribute it,
@@ -3447,7 +3430,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
3447 3430
3448# Check how to create a tarball. -*- Autoconf -*- 3431# Check how to create a tarball. -*- Autoconf -*-
3449 3432
3450# Copyright (C) 2004-2017 Free Software Foundation, Inc. 3433# Copyright (C) 2004-2018 Free Software Foundation, Inc.
3451# 3434#
3452# This file is free software; the Free Software Foundation 3435# This file is free software; the Free Software Foundation
3453# gives unlimited permission to copy and/or distribute it, 3436# gives unlimited permission to copy and/or distribute it,
diff --git a/scilab/config/ar-lib b/scilab/config/ar-lib
index 92bbe08..0baa4f6 100755
--- a/scilab/config/ar-lib
+++ b/scilab/config/ar-lib
@@ -1,10 +1,10 @@
1#!/bin/sh 1#! /bin/sh
2# Wrapper for Microsoft lib.exe 2# Wrapper for Microsoft lib.exe
3 3
4me=ar-lib 4me=ar-lib
5scriptversion=2012-03-01.08; # UTC 5scriptversion=2012-03-01.08; # UTC
6 6
7# Copyright (C) 2010-2017 Free Software Foundation, Inc. 7# Copyright (C) 2010-2018 Free Software Foundation, Inc.
8# Written by Peter Rosin <peda@lysator.liu.se>. 8# Written by Peter Rosin <peda@lysator.liu.se>.
9# 9#
10# This program is free software; you can redistribute it and/or modify 10# This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,7 @@ scriptversion=2012-03-01.08; # UTC
18# GNU General Public License for more details. 18# GNU General Public License for more details.
19# 19#
20# You should have received a copy of the GNU General Public License 20# You should have received a copy of the GNU General Public License
21# along with this program. If not, see <http://www.gnu.org/licenses/>. 21# along with this program. If not, see <https://www.gnu.org/licenses/>.
22 22
23# As a special exception to the GNU General Public License, if you 23# As a special exception to the GNU General Public License, if you
24# distribute this file as part of a program that contains a 24# distribute this file as part of a program that contains a
diff --git a/scilab/config/compile b/scilab/config/compile
index de0005d..99e5052 100755
--- a/scilab/config/compile
+++ b/scilab/config/compile
@@ -1,9 +1,9 @@
1#!/bin/sh 1#! /bin/sh
2# Wrapper for compilers which do not understand '-c -o'. 2# Wrapper for compilers which do not understand '-c -o'.
3 3
4scriptversion=2016-01-11.22; # UTC 4scriptversion=2018-03-07.03; # UTC
5 5
6# Copyright (C) 1999-2017 Free Software Foundation, Inc. 6# Copyright (C) 1999-2018 Free Software Foundation, Inc.
7# Written by Tom Tromey <tromey@cygnus.com>. 7# Written by Tom Tromey <tromey@cygnus.com>.
8# 8#
9# This program is free software; you can redistribute it and/or modify 9# This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@ scriptversion=2016-01-11.22; # UTC
17# GNU General Public License for more details. 17# GNU General Public License for more details.
18# 18#
19# You should have received a copy of the GNU General Public License 19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <http://www.gnu.org/licenses/>. 20# along with this program. If not, see <https://www.gnu.org/licenses/>.
21 21
22# As a special exception to the GNU General Public License, if you 22# As a special exception to the GNU General Public License, if you
23# distribute this file as part of a program that contains a 23# distribute this file as part of a program that contains a
@@ -340,7 +340,7 @@ exit $ret
340# Local Variables: 340# Local Variables:
341# mode: shell-script 341# mode: shell-script
342# sh-indentation: 2 342# sh-indentation: 2
343# eval: (add-hook 'write-file-hooks 'time-stamp) 343# eval: (add-hook 'before-save-hook 'time-stamp)
344# time-stamp-start: "scriptversion=" 344# time-stamp-start: "scriptversion="
345# time-stamp-format: "%:y-%02m-%02d.%02H" 345# time-stamp-format: "%:y-%02m-%02d.%02H"
346# time-stamp-time-zone: "UTC0" 346# time-stamp-time-zone: "UTC0"
diff --git a/scilab/config/config.guess b/scilab/config/config.guess
index 717b228..b33c9e8 100755
--- a/scilab/config/config.guess
+++ b/scilab/config/config.guess
@@ -1,8 +1,8 @@
1#!/bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright 1992-2017 Free Software Foundation, Inc. 3# Copyright 1992-2018 Free Software Foundation, Inc.
4 4
5timestamp='2017-08-08' 5timestamp='2018-08-29'
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
@@ -15,7 +15,7 @@ timestamp='2017-08-08'
15# General Public License for more details. 15# General Public License for more details.
16# 16#
17# You should have received a copy of the GNU General Public License 17# You should have received a copy of the GNU General Public License
18# along with this program; if not, see <http://www.gnu.org/licenses/>. 18# along with this program; if not, see <https://www.gnu.org/licenses/>.
19# 19#
20# As a special exception to the GNU General Public License, if you 20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a 21# distribute this file as part of a program that contains a
@@ -27,7 +27,7 @@ timestamp='2017-08-08'
27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
28# 28#
29# You can get the latest version of this script from: 29# You can get the latest version of this script from:
30# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 30# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
31# 31#
32# Please send patches to <config-patches@gnu.org>. 32# Please send patches to <config-patches@gnu.org>.
33 33
@@ -39,7 +39,7 @@ Usage: $0 [OPTION]
39 39
40Output the configuration name of the system \`$me' is run on. 40Output the configuration name of the system \`$me' is run on.
41 41
42Operation modes: 42Options:
43 -h, --help print this help, then exit 43 -h, --help print this help, then exit
44 -t, --time-stamp print date of last modification, then exit 44 -t, --time-stamp print date of last modification, then exit
45 -v, --version print version number, then exit 45 -v, --version print version number, then exit
@@ -50,7 +50,7 @@ version="\
50GNU config.guess ($timestamp) 50GNU config.guess ($timestamp)
51 51
52Originally written by Per Bothner. 52Originally written by Per Bothner.
53Copyright 1992-2017 Free Software Foundation, Inc. 53Copyright 1992-2018 Free Software Foundation, Inc.
54 54
55This is free software; see the source for copying conditions. There is NO 55This is free software; see the source for copying conditions. There is NO
56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -84,8 +84,6 @@ if test $# != 0; then
84 exit 1 84 exit 1
85fi 85fi
86 86
87trap 'exit 1' 1 2 15
88
89# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 87# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
90# compiler to aid in system detection is discouraged as it requires 88# compiler to aid in system detection is discouraged as it requires
91# temporary files to be created and, as you can see below, it is a 89# temporary files to be created and, as you can see below, it is a
@@ -96,34 +94,39 @@ trap 'exit 1' 1 2 15
96 94
97# Portable tmp directory creation inspired by the Autoconf team. 95# Portable tmp directory creation inspired by the Autoconf team.
98 96
99set_cc_for_build=' 97tmp=
100trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 98# shellcheck disable=SC2172
101trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 99trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15
102: ${TMPDIR=/tmp} ; 100trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0
103 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 101
104 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 102set_cc_for_build() {
105 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 103 : "${TMPDIR=/tmp}"
106 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 104 # shellcheck disable=SC2039
107dummy=$tmp/dummy ; 105 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 106 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
109case $CC_FOR_BUILD,$HOST_CC,$CC in 107 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110 ,,) echo "int x;" > $dummy.c ; 108 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
111 for c in cc gcc c89 c99 ; do 109 dummy=$tmp/dummy
112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 110 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
113 CC_FOR_BUILD="$c"; break ; 111 ,,) echo "int x;" > "$dummy.c"
114 fi ; 112 for driver in cc gcc c89 c99 ; do
115 done ; 113 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
116 if test x"$CC_FOR_BUILD" = x ; then 114 CC_FOR_BUILD="$driver"
117 CC_FOR_BUILD=no_compiler_found ; 115 break
118 fi 116 fi
119 ;; 117 done
120 ,,*) CC_FOR_BUILD=$CC ;; 118 if test x"$CC_FOR_BUILD" = x ; then
121 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 119 CC_FOR_BUILD=no_compiler_found
122esac ; set_cc_for_build= ;' 120 fi
121 ;;
122 ,,*) CC_FOR_BUILD=$CC ;;
123 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
124 esac
125}
123 126
124# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 127# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
125# (ghazi@noc.rutgers.edu 1994-08-24) 128# (ghazi@noc.rutgers.edu 1994-08-24)
126if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 129if test -f /.attbin/uname ; then
127 PATH=$PATH:/.attbin ; export PATH 130 PATH=$PATH:/.attbin ; export PATH
128fi 131fi
129 132
@@ -132,14 +135,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
132UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 135UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 136UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134 137
135case "${UNAME_SYSTEM}" in 138case "$UNAME_SYSTEM" in
136Linux|GNU|GNU/*) 139Linux|GNU|GNU/*)
137 # If the system lacks a compiler, then just pick glibc. 140 # If the system lacks a compiler, then just pick glibc.
138 # We could probably try harder. 141 # We could probably try harder.
139 LIBC=gnu 142 LIBC=gnu
140 143
141 eval $set_cc_for_build 144 set_cc_for_build
142 cat <<-EOF > $dummy.c 145 cat <<-EOF > "$dummy.c"
143 #include <features.h> 146 #include <features.h>
144 #if defined(__UCLIBC__) 147 #if defined(__UCLIBC__)
145 LIBC=uclibc 148 LIBC=uclibc
@@ -149,13 +152,20 @@ Linux|GNU|GNU/*)
149 LIBC=gnu 152 LIBC=gnu
150 #endif 153 #endif
151 EOF 154 EOF
152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 155 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
156
157 # If ldd exists, use it to detect musl libc.
158 if command -v ldd >/dev/null && \
159 ldd --version 2>&1 | grep -q ^musl
160 then
161 LIBC=musl
162 fi
153 ;; 163 ;;
154esac 164esac
155 165
156# Note: order is significant - the case branches are not exclusive. 166# Note: order is significant - the case branches are not exclusive.
157 167
158case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 168case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
159 *:NetBSD:*:*) 169 *:NetBSD:*:*)
160 # NetBSD (nbsd) targets should (where applicable) match one or 170 # NetBSD (nbsd) targets should (where applicable) match one or
161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 171 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
@@ -169,30 +179,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
169 # portion of the name. We always set it to "unknown". 179 # portion of the name. We always set it to "unknown".
170 sysctl="sysctl -n hw.machine_arch" 180 sysctl="sysctl -n hw.machine_arch"
171 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 181 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
172 /sbin/$sysctl 2>/dev/null || \ 182 "/sbin/$sysctl" 2>/dev/null || \
173 /usr/sbin/$sysctl 2>/dev/null || \ 183 "/usr/sbin/$sysctl" 2>/dev/null || \
174 echo unknown)` 184 echo unknown)`
175 case "${UNAME_MACHINE_ARCH}" in 185 case "$UNAME_MACHINE_ARCH" in
176 armeb) machine=armeb-unknown ;; 186 armeb) machine=armeb-unknown ;;
177 arm*) machine=arm-unknown ;; 187 arm*) machine=arm-unknown ;;
178 sh3el) machine=shl-unknown ;; 188 sh3el) machine=shl-unknown ;;
179 sh3eb) machine=sh-unknown ;; 189 sh3eb) machine=sh-unknown ;;
180 sh5el) machine=sh5le-unknown ;; 190 sh5el) machine=sh5le-unknown ;;
181 earmv*) 191 earmv*)
182 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 192 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
183 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` 193 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
184 machine=${arch}${endian}-unknown 194 machine="${arch}${endian}"-unknown
185 ;; 195 ;;
186 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 196 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
187 esac 197 esac
188 # The Operating System including object format, if it has switched 198 # The Operating System including object format, if it has switched
189 # to ELF recently (or will in the future) and ABI. 199 # to ELF recently (or will in the future) and ABI.
190 case "${UNAME_MACHINE_ARCH}" in 200 case "$UNAME_MACHINE_ARCH" in
191 earm*) 201 earm*)
192 os=netbsdelf 202 os=netbsdelf
193 ;; 203 ;;
194 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 204 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
195 eval $set_cc_for_build 205 set_cc_for_build
196 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 206 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
197 | grep -q __ELF__ 207 | grep -q __ELF__
198 then 208 then
@@ -208,10 +218,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
208 ;; 218 ;;
209 esac 219 esac
210 # Determine ABI tags. 220 # Determine ABI tags.
211 case "${UNAME_MACHINE_ARCH}" in 221 case "$UNAME_MACHINE_ARCH" in
212 earm*) 222 earm*)
213 expr='s/^earmv[0-9]/-eabi/;s/eb$//' 223 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
214 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` 224 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
215 ;; 225 ;;
216 esac 226 esac
217 # The OS release 227 # The OS release
@@ -219,49 +229,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
219 # thus, need a distinct triplet. However, they do not need 229 # thus, need a distinct triplet. However, they do not need
220 # kernel version information, so it can be replaced with a 230 # kernel version information, so it can be replaced with a
221 # suitable tag, in the style of linux-gnu. 231 # suitable tag, in the style of linux-gnu.
222 case "${UNAME_VERSION}" in 232 case "$UNAME_VERSION" in
223 Debian*) 233 Debian*)
224 release='-gnu' 234 release='-gnu'
225 ;; 235 ;;
226 *) 236 *)
227 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` 237 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
228 ;; 238 ;;
229 esac 239 esac
230 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 240 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
231 # contains redundant information, the shorter form: 241 # contains redundant information, the shorter form:
232 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 242 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
233 echo "${machine}-${os}${release}${abi}" 243 echo "$machine-${os}${release}${abi-}"
234 exit ;; 244 exit ;;
235 *:Bitrig:*:*) 245 *:Bitrig:*:*)
236 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 246 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
237 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 247 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
238 exit ;; 248 exit ;;
239 *:OpenBSD:*:*) 249 *:OpenBSD:*:*)
240 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 250 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
241 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 251 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
242 exit ;; 252 exit ;;
243 *:LibertyBSD:*:*) 253 *:LibertyBSD:*:*)
244 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 254 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
245 echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} 255 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
256 exit ;;
257 *:MidnightBSD:*:*)
258 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
246 exit ;; 259 exit ;;
247 *:ekkoBSD:*:*) 260 *:ekkoBSD:*:*)
248 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 261 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
249 exit ;; 262 exit ;;
250 *:SolidBSD:*:*) 263 *:SolidBSD:*:*)
251 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 264 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
252 exit ;; 265 exit ;;
253 macppc:MirBSD:*:*) 266 macppc:MirBSD:*:*)
254 echo powerpc-unknown-mirbsd${UNAME_RELEASE} 267 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
255 exit ;; 268 exit ;;
256 *:MirBSD:*:*) 269 *:MirBSD:*:*)
257 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 270 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
258 exit ;; 271 exit ;;
259 *:Sortix:*:*) 272 *:Sortix:*:*)
260 echo ${UNAME_MACHINE}-unknown-sortix 273 echo "$UNAME_MACHINE"-unknown-sortix
261 exit ;; 274 exit ;;
262 *:Redox:*:*) 275 *:Redox:*:*)
263 echo ${UNAME_MACHINE}-unknown-redox 276 echo "$UNAME_MACHINE"-unknown-redox
264 exit ;; 277 exit ;;
278 mips:OSF1:*.*)
279 echo mips-dec-osf1
280 exit ;;
265 alpha:OSF1:*:*) 281 alpha:OSF1:*:*)
266 case $UNAME_RELEASE in 282 case $UNAME_RELEASE in
267 *4.0) 283 *4.0)
@@ -313,28 +329,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
313 # A Tn.n version is a released field test version. 329 # A Tn.n version is a released field test version.
314 # A Xn.n version is an unreleased experimental baselevel. 330 # A Xn.n version is an unreleased experimental baselevel.
315 # 1.2 uses "1.2" for uname -r. 331 # 1.2 uses "1.2" for uname -r.
316 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 332 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
317 # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 333 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
318 exitcode=$? 334 exitcode=$?
319 trap '' 0 335 trap '' 0
320 exit $exitcode ;; 336 exit $exitcode ;;
321 Alpha\ *:Windows_NT*:*)
322 # How do we know it's Interix rather than the generic POSIX subsystem?
323 # Should we change UNAME_MACHINE based on the output of uname instead
324 # of the specific Alpha model?
325 echo alpha-pc-interix
326 exit ;;
327 21064:Windows_NT:50:3)
328 echo alpha-dec-winnt3.5
329 exit ;;
330 Amiga*:UNIX_System_V:4.0:*) 337 Amiga*:UNIX_System_V:4.0:*)
331 echo m68k-unknown-sysv4 338 echo m68k-unknown-sysv4
332 exit ;; 339 exit ;;
333 *:[Aa]miga[Oo][Ss]:*:*) 340 *:[Aa]miga[Oo][Ss]:*:*)
334 echo ${UNAME_MACHINE}-unknown-amigaos 341 echo "$UNAME_MACHINE"-unknown-amigaos
335 exit ;; 342 exit ;;
336 *:[Mm]orph[Oo][Ss]:*:*) 343 *:[Mm]orph[Oo][Ss]:*:*)
337 echo ${UNAME_MACHINE}-unknown-morphos 344 echo "$UNAME_MACHINE"-unknown-morphos
338 exit ;; 345 exit ;;
339 *:OS/390:*:*) 346 *:OS/390:*:*)
340 echo i370-ibm-openedition 347 echo i370-ibm-openedition
@@ -346,7 +353,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
346 echo powerpc-ibm-os400 353 echo powerpc-ibm-os400
347 exit ;; 354 exit ;;
348 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 355 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
349 echo arm-acorn-riscix${UNAME_RELEASE} 356 echo arm-acorn-riscix"$UNAME_RELEASE"
350 exit ;; 357 exit ;;
351 arm*:riscos:*:*|arm*:RISCOS:*:*) 358 arm*:riscos:*:*|arm*:RISCOS:*:*)
352 echo arm-unknown-riscos 359 echo arm-unknown-riscos
@@ -373,38 +380,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
373 sparc) echo sparc-icl-nx7; exit ;; 380 sparc) echo sparc-icl-nx7; exit ;;
374 esac ;; 381 esac ;;
375 s390x:SunOS:*:*) 382 s390x:SunOS:*:*)
376 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 383 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
377 exit ;; 384 exit ;;
378 sun4H:SunOS:5.*:*) 385 sun4H:SunOS:5.*:*)
379 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 386 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
380 exit ;; 387 exit ;;
381 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 388 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
382 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 389 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
383 exit ;; 390 exit ;;
384 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 391 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
385 echo i386-pc-auroraux${UNAME_RELEASE} 392 echo i386-pc-auroraux"$UNAME_RELEASE"
386 exit ;; 393 exit ;;
387 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 394 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
388 eval $set_cc_for_build 395 UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
389 SUN_ARCH=i386 396 case `isainfo -b` in
390 # If there is a compiler, see if it is configured for 64-bit objects. 397 32)
391 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 398 echo i386-pc-solaris2"$UNAME_REL"
392 # This test works for both compilers. 399 ;;
393 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 400 64)
394 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 401 echo x86_64-pc-solaris2"$UNAME_REL"
395 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 402 ;;
396 grep IS_64BIT_ARCH >/dev/null 403 esac
397 then
398 SUN_ARCH=x86_64
399 fi
400 fi
401 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
402 exit ;; 404 exit ;;
403 sun4*:SunOS:6*:*) 405 sun4*:SunOS:6*:*)
404 # According to config.sub, this is the proper way to canonicalize 406 # According to config.sub, this is the proper way to canonicalize
405 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 407 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
406 # it's likely to be more like Solaris than SunOS4. 408 # it's likely to be more like Solaris than SunOS4.
407 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 409 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
408 exit ;; 410 exit ;;
409 sun4*:SunOS:*:*) 411 sun4*:SunOS:*:*)
410 case "`/usr/bin/arch -k`" in 412 case "`/usr/bin/arch -k`" in
@@ -413,25 +415,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
413 ;; 415 ;;
414 esac 416 esac
415 # Japanese Language versions have a version number like `4.1.3-JL'. 417 # Japanese Language versions have a version number like `4.1.3-JL'.
416 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 418 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
417 exit ;; 419 exit ;;
418 sun3*:SunOS:*:*) 420 sun3*:SunOS:*:*)
419 echo m68k-sun-sunos${UNAME_RELEASE} 421 echo m68k-sun-sunos"$UNAME_RELEASE"
420 exit ;; 422 exit ;;
421 sun*:*:4.2BSD:*) 423 sun*:*:4.2BSD:*)
422 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 424 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
423 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 425 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
424 case "`/bin/arch`" in 426 case "`/bin/arch`" in
425 sun3) 427 sun3)
426 echo m68k-sun-sunos${UNAME_RELEASE} 428 echo m68k-sun-sunos"$UNAME_RELEASE"
427 ;; 429 ;;
428 sun4) 430 sun4)
429 echo sparc-sun-sunos${UNAME_RELEASE} 431 echo sparc-sun-sunos"$UNAME_RELEASE"
430 ;; 432 ;;
431 esac 433 esac
432 exit ;; 434 exit ;;
433 aushp:SunOS:*:*) 435 aushp:SunOS:*:*)
434 echo sparc-auspex-sunos${UNAME_RELEASE} 436 echo sparc-auspex-sunos"$UNAME_RELEASE"
435 exit ;; 437 exit ;;
436 # The situation for MiNT is a little confusing. The machine name 438 # The situation for MiNT is a little confusing. The machine name
437 # can be virtually everything (everything which is not 439 # can be virtually everything (everything which is not
@@ -442,44 +444,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
442 # MiNT. But MiNT is downward compatible to TOS, so this should 444 # MiNT. But MiNT is downward compatible to TOS, so this should
443 # be no problem. 445 # be no problem.
444 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 446 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
445 echo m68k-atari-mint${UNAME_RELEASE} 447 echo m68k-atari-mint"$UNAME_RELEASE"
446 exit ;; 448 exit ;;
447 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 449 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint${UNAME_RELEASE} 450 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;; 451 exit ;;
450 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 452 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
451 echo m68k-atari-mint${UNAME_RELEASE} 453 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;; 454 exit ;;
453 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 455 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
454 echo m68k-milan-mint${UNAME_RELEASE} 456 echo m68k-milan-mint"$UNAME_RELEASE"
455 exit ;; 457 exit ;;
456 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 458 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
457 echo m68k-hades-mint${UNAME_RELEASE} 459 echo m68k-hades-mint"$UNAME_RELEASE"
458 exit ;; 460 exit ;;
459 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 461 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
460 echo m68k-unknown-mint${UNAME_RELEASE} 462 echo m68k-unknown-mint"$UNAME_RELEASE"
461 exit ;; 463 exit ;;
462 m68k:machten:*:*) 464 m68k:machten:*:*)
463 echo m68k-apple-machten${UNAME_RELEASE} 465 echo m68k-apple-machten"$UNAME_RELEASE"
464 exit ;; 466 exit ;;
465 powerpc:machten:*:*) 467 powerpc:machten:*:*)
466 echo powerpc-apple-machten${UNAME_RELEASE} 468 echo powerpc-apple-machten"$UNAME_RELEASE"
467 exit ;; 469 exit ;;
468 RISC*:Mach:*:*) 470 RISC*:Mach:*:*)
469 echo mips-dec-mach_bsd4.3 471 echo mips-dec-mach_bsd4.3
470 exit ;; 472 exit ;;
471 RISC*:ULTRIX:*:*) 473 RISC*:ULTRIX:*:*)
472 echo mips-dec-ultrix${UNAME_RELEASE} 474 echo mips-dec-ultrix"$UNAME_RELEASE"
473 exit ;; 475 exit ;;
474 VAX*:ULTRIX*:*:*) 476 VAX*:ULTRIX*:*:*)
475 echo vax-dec-ultrix${UNAME_RELEASE} 477 echo vax-dec-ultrix"$UNAME_RELEASE"
476 exit ;; 478 exit ;;
477 2020:CLIX:*:* | 2430:CLIX:*:*) 479 2020:CLIX:*:* | 2430:CLIX:*:*)
478 echo clipper-intergraph-clix${UNAME_RELEASE} 480 echo clipper-intergraph-clix"$UNAME_RELEASE"
479 exit ;; 481 exit ;;
480 mips:*:*:UMIPS | mips:*:*:RISCos) 482 mips:*:*:UMIPS | mips:*:*:RISCos)
481 eval $set_cc_for_build 483 set_cc_for_build
482 sed 's/^ //' << EOF >$dummy.c 484 sed 's/^ //' << EOF > "$dummy.c"
483#ifdef __cplusplus 485#ifdef __cplusplus
484#include <stdio.h> /* for printf() prototype */ 486#include <stdio.h> /* for printf() prototype */
485 int main (int argc, char *argv[]) { 487 int main (int argc, char *argv[]) {
@@ -488,23 +490,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
488#endif 490#endif
489 #if defined (host_mips) && defined (MIPSEB) 491 #if defined (host_mips) && defined (MIPSEB)
490 #if defined (SYSTYPE_SYSV) 492 #if defined (SYSTYPE_SYSV)
491 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 493 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
492 #endif 494 #endif
493 #if defined (SYSTYPE_SVR4) 495 #if defined (SYSTYPE_SVR4)
494 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 496 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
495 #endif 497 #endif
496 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 498 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
497 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 499 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
498 #endif 500 #endif
499 #endif 501 #endif
500 exit (-1); 502 exit (-1);
501 } 503 }
502EOF 504EOF
503 $CC_FOR_BUILD -o $dummy $dummy.c && 505 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
504 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 506 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
505 SYSTEM_NAME=`$dummy $dummyarg` && 507 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
506 { echo "$SYSTEM_NAME"; exit; } 508 { echo "$SYSTEM_NAME"; exit; }
507 echo mips-mips-riscos${UNAME_RELEASE} 509 echo mips-mips-riscos"$UNAME_RELEASE"
508 exit ;; 510 exit ;;
509 Motorola:PowerMAX_OS:*:*) 511 Motorola:PowerMAX_OS:*:*)
510 echo powerpc-motorola-powermax 512 echo powerpc-motorola-powermax
@@ -530,17 +532,17 @@ EOF
530 AViiON:dgux:*:*) 532 AViiON:dgux:*:*)
531 # DG/UX returns AViiON for all architectures 533 # DG/UX returns AViiON for all architectures
532 UNAME_PROCESSOR=`/usr/bin/uname -p` 534 UNAME_PROCESSOR=`/usr/bin/uname -p`
533 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 535 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
534 then 536 then
535 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 537 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
536 [ ${TARGET_BINARY_INTERFACE}x = x ] 538 [ "$TARGET_BINARY_INTERFACE"x = x ]
537 then 539 then
538 echo m88k-dg-dgux${UNAME_RELEASE} 540 echo m88k-dg-dgux"$UNAME_RELEASE"
539 else 541 else
540 echo m88k-dg-dguxbcs${UNAME_RELEASE} 542 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
541 fi 543 fi
542 else 544 else
543 echo i586-dg-dgux${UNAME_RELEASE} 545 echo i586-dg-dgux"$UNAME_RELEASE"
544 fi 546 fi
545 exit ;; 547 exit ;;
546 M88*:DolphinOS:*:*) # DolphinOS (SVR3) 548 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
@@ -557,7 +559,7 @@ EOF
557 echo m68k-tektronix-bsd 559 echo m68k-tektronix-bsd
558 exit ;; 560 exit ;;
559 *:IRIX*:*:*) 561 *:IRIX*:*:*)
560 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 562 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
561 exit ;; 563 exit ;;
562 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 564 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
563 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 565 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
@@ -569,14 +571,14 @@ EOF
569 if [ -x /usr/bin/oslevel ] ; then 571 if [ -x /usr/bin/oslevel ] ; then
570 IBM_REV=`/usr/bin/oslevel` 572 IBM_REV=`/usr/bin/oslevel`
571 else 573 else
572 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 574 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
573 fi 575 fi
574 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 576 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
575 exit ;; 577 exit ;;
576 *:AIX:2:3) 578 *:AIX:2:3)
577 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 579 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
578 eval $set_cc_for_build 580 set_cc_for_build
579 sed 's/^ //' << EOF >$dummy.c 581 sed 's/^ //' << EOF > "$dummy.c"
580 #include <sys/systemcfg.h> 582 #include <sys/systemcfg.h>
581 583
582 main() 584 main()
@@ -587,7 +589,7 @@ EOF
587 exit(0); 589 exit(0);
588 } 590 }
589EOF 591EOF
590 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 592 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
591 then 593 then
592 echo "$SYSTEM_NAME" 594 echo "$SYSTEM_NAME"
593 else 595 else
@@ -601,7 +603,7 @@ EOF
601 exit ;; 603 exit ;;
602 *:AIX:*:[4567]) 604 *:AIX:*:[4567])
603 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 605 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
604 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 606 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
605 IBM_ARCH=rs6000 607 IBM_ARCH=rs6000
606 else 608 else
607 IBM_ARCH=powerpc 609 IBM_ARCH=powerpc
@@ -610,18 +612,18 @@ EOF
610 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 612 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
611 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 613 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
612 else 614 else
613 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 615 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
614 fi 616 fi
615 echo ${IBM_ARCH}-ibm-aix${IBM_REV} 617 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
616 exit ;; 618 exit ;;
617 *:AIX:*:*) 619 *:AIX:*:*)
618 echo rs6000-ibm-aix 620 echo rs6000-ibm-aix
619 exit ;; 621 exit ;;
620 ibmrt:4.4BSD:*|romp-ibm:BSD:*) 622 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
621 echo romp-ibm-bsd4.4 623 echo romp-ibm-bsd4.4
622 exit ;; 624 exit ;;
623 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 625 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
624 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 626 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
625 exit ;; # report: romp-ibm BSD 4.3 627 exit ;; # report: romp-ibm BSD 4.3
626 *:BOSX:*:*) 628 *:BOSX:*:*)
627 echo rs6000-bull-bosx 629 echo rs6000-bull-bosx
@@ -636,28 +638,28 @@ EOF
636 echo m68k-hp-bsd4.4 638 echo m68k-hp-bsd4.4
637 exit ;; 639 exit ;;
638 9000/[34678]??:HP-UX:*:*) 640 9000/[34678]??:HP-UX:*:*)
639 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 641 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
640 case "${UNAME_MACHINE}" in 642 case "$UNAME_MACHINE" in
641 9000/31? ) HP_ARCH=m68000 ;; 643 9000/31?) HP_ARCH=m68000 ;;
642 9000/[34]?? ) HP_ARCH=m68k ;; 644 9000/[34]??) HP_ARCH=m68k ;;
643 9000/[678][0-9][0-9]) 645 9000/[678][0-9][0-9])
644 if [ -x /usr/bin/getconf ]; then 646 if [ -x /usr/bin/getconf ]; then
645 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 647 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
646 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 648 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
647 case "${sc_cpu_version}" in 649 case "$sc_cpu_version" in
648 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 650 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
649 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 651 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
650 532) # CPU_PA_RISC2_0 652 532) # CPU_PA_RISC2_0
651 case "${sc_kernel_bits}" in 653 case "$sc_kernel_bits" in
652 32) HP_ARCH=hppa2.0n ;; 654 32) HP_ARCH=hppa2.0n ;;
653 64) HP_ARCH=hppa2.0w ;; 655 64) HP_ARCH=hppa2.0w ;;
654 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 656 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
655 esac ;; 657 esac ;;
656 esac 658 esac
657 fi 659 fi
658 if [ "${HP_ARCH}" = "" ]; then 660 if [ "$HP_ARCH" = "" ]; then
659 eval $set_cc_for_build 661 set_cc_for_build
660 sed 's/^ //' << EOF >$dummy.c 662 sed 's/^ //' << EOF > "$dummy.c"
661 663
662 #define _HPUX_SOURCE 664 #define _HPUX_SOURCE
663 #include <stdlib.h> 665 #include <stdlib.h>
@@ -690,13 +692,13 @@ EOF
690 exit (0); 692 exit (0);
691 } 693 }
692EOF 694EOF
693 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 695 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
694 test -z "$HP_ARCH" && HP_ARCH=hppa 696 test -z "$HP_ARCH" && HP_ARCH=hppa
695 fi ;; 697 fi ;;
696 esac 698 esac
697 if [ ${HP_ARCH} = hppa2.0w ] 699 if [ "$HP_ARCH" = hppa2.0w ]
698 then 700 then
699 eval $set_cc_for_build 701 set_cc_for_build
700 702
701 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 703 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
702 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 704 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -715,15 +717,15 @@ EOF
715 HP_ARCH=hppa64 717 HP_ARCH=hppa64
716 fi 718 fi
717 fi 719 fi
718 echo ${HP_ARCH}-hp-hpux${HPUX_REV} 720 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
719 exit ;; 721 exit ;;
720 ia64:HP-UX:*:*) 722 ia64:HP-UX:*:*)
721 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 723 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
722 echo ia64-hp-hpux${HPUX_REV} 724 echo ia64-hp-hpux"$HPUX_REV"
723 exit ;; 725 exit ;;
724 3050*:HI-UX:*:*) 726 3050*:HI-UX:*:*)
725 eval $set_cc_for_build 727 set_cc_for_build
726 sed 's/^ //' << EOF >$dummy.c 728 sed 's/^ //' << EOF > "$dummy.c"
727 #include <unistd.h> 729 #include <unistd.h>
728 int 730 int
729 main () 731 main ()
@@ -748,11 +750,11 @@ EOF
748 exit (0); 750 exit (0);
749 } 751 }
750EOF 752EOF
751 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 753 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
752 { echo "$SYSTEM_NAME"; exit; } 754 { echo "$SYSTEM_NAME"; exit; }
753 echo unknown-hitachi-hiuxwe2 755 echo unknown-hitachi-hiuxwe2
754 exit ;; 756 exit ;;
755 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 757 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
756 echo hppa1.1-hp-bsd 758 echo hppa1.1-hp-bsd
757 exit ;; 759 exit ;;
758 9000/8??:4.3bsd:*:*) 760 9000/8??:4.3bsd:*:*)
@@ -761,7 +763,7 @@ EOF
761 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 763 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
762 echo hppa1.0-hp-mpeix 764 echo hppa1.0-hp-mpeix
763 exit ;; 765 exit ;;
764 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 766 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
765 echo hppa1.1-hp-osf 767 echo hppa1.1-hp-osf
766 exit ;; 768 exit ;;
767 hp8??:OSF1:*:*) 769 hp8??:OSF1:*:*)
@@ -769,9 +771,9 @@ EOF
769 exit ;; 771 exit ;;
770 i*86:OSF1:*:*) 772 i*86:OSF1:*:*)
771 if [ -x /usr/sbin/sysversion ] ; then 773 if [ -x /usr/sbin/sysversion ] ; then
772 echo ${UNAME_MACHINE}-unknown-osf1mk 774 echo "$UNAME_MACHINE"-unknown-osf1mk
773 else 775 else
774 echo ${UNAME_MACHINE}-unknown-osf1 776 echo "$UNAME_MACHINE"-unknown-osf1
775 fi 777 fi
776 exit ;; 778 exit ;;
777 parisc*:Lites*:*:*) 779 parisc*:Lites*:*:*)
@@ -796,128 +798,120 @@ EOF
796 echo c4-convex-bsd 798 echo c4-convex-bsd
797 exit ;; 799 exit ;;
798 CRAY*Y-MP:*:*:*) 800 CRAY*Y-MP:*:*:*)
799 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 801 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
800 exit ;; 802 exit ;;
801 CRAY*[A-Z]90:*:*:*) 803 CRAY*[A-Z]90:*:*:*)
802 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 804 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
803 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 805 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
804 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 806 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
805 -e 's/\.[^.]*$/.X/' 807 -e 's/\.[^.]*$/.X/'
806 exit ;; 808 exit ;;
807 CRAY*TS:*:*:*) 809 CRAY*TS:*:*:*)
808 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 810 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
809 exit ;; 811 exit ;;
810 CRAY*T3E:*:*:*) 812 CRAY*T3E:*:*:*)
811 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 813 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;; 814 exit ;;
813 CRAY*SV1:*:*:*) 815 CRAY*SV1:*:*:*)
814 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 816 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;; 817 exit ;;
816 *:UNICOS/mp:*:*) 818 *:UNICOS/mp:*:*)
817 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 819 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;; 820 exit ;;
819 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 821 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
820 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 822 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
821 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 823 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
822 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 824 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
823 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 825 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
824 exit ;; 826 exit ;;
825 5000:UNIX_System_V:4.*:*) 827 5000:UNIX_System_V:4.*:*)
826 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 828 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
827 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 829 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
828 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 830 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
829 exit ;; 831 exit ;;
830 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 832 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
831 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 833 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
832 exit ;; 834 exit ;;
833 sparc*:BSD/OS:*:*) 835 sparc*:BSD/OS:*:*)
834 echo sparc-unknown-bsdi${UNAME_RELEASE} 836 echo sparc-unknown-bsdi"$UNAME_RELEASE"
835 exit ;; 837 exit ;;
836 *:BSD/OS:*:*) 838 *:BSD/OS:*:*)
837 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 839 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
840 exit ;;
841 arm:FreeBSD:*:*)
842 UNAME_PROCESSOR=`uname -p`
843 set_cc_for_build
844 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
845 | grep -q __ARM_PCS_VFP
846 then
847 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
848 else
849 echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
850 fi
838 exit ;; 851 exit ;;
839 *:FreeBSD:*:*) 852 *:FreeBSD:*:*)
840 UNAME_PROCESSOR=`/usr/bin/uname -p` 853 UNAME_PROCESSOR=`/usr/bin/uname -p`
841 case ${UNAME_PROCESSOR} in 854 case "$UNAME_PROCESSOR" in
842 amd64) 855 amd64)
843 UNAME_PROCESSOR=x86_64 ;; 856 UNAME_PROCESSOR=x86_64 ;;
844 i386) 857 i386)
845 UNAME_PROCESSOR=i586 ;; 858 UNAME_PROCESSOR=i586 ;;
846 esac 859 esac
847 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 860 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
848 exit ;; 861 exit ;;
849 i*:CYGWIN*:*) 862 i*:CYGWIN*:*)
850 echo ${UNAME_MACHINE}-pc-cygwin 863 echo "$UNAME_MACHINE"-pc-cygwin
851 exit ;; 864 exit ;;
852 *:MINGW64*:*) 865 *:MINGW64*:*)
853 echo ${UNAME_MACHINE}-pc-mingw64 866 echo "$UNAME_MACHINE"-pc-mingw64
854 exit ;; 867 exit ;;
855 *:MINGW*:*) 868 *:MINGW*:*)
856 echo ${UNAME_MACHINE}-pc-mingw32 869 echo "$UNAME_MACHINE"-pc-mingw32
857 exit ;; 870 exit ;;
858 *:MSYS*:*) 871 *:MSYS*:*)
859 echo ${UNAME_MACHINE}-pc-msys 872 echo "$UNAME_MACHINE"-pc-msys
860 exit ;;
861 i*:windows32*:*)
862 # uname -m includes "-pc" on this system.
863 echo ${UNAME_MACHINE}-mingw32
864 exit ;; 873 exit ;;
865 i*:PW*:*) 874 i*:PW*:*)
866 echo ${UNAME_MACHINE}-pc-pw32 875 echo "$UNAME_MACHINE"-pc-pw32
867 exit ;; 876 exit ;;
868 *:Interix*:*) 877 *:Interix*:*)
869 case ${UNAME_MACHINE} in 878 case "$UNAME_MACHINE" in
870 x86) 879 x86)
871 echo i586-pc-interix${UNAME_RELEASE} 880 echo i586-pc-interix"$UNAME_RELEASE"
872 exit ;; 881 exit ;;
873 authenticamd | genuineintel | EM64T) 882 authenticamd | genuineintel | EM64T)
874 echo x86_64-unknown-interix${UNAME_RELEASE} 883 echo x86_64-unknown-interix"$UNAME_RELEASE"
875 exit ;; 884 exit ;;
876 IA64) 885 IA64)
877 echo ia64-unknown-interix${UNAME_RELEASE} 886 echo ia64-unknown-interix"$UNAME_RELEASE"
878 exit ;; 887 exit ;;
879 esac ;; 888 esac ;;
880 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
881 echo i${UNAME_MACHINE}-pc-mks
882 exit ;;
883 8664:Windows_NT:*)
884 echo x86_64-pc-mks
885 exit ;;
886 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
887 # How do we know it's Interix rather than the generic POSIX subsystem?
888 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
889 # UNAME_MACHINE based on the output of uname instead of i386?
890 echo i586-pc-interix
891 exit ;;
892 i*:UWIN*:*) 889 i*:UWIN*:*)
893 echo ${UNAME_MACHINE}-pc-uwin 890 echo "$UNAME_MACHINE"-pc-uwin
894 exit ;; 891 exit ;;
895 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 892 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
896 echo x86_64-unknown-cygwin 893 echo x86_64-unknown-cygwin
897 exit ;; 894 exit ;;
898 p*:CYGWIN*:*)
899 echo powerpcle-unknown-cygwin
900 exit ;;
901 prep*:SunOS:5.*:*) 895 prep*:SunOS:5.*:*)
902 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 896 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
903 exit ;; 897 exit ;;
904 *:GNU:*:*) 898 *:GNU:*:*)
905 # the GNU system 899 # the GNU system
906 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 900 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
907 exit ;; 901 exit ;;
908 *:GNU/*:*:*) 902 *:GNU/*:*:*)
909 # other systems with GNU libc and userland 903 # other systems with GNU libc and userland
910 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 904 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
911 exit ;; 905 exit ;;
912 i*86:Minix:*:*) 906 *:Minix:*:*)
913 echo ${UNAME_MACHINE}-pc-minix 907 echo "$UNAME_MACHINE"-unknown-minix
914 exit ;; 908 exit ;;
915 aarch64:Linux:*:*) 909 aarch64:Linux:*:*)
916 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 910 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
917 exit ;; 911 exit ;;
918 aarch64_be:Linux:*:*) 912 aarch64_be:Linux:*:*)
919 UNAME_MACHINE=aarch64_be 913 UNAME_MACHINE=aarch64_be
920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 914 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
921 exit ;; 915 exit ;;
922 alpha:Linux:*:*) 916 alpha:Linux:*:*)
923 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 917 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -931,63 +925,63 @@ EOF
931 esac 925 esac
932 objdump --private-headers /bin/sh | grep -q ld.so.1 926 objdump --private-headers /bin/sh | grep -q ld.so.1
933 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 927 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
934 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
935 exit ;; 929 exit ;;
936 arc:Linux:*:* | arceb:Linux:*:*) 930 arc:Linux:*:* | arceb:Linux:*:*)
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 931 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
938 exit ;; 932 exit ;;
939 arm*:Linux:*:*) 933 arm*:Linux:*:*)
940 eval $set_cc_for_build 934 set_cc_for_build
941 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 935 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
942 | grep -q __ARM_EABI__ 936 | grep -q __ARM_EABI__
943 then 937 then
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 938 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945 else 939 else
946 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 940 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
947 | grep -q __ARM_PCS_VFP 941 | grep -q __ARM_PCS_VFP
948 then 942 then
949 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 943 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
950 else 944 else
951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 945 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
952 fi 946 fi
953 fi 947 fi
954 exit ;; 948 exit ;;
955 avr32*:Linux:*:*) 949 avr32*:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
957 exit ;; 951 exit ;;
958 cris:Linux:*:*) 952 cris:Linux:*:*)
959 echo ${UNAME_MACHINE}-axis-linux-${LIBC} 953 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
960 exit ;; 954 exit ;;
961 crisv32:Linux:*:*) 955 crisv32:Linux:*:*)
962 echo ${UNAME_MACHINE}-axis-linux-${LIBC} 956 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
963 exit ;; 957 exit ;;
964 e2k:Linux:*:*) 958 e2k:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 959 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
966 exit ;; 960 exit ;;
967 frv:Linux:*:*) 961 frv:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
969 exit ;; 963 exit ;;
970 hexagon:Linux:*:*) 964 hexagon:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972 exit ;; 966 exit ;;
973 i*86:Linux:*:*) 967 i*86:Linux:*:*)
974 echo ${UNAME_MACHINE}-pc-linux-${LIBC} 968 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
975 exit ;; 969 exit ;;
976 ia64:Linux:*:*) 970 ia64:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
978 exit ;; 972 exit ;;
979 k1om:Linux:*:*) 973 k1om:Linux:*:*)
980 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 974 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
981 exit ;; 975 exit ;;
982 m32r*:Linux:*:*) 976 m32r*:Linux:*:*)
983 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 977 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
984 exit ;; 978 exit ;;
985 m68*:Linux:*:*) 979 m68*:Linux:*:*)
986 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 980 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
987 exit ;; 981 exit ;;
988 mips:Linux:*:* | mips64:Linux:*:*) 982 mips:Linux:*:* | mips64:Linux:*:*)
989 eval $set_cc_for_build 983 set_cc_for_build
990 sed 's/^ //' << EOF >$dummy.c 984 sed 's/^ //' << EOF > "$dummy.c"
991 #undef CPU 985 #undef CPU
992 #undef ${UNAME_MACHINE} 986 #undef ${UNAME_MACHINE}
993 #undef ${UNAME_MACHINE}el 987 #undef ${UNAME_MACHINE}el
@@ -1001,70 +995,70 @@ EOF
1001 #endif 995 #endif
1002 #endif 996 #endif
1003EOF 997EOF
1004 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 998 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
1005 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 999 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1006 ;; 1000 ;;
1007 mips64el:Linux:*:*) 1001 mips64el:Linux:*:*)
1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1002 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1009 exit ;; 1003 exit ;;
1010 openrisc*:Linux:*:*) 1004 openrisc*:Linux:*:*)
1011 echo or1k-unknown-linux-${LIBC} 1005 echo or1k-unknown-linux-"$LIBC"
1012 exit ;; 1006 exit ;;
1013 or32:Linux:*:* | or1k*:Linux:*:*) 1007 or32:Linux:*:* | or1k*:Linux:*:*)
1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1008 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1015 exit ;; 1009 exit ;;
1016 padre:Linux:*:*) 1010 padre:Linux:*:*)
1017 echo sparc-unknown-linux-${LIBC} 1011 echo sparc-unknown-linux-"$LIBC"
1018 exit ;; 1012 exit ;;
1019 parisc64:Linux:*:* | hppa64:Linux:*:*) 1013 parisc64:Linux:*:* | hppa64:Linux:*:*)
1020 echo hppa64-unknown-linux-${LIBC} 1014 echo hppa64-unknown-linux-"$LIBC"
1021 exit ;; 1015 exit ;;
1022 parisc:Linux:*:* | hppa:Linux:*:*) 1016 parisc:Linux:*:* | hppa:Linux:*:*)
1023 # Look for CPU level 1017 # Look for CPU level
1024 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 1018 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1025 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 1019 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1026 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 1020 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1027 *) echo hppa-unknown-linux-${LIBC} ;; 1021 *) echo hppa-unknown-linux-"$LIBC" ;;
1028 esac 1022 esac
1029 exit ;; 1023 exit ;;
1030 ppc64:Linux:*:*) 1024 ppc64:Linux:*:*)
1031 echo powerpc64-unknown-linux-${LIBC} 1025 echo powerpc64-unknown-linux-"$LIBC"
1032 exit ;; 1026 exit ;;
1033 ppc:Linux:*:*) 1027 ppc:Linux:*:*)
1034 echo powerpc-unknown-linux-${LIBC} 1028 echo powerpc-unknown-linux-"$LIBC"
1035 exit ;; 1029 exit ;;
1036 ppc64le:Linux:*:*) 1030 ppc64le:Linux:*:*)
1037 echo powerpc64le-unknown-linux-${LIBC} 1031 echo powerpc64le-unknown-linux-"$LIBC"
1038 exit ;; 1032 exit ;;
1039 ppcle:Linux:*:*) 1033 ppcle:Linux:*:*)
1040 echo powerpcle-unknown-linux-${LIBC} 1034 echo powerpcle-unknown-linux-"$LIBC"
1041 exit ;; 1035 exit ;;
1042 riscv32:Linux:*:* | riscv64:Linux:*:*) 1036 riscv32:Linux:*:* | riscv64:Linux:*:*)
1043 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1044 exit ;; 1038 exit ;;
1045 s390:Linux:*:* | s390x:Linux:*:*) 1039 s390:Linux:*:* | s390x:Linux:*:*)
1046 echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 1040 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1047 exit ;; 1041 exit ;;
1048 sh64*:Linux:*:*) 1042 sh64*:Linux:*:*)
1049 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1050 exit ;; 1044 exit ;;
1051 sh*:Linux:*:*) 1045 sh*:Linux:*:*)
1052 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1046 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1053 exit ;; 1047 exit ;;
1054 sparc:Linux:*:* | sparc64:Linux:*:*) 1048 sparc:Linux:*:* | sparc64:Linux:*:*)
1055 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1049 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;; 1050 exit ;;
1057 tile*:Linux:*:*) 1051 tile*:Linux:*:*)
1058 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1052 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1059 exit ;; 1053 exit ;;
1060 vax:Linux:*:*) 1054 vax:Linux:*:*)
1061 echo ${UNAME_MACHINE}-dec-linux-${LIBC} 1055 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1062 exit ;; 1056 exit ;;
1063 x86_64:Linux:*:*) 1057 x86_64:Linux:*:*)
1064 echo ${UNAME_MACHINE}-pc-linux-${LIBC} 1058 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1065 exit ;; 1059 exit ;;
1066 xtensa*:Linux:*:*) 1060 xtensa*:Linux:*:*)
1067 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1061 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1068 exit ;; 1062 exit ;;
1069 i*86:DYNIX/ptx:4*:*) 1063 i*86:DYNIX/ptx:4*:*)
1070 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1064 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1078,34 +1072,34 @@ EOF
1078 # I am not positive that other SVR4 systems won't match this, 1072 # I am not positive that other SVR4 systems won't match this,
1079 # I just have to hope. -- rms. 1073 # I just have to hope. -- rms.
1080 # Use sysv4.2uw... so that sysv4* matches it. 1074 # Use sysv4.2uw... so that sysv4* matches it.
1081 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1075 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1082 exit ;; 1076 exit ;;
1083 i*86:OS/2:*:*) 1077 i*86:OS/2:*:*)
1084 # If we were able to find `uname', then EMX Unix compatibility 1078 # If we were able to find `uname', then EMX Unix compatibility
1085 # is probably installed. 1079 # is probably installed.
1086 echo ${UNAME_MACHINE}-pc-os2-emx 1080 echo "$UNAME_MACHINE"-pc-os2-emx
1087 exit ;; 1081 exit ;;
1088 i*86:XTS-300:*:STOP) 1082 i*86:XTS-300:*:STOP)
1089 echo ${UNAME_MACHINE}-unknown-stop 1083 echo "$UNAME_MACHINE"-unknown-stop
1090 exit ;; 1084 exit ;;
1091 i*86:atheos:*:*) 1085 i*86:atheos:*:*)
1092 echo ${UNAME_MACHINE}-unknown-atheos 1086 echo "$UNAME_MACHINE"-unknown-atheos
1093 exit ;; 1087 exit ;;
1094 i*86:syllable:*:*) 1088 i*86:syllable:*:*)
1095 echo ${UNAME_MACHINE}-pc-syllable 1089 echo "$UNAME_MACHINE"-pc-syllable
1096 exit ;; 1090 exit ;;
1097 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1091 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1098 echo i386-unknown-lynxos${UNAME_RELEASE} 1092 echo i386-unknown-lynxos"$UNAME_RELEASE"
1099 exit ;; 1093 exit ;;
1100 i*86:*DOS:*:*) 1094 i*86:*DOS:*:*)
1101 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1095 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1102 exit ;; 1096 exit ;;
1103 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1097 i*86:*:4.*:*)
1104 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1098 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1105 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1099 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1106 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1100 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1107 else 1101 else
1108 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1102 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1109 fi 1103 fi
1110 exit ;; 1104 exit ;;
1111 i*86:*:5:[678]*) 1105 i*86:*:5:[678]*)
@@ -1115,12 +1109,12 @@ EOF
1115 *Pentium) UNAME_MACHINE=i586 ;; 1109 *Pentium) UNAME_MACHINE=i586 ;;
1116 *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1110 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1117 esac 1111 esac
1118 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1112 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1119 exit ;; 1113 exit ;;
1120 i*86:*:3.2:*) 1114 i*86:*:3.2:*)
1121 if test -f /usr/options/cb.name; then 1115 if test -f /usr/options/cb.name; then
1122 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1116 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1123 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1117 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1124 elif /bin/uname -X 2>/dev/null >/dev/null ; then 1118 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1125 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1119 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1126 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1120 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
@@ -1130,9 +1124,9 @@ EOF
1130 && UNAME_MACHINE=i686 1124 && UNAME_MACHINE=i686
1131 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1125 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1132 && UNAME_MACHINE=i686 1126 && UNAME_MACHINE=i686
1133 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1127 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1134 else 1128 else
1135 echo ${UNAME_MACHINE}-pc-sysv32 1129 echo "$UNAME_MACHINE"-pc-sysv32
1136 fi 1130 fi
1137 exit ;; 1131 exit ;;
1138 pc:*:*:*) 1132 pc:*:*:*)
@@ -1152,9 +1146,9 @@ EOF
1152 exit ;; 1146 exit ;;
1153 i860:*:4.*:*) # i860-SVR4 1147 i860:*:4.*:*) # i860-SVR4
1154 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1148 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1155 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1149 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1156 else # Add other i860-SVR4 vendors below as they are discovered. 1150 else # Add other i860-SVR4 vendors below as they are discovered.
1157 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1151 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1158 fi 1152 fi
1159 exit ;; 1153 exit ;;
1160 mini*:CTIX:SYS*5:*) 1154 mini*:CTIX:SYS*5:*)
@@ -1174,9 +1168,9 @@ EOF
1174 test -r /etc/.relid \ 1168 test -r /etc/.relid \
1175 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1169 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1176 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1170 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1177 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1171 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1178 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1172 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1179 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1173 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1180 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1174 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1181 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1182 && { echo i486-ncr-sysv4; exit; } ;; 1176 && { echo i486-ncr-sysv4; exit; } ;;
@@ -1185,28 +1179,28 @@ EOF
1185 test -r /etc/.relid \ 1179 test -r /etc/.relid \
1186 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1180 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1187 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1181 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1188 && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1182 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1189 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1183 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1190 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1184 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1191 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1185 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1192 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1186 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1193 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1187 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1194 echo m68k-unknown-lynxos${UNAME_RELEASE} 1188 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;; 1189 exit ;;
1196 mc68030:UNIX_System_V:4.*:*) 1190 mc68030:UNIX_System_V:4.*:*)
1197 echo m68k-atari-sysv4 1191 echo m68k-atari-sysv4
1198 exit ;; 1192 exit ;;
1199 TSUNAMI:LynxOS:2.*:*) 1193 TSUNAMI:LynxOS:2.*:*)
1200 echo sparc-unknown-lynxos${UNAME_RELEASE} 1194 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1201 exit ;; 1195 exit ;;
1202 rs6000:LynxOS:2.*:*) 1196 rs6000:LynxOS:2.*:*)
1203 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1197 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1204 exit ;; 1198 exit ;;
1205 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1199 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1206 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1200 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1207 exit ;; 1201 exit ;;
1208 SM[BE]S:UNIX_SV:*:*) 1202 SM[BE]S:UNIX_SV:*:*)
1209 echo mips-dde-sysv${UNAME_RELEASE} 1203 echo mips-dde-sysv"$UNAME_RELEASE"
1210 exit ;; 1204 exit ;;
1211 RM*:ReliantUNIX-*:*:*) 1205 RM*:ReliantUNIX-*:*:*)
1212 echo mips-sni-sysv4 1206 echo mips-sni-sysv4
@@ -1217,7 +1211,7 @@ EOF
1217 *:SINIX-*:*:*) 1211 *:SINIX-*:*:*)
1218 if uname -p 2>/dev/null >/dev/null ; then 1212 if uname -p 2>/dev/null >/dev/null ; then
1219 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1213 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1220 echo ${UNAME_MACHINE}-sni-sysv4 1214 echo "$UNAME_MACHINE"-sni-sysv4
1221 else 1215 else
1222 echo ns32k-sni-sysv 1216 echo ns32k-sni-sysv
1223 fi 1217 fi
@@ -1237,23 +1231,23 @@ EOF
1237 exit ;; 1231 exit ;;
1238 i*86:VOS:*:*) 1232 i*86:VOS:*:*)
1239 # From Paul.Green@stratus.com. 1233 # From Paul.Green@stratus.com.
1240 echo ${UNAME_MACHINE}-stratus-vos 1234 echo "$UNAME_MACHINE"-stratus-vos
1241 exit ;; 1235 exit ;;
1242 *:VOS:*:*) 1236 *:VOS:*:*)
1243 # From Paul.Green@stratus.com. 1237 # From Paul.Green@stratus.com.
1244 echo hppa1.1-stratus-vos 1238 echo hppa1.1-stratus-vos
1245 exit ;; 1239 exit ;;
1246 mc68*:A/UX:*:*) 1240 mc68*:A/UX:*:*)
1247 echo m68k-apple-aux${UNAME_RELEASE} 1241 echo m68k-apple-aux"$UNAME_RELEASE"
1248 exit ;; 1242 exit ;;
1249 news*:NEWS-OS:6*:*) 1243 news*:NEWS-OS:6*:*)
1250 echo mips-sony-newsos6 1244 echo mips-sony-newsos6
1251 exit ;; 1245 exit ;;
1252 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1246 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1253 if [ -d /usr/nec ]; then 1247 if [ -d /usr/nec ]; then
1254 echo mips-nec-sysv${UNAME_RELEASE} 1248 echo mips-nec-sysv"$UNAME_RELEASE"
1255 else 1249 else
1256 echo mips-unknown-sysv${UNAME_RELEASE} 1250 echo mips-unknown-sysv"$UNAME_RELEASE"
1257 fi 1251 fi
1258 exit ;; 1252 exit ;;
1259 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1253 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
@@ -1272,39 +1266,39 @@ EOF
1272 echo x86_64-unknown-haiku 1266 echo x86_64-unknown-haiku
1273 exit ;; 1267 exit ;;
1274 SX-4:SUPER-UX:*:*) 1268 SX-4:SUPER-UX:*:*)
1275 echo sx4-nec-superux${UNAME_RELEASE} 1269 echo sx4-nec-superux"$UNAME_RELEASE"
1276 exit ;; 1270 exit ;;
1277 SX-5:SUPER-UX:*:*) 1271 SX-5:SUPER-UX:*:*)
1278 echo sx5-nec-superux${UNAME_RELEASE} 1272 echo sx5-nec-superux"$UNAME_RELEASE"
1279 exit ;; 1273 exit ;;
1280 SX-6:SUPER-UX:*:*) 1274 SX-6:SUPER-UX:*:*)
1281 echo sx6-nec-superux${UNAME_RELEASE} 1275 echo sx6-nec-superux"$UNAME_RELEASE"
1282 exit ;; 1276 exit ;;
1283 SX-7:SUPER-UX:*:*) 1277 SX-7:SUPER-UX:*:*)
1284 echo sx7-nec-superux${UNAME_RELEASE} 1278 echo sx7-nec-superux"$UNAME_RELEASE"
1285 exit ;; 1279 exit ;;
1286 SX-8:SUPER-UX:*:*) 1280 SX-8:SUPER-UX:*:*)
1287 echo sx8-nec-superux${UNAME_RELEASE} 1281 echo sx8-nec-superux"$UNAME_RELEASE"
1288 exit ;; 1282 exit ;;
1289 SX-8R:SUPER-UX:*:*) 1283 SX-8R:SUPER-UX:*:*)
1290 echo sx8r-nec-superux${UNAME_RELEASE} 1284 echo sx8r-nec-superux"$UNAME_RELEASE"
1291 exit ;; 1285 exit ;;
1292 SX-ACE:SUPER-UX:*:*) 1286 SX-ACE:SUPER-UX:*:*)
1293 echo sxace-nec-superux${UNAME_RELEASE} 1287 echo sxace-nec-superux"$UNAME_RELEASE"
1294 exit ;; 1288 exit ;;
1295 Power*:Rhapsody:*:*) 1289 Power*:Rhapsody:*:*)
1296 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1290 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1297 exit ;; 1291 exit ;;
1298 *:Rhapsody:*:*) 1292 *:Rhapsody:*:*)
1299 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1293 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1300 exit ;; 1294 exit ;;
1301 *:Darwin:*:*) 1295 *:Darwin:*:*)
1302 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1296 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1303 eval $set_cc_for_build 1297 set_cc_for_build
1304 if test "$UNAME_PROCESSOR" = unknown ; then 1298 if test "$UNAME_PROCESSOR" = unknown ; then
1305 UNAME_PROCESSOR=powerpc 1299 UNAME_PROCESSOR=powerpc
1306 fi 1300 fi
1307 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 1301 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1308 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1302 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1309 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1303 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1310 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1304 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
@@ -1332,7 +1326,7 @@ EOF
1332 # that Apple uses in portable devices. 1326 # that Apple uses in portable devices.
1333 UNAME_PROCESSOR=x86_64 1327 UNAME_PROCESSOR=x86_64
1334 fi 1328 fi
1335 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1329 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1336 exit ;; 1330 exit ;;
1337 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1331 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1338 UNAME_PROCESSOR=`uname -p` 1332 UNAME_PROCESSOR=`uname -p`
@@ -1340,22 +1334,25 @@ EOF
1340 UNAME_PROCESSOR=i386 1334 UNAME_PROCESSOR=i386
1341 UNAME_MACHINE=pc 1335 UNAME_MACHINE=pc
1342 fi 1336 fi
1343 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1337 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1344 exit ;; 1338 exit ;;
1345 *:QNX:*:4*) 1339 *:QNX:*:4*)
1346 echo i386-pc-qnx 1340 echo i386-pc-qnx
1347 exit ;; 1341 exit ;;
1348 NEO-*:NONSTOP_KERNEL:*:*) 1342 NEO-*:NONSTOP_KERNEL:*:*)
1349 echo neo-tandem-nsk${UNAME_RELEASE} 1343 echo neo-tandem-nsk"$UNAME_RELEASE"
1350 exit ;; 1344 exit ;;
1351 NSE-*:NONSTOP_KERNEL:*:*) 1345 NSE-*:NONSTOP_KERNEL:*:*)
1352 echo nse-tandem-nsk${UNAME_RELEASE} 1346 echo nse-tandem-nsk"$UNAME_RELEASE"
1353 exit ;; 1347 exit ;;
1354 NSR-*:NONSTOP_KERNEL:*:*) 1348 NSR-*:NONSTOP_KERNEL:*:*)
1355 echo nsr-tandem-nsk${UNAME_RELEASE} 1349 echo nsr-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;
1351 NSV-*:NONSTOP_KERNEL:*:*)
1352 echo nsv-tandem-nsk"$UNAME_RELEASE"
1356 exit ;; 1353 exit ;;
1357 NSX-*:NONSTOP_KERNEL:*:*) 1354 NSX-*:NONSTOP_KERNEL:*:*)
1358 echo nsx-tandem-nsk${UNAME_RELEASE} 1355 echo nsx-tandem-nsk"$UNAME_RELEASE"
1359 exit ;; 1356 exit ;;
1360 *:NonStop-UX:*:*) 1357 *:NonStop-UX:*:*)
1361 echo mips-compaq-nonstopux 1358 echo mips-compaq-nonstopux
@@ -1364,18 +1361,19 @@ EOF
1364 echo bs2000-siemens-sysv 1361 echo bs2000-siemens-sysv
1365 exit ;; 1362 exit ;;
1366 DS/*:UNIX_System_V:*:*) 1363 DS/*:UNIX_System_V:*:*)
1367 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1364 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1368 exit ;; 1365 exit ;;
1369 *:Plan9:*:*) 1366 *:Plan9:*:*)
1370 # "uname -m" is not consistent, so use $cputype instead. 386 1367 # "uname -m" is not consistent, so use $cputype instead. 386
1371 # is converted to i386 for consistency with other x86 1368 # is converted to i386 for consistency with other x86
1372 # operating systems. 1369 # operating systems.
1370 # shellcheck disable=SC2154
1373 if test "$cputype" = 386; then 1371 if test "$cputype" = 386; then
1374 UNAME_MACHINE=i386 1372 UNAME_MACHINE=i386
1375 else 1373 else
1376 UNAME_MACHINE="$cputype" 1374 UNAME_MACHINE="$cputype"
1377 fi 1375 fi
1378 echo ${UNAME_MACHINE}-unknown-plan9 1376 echo "$UNAME_MACHINE"-unknown-plan9
1379 exit ;; 1377 exit ;;
1380 *:TOPS-10:*:*) 1378 *:TOPS-10:*:*)
1381 echo pdp10-unknown-tops10 1379 echo pdp10-unknown-tops10
@@ -1396,14 +1394,14 @@ EOF
1396 echo pdp10-unknown-its 1394 echo pdp10-unknown-its
1397 exit ;; 1395 exit ;;
1398 SEI:*:*:SEIUX) 1396 SEI:*:*:SEIUX)
1399 echo mips-sei-seiux${UNAME_RELEASE} 1397 echo mips-sei-seiux"$UNAME_RELEASE"
1400 exit ;; 1398 exit ;;
1401 *:DragonFly:*:*) 1399 *:DragonFly:*:*)
1402 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1400 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1403 exit ;; 1401 exit ;;
1404 *:*VMS:*:*) 1402 *:*VMS:*:*)
1405 UNAME_MACHINE=`(uname -p) 2>/dev/null` 1403 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1406 case "${UNAME_MACHINE}" in 1404 case "$UNAME_MACHINE" in
1407 A*) echo alpha-dec-vms ; exit ;; 1405 A*) echo alpha-dec-vms ; exit ;;
1408 I*) echo ia64-dec-vms ; exit ;; 1406 I*) echo ia64-dec-vms ; exit ;;
1409 V*) echo vax-dec-vms ; exit ;; 1407 V*) echo vax-dec-vms ; exit ;;
@@ -1412,32 +1410,44 @@ EOF
1412 echo i386-pc-xenix 1410 echo i386-pc-xenix
1413 exit ;; 1411 exit ;;
1414 i*86:skyos:*:*) 1412 i*86:skyos:*:*)
1415 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` 1413 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1416 exit ;; 1414 exit ;;
1417 i*86:rdos:*:*) 1415 i*86:rdos:*:*)
1418 echo ${UNAME_MACHINE}-pc-rdos 1416 echo "$UNAME_MACHINE"-pc-rdos
1419 exit ;; 1417 exit ;;
1420 i*86:AROS:*:*) 1418 i*86:AROS:*:*)
1421 echo ${UNAME_MACHINE}-pc-aros 1419 echo "$UNAME_MACHINE"-pc-aros
1422 exit ;; 1420 exit ;;
1423 x86_64:VMkernel:*:*) 1421 x86_64:VMkernel:*:*)
1424 echo ${UNAME_MACHINE}-unknown-esx 1422 echo "$UNAME_MACHINE"-unknown-esx
1425 exit ;; 1423 exit ;;
1426 amd64:Isilon\ OneFS:*:*) 1424 amd64:Isilon\ OneFS:*:*)
1427 echo x86_64-unknown-onefs 1425 echo x86_64-unknown-onefs
1428 exit ;; 1426 exit ;;
1429esac 1427esac
1430 1428
1429echo "$0: unable to guess system type" >&2
1430
1431case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1432 mips:Linux | mips64:Linux)
1433 # If we got here on MIPS GNU/Linux, output extra information.
1434 cat >&2 <<EOF
1435
1436NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1437the system type. Please install a C compiler and try again.
1438EOF
1439 ;;
1440esac
1441
1431cat >&2 <<EOF 1442cat >&2 <<EOF
1432$0: unable to guess system type
1433 1443
1434This script (version $timestamp), has failed to recognize the 1444This script (version $timestamp), has failed to recognize the
1435operating system you are using. If your script is old, overwrite *all* 1445operating system you are using. If your script is old, overwrite *all*
1436copies of config.guess and config.sub with the latest versions from: 1446copies of config.guess and config.sub with the latest versions from:
1437 1447
1438 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 1448 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1439and 1449and
1440 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 1450 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1441 1451
1442If $0 has already been updated, send the following data and any 1452If $0 has already been updated, send the following data and any
1443information you think might be pertinent to config-patches@gnu.org to 1453information you think might be pertinent to config-patches@gnu.org to
@@ -1460,16 +1470,16 @@ hostinfo = `(hostinfo) 2>/dev/null`
1460/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1470/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1471/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1462 1472
1463UNAME_MACHINE = ${UNAME_MACHINE} 1473UNAME_MACHINE = "$UNAME_MACHINE"
1464UNAME_RELEASE = ${UNAME_RELEASE} 1474UNAME_RELEASE = "$UNAME_RELEASE"
1465UNAME_SYSTEM = ${UNAME_SYSTEM} 1475UNAME_SYSTEM = "$UNAME_SYSTEM"
1466UNAME_VERSION = ${UNAME_VERSION} 1476UNAME_VERSION = "$UNAME_VERSION"
1467EOF 1477EOF
1468 1478
1469exit 1 1479exit 1
1470 1480
1471# Local variables: 1481# Local variables:
1472# eval: (add-hook 'write-file-hooks 'time-stamp) 1482# eval: (add-hook 'before-save-hook 'time-stamp)
1473# time-stamp-start: "timestamp='" 1483# time-stamp-start: "timestamp='"
1474# time-stamp-format: "%:y-%02m-%02d" 1484# time-stamp-format: "%:y-%02m-%02d"
1475# time-stamp-end: "'" 1485# time-stamp-end: "'"
diff --git a/scilab/config/config.sub b/scilab/config/config.sub
index f4bafc1..b51fb8c 100755
--- a/scilab/config/config.sub
+++ b/scilab/config/config.sub
@@ -1,8 +1,8 @@
1#!/bin/sh 1#! /bin/sh
2# Configuration validation subroutine script. 2# Configuration validation subroutine script.
3# Copyright 1992-2017 Free Software Foundation, Inc. 3# Copyright 1992-2018 Free Software Foundation, Inc.
4 4
5timestamp='2017-04-02' 5timestamp='2018-08-29'
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
@@ -15,7 +15,7 @@ timestamp='2017-04-02'
15# General Public License for more details. 15# General Public License for more details.
16# 16#
17# You should have received a copy of the GNU General Public License 17# You should have received a copy of the GNU General Public License
18# along with this program; if not, see <http://www.gnu.org/licenses/>. 18# along with this program; if not, see <https://www.gnu.org/licenses/>.
19# 19#
20# As a special exception to the GNU General Public License, if you 20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a 21# distribute this file as part of a program that contains a
@@ -33,7 +33,7 @@ timestamp='2017-04-02'
33# Otherwise, we print the canonical config type on stdout and succeed. 33# Otherwise, we print the canonical config type on stdout and succeed.
34 34
35# You can get the latest version of this script from: 35# You can get the latest version of this script from:
36# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 36# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
37 37
38# This file is supposed to be the same for all GNU packages 38# This file is supposed to be the same for all GNU packages
39# and recognize all the CPU types, system types and aliases 39# and recognize all the CPU types, system types and aliases
@@ -57,7 +57,7 @@ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
57 57
58Canonicalize a configuration name. 58Canonicalize a configuration name.
59 59
60Operation modes: 60Options:
61 -h, --help print this help, then exit 61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit 62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit 63 -v, --version print version number, then exit
@@ -67,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
67version="\ 67version="\
68GNU config.sub ($timestamp) 68GNU config.sub ($timestamp)
69 69
70Copyright 1992-2017 Free Software Foundation, Inc. 70Copyright 1992-2018 Free Software Foundation, Inc.
71 71
72This is free software; see the source for copying conditions. There is NO 72This is free software; see the source for copying conditions. There is NO
73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -94,7 +94,7 @@ while test $# -gt 0 ; do
94 94
95 *local*) 95 *local*)
96 # First pass through any local machine types. 96 # First pass through any local machine types.
97 echo $1 97 echo "$1"
98 exit ;; 98 exit ;;
99 99
100 * ) 100 * )
@@ -110,1252 +110,1159 @@ case $# in
110 exit 1;; 110 exit 1;;
111esac 111esac
112 112
113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 113# Split fields of configuration type
114# Here we must recognize all the valid KERNEL-OS combinations. 114IFS="-" read -r field1 field2 field3 field4 <<EOF
115maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 115$1
116case $maybe_os in 116EOF
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120 kopensolaris*-gnu* | cloudabi*-eabi* | \
121 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128 ;;
129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]
132 then os=`echo $1 | sed 's/.*-/-/'`
133 else os=; fi
134 ;;
135esac
136 117
137### Let's recognize common machines as not being operating systems so 118# Separate into logical components for further validation
138### that things like config.sub decstation-3100 work. We also 119case $1 in
139### recognize some manufacturers as not being operating systems, so we 120 *-*-*-*-*)
140### can provide default operating systems below. 121 echo Invalid configuration \`"$1"\': more than four components >&2
141case $os in 122 exit 1
142 -sun*os*)
143 # Prevent following clause from handling this invalid input.
144 ;;
145 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray | -microblaze*)
152 os=
153 basic_machine=$1
154 ;;
155 -bluegene*)
156 os=-cnk
157 ;;
158 -sim | -cisco | -oki | -wec | -winbond)
159 os=
160 basic_machine=$1
161 ;;
162 -scout)
163 ;;
164 -wrs)
165 os=-vxworks
166 basic_machine=$1
167 ;;
168 -chorusos*)
169 os=-chorusos
170 basic_machine=$1
171 ;;
172 -chorusrdb)
173 os=-chorusrdb
174 basic_machine=$1
175 ;;
176 -hiux*)
177 os=-hiuxwe2
178 ;;
179 -sco6)
180 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco5)
184 os=-sco3.2v5
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco4)
188 os=-sco3.2v4
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2.[4-9]*)
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco3.2v[4-9]*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco5v6*)
200 # Don't forget version if it is 3.2v4 or newer.
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -sco*)
204 os=-sco3.2v2
205 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206 ;;
207 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -isc)
211 os=-isc2.2
212 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
213 ;;
214 -clix*)
215 basic_machine=clipper-intergraph
216 ;;
217 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
225 ;;
226 -lynx*)
227 os=-lynxos
228 ;; 123 ;;
229 -ptx*) 124 *-*-*-*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 125 basic_machine=$field1-$field2
126 os=$field3-$field4
231 ;; 127 ;;
232 -windowsnt*) 128 *-*-*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'` 129 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
130 # parts
131 maybe_os=$field2-$field3
132 case $maybe_os in
133 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
134 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
135 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
136 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
137 | storm-chaos* | os2-emx* | rtmk-nova*)
138 basic_machine=$field1
139 os=$maybe_os
140 ;;
141 android-linux)
142 basic_machine=$field1-unknown
143 os=linux-android
144 ;;
145 *)
146 basic_machine=$field1-$field2
147 os=$field3
148 ;;
149 esac
234 ;; 150 ;;
235 -psos*) 151 *-*)
236 os=-psos 152 # A lone config we happen to match not fitting any patern
153 case $field1-$field2 in
154 decstation-3100)
155 basic_machine=mips-dec
156 os=
157 ;;
158 *-*)
159 # Second component is usually, but not always the OS
160 case $field2 in
161 # Prevent following clause from handling this valid os
162 sun*os*)
163 basic_machine=$field1
164 os=$field2
165 ;;
166 # Manufacturers
167 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
168 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
169 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
170 | convergent* | ncr* | news | 32* | 3600* | 3100* \
171 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
172 | ultra | tti* | harris | dolphin | highlevel | gould \
173 | cbm | ns | masscomp | apple | axis | knuth | cray \
174 | microblaze* | sim | cisco \
175 | oki | wec | wrs | winbond)
176 basic_machine=$field1-$field2
177 os=
178 ;;
179 *)
180 basic_machine=$field1
181 os=$field2
182 ;;
183 esac
184 ;;
185 esac
237 ;; 186 ;;
238 -mint | -mint[0-9]*) 187 *)
239 basic_machine=m68k-atari 188 # Convert single-component short-hands not valid as part of
240 os=-mint 189 # multi-component configurations.
190 case $field1 in
191 386bsd)
192 basic_machine=i386-pc
193 os=bsd
194 ;;
195 a29khif)
196 basic_machine=a29k-amd
197 os=udi
198 ;;
199 adobe68k)
200 basic_machine=m68010-adobe
201 os=scout
202 ;;
203 alliant)
204 basic_machine=fx80-alliant
205 os=
206 ;;
207 altos | altos3068)
208 basic_machine=m68k-altos
209 os=
210 ;;
211 am29k)
212 basic_machine=a29k-none
213 os=bsd
214 ;;
215 amdahl)
216 basic_machine=580-amdahl
217 os=sysv
218 ;;
219 amiga)
220 basic_machine=m68k-unknown
221 os=
222 ;;
223 amigaos | amigados)
224 basic_machine=m68k-unknown
225 os=amigaos
226 ;;
227 amigaunix | amix)
228 basic_machine=m68k-unknown
229 os=sysv4
230 ;;
231 apollo68)
232 basic_machine=m68k-apollo
233 os=sysv
234 ;;
235 apollo68bsd)
236 basic_machine=m68k-apollo
237 os=bsd
238 ;;
239 aros)
240 basic_machine=i386-pc
241 os=aros
242 ;;
243 aux)
244 basic_machine=m68k-apple
245 os=aux
246 ;;
247 balance)
248 basic_machine=ns32k-sequent
249 os=dynix
250 ;;
251 blackfin)
252 basic_machine=bfin-unknown
253 os=linux
254 ;;
255 cegcc)
256 basic_machine=arm-unknown
257 os=cegcc
258 ;;
259 convex-c1)
260 basic_machine=c1-convex
261 os=bsd
262 ;;
263 convex-c2)
264 basic_machine=c2-convex
265 os=bsd
266 ;;
267 convex-c32)
268 basic_machine=c32-convex
269 os=bsd
270 ;;
271 convex-c34)
272 basic_machine=c34-convex
273 os=bsd
274 ;;
275 convex-c38)
276 basic_machine=c38-convex
277 os=bsd
278 ;;
279 cray)
280 basic_machine=j90-cray
281 os=unicos
282 ;;
283 crds | unos)
284 basic_machine=m68k-crds
285 os=
286 ;;
287 da30)
288 basic_machine=m68k-da30
289 os=
290 ;;
291 decstation | pmax | pmin | dec3100 | decstatn)
292 basic_machine=mips-dec
293 os=
294 ;;
295 delta88)
296 basic_machine=m88k-motorola
297 os=sysv3
298 ;;
299 dicos)
300 basic_machine=i686-pc
301 os=dicos
302 ;;
303 djgpp)
304 basic_machine=i586-pc
305 os=msdosdjgpp
306 ;;
307 ebmon29k)
308 basic_machine=a29k-amd
309 os=ebmon
310 ;;
311 es1800 | OSE68k | ose68k | ose | OSE)
312 basic_machine=m68k-ericsson
313 os=ose
314 ;;
315 gmicro)
316 basic_machine=tron-gmicro
317 os=sysv
318 ;;
319 go32)
320 basic_machine=i386-pc
321 os=go32
322 ;;
323 h8300hms)
324 basic_machine=h8300-hitachi
325 os=hms
326 ;;
327 h8300xray)
328 basic_machine=h8300-hitachi
329 os=xray
330 ;;
331 h8500hms)
332 basic_machine=h8500-hitachi
333 os=hms
334 ;;
335 harris)
336 basic_machine=m88k-harris
337 os=sysv3
338 ;;
339 hp300)
340 basic_machine=m68k-hp
341 ;;
342 hp300bsd)
343 basic_machine=m68k-hp
344 os=bsd
345 ;;
346 hp300hpux)
347 basic_machine=m68k-hp
348 os=hpux
349 ;;
350 hppaosf)
351 basic_machine=hppa1.1-hp
352 os=osf
353 ;;
354 hppro)
355 basic_machine=hppa1.1-hp
356 os=proelf
357 ;;
358 i386mach)
359 basic_machine=i386-mach
360 os=mach
361 ;;
362 vsta)
363 basic_machine=i386-pc
364 os=vsta
365 ;;
366 isi68 | isi)
367 basic_machine=m68k-isi
368 os=sysv
369 ;;
370 m68knommu)
371 basic_machine=m68k-unknown
372 os=linux
373 ;;
374 magnum | m3230)
375 basic_machine=mips-mips
376 os=sysv
377 ;;
378 merlin)
379 basic_machine=ns32k-utek
380 os=sysv
381 ;;
382 mingw64)
383 basic_machine=x86_64-pc
384 os=mingw64
385 ;;
386 mingw32)
387 basic_machine=i686-pc
388 os=mingw32
389 ;;
390 mingw32ce)
391 basic_machine=arm-unknown
392 os=mingw32ce
393 ;;
394 monitor)
395 basic_machine=m68k-rom68k
396 os=coff
397 ;;
398 morphos)
399 basic_machine=powerpc-unknown
400 os=morphos
401 ;;
402 moxiebox)
403 basic_machine=moxie-unknown
404 os=moxiebox
405 ;;
406 msdos)
407 basic_machine=i386-pc
408 os=msdos
409 ;;
410 msys)
411 basic_machine=i686-pc
412 os=msys
413 ;;
414 mvs)
415 basic_machine=i370-ibm
416 os=mvs
417 ;;
418 nacl)
419 basic_machine=le32-unknown
420 os=nacl
421 ;;
422 ncr3000)
423 basic_machine=i486-ncr
424 os=sysv4
425 ;;
426 netbsd386)
427 basic_machine=i386-pc
428 os=netbsd
429 ;;
430 netwinder)
431 basic_machine=armv4l-rebel
432 os=linux
433 ;;
434 news | news700 | news800 | news900)
435 basic_machine=m68k-sony
436 os=newsos
437 ;;
438 news1000)
439 basic_machine=m68030-sony
440 os=newsos
441 ;;
442 necv70)
443 basic_machine=v70-nec
444 os=sysv
445 ;;
446 nh3000)
447 basic_machine=m68k-harris
448 os=cxux
449 ;;
450 nh[45]000)
451 basic_machine=m88k-harris
452 os=cxux
453 ;;
454 nindy960)
455 basic_machine=i960-intel
456 os=nindy
457 ;;
458 mon960)
459 basic_machine=i960-intel
460 os=mon960
461 ;;
462 nonstopux)
463 basic_machine=mips-compaq
464 os=nonstopux
465 ;;
466 os400)
467 basic_machine=powerpc-ibm
468 os=os400
469 ;;
470 OSE68000 | ose68000)
471 basic_machine=m68000-ericsson
472 os=ose
473 ;;
474 os68k)
475 basic_machine=m68k-none
476 os=os68k
477 ;;
478 paragon)
479 basic_machine=i860-intel
480 os=osf
481 ;;
482 parisc)
483 basic_machine=hppa-unknown
484 os=linux
485 ;;
486 pw32)
487 basic_machine=i586-unknown
488 os=pw32
489 ;;
490 rdos | rdos64)
491 basic_machine=x86_64-pc
492 os=rdos
493 ;;
494 rdos32)
495 basic_machine=i386-pc
496 os=rdos
497 ;;
498 rom68k)
499 basic_machine=m68k-rom68k
500 os=coff
501 ;;
502 sa29200)
503 basic_machine=a29k-amd
504 os=udi
505 ;;
506 sei)
507 basic_machine=mips-sei
508 os=seiux
509 ;;
510 sequent)
511 basic_machine=i386-sequent
512 os=
513 ;;
514 sps7)
515 basic_machine=m68k-bull
516 os=sysv2
517 ;;
518 st2000)
519 basic_machine=m68k-tandem
520 os=
521 ;;
522 stratus)
523 basic_machine=i860-stratus
524 os=sysv4
525 ;;
526 sun2)
527 basic_machine=m68000-sun
528 os=
529 ;;
530 sun2os3)
531 basic_machine=m68000-sun
532 os=sunos3
533 ;;
534 sun2os4)
535 basic_machine=m68000-sun
536 os=sunos4
537 ;;
538 sun3)
539 basic_machine=m68k-sun
540 os=
541 ;;
542 sun3os3)
543 basic_machine=m68k-sun
544 os=sunos3
545 ;;
546 sun3os4)
547 basic_machine=m68k-sun
548 os=sunos4
549 ;;
550 sun4)
551 basic_machine=sparc-sun
552 os=
553 ;;
554 sun4os3)
555 basic_machine=sparc-sun
556 os=sunos3
557 ;;
558 sun4os4)
559 basic_machine=sparc-sun
560 os=sunos4
561 ;;
562 sun4sol2)
563 basic_machine=sparc-sun
564 os=solaris2
565 ;;
566 sun386 | sun386i | roadrunner)
567 basic_machine=i386-sun
568 os=
569 ;;
570 sv1)
571 basic_machine=sv1-cray
572 os=unicos
573 ;;
574 symmetry)
575 basic_machine=i386-sequent
576 os=dynix
577 ;;
578 t3e)
579 basic_machine=alphaev5-cray
580 os=unicos
581 ;;
582 t90)
583 basic_machine=t90-cray
584 os=unicos
585 ;;
586 toad1)
587 basic_machine=pdp10-xkl
588 os=tops20
589 ;;
590 tpf)
591 basic_machine=s390x-ibm
592 os=tpf
593 ;;
594 udi29k)
595 basic_machine=a29k-amd
596 os=udi
597 ;;
598 ultra3)
599 basic_machine=a29k-nyu
600 os=sym1
601 ;;
602 v810 | necv810)
603 basic_machine=v810-nec
604 os=none
605 ;;
606 vaxv)
607 basic_machine=vax-dec
608 os=sysv
609 ;;
610 vms)
611 basic_machine=vax-dec
612 os=vms
613 ;;
614 vxworks960)
615 basic_machine=i960-wrs
616 os=vxworks
617 ;;
618 vxworks68)
619 basic_machine=m68k-wrs
620 os=vxworks
621 ;;
622 vxworks29k)
623 basic_machine=a29k-wrs
624 os=vxworks
625 ;;
626 xbox)
627 basic_machine=i686-pc
628 os=mingw32
629 ;;
630 ymp)
631 basic_machine=ymp-cray
632 os=unicos
633 ;;
634 *)
635 basic_machine=$1
636 os=
637 ;;
638 esac
241 ;; 639 ;;
242esac 640esac
243 641
244# Decode aliases for certain CPU-COMPANY combinations. 642# Decode 1-component or ad-hoc basic machines
245case $basic_machine in 643case $basic_machine in
246 # Recognize the basic CPU types without company name. 644 # Here we handle the default manufacturer of certain CPU types. It is in
247 # Some are omitted here because they have special meanings below. 645 # some cases the only manufacturer, in others, it is the most popular.
248 1750a | 580 \ 646 w89k)
249 | a29k \ 647 cpu=hppa1.1
250 | aarch64 | aarch64_be \ 648 vendor=winbond
251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
253 | am33_2.0 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | ba \
258 | be32 | be64 \
259 | bfin \
260 | c4x | c8051 | clipper \
261 | d10v | d30v | dlx | dsp16xx \
262 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \
264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
265 | hexagon \
266 | i370 | i860 | i960 | ia16 | ia64 \
267 | ip2k | iq2000 \
268 | k1om \
269 | le32 | le64 \
270 | lm32 \
271 | m32c | m32r | m32rle | m68000 | m68k | m88k \
272 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
273 | mips | mipsbe | mipseb | mipsel | mipsle \
274 | mips16 \
275 | mips64 | mips64el \
276 | mips64octeon | mips64octeonel \
277 | mips64orion | mips64orionel \
278 | mips64r5900 | mips64r5900el \
279 | mips64vr | mips64vrel \
280 | mips64vr4100 | mips64vr4100el \
281 | mips64vr4300 | mips64vr4300el \
282 | mips64vr5000 | mips64vr5000el \
283 | mips64vr5900 | mips64vr5900el \
284 | mipsisa32 | mipsisa32el \
285 | mipsisa32r2 | mipsisa32r2el \
286 | mipsisa32r6 | mipsisa32r6el \
287 | mipsisa64 | mipsisa64el \
288 | mipsisa64r2 | mipsisa64r2el \
289 | mipsisa64r6 | mipsisa64r6el \
290 | mipsisa64sb1 | mipsisa64sb1el \
291 | mipsisa64sr71k | mipsisa64sr71kel \
292 | mipsr5900 | mipsr5900el \
293 | mipstx39 | mipstx39el \
294 | mn10200 | mn10300 \
295 | moxie \
296 | mt \
297 | msp430 \
298 | nds32 | nds32le | nds32be \
299 | nios | nios2 | nios2eb | nios2el \
300 | ns16k | ns32k \
301 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pru \
305 | pyramid \
306 | riscv32 | riscv64 \
307 | rl78 | rx \
308 | score \
309 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
310 | sh64 | sh64le \
311 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
312 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
313 | spu \
314 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
315 | ubicom32 \
316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317 | visium \
318 | wasm32 \
319 | we32k \
320 | x86 | xc16x | xstormy16 | xtensa \
321 | z8k | z80)
322 basic_machine=$basic_machine-unknown
323 ;;
324 c54x)
325 basic_machine=tic54x-unknown
326 ;;
327 c55x)
328 basic_machine=tic55x-unknown
329 ;;
330 c6x)
331 basic_machine=tic6x-unknown
332 ;;
333 leon|leon[3-9])
334 basic_machine=sparc-$basic_machine
335 ;;
336 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
337 basic_machine=$basic_machine-unknown
338 os=-none
339 ;; 649 ;;
340 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 650 op50n)
651 cpu=hppa1.1
652 vendor=oki
341 ;; 653 ;;
342 ms1) 654 op60c)
343 basic_machine=mt-unknown 655 cpu=hppa1.1
656 vendor=oki
344 ;; 657 ;;
345 658 ibm*)
346 strongarm | thumb | xscale) 659 cpu=i370
347 basic_machine=arm-unknown 660 vendor=ibm
348 ;; 661 ;;
349 xgate) 662 orion105)
350 basic_machine=$basic_machine-unknown 663 cpu=clipper
351 os=-none 664 vendor=highlevel
352 ;; 665 ;;
353 xscaleeb) 666 mac | mpw | mac-mpw)
354 basic_machine=armeb-unknown 667 cpu=m68k
668 vendor=apple
355 ;; 669 ;;
356 670 pmac | pmac-mpw)
357 xscaleel) 671 cpu=powerpc
358 basic_machine=armel-unknown 672 vendor=apple
359 ;; 673 ;;
360 674
361 # We use `pc' rather than `unknown'
362 # because (1) that's what they normally are, and
363 # (2) the word "unknown" tends to confuse beginning users.
364 i*86 | x86_64)
365 basic_machine=$basic_machine-pc
366 ;;
367 # Object if more than one company name word.
368 *-*-*)
369 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
370 exit 1
371 ;;
372 # Recognize the basic CPU types with company name.
373 580-* \
374 | a29k-* \
375 | aarch64-* | aarch64_be-* \
376 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
377 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
378 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
379 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
380 | avr-* | avr32-* \
381 | ba-* \
382 | be32-* | be64-* \
383 | bfin-* | bs2000-* \
384 | c[123]* | c30-* | [cjt]90-* | c4x-* \
385 | c8051-* | clipper-* | craynv-* | cydra-* \
386 | d10v-* | d30v-* | dlx-* \
387 | e2k-* | elxsi-* \
388 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
389 | h8300-* | h8500-* \
390 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
391 | hexagon-* \
392 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
393 | ip2k-* | iq2000-* \
394 | k1om-* \
395 | le32-* | le64-* \
396 | lm32-* \
397 | m32c-* | m32r-* | m32rle-* \
398 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
399 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
400 | microblaze-* | microblazeel-* \
401 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
402 | mips16-* \
403 | mips64-* | mips64el-* \
404 | mips64octeon-* | mips64octeonel-* \
405 | mips64orion-* | mips64orionel-* \
406 | mips64r5900-* | mips64r5900el-* \
407 | mips64vr-* | mips64vrel-* \
408 | mips64vr4100-* | mips64vr4100el-* \
409 | mips64vr4300-* | mips64vr4300el-* \
410 | mips64vr5000-* | mips64vr5000el-* \
411 | mips64vr5900-* | mips64vr5900el-* \
412 | mipsisa32-* | mipsisa32el-* \
413 | mipsisa32r2-* | mipsisa32r2el-* \
414 | mipsisa32r6-* | mipsisa32r6el-* \
415 | mipsisa64-* | mipsisa64el-* \
416 | mipsisa64r2-* | mipsisa64r2el-* \
417 | mipsisa64r6-* | mipsisa64r6el-* \
418 | mipsisa64sb1-* | mipsisa64sb1el-* \
419 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
420 | mipsr5900-* | mipsr5900el-* \
421 | mipstx39-* | mipstx39el-* \
422 | mmix-* \
423 | mt-* \
424 | msp430-* \
425 | nds32-* | nds32le-* | nds32be-* \
426 | nios-* | nios2-* | nios2eb-* | nios2el-* \
427 | none-* | np1-* | ns16k-* | ns32k-* \
428 | open8-* \
429 | or1k*-* \
430 | orion-* \
431 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
432 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
433 | pru-* \
434 | pyramid-* \
435 | riscv32-* | riscv64-* \
436 | rl78-* | romp-* | rs6000-* | rx-* \
437 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
438 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
439 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
440 | sparclite-* \
441 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
442 | tahoe-* \
443 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
444 | tile*-* \
445 | tron-* \
446 | ubicom32-* \
447 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
448 | vax-* \
449 | visium-* \
450 | wasm32-* \
451 | we32k-* \
452 | x86-* | x86_64-* | xc16x-* | xps100-* \
453 | xstormy16-* | xtensa*-* \
454 | ymp-* \
455 | z8k-* | z80-*)
456 ;;
457 # Recognize the basic CPU types without company name, with glob match.
458 xtensa*)
459 basic_machine=$basic_machine-unknown
460 ;;
461 # Recognize the various machine names and aliases which stand 675 # Recognize the various machine names and aliases which stand
462 # for a CPU type and a company and sometimes even an OS. 676 # for a CPU type and a company and sometimes even an OS.
463 386bsd)
464 basic_machine=i386-unknown
465 os=-bsd
466 ;;
467 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 677 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
468 basic_machine=m68000-att 678 cpu=m68000
679 vendor=att
469 ;; 680 ;;
470 3b*) 681 3b*)
471 basic_machine=we32k-att 682 cpu=we32k
472 ;; 683 vendor=att
473 a29khif)
474 basic_machine=a29k-amd
475 os=-udi
476 ;;
477 abacus)
478 basic_machine=abacus-unknown
479 ;;
480 adobe68k)
481 basic_machine=m68010-adobe
482 os=-scout
483 ;;
484 alliant | fx80)
485 basic_machine=fx80-alliant
486 ;;
487 altos | altos3068)
488 basic_machine=m68k-altos
489 ;;
490 am29k)
491 basic_machine=a29k-none
492 os=-bsd
493 ;;
494 amd64)
495 basic_machine=x86_64-pc
496 ;;
497 amd64-*)
498 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
499 ;;
500 amdahl)
501 basic_machine=580-amdahl
502 os=-sysv
503 ;;
504 amiga | amiga-*)
505 basic_machine=m68k-unknown
506 ;;
507 amigaos | amigados)
508 basic_machine=m68k-unknown
509 os=-amigaos
510 ;;
511 amigaunix | amix)
512 basic_machine=m68k-unknown
513 os=-sysv4
514 ;;
515 apollo68)
516 basic_machine=m68k-apollo
517 os=-sysv
518 ;;
519 apollo68bsd)
520 basic_machine=m68k-apollo
521 os=-bsd
522 ;;
523 aros)
524 basic_machine=i386-pc
525 os=-aros
526 ;;
527 asmjs)
528 basic_machine=asmjs-unknown
529 ;;
530 aux)
531 basic_machine=m68k-apple
532 os=-aux
533 ;;
534 balance)
535 basic_machine=ns32k-sequent
536 os=-dynix
537 ;;
538 blackfin)
539 basic_machine=bfin-unknown
540 os=-linux
541 ;;
542 blackfin-*)
543 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
544 os=-linux
545 ;; 684 ;;
546 bluegene*) 685 bluegene*)
547 basic_machine=powerpc-ibm 686 cpu=powerpc
548 os=-cnk 687 vendor=ibm
549 ;; 688 os=cnk
550 c54x-*)
551 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
552 ;;
553 c55x-*)
554 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
555 ;;
556 c6x-*)
557 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
558 ;;
559 c90)
560 basic_machine=c90-cray
561 os=-unicos
562 ;;
563 cegcc)
564 basic_machine=arm-unknown
565 os=-cegcc
566 ;;
567 convex-c1)
568 basic_machine=c1-convex
569 os=-bsd
570 ;;
571 convex-c2)
572 basic_machine=c2-convex
573 os=-bsd
574 ;;
575 convex-c32)
576 basic_machine=c32-convex
577 os=-bsd
578 ;;
579 convex-c34)
580 basic_machine=c34-convex
581 os=-bsd
582 ;;
583 convex-c38)
584 basic_machine=c38-convex
585 os=-bsd
586 ;;
587 cray | j90)
588 basic_machine=j90-cray
589 os=-unicos
590 ;;
591 craynv)
592 basic_machine=craynv-cray
593 os=-unicosmp
594 ;;
595 cr16 | cr16-*)
596 basic_machine=cr16-unknown
597 os=-elf
598 ;;
599 crds | unos)
600 basic_machine=m68k-crds
601 ;;
602 crisv32 | crisv32-* | etraxfs*)
603 basic_machine=crisv32-axis
604 ;;
605 cris | cris-* | etrax*)
606 basic_machine=cris-axis
607 ;;
608 crx)
609 basic_machine=crx-unknown
610 os=-elf
611 ;;
612 da30 | da30-*)
613 basic_machine=m68k-da30
614 ;;
615 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
616 basic_machine=mips-dec
617 ;; 689 ;;
618 decsystem10* | dec10*) 690 decsystem10* | dec10*)
619 basic_machine=pdp10-dec 691 cpu=pdp10
620 os=-tops10 692 vendor=dec
693 os=tops10
621 ;; 694 ;;
622 decsystem20* | dec20*) 695 decsystem20* | dec20*)
623 basic_machine=pdp10-dec 696 cpu=pdp10
624 os=-tops20 697 vendor=dec
698 os=tops20
625 ;; 699 ;;
626 delta | 3300 | motorola-3300 | motorola-delta \ 700 delta | 3300 | motorola-3300 | motorola-delta \
627 | 3300-motorola | delta-motorola) 701 | 3300-motorola | delta-motorola)
628 basic_machine=m68k-motorola 702 cpu=m68k
703 vendor=motorola
629 ;; 704 ;;
630 delta88) 705 dpx2*)
631 basic_machine=m88k-motorola 706 cpu=m68k
632 os=-sysv3 707 vendor=bull
633 ;; 708 os=sysv3
634 dicos)
635 basic_machine=i686-pc
636 os=-dicos
637 ;;
638 djgpp)
639 basic_machine=i586-pc
640 os=-msdosdjgpp
641 ;;
642 dpx20 | dpx20-*)
643 basic_machine=rs6000-bull
644 os=-bosx
645 ;;
646 dpx2* | dpx2*-bull)
647 basic_machine=m68k-bull
648 os=-sysv3
649 ;;
650 e500v[12])
651 basic_machine=powerpc-unknown
652 os=$os"spe"
653 ;;
654 e500v[12]-*)
655 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
656 os=$os"spe"
657 ;;
658 ebmon29k)
659 basic_machine=a29k-amd
660 os=-ebmon
661 ;;
662 elxsi)
663 basic_machine=elxsi-elxsi
664 os=-bsd
665 ;; 709 ;;
666 encore | umax | mmax) 710 encore | umax | mmax)
667 basic_machine=ns32k-encore 711 cpu=ns32k
712 vendor=encore
668 ;; 713 ;;
669 es1800 | OSE68k | ose68k | ose | OSE) 714 elxsi)
670 basic_machine=m68k-ericsson 715 cpu=elxsi
671 os=-ose 716 vendor=elxsi
717 os=${os:-bsd}
672 ;; 718 ;;
673 fx2800) 719 fx2800)
674 basic_machine=i860-alliant 720 cpu=i860
721 vendor=alliant
675 ;; 722 ;;
676 genix) 723 genix)
677 basic_machine=ns32k-ns 724 cpu=ns32k
678 ;; 725 vendor=ns
679 gmicro)
680 basic_machine=tron-gmicro
681 os=-sysv
682 ;;
683 go32)
684 basic_machine=i386-pc
685 os=-go32
686 ;; 726 ;;
687 h3050r* | hiux*) 727 h3050r* | hiux*)
688 basic_machine=hppa1.1-hitachi 728 cpu=hppa1.1
689 os=-hiuxwe2 729 vendor=hitachi
690 ;; 730 os=hiuxwe2
691 h8300hms)
692 basic_machine=h8300-hitachi
693 os=-hms
694 ;;
695 h8300xray)
696 basic_machine=h8300-hitachi
697 os=-xray
698 ;;
699 h8500hms)
700 basic_machine=h8500-hitachi
701 os=-hms
702 ;;
703 harris)
704 basic_machine=m88k-harris
705 os=-sysv3
706 ;;
707 hp300-*)
708 basic_machine=m68k-hp
709 ;;
710 hp300bsd)
711 basic_machine=m68k-hp
712 os=-bsd
713 ;;
714 hp300hpux)
715 basic_machine=m68k-hp
716 os=-hpux
717 ;; 731 ;;
718 hp3k9[0-9][0-9] | hp9[0-9][0-9]) 732 hp3k9[0-9][0-9] | hp9[0-9][0-9])
719 basic_machine=hppa1.0-hp 733 cpu=hppa1.0
734 vendor=hp
720 ;; 735 ;;
721 hp9k2[0-9][0-9] | hp9k31[0-9]) 736 hp9k2[0-9][0-9] | hp9k31[0-9])
722 basic_machine=m68000-hp 737 cpu=m68000
738 vendor=hp
723 ;; 739 ;;
724 hp9k3[2-9][0-9]) 740 hp9k3[2-9][0-9])
725 basic_machine=m68k-hp 741 cpu=m68k
742 vendor=hp
726 ;; 743 ;;
727 hp9k6[0-9][0-9] | hp6[0-9][0-9]) 744 hp9k6[0-9][0-9] | hp6[0-9][0-9])
728 basic_machine=hppa1.0-hp 745 cpu=hppa1.0
746 vendor=hp
729 ;; 747 ;;
730 hp9k7[0-79][0-9] | hp7[0-79][0-9]) 748 hp9k7[0-79][0-9] | hp7[0-79][0-9])
731 basic_machine=hppa1.1-hp 749 cpu=hppa1.1
750 vendor=hp
7