1154 Commits

Author SHA1 Message Date
Ben Elliston
fb5be05bb0 * config.guess: Instruct the user to send information about their
system only if the script they are running has a timestamped year
	of less than three years ago.
2020-04-26 13:27:26 +10:00
Ben Elliston
b97839f3cc Reported by Peter Eisentraut:
* config.sub (case $os): Append asterisk to 'powerunix'.
2020-04-24 21:17:47 +10:00
Ben Elliston
5256817ace * config.guess: Update copyright years.
* config.sub: Likewise.
	* doc/config.guess.1: Regenerate.
	* doc/config.sub.1: Likewise.
2020-01-01 19:36:58 +11:00
Ben Elliston
d8d8093d18 Typo fix. 2019-12-21 13:51:39 +11:00
Ben Elliston
c542caa003 * config.guess (set_cc_for_build): Prevent multiple calls by
chechking if $tmp is already set. We can't check CC_FOR_BUILD as
	the user may set it externally. Thanks to Torbjörn Granlund for
	the bug report.
2019-12-21 13:01:01 +11:00
Torbjörn Granlund
6f5b719255 * config.guess (alpha:Linux:*:*): Guard against missing
/proc/cpuinfo by redirecting standard error to /dev/null.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-12-21 12:01:43 +11:00
Ben Elliston
1912ca5041 * testsuite/config-guess.data: Sort.
* testsuite/config-sub.data: Likewise.
2019-09-12 20:45:58 +10:00
Daniel Bittman
fadac5a0ed * config.guess (*:Twizzler:*:*): New.
* config.sub (-twizzler*): New.
	* testsuite/config-guess.data: Add test cases.
	* testsuite/config-sub.data: Ditto.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-09-12 09:56:40 +10:00
Ben Elliston
04b07fc6d9 * testsuite/config-sub.data: Add some old Pentium test cases. 2019-08-04 09:38:47 +10:00
Ben Elliston
afb0b3e1d7 * config.guess (mips:OSF1:*.*): Whitespace cleanup. 2019-07-24 10:16:30 +10:00
Ben Elliston
d3bfe62ac8 This change introduces a new test to config-sub.sh which runs every
config.guess expected triplet through config.sub so that we can check
that it is properly recognised. Sometimes, new triplets have been
added to config.guess without updating config.sub accordingly (eg,
Harris NightHawk machines running PowerUnix from the mid-1990s!)

	* config.sub (case $os): Match nsk* and powerunix. Don't later
	match nsk* and set os=nsk which removes the OS version number.
	* testsuite/config-guess.data: Tweak Unleashed test case.
	* testsuite/config-sub.sh (run_config_sub_with_guess_triplets):
	New test.
2019-06-30 16:39:33 +10:00
Ben Elliston
854aa79378 * config.sub: Recognise os108*.
* testsuite/config-sub.data: Add a test case.
2019-06-30 10:02:45 +10:00
Ben Elliston
717418e698 * testsuite/config-sub.data: Many more missing test cases.
* config.sub (hp300): Set $os to hpux.

nb: The config.sub bug was found after writing hp300 test cases.
2019-06-26 13:29:37 +10:00
Ben Elliston
1854fb9ed1 * testsuite/config-sub.data: Add some missing test cases. 2019-06-26 11:03:58 +10:00
Ben Elliston
ec599a537a * config.sub (vsta): Move into alphabetical order. 2019-06-26 10:36:39 +10:00
Ben Elliston
f83dbaa146 * config.guess (*:OS108:*:*): Recognise new OS.
* testsuite/config-guess.data: Add a test case.
2019-06-10 23:36:57 +10:00
Ben Elliston
6fd2f9bf82 * Makefile (sort): New target.
* testsuite/config-guess.data: Sort.
	* testsuite/config-sub.data: Likewise.
2019-06-04 09:48:27 +10:00
Ben Elliston
3f4274dfc2 * config.guess (*:Darwin:*:*): Run xcode-select to determine if a
system compiler is installed. If not, do not run set_cc_for_build,
	as the default cc will open a dialog box asking to install
	Xcode. If no C compiler is available, guess based on uname -p and
	uname -m.
2019-05-28 23:39:01 +10:00
Ben Elliston
104ee6463c * testsuite/config-guess.data: Add Darwin tests. 2019-05-28 15:30:53 +10:00
Ben Elliston
bad92f031d Revert. Fix extraneous 'fi'. 2019-05-28 15:29:39 +10:00
Ben Elliston
0e33211d96 * testsuite/config-guess.data: Add Darwin tests. 2019-05-28 13:49:39 +10:00
Ben Elliston
9bbefc160a * config.guess (*:Darwin:*:*): Simplify UNAME_PROCESSOR. 2019-05-28 12:59:21 +10:00
Jose E. Marchesi
55eaf3e779 * config.sub (bpf): Recognise.
* testsuite/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-05-23 11:27:51 +10:00
Paul Eggert
b98424c249 * config.guess: Remove space after "#endif", as Gnulib and some
other downstream projects frown on trailing white space.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-05-01 06:29:40 +10:00
Urs Janßen
798218fde9 * config.guess: Use utsname version instead of preprocessor macros
on vax-dec-ultrix and mips-dec-ultrix versions >= 3.0.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-04-28 12:22:19 +10:00
John Ericson
a8d79c3130 * config.sub (wasm64, wasi): Recognise.
* testsuite/config-sub.data: Add test cases for wasm (Web Assembly) and
	wasi (Web Assembly System Interface).

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-04-15 08:57:26 +10:00
Ben Elliston
a7dc12fa30 * testsuite/config-sub.data: Sort. 2019-03-29 08:32:47 +11:00
Urs Janßen
d495b0fc6b * config.sub: Recognize m68k-next-openstep* as openstep*, not
nextstep3.
	* testsuite/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-03-29 08:31:13 +11:00
Ben Elliston
f6872aecd5 Revert " * Makefile (check-guess): Don't remove uname here."
This reverts commit f34dacb3462ca1b390e70b090dbeafbdca7ce28a.
2019-03-23 22:09:04 +11:00
Ben Elliston
f34dacb346 * Makefile (check-guess): Don't remove uname here.
* testsuite/config-guess.sh (run_config_guess): Remove dummy uname
	script if the test passes (if not, the script is left behind for
	inspection).
2019-03-23 22:07:56 +11:00
Ben Elliston
8999a781ce * testsuite/config-sub.sh (run_one_config_sub): New.
(run_one_config_sub_idempotent): Likewise.
	(run_config_sub): Parallelise test cases.
	(run_config_sub_idempotent): Likewise.
2019-03-23 16:59:09 +11:00
YunQiang Su
fe616913d7 * config.guess (mips:Linux:*:*): Detect ISA R6.
Signed-off-by: Ben Elliston <bje@gnu.org>
2019-03-08 13:12:21 +11:00
Urs Janßen
57c365fdb4 * config.guess (m68k-sony-newsos, mips-dec-ultrix3): Restore C
program that detects these systems.

Signed-off-by: Ben Elliston <bje@gnu.org>
2019-03-04 09:55:18 +11:00
Urs Janßen
6bf486266c * config.guess (i*86:*:5:[678]*): Fix Unixware output.
Signed-off-by: Ben Elliston <bje@gnu.org>
2019-02-19 16:07:32 +11:00
Ben Elliston
286a38db91 This change silences a false positive from Shellcheck:
"Redirecting to/from command name instead of file. Did you want
   pipes/xargs (or quote to ignore)? [SC2238]"

	* testsuite/config-guess.sh (run_config_guess): For clarity, write
	uname replacement to './uname', not 'uname'.
2019-01-20 21:03:48 +11:00
Ben Elliston
2221f7d58e Revert:
2019-01-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* config.guess (sun4*:SunOS:5.*:*): Return sparcv9-sun-solaris2.*
	with 64-bit compiler.
	(tadpole*:SunOS:5.*:*): Likewise.
2019-01-15 10:26:10 +11:00
Ben Elliston
b0cc4c6f78 * config.sub (shl): Recognise.
* testsuite/config-sub.data: Add a test case.
2019-01-05 00:19:05 +11:00
Ben Elliston
da03f82a82 * config.sub: Move v70, w65 and others into sort order. 2019-01-05 00:18:03 +11:00
Ben Elliston
210e50d643 * config.sub (mips64eb): Recognise.
* testsuite/config-sub.data: Add a test case for mips64eb.
2019-01-04 17:21:13 +11:00
Ben Elliston
c9fa258d05 Fix space before tab. 2019-01-04 06:38:07 +11:00
Ben Elliston
42ddb154fe * testsuite/config-guess.data: Add more test cases. 2019-01-03 15:11:46 +11:00
Ben Elliston
a2e10dfcf0 Disable Shellcheck warning SC2162 ("read without -r with mangle
backslashes") in two places. We can't easily resolve these.
2019-01-03 12:02:57 +11:00
Ben Elliston
5fe51ffd1b * config.guess (sun4*:SunOS:5.*:*): Return sparcv9-sun-solaris2.*
with 64-bit compiler.
	(tadpole*:SunOS:5.*:*): Likewise.
2019-01-03 11:59:32 +11:00
Ben Elliston
d49c7de1e8 * testsuite/config-guess.data: Add a test for ARM Linux. 2019-01-03 11:21:21 +11:00
Ben Elliston
a58cd1856a * testsuite/config-guess.data: Add new tests for Solaris on i386
and SPARC machines.
2019-01-03 11:13:53 +11:00
Ben Elliston
d0452dbb43 * testsuite/config-guess.sh (run_config_guess): Set CC_FOR_BUILD
to no_compiler_found so that we don't erroneously use the compiler
	of the host running the testsuite.
	* testsuite/config-guess.data: Adjust ARM FreeBSD expected output.
2019-01-03 11:09:27 +11:00
Ben Elliston
c701dfb820 * config.guess: Update copyright years.
* config.sub: Likewise.
	* doc/config.guess.1: Regenerate.
	* doc/config.sub.1: Likewise.
2019-01-01 08:15:34 +11:00
Keno Fischer
b3914f8d55 * config.sub (*-emscripten): Recognise.
* testsute/config-sub.data: Add test cases.

Signed-off-by: Ben Elliston <bje@gnu.org>
2018-12-31 14:18:43 +11:00
Ben Elliston
9e514cc932 Revert 2018-07-18 change:
From Apostolos Syropoulos <asyropoulos@gmail.com>:
	* config.guess (i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*): Use the
	isainfo(1) command to guess what kind of system we have. Running
	isainfo -b returns either "32" or "64".
2018-12-21 12:22:29 +11:00
Ben Elliston
9764df548d Revert 2018-05-05 change.
* config.sub: Don't pass the -r option to 'read'. Solaris 10 sh
	does not support -r.
2018-12-16 22:42:25 +11:00