Package list virt-viewer / upstream/8.0
New upstream version 8.0 Guido Günther 2 years ago
65 changed file(s) with 3717 addition(s) and 1697 deletion(s). Raw diff Collapse all Expand all
1010
1111 With additional patches & translations from:
1212
13 Andrea Bolognani <abologna@redhat.com>
14 Ben Mathews <beniam@yahoo.com>
1315 Charles Arnold <carnold@suse.com>
1416 Christophe Fergeau <cfergeau@redhat.com>
1517 Christophe de Dinechin <cdupontd@redhat.com>
3133 Marc-André Lureau <marcandre.lureau@redhat.com>
3234 Martin Kletzander <mkletzan@redhat.com>
3335 Michal Privoznik <mprivozn@redhat.com>
36 Paul Donohue <virt-tools@PaulSD.com>
3437 Pavel Grunt <pgrunt@redhat.com>
3538 Pavel Hrdina <phrdina@redhat.com>
3639 Pavel Raiskup <praiskup@redhat.com>
40 Qiu Wenbo <qiuwenbo@kylinos.com.cn>
3741 Rex Dieter <rdieter@math.unl.edu>
3842 Richard W.M. Jones <rjones@redhat.com>
3943 Ronnie Sahlberg <ronniesahlberg@gmail.com>
0 2019-03-01 Daniel P. Berrangé <berrange@redhat.com>
1
2 Update NEWS for 8.0 release
3
4 rpm: use the mingw hicolor icon theme not native
5
6 Add glib2-devel for mingw build
7 The native glib2-devel package is needed for mingw builds in order to
8 get the glib-compile-schemas binary.
9
10 2019-02-22 Eduardo Lima (Etrunko) <etrunko@redhat.com>
11
12 iso-dialog: Move type definitions from header to source file
13 There is no reason for this object to define a private structure, so it
14 is fine to make everything private to the dialog itself.
15
16 Update usage of GObject private structures
17 New functions and macros have been added in glib 2.38 to better handle
18 this case.
19
20 https://gitlab.gnome.org/GNOME/glib/blob/c8de2b11bbbf5705ee20bf68d0c11e455b441312/NEWS
21
22 The old method is being deprecated as of version 2.58.
23
24 https://gitlab.gnome.org/GNOME/glib/merge_requests/7/commits
25
26 2019-02-19 Daniel P. Berrangé <berrange@redhat.com>
27
28 msi: record full build environment in MSI installer
29 For proper compliance with the GPL and other licenses we need to be
30 clear about exactly what toolchain and dependent packages we used in
31 order to build the MSI installer we distribute.
32
33 Historically we've done this by including a "deps.txt" file which
34 provides a list of all the mingw{32,64}-* RPMs on the host system.
35
36 This is not sufficient information, however, because the build system
37 will in fact use various native packages too from the toolchain too,
38 notably including any program run by "configure" which covers various
39 shell utilities, and pkg-config, and then of course make & msitools
40 itself.
41
42 Rather than try to figure out which subset of host RPMs are used,
43 just list every single host RPM that is installed.
44
45 A key implication of this is that formal release builds should always
46 be done in a pristine build root populated with the minimal content
47 required for the build.
48
49 Declare VirtViewerFile variable at start of method
50 virt_viewer_session_vnc_auth_credential uses gotos which jump over the
51 declaration of 'file', meaning its contents are uninitialized in the
52 jump target.
53
54 Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
55
56 Fix prototype of function with no arguments
57 Modern C standard requires the function to be "void"
58
59 Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
60
61 Fix signed/unsigned mixup in format args
62 Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
63
64 2019-02-13 Eduardo Lima (Etrunko) <etrunko@redhat.com>
65
66 window: Use proper define from glib for ignoring deprecated warning
67 Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
68
69 2019-02-12 Daniel P. Berrangé <berrange@redhat.com>
70
71 Disable deprecation warnings for gtk_window_fullscreen_on_monitor
72 We use GLIB_VERSION_MAX_ALLOWED to prevent use of functions from
73 GTK >= 3.12. When we do conditional compilation based on a GTK
74 version check, we must thus suppress the warning:
75
76 CC libvirt_viewer_la-virt-viewer-window.lo
77 ../../src/virt-viewer-window.c: In function 'virt_viewer_window_enter_fullscreen':
78 ../../src/virt-viewer-window.c:608:9: error: 'gtk_window_fullscreen_on_monitor' is deprecated: Not available before 3.18 [-Werror=deprecated-declarations]
79 gtk_window_fullscreen_on_monitor(GTK_WINDOW(priv->window),
80 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
81 In file included from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
82 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
83 from /usr/include/gtk-3.0/gtk/gtk.h:31,
84 from ../../src/virt-viewer-window.c:28:
85 /usr/include/gtk-3.0/gtk/gtkwindow.h:391:10: note: declared here
86 void gtk_window_fullscreen_on_monitor(GtkWindow *window,
87 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
88 cc1: all warnings being treated as errors
89
90 2019-02-04 Marc-André Lureau <marcandre.lureau@redhat.com>
91
92 build-sys: lower spice-gtk requirement to 0.35 again
93 Compile out QMP channel support if spice-gtk version < 0.36.
94
95 (note: I didn't bother adding configure switch to enable it
96 explicitly, this could be added later if necessary)
97
98 Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
99
100 2019-02-01 Paul Donohue <virt-tools@PaulSD.com>
101
102 Report gtk_accel_map_change_entry() failures
103 Message-Id: <1533340753-24176-2-git-send-email-virt-tools@PaulSD.com>
104 Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
105
106 2019-02-01 Marc-André Lureau <marcandre.lureau@redhat.com>
107
108 spice: hook into QMP port
109 If the "org.qemu.monitor.qmp.0" port is available:
110 - enable the VM UI
111 - get and follow the VM state
112 - send the requested VM actions
113
114 This requires spice-gtk version 0.36 with SpiceQmpPort helper.
115
116 Acked-by: Victor Toso <victortoso@redhat.com>
117
118 spice: hook into port channel to create VTE terminals
119 QEMU defines a few Spice port channel names in
120 docs/spice-port-fqdn.txt that can be interacted with a terminal.
121
122 Create VirtViewerDisplayVte display for all known terminal channel,
123 and redirect read/write signals.
124
125 Note that if VTE support is disabled, or if the VTE console isn't
126 shown, spice-gtk will still process those port channels (discarding
127 the read if VTE is disabled).
128
129 Acked-by: Victor Toso <victortoso@redhat.com>
130
131 session: do not take VTE display into account for geometry changes
132 Acked-by: Victor Toso <victortoso@redhat.com>
133
134 2019-01-28 Jonathon Jongsma <jjongsma@redhat.com>
135
136 Fix regression when showing disconnect error
137 Commit 65ef66e42 introduced a regression due to lack of type-safety on
138 signals. We mistakenly passed a GError rather than a string error
139 message to the signal.
140
141 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
142
143 2019-01-18 Eduardo Lima (Etrunko) <etrunko@redhat.com>
144
145 Add missing G_MODULE_EXPORT to signal handler
146 Fixes the Windows case where the dialog fails to show with the following
147 message:
148
149 warning: "Could not find signal handler 'virt_viewer_window_menu_change_cd_activate'"
150
151 2018-12-21 Daniel P. Berrangé <berrange@redhat.com>
152
153 Add src/virt-viewer-display-vte.c to POTFILES
154
155 2018-12-21 Marc-André Lureau <marcandre.lureau@redhat.com>
156
157 app: add "vm-running" property
158 Add "vm-running" property and modify "menu-vm-pause" check button
159 state when the running state changes.
160
161 Acked-by: Victor Toso <victortoso@redhat.com>
162
163 app: add "machine" UI
164 Add a new "Machine" menu, which allows to Pause/Reset/Power Down a VM.
165
166 The menu is only visible if "vm-ui" app property is set.
167
168 When the application quits, it will also send a quit action to the VM.
169
170 This is a similar behaviour/UI as qemu -display gtk.
171
172 Acked-by: Victor Toso <victortoso@redhat.com>
173
174 app: create a window for VTE displays
175 virt_viewer_app_display_added() now handles VTE displays. They should
176 be skipped for monitor configuration, and they don't emit "show-hint".
177
178 (a VTE display has a monitor nth == -1, which is now a valid value)
179
180 The associated window will be hidden when virt-viewer is started.
181
182 Acked-by: Victor Toso <victortoso@redhat.com>
183
184 spice: add unix-path in .vv file support
185 This will allow to connect to a Spice server using a unix socket path,
186 for example:
187
188 [virt-viewer]
189 type=spice
190 unix-path=/var/run/user/1000/qemu/test/spice.sock
191
192 Reviewed-by: Christophe Fergeau <cfergeau@redhat.com>
193
194 display: allow display without associated monitor number
195 The VTE display will have monitor id -1.
196
197 Eventually, having a base "console" class without monitor id could
198 avoid this allowance.
199
200 Acked-by: Victor Toso <victortoso@redhat.com>
201
202 app: append VTE consoles to display submenu
203 Acked-by: Victor Toso <victortoso@redhat.com>
204
205 app: set subtitle using VTE name
206 Currently, subtitle indicate the monitor number, ex: "Fedora (1)".
207
208 Custom subtitle use %d to place the monitor number.
209
210 Let's make this placeholder more generic to place the name of the
211 console, ex: "Fedora (Serial)".
212
213 Acked-by: Victor Toso <victortoso@redhat.com>
214
215 session: skip monitor changes if there is no sized monitors
216 spice-gtk discards configurations without any sized monitors.
217
218 Also shuts extra warnings when shifting the monitors.
219
220 Acked-by: Victor Toso <victortoso@redhat.com>
221
222 display: ignore display that do not have toplevel window
223 virt_viewer_display_get_preferred_monitor_geometry() may be called
224 during application initialization (when the VTE console is being
225 shown, virt_viewer_session_update_displays_geometry() is called when
226 the visibility menu item is toggled). But the other displays may not
227 yet be associated with a window, ignore them.
228
229 Acked-by: Victor Toso <victortoso@redhat.com>
230
231 window/zoom: deal with VTE display differently
232 VTE display doesn't use the desktop / window aspect ratio, let's just
233 call directly the functions handling zoom.
234
235 Acked-by: Victor Toso <victortoso@redhat.com>
236
237 Add a VirtViewerDisplayVte display kind
238 This is not a graphical display, so the application will have to deal
239 with it with care.
240
241 You may argue that we need a large refactoring to introduce a more
242 generic "console" object, that could be either graphical or textual.
243 For now, this does work well enough for me.
244
245 Acked-by: Victor Toso <victortoso@redhat.com>
246
247 build-sys: check for VTE library
248 Acked-by: Victor Toso <victortoso@redhat.com>
249
250 window: set sensitivity based on display capability
251 A following patch is adding a new display (VTE) that won't have the
252 send_key() or screenshot() callbacks. Activating those menu/actions
253 would lead to nothing or a crash. I chose to keep the UI consistent
254 for all display, but disable the menu sensitivity.
255
256 Acked-by: Victor Toso <victortoso@redhat.com>
257
258 window: do not reset sensitivity of menu-send in rebuild
259 The sensitivy of "menu-send" is getting more complex in the following
260 patch. Let's have the logic in a single place,
261 virt_viewer_window_set_menus_sensitive().
262
263 rebuild_combo_menu() is called in 2 cases:
264
265 1. notify::enable-accel: there is no need to update the sensitivy of
266 "menu-send"
267
268 2. on construction: default to false since display == NULL. It will be
269 later updated when virt_viewer_window_set_menus_sensitive(). The
270 default sensitivity is covered by previous .ui patch change.
271
272 Acked-by: Victor Toso <victortoso@redhat.com>
273
274 2018-12-06 Christophe Fergeau <cfergeau@redhat.com>
275
276 ovirt: Fix initial connection
277 After commit df42f78d46 "remote-viewer: factor our
278 remote_viewer_initial_connect()", the initial connection code only gets
279 run in the !ovirt case. When ovirt is in use, the initial connection
280 never happens, meaning all we get when using ovirt:// is a blank
281 virt-viewer window.
282
283 This commit fixes that by moving creation of the ovirt session to
284 remote_viewer_initial_connect, and unconditionnally calling the
285 remote_viewer_initial_connect rather than only doing it in the !ovirt
286 case.
287
288 https://bugzilla.redhat.com/show_bug.cgi?id=1655537
289
290 2018-12-05 Ben Mathews <beniam@yahoo.com>
291
292 Set window title to VM name
293 The attached patch address an issue with virt-view not setting the
294 titlebar text to be the title of the VM (previously discussed on:
295 https://www.redhat.com/archives/virt-tools-list/2018-September/msg00064.html).
296
297 2018-12-04 Jonathon Jongsma <jjongsma@redhat.com>
298
299 Silence coverity warning about dead code
300 For some reason, coverity was complaining that the definition of
301 cred_type_to_str was dead code, even though it wasn't. Changing the
302 storage to static silences the warning. Since that's a benficial change
303 anyway, let's change it. At the same time, make the pointer constant as
304 well and move it outside of the loop since it doesn't need to be inside
305 the loop.
306
307 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
308
309 Avoid potential memory leak in spice session
310 If j == -1, the memory allocated for rect will leak. So move the
311 allocation after the test.
312
313 Acked-by: Victor Toso <victortoso@redhat.com>
314
315 2018-11-13 Andrea Bolognani <abologna@redhat.com>
316
317 spec: Drop %{extra_release}
318 It was mainly meant to be used for automatic builds through
319 Test::AutoBuild, so it can be removed now.
320
321 prepare-release: Drop references to Test::AutoBuild
322 They are misleading, and no longer relevant anyway.
323
324 maint: Rename autobuild.sh to prepare-release.sh
325 The script was originally used by the Test::AutoBuild
326 project to perform periodic automatic builds; however, that
327 effort has been abandoned a long time ago, and these days
328 virt-viewer CI builds are happening on the Jenkins-based
329 CentOS CI environment under the libvirt umbrella[1], where
330 build recipes are maintained separately from the projects
331 themselves.
332
333 The script is still used to prepare releases, so it can't
334 be dropped from the repository: rename it so that its
335 purpose is more clearly communicated instead.
336
337 [1] https://ci.centos.org/view/libvirt/
338
339 2018-11-09 Jonathon Jongsma <jjongsma@redhat.com>
340
341 Relax Gtk+ requirement slightly
342 We previously bumped the gtk+ requirement to 3.18 for the function
343 gtk_window_fullscreen_on_monitor(). But this function is only necessary
344 in Wayland. So add some preprocessor version checks to allow it to
345 compile on older distributions if they don't care about wayland support.
346
347 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
348
349 2018-10-16 Qiu Wenbo <qiuwenbo@kylinos.com.cn>
350
351 win32: fix command line encoding on windows platform
352 On Windows, the arguments we get in GApplication::ocal_command_line
353 come from g_win32_get_command_line(), and g_option_context_parse_strv()
354 documentation says:
355 « On Windows, the strings are expected to be in UTF-8. This is in
356 contrast to g_option_context_parse() which expects them to be in the
357 system codepage, which is how they are passed as argv to main(). See
358 g_win32_get_command_line() for a solution. »
359
360 This was causing issues on Windows when running:
361 remote-viewer -t "你好" spice://<target-host>:5900
362
363 2018-10-15 Jonathon Jongsma <jjongsma@redhat.com>
364
365 Fullscreen displays on wrong monitors in Wayland
366 In fullscreen mode, we attempt to enable a guest display for each client
367 monitor and then place a fullscreen window for each display on the
368 appropriate monitor. Previously, we were using gtk_window_move() to move
369 the window to the proper monitor, and then calling
370 gtk_window_fullscreen() to enter fullscreen mode on that monitor.
371 However, under wayland, gtk_window_move() no longer has any effect for
372 toplevel windows, so all displays were showing up on top of eachother on
373 the same client monitor.
374
375 Fortunately, Gtk+ 3.18 added a new gtk_window_fullscreen_on_monitor()
376 API that works on Wayland. In theory this allows us to remove the call
377 to gtk_window_move() from the code. But to avoid potentially changing
378 behavior on xorg or older systems, I left the existing logic.
379
380 This requires a dependency bump for gtk+ from 3.12 to 3.18. Gtk 3.18 is
381 provided by the following distributions (or newer):
382 - RHEL 7.4
383 - Fedora 23
384 - Ubuntu 16.04LTS
385
386 Resolves: rhbz#1584561
387
388 Acked-by: Christophe Fergeau <cfergeau@redhat.com>
389
390 2018-09-25 Marc-André Lureau <marcandre.lureau@redhat.com>
391
392 display: make klass->close() optional
393 Spice and VTE display do not need to implement it.
394
395 Acked-by: Victor Toso <victortoso@redhat.com>
396
397 window: move default sensitivity in .ui
398 Instead of modifying it in object initialization.
399
400 Acked-by: Victor Toso <victortoso@redhat.com>
401
402 window: use virt_viewer_window_set_menus_sensitive()
403 virt_viewer_window_set_menus_sensitive() is the common function to set
404 sensitivity on menu items.
405
406 It was lacking "toolbar_send_key", so add it there too.
407
408 Acked-by: Victor Toso <victortoso@redhat.com>
409
410 app: simplify toggling visibility
411 There is a hack to maintain the toggle state to a desired state within
412 the "toggled" handler.
413
414 However it is only necessary for the ask-quit case. In this case, we
415 want to maintain the item active, which is simpler to handle than the
416 general case. Simplify the code by folding
417 virt_viewer_app_window_set_visible() and removing the static
418 "reentering" hack, only maintaining "active" on the last item.
419
420 Note that the hack was needed since there is no way to hook a signal
421 handler on "clicked" before "toggled" is emitted and handled by Gtk,
422 to avoid the recursion.
423
424 Acked-by: Victor Toso <victortoso@redhat.com>
425
426 Remove class signal handlers
427 We don't use class signal handlers, remove the extra pointers.
428
429 g_signal_override_class_handler() could be used instead when needed.
430
431 Acked-by: Victor Toso <victortoso@redhat.com>
432
433 remote-viewer: add handling of spice+unix and spice+tls schemes
434 - spice+unix:// was added in spice-gtk v0.28
435 - spice+tls:// was added in spice-gtk v0.35
436
437 This allows launchers to start remote-viewer when they encounter a
438 Spice URI with +unix or +tls.
439
440 Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
441 Acked-by: Victor Toso <victortoso@redhat.com>
442
443 2018-09-18 Jonathon Jongsma <jjongsma@redhat.com>
444
445 Spice: listen for new 'SpiceSession::disconnected' signal
446 Previously we were emitting the VirtViewerSession::session-disconnected
447 when we got the Spice::session::channel-destroy signal for the last
448 channel. However, since the channels are still valid at this point, and
449 because VirtViewerApp quits the application in response to the
450 session-disconnected signal, that means that the channels were never
451 being properly freed. This was particularly problematic for the usbredir
452 channel, which must disconnect any connected USB devices as part of its
453 destruction. By using the new SpiceSession::disconnected signal instead,
454 we can ensure that all channels have been disconnected and properly
455 destroyed before quitting the application.
456
457 2018-09-12 Eduardo Lima (Etrunko) <etrunko@redhat.com>
458
459 ovirt-foreign-menu: New function storage_domain_validate()
460 It may be useful to know why the storage domain has not been listed,
461 given that there are different reasons for that. To make it easier to
462 provide more detailed debug messages, we move code from the callback
463 function to this new one.
464
465 Acked-by: Christophe Fergeau <cfergeau@redhat.com>
466
467 build: Update govirt and rest requirements
468 With these new values, 0.3.3 for libgovirt and 0.8 for librest, we can
469 remove checks for OVIRT_REST_CALL_ERROR_CANCELLED and correspondent
470 rest_proxy_auth_cancel().
471
472 Distros that already ship these versions, such as Fedora, RHEL 7.4
473 onwards, and Ubuntu since 17.10.
474
475 Acked-by: Christophe Fergeau <cfergeau@redhat.com>
476
477 2018-09-03 Victor Toso <me@victortoso.com>
478
479 app: Always add guest name comment
480 Even when the user adds comments, we should place the guest's name
481 unless it is present already.
482
483 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1623756
484
485 Acked-by: Christophe Fergeau <cfergeau@redhat.com>
486
487 2018-08-31 Christophe Fergeau <cfergeau@redhat.com>
488
489 ovirt: Filter everything which does not end in .iso
490 oVirt REST API does not provide a way to know what is a valid ISO image
491 which can be assigned to a running VM. I've seen floppy disk images
492 (.vfd) in a domain, which is already filtered. Now I've seen an ISO
493 domain with .qcow2 files in it, which can't be assigned to a VM either.
494 This commit filters every file which does not have a .iso extension as
495 it's unlikely to be possible to use it.
496
497 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
498
499 2018-08-07 Christophe Fergeau <cfergeau@redhat.com>
500
501 ovirt: Improve handling of g_strv_contains()
502 The ovirt code uses g_strv_contains() with fallback code in
503 glib-compat.h when we are using a glib version where it's not available.
504 However, when we use a glib version where g_strv_contains is available,
505 we get a compilation warning since we are compiling GLIB_VERSION_MAX_ALLOWED
506 set to 2.38.
507
508 This commit wraps both the compat code and the g_strv_contains() call in
509 a strv_contains() helper where we can hide the magic needed to avoid
510 deprecation warnings.
511
512 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
513
514 window: Adjust get_image_format() prototype
515 This adds an unused parameter, but lets us get rid of this new warning
516 with gcc 8:
517
518 virt-viewer-window.c: In function 'get_image_format':
519 virt-viewer-window.c:930:33: warning: cast between incompatible function types from 'GHashTable * (*)(void)' {aka 'struct _GHashTable * (*)(void)'} to 'void * (*)(void *)' [-Wcast-function-type]
520 g_once(&image_formats_once, (GThreadFunc)init_image_formats, NULL);
521
522 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
523
524 2018-08-06 Christophe Fergeau <cfergeau@redhat.com>
525
526 app: Remove VirtViewerApp::has-focus
527 This is no longer needed since 140cb84
528 'remote-viewer: remove --spice-controller'
529
530 Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
531
0532 2018-07-27 Daniel P. Berrangé <berrange@redhat.com>
533
534 rpm: import spec changes from fedora
535
536 Post release version bump to 8.0
1537
2538 Add NEWS for 7.0 release
3539
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
8888 host_triplet = @host@
8989 subdir = .
9090 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
91 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
92 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
93 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
94 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/acinclude.m4 \
95 $(top_srcdir)/configure.ac
91 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
92 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
93 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
94 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
9695 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9796 $(ACLOCAL_M4)
9897 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
137136 $(RECURSIVE_CLEAN_TARGETS) \
138137 $(am__extra_recursive_targets)
139138 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
140 cscope distdir dist dist-all distcheck
139 cscope distdir distdir-am dist dist-all distcheck
141140 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
142141 $(LISP)config.h.in
143142 # Read a list of newline-separated strings from the standard input,
322321 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
323322 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
324323 RANLIB = @RANLIB@
324 REST_REQUIRED = @REST_REQUIRED@
325325 SED = @SED@
326326 SET_MAKE = @SET_MAKE@
327327 SHELL = @SHELL@
335335 UPDATE_MIME_DATABASE = @UPDATE_MIME_DATABASE@
336336 USE_NLS = @USE_NLS@
337337 VERSION = @VERSION@
338 VTE_CFLAGS = @VTE_CFLAGS@
339 VTE_LIBS = @VTE_LIBS@
338340 WARN_CFLAGS = @WARN_CFLAGS@
339341 WINDOWS_PRODUCTVERSION = @WINDOWS_PRODUCTVERSION@
340342 WINDRES = @WINDRES@
455457 echo ' $(SHELL) ./config.status'; \
456458 $(SHELL) ./config.status;; \
457459 *) \
458 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
459 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
460 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
461 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
460462 esac;
461463
462464 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
602604 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
603605 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
604606
605 distdir: $(DISTFILES)
607 distdir: $(BUILT_SOURCES)
608 $(MAKE) $(AM_MAKEFLAGS) distdir-am
609
610 distdir-am: $(DISTFILES)
606611 $(am__remove_distdir)
607612 test -d "$(distdir)" || mkdir "$(distdir)"
608613 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
00 Virt Viewer News
11 ================
2
3 8.0: Mar 1, 2019
4 -----------------
5
6 - Fix warnings with latest GCC versions
7 - More strictly filter out non-ISO images in ovirt menu
8 - Require libgovirt >= 0.3.3
9 - Require librest >= 0.8
10 - Support UNIX and TLS URI schemes for spice
11 - Fix full screen monitor placement under wayland
12 - Fix command line encoding on Windows
13 - Ensure VM name is set in window title
14 - Support unix-path in .vv files
15 - Support text console windows via VTE
16 - Add machine power control menu options
17 - Record full build env in MSI installer
218
319 7.0: Jul 27, 2018
420 -----------------
0 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
506506 fi])
507507
508508
509
510 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
511 # serial 42 IT_PROG_INTLTOOL
512 AC_DEFUN([IT_PROG_INTLTOOL], [
513 AC_PREREQ([2.50])dnl
514 AC_REQUIRE([AM_NLS])dnl
515
516 case "$am__api_version" in
517 1.[01234])
518 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
519 ;;
520 *)
521 ;;
522 esac
523
524 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
525 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
526 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
527 if test -n "$1"; then
528 AC_MSG_CHECKING([for intltool >= $1])
529 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
530 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
531 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
532 fi
533
534 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
535 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
536 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
537 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
538 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
539 fi
540
541 if test -z "$AM_DEFAULT_VERBOSITY"; then
542 AM_DEFAULT_VERBOSITY=1
543 fi
544 AC_SUBST([AM_DEFAULT_VERBOSITY])
545
546 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
547 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
548 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
549 AC_SUBST(INTLTOOL_V_MERGE)
550 AC_SUBST(INTLTOOL__v_MERGE_)
551 AC_SUBST(INTLTOOL__v_MERGE_0)
552
553 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
554 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
555 intltool__v_merge_options_0='-q'
556 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
557 AC_SUBST(intltool__v_merge_options_)
558 AC_SUBST(intltool__v_merge_options_0)
559
560 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
561 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
562 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
563 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
564 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
565 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
566 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
567 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
568 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
569 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
570 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
571 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
572 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
573 else
574 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
575 fi
576 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
577 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
578 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
579 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
580 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
581 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
582 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
583
584 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
585 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
586 _IT_SUBST(INTLTOOL_KEYS_RULE)
587 _IT_SUBST(INTLTOOL_PROP_RULE)
588 _IT_SUBST(INTLTOOL_OAF_RULE)
589 _IT_SUBST(INTLTOOL_PONG_RULE)
590 _IT_SUBST(INTLTOOL_SERVER_RULE)
591 _IT_SUBST(INTLTOOL_SHEET_RULE)
592 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
593 _IT_SUBST(INTLTOOL_UI_RULE)
594 _IT_SUBST(INTLTOOL_XAM_RULE)
595 _IT_SUBST(INTLTOOL_KBD_RULE)
596 _IT_SUBST(INTLTOOL_XML_RULE)
597 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
598 _IT_SUBST(INTLTOOL_CAVES_RULE)
599 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
600 _IT_SUBST(INTLTOOL_THEME_RULE)
601 _IT_SUBST(INTLTOOL_SERVICE_RULE)
602 _IT_SUBST(INTLTOOL_POLICY_RULE)
603
604 # Check the gettext tools to make sure they are GNU
605 AC_PATH_PROG(XGETTEXT, xgettext)
606 AC_PATH_PROG(MSGMERGE, msgmerge)
607 AC_PATH_PROG(MSGFMT, msgfmt)
608 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
609 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
610 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
611 fi
612 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
613 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
614 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
615 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
616 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
617 fi
618
619 AC_PATH_PROG(INTLTOOL_PERL, perl)
620 if test -z "$INTLTOOL_PERL"; then
621 AC_MSG_ERROR([perl not found])
622 fi
623 AC_MSG_CHECKING([for perl >= 5.8.1])
624 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
625 if test $? -ne 0; then
626 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
627 else
628 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
629 AC_MSG_RESULT([$IT_PERL_VERSION])
630 fi
631 if test "x$2" != "xno-xml"; then
632 AC_MSG_CHECKING([for XML::Parser])
633 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
634 AC_MSG_RESULT([ok])
635 else
636 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
637 fi
638 fi
639
640 # Substitute ALL_LINGUAS so we can use it in po/Makefile
641 AC_SUBST(ALL_LINGUAS)
642
643 IT_PO_SUBDIR([po])
644
645 ])
646
647
648 # IT_PO_SUBDIR(DIRNAME)
649 # ---------------------
650 # All po subdirs have to be declared with this macro; the subdir "po" is
651 # declared by IT_PROG_INTLTOOL.
652 #
653 AC_DEFUN([IT_PO_SUBDIR],
654 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
655 dnl
656 dnl The following CONFIG_COMMANDS should be executed at the very end
657 dnl of config.status.
658 AC_CONFIG_COMMANDS_PRE([
659 AC_CONFIG_COMMANDS([$1/stamp-it], [
660 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
661 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
662 fi
663 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
664 >"$1/stamp-it.tmp"
665 [sed '/^#/d
666 s/^[[].*] *//
667 /^[ ]*$/d
668 '"s|^| $ac_top_srcdir/|" \
669 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
670 ]
671 [sed '/^POTFILES =/,/[^\\]$/ {
672 /^POTFILES =/!d
673 r $1/POTFILES
674 }
675 ' "$1/Makefile.in" >"$1/Makefile"]
676 rm -f "$1/Makefile.tmp"
677 mv "$1/stamp-it.tmp" "$1/stamp-it"
678 ])
679 ])dnl
680 ])
681
682 # _IT_SUBST(VARIABLE)
683 # -------------------
684 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
685 #
686 AC_DEFUN([_IT_SUBST],
687 [
688 AC_SUBST([$1])
689 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
690 ]
691 )
692
693 # deprecated macros
694 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
695 # A hint is needed for aclocal from Automake <= 1.9.4:
696 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
697
698
509699 # nls.m4 serial 5 (gettext-0.18)
510700 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016 Free Software
511701 dnl Foundation, Inc.
8831073 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
8841074 ])dnl PKG_HAVE_DEFINE_WITH_MODULES
8851075
886 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
1076 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
8871077 #
8881078 # This file is free software; the Free Software Foundation
8891079 # gives unlimited permission to copy and/or distribute it,
8951085 # generated from the m4 files accompanying Automake X.Y.
8961086 # (This private macro should not be called outside this file.)
8971087 AC_DEFUN([AM_AUTOMAKE_VERSION],
898 [am__api_version='1.15'
1088 [am__api_version='1.16'
8991089 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9001090 dnl require some minimum version. Point them to the right macro.
901 m4_if([$1], [1.15.1], [],
1091 m4_if([$1], [1.16.1], [],
9021092 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9031093 ])
9041094
9141104 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9151105 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9161106 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
917 [AM_AUTOMAKE_VERSION([1.15.1])dnl
1107 [AM_AUTOMAKE_VERSION([1.16.1])dnl
9181108 m4_ifndef([AC_AUTOCONF_VERSION],
9191109 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9201110 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9211111
9221112 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9231113
924 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1114 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
9251115 #
9261116 # This file is free software; the Free Software Foundation
9271117 # gives unlimited permission to copy and/or distribute it,
9731163
9741164 # AM_CONDITIONAL -*- Autoconf -*-
9751165
976 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
1166 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
9771167 #
9781168 # This file is free software; the Free Software Foundation
9791169 # gives unlimited permission to copy and/or distribute it,
10041194 Usually this means the macro was only invoked conditionally.]])
10051195 fi])])
10061196
1007 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
1197 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
10081198 #
10091199 # This file is free software; the Free Software Foundation
10101200 # gives unlimited permission to copy and/or distribute it,
11951385
11961386 # Generate code to set up dependency tracking. -*- Autoconf -*-
11971387
1198 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
1388 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
11991389 #
12001390 # This file is free software; the Free Software Foundation
12011391 # gives unlimited permission to copy and/or distribute it,
12021392 # with or without modifications, as long as this notice is preserved.
1203
12041393
12051394 # _AM_OUTPUT_DEPENDENCY_COMMANDS
12061395 # ------------------------------
12091398 # Older Autoconf quotes --file arguments for eval, but not when files
12101399 # are listed without --file. Let's play safe and only enable the eval
12111400 # if we detect the quoting.
1212 case $CONFIG_FILES in
1213 *\'*) eval set x "$CONFIG_FILES" ;;
1214 *) set x $CONFIG_FILES ;;
1215 esac
1401 # TODO: see whether this extra hack can be removed once we start
1402 # requiring Autoconf 2.70 or later.
1403 AS_CASE([$CONFIG_FILES],
1404 [*\'*], [eval set x "$CONFIG_FILES"],
1405 [*], [set x $CONFIG_FILES])
12161406 shift
1217 for mf
1407 # Used to flag and report bootstrapping failures.
1408 am_rc=0
1409 for am_mf
12181410 do
12191411 # Strip MF so we end up with the name of the file.
1220 mf=`echo "$mf" | sed -e 's/:.*$//'`
1221 # Check whether this is an Automake generated Makefile or not.
1222 # We used to match only the files named 'Makefile.in', but
1223 # some people rename them; so instead we look at the file content.
1224 # Grep'ing the first line is not enough: some people post-process
1225 # each Makefile.in and add a new line on top of each file to say so.
1226 # Grep'ing the whole file is not good either: AIX grep has a line
1412 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
1413 # Check whether this is an Automake generated Makefile which includes
1414 # dependency-tracking related rules and includes.
1415 # Grep'ing the whole file directly is not great: AIX grep has a line
12271416 # limit of 2048, but all sed's we know have understand at least 4000.
1228 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
1229 dirpart=`AS_DIRNAME("$mf")`
1230 else
1231 continue
1232 fi
1233 # Extract the definition of DEPDIR, am__include, and am__quote
1234 # from the Makefile without running 'make'.
1235 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1236 test -z "$DEPDIR" && continue
1237 am__include=`sed -n 's/^am__include = //p' < "$mf"`
1238 test -z "$am__include" && continue
1239 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1240 # Find all dependency output files, they are included files with
1241 # $(DEPDIR) in their names. We invoke sed twice because it is the
1242 # simplest approach to changing $(DEPDIR) to its actual value in the
1243 # expansion.
1244 for file in `sed -n "
1245 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1246 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1247 # Make sure the directory exists.
1248 test -f "$dirpart/$file" && continue
1249 fdir=`AS_DIRNAME(["$file"])`
1250 AS_MKDIR_P([$dirpart/$fdir])
1251 # echo "creating $dirpart/$file"
1252 echo '# dummy' > "$dirpart/$file"
1253 done
1417 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
1418 || continue
1419 am_dirpart=`AS_DIRNAME(["$am_mf"])`
1420 am_filepart=`AS_BASENAME(["$am_mf"])`
1421 AM_RUN_LOG([cd "$am_dirpart" \
1422 && sed -e '/# am--include-marker/d' "$am_filepart" \
1423 | $MAKE -f - am--depfiles]) || am_rc=$?
12541424 done
1425 if test $am_rc -ne 0; then
1426 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
1427 for automatic dependency tracking. Try re-running configure with the
1428 '--disable-dependency-tracking' option to at least be able to build
1429 the package (albeit without support for automatic dependency tracking).])
1430 fi
1431 AS_UNSET([am_dirpart])
1432 AS_UNSET([am_filepart])
1433 AS_UNSET([am_mf])
1434 AS_UNSET([am_rc])
1435 rm -f conftest-deps.mk
12551436 }
12561437 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
12571438
12601441 # -----------------------------
12611442 # This macro should only be invoked once -- use via AC_REQUIRE.
12621443 #
1263 # This code is only required when automatic dependency tracking
1264 # is enabled. FIXME. This creates each '.P' file that we will
1265 # need in order to bootstrap the dependency handling code.
1444 # This code is only required when automatic dependency tracking is enabled.
1445 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
1446 # order to bootstrap the dependency handling code.
12661447 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
12671448 [AC_CONFIG_COMMANDS([depfiles],
12681449 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1269 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1270 ])
1450 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
12711451
12721452 # Do all the work for Automake. -*- Autoconf -*-
12731453
1274 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
1454 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
12751455 #
12761456 # This file is free software; the Free Software Foundation
12771457 # gives unlimited permission to copy and/or distribute it,
13581538 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
13591539 # For better backward compatibility. To be removed once Automake 1.9.x
13601540 # dies out for good. For more background, see:
1361 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1362 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1541 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1542 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13631543 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
13641544 # We need awk for the "check" target (and possibly the TAP driver). The
13651545 # system "awk" is bad on some platforms.
14261606 Aborting the configuration process, to ensure you take notice of the issue.
14271607
14281608 You can download and install GNU coreutils to get an 'rm' implementation
1429 that behaves properly: <http://www.gnu.org/software/coreutils/>.
1609 that behaves properly: <https://www.gnu.org/software/coreutils/>.
14301610
14311611 If you want to complete the configuration process using your problematic
14321612 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
14681648 done
14691649 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
14701650
1471 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1651 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
14721652 #
14731653 # This file is free software; the Free Software Foundation
14741654 # gives unlimited permission to copy and/or distribute it,
14891669 fi
14901670 AC_SUBST([install_sh])])
14911671
1492 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
1672 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
14931673 #
14941674 # This file is free software; the Free Software Foundation
14951675 # gives unlimited permission to copy and/or distribute it,
15101690
15111691 # Check to see how 'make' treats includes. -*- Autoconf -*-
15121692
1513 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1693 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
15141694 #
15151695 # This file is free software; the Free Software Foundation
15161696 # gives unlimited permission to copy and/or distribute it,
15181698
15191699 # AM_MAKE_INCLUDE()
15201700 # -----------------
1521 # Check to see how make treats includes.
1701 # Check whether make has an 'include' directive that can support all
1702 # the idioms we need for our automatic dependency tracking code.
15221703 AC_DEFUN([AM_MAKE_INCLUDE],
1523 [am_make=${MAKE-make}
1524 cat > confinc << 'END'
1704 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1705 cat > confinc.mk << 'END'
15251706 am__doit:
1526 @echo this is the am__doit target
1707 @echo this is the am__doit target >confinc.out
15271708 .PHONY: am__doit
15281709 END
1529 # If we don't find an include directive, just comment out the code.
1530 AC_MSG_CHECKING([for style of include used by $am_make])
15311710 am__include="#"
15321711 am__quote=
1533 _am_result=none
1534 # First try GNU make style include.
1535 echo "include confinc" > confmf
1536 # Ignore all kinds of additional output from 'make'.
1537 case `$am_make -s -f confmf 2> /dev/null` in #(
1538 *the\ am__doit\ target*)
1539 am__include=include
1540 am__quote=
1541 _am_result=GNU
1542 ;;
1543 esac
1544 # Now try BSD make style include.
1545 if test "$am__include" = "#"; then
1546 echo '.include "confinc"' > confmf
1547 case `$am_make -s -f confmf 2> /dev/null` in #(
1548 *the\ am__doit\ target*)
1549 am__include=.include
1550 am__quote="\""
1551 _am_result=BSD
1552 ;;
1553 esac
1554 fi
1555 AC_SUBST([am__include])
1556 AC_SUBST([am__quote])
1557 AC_MSG_RESULT([$_am_result])
1558 rm -f confinc confmf
1559 ])
1712 # BSD make does it like this.
1713 echo '.include "confinc.mk" # ignored' > confmf.BSD
1714 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
1715 echo 'include confinc.mk # ignored' > confmf.GNU
1716 _am_result=no
1717 for s in GNU BSD; do
1718 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1719 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
1720 ['0:this is the am__doit target'],
1721 [AS_CASE([$s],
1722 [BSD], [am__include='.include' am__quote='"'],
1723 [am__include='include' am__quote=''])])
1724 if test "$am__include" != "#"; then
1725 _am_result="yes ($s style)"
1726 break
1727 fi
1728 done
1729 rm -f confinc.* confmf.*
1730 AC_MSG_RESULT([${_am_result}])
1731 AC_SUBST([am__include])])
1732 AC_SUBST([am__quote])])
15601733
15611734 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
15621735
1563 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
1736 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
15641737 #
15651738 # This file is free software; the Free Software Foundation
15661739 # gives unlimited permission to copy and/or distribute it,
15991772
16001773 # Helper functions for option handling. -*- Autoconf -*-
16011774
1602 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1775 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
16031776 #
16041777 # This file is free software; the Free Software Foundation
16051778 # gives unlimited permission to copy and/or distribute it,
16281801 AC_DEFUN([_AM_IF_OPTION],
16291802 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
16301803
1631 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
1804 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
16321805 #
16331806 # This file is free software; the Free Software Foundation
16341807 # gives unlimited permission to copy and/or distribute it,
16751848 # For backward compatibility.
16761849 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
16771850
1678 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1851 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
16791852 #
16801853 # This file is free software; the Free Software Foundation
16811854 # gives unlimited permission to copy and/or distribute it,
16941867
16951868 # Check to make sure that the build environment is sane. -*- Autoconf -*-
16961869
1697 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
1870 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
16981871 #
16991872 # This file is free software; the Free Software Foundation
17001873 # gives unlimited permission to copy and/or distribute it,
17751948 rm -f conftest.file
17761949 ])
17771950
1778 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
1951 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
17791952 #
17801953 # This file is free software; the Free Software Foundation
17811954 # gives unlimited permission to copy and/or distribute it,
18352008 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
18362009 ])
18372010
1838 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
2011 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
18392012 #
18402013 # This file is free software; the Free Software Foundation
18412014 # gives unlimited permission to copy and/or distribute it,
18632036 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
18642037 AC_SUBST([INSTALL_STRIP_PROGRAM])])
18652038
1866 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
2039 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
18672040 #
18682041 # This file is free software; the Free Software Foundation
18692042 # gives unlimited permission to copy and/or distribute it,
18822055
18832056 # Check how to create a tarball. -*- Autoconf -*-
18842057
1885 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
2058 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
18862059 #
18872060 # This file is free software; the Free Software Foundation
18882061 # gives unlimited permission to copy and/or distribute it,
20132186 AC_SUBST([am__untar])
20142187 ]) # _AM_PROG_TAR
20152188
2016 m4_include([m4/intltool.m4])
20172189 m4_include([m4/libtool.m4])
20182190 m4_include([m4/ltoptions.m4])
20192191 m4_include([m4/ltsugar.m4])
0 #!/bin/sh
0 #! /bin/sh
11 # Wrapper for compilers which do not understand '-c -o'.
22
3 scriptversion=2016-01-11.22; # UTC
4
5 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
1616 # GNU General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
2020
2121 # As a special exception to the GNU General Public License, if you
2222 # distribute this file as part of a program that contains a
339339 # Local Variables:
340340 # mode: shell-script
341341 # sh-indentation: 2
342 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343343 # time-stamp-start: "scriptversion="
344344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345345 # time-stamp-time-zone: "UTC0"
0 #!/bin/sh
0 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2017 Free Software Foundation, Inc.
3
4 timestamp='2017-08-08'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-03-08'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
2626 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3030 #
3131 # Please send patches to <config-patches@gnu.org>.
3232
3838
3939 Output the configuration name of the system \`$me' is run on.
4040
41 Operation modes:
41 Options:
4242 -h, --help print this help, then exit
4343 -t, --time-stamp print date of last modification, then exit
4444 -v, --version print version number, then exit
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2017 Free Software Foundation, Inc.
52 Copyright 1992-2018 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
106106 dummy=$tmp/dummy ;
107107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > $dummy.c ;
109 ,,) echo "int x;" > "$dummy.c" ;
110110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112112 CC_FOR_BUILD="$c"; break ;
113113 fi ;
114114 done ;
131131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133133
134 case "${UNAME_SYSTEM}" in
134 case "$UNAME_SYSTEM" in
135135 Linux|GNU|GNU/*)
136136 # If the system lacks a compiler, then just pick glibc.
137137 # We could probably try harder.
138138 LIBC=gnu
139139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142142 #include <features.h>
143143 #if defined(__UCLIBC__)
144144 LIBC=uclibc
148148 LIBC=gnu
149149 #endif
150150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
152159 ;;
153160 esac
154161
155162 # Note: order is significant - the case branches are not exclusive.
156163
157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
158165 *:NetBSD:*:*)
159166 # NetBSD (nbsd) targets should (where applicable) match one or
160167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
168175 # portion of the name. We always set it to "unknown".
169176 sysctl="sysctl -n hw.machine_arch"
170177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
173180 echo unknown)`
174 case "${UNAME_MACHINE_ARCH}" in
181 case "$UNAME_MACHINE_ARCH" in
175182 armeb) machine=armeb-unknown ;;
176183 arm*) machine=arm-unknown ;;
177184 sh3el) machine=shl-unknown ;;
178185 sh3eb) machine=sh-unknown ;;
179186 sh5el) machine=sh5le-unknown ;;
180187 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
184191 ;;
185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
186193 esac
187194 # The Operating System including object format, if it has switched
188195 # to ELF recently (or will in the future) and ABI.
189 case "${UNAME_MACHINE_ARCH}" in
196 case "$UNAME_MACHINE_ARCH" in
190197 earm*)
191198 os=netbsdelf
192199 ;;
193200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
194 eval $set_cc_for_build
201 eval "$set_cc_for_build"
195202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
196203 | grep -q __ELF__
197204 then
207214 ;;
208215 esac
209216 # Determine ABI tags.
210 case "${UNAME_MACHINE_ARCH}" in
217 case "$UNAME_MACHINE_ARCH" in
211218 earm*)
212219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
213 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
214221 ;;
215222 esac
216223 # The OS release
218225 # thus, need a distinct triplet. However, they do not need
219226 # kernel version information, so it can be replaced with a
220227 # suitable tag, in the style of linux-gnu.
221 case "${UNAME_VERSION}" in
228 case "$UNAME_VERSION" in
222229 Debian*)
223230 release='-gnu'
224231 ;;
225232 *)
226 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
227234 ;;
228235 esac
229236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
230237 # contains redundant information, the shorter form:
231238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
232 echo "${machine}-${os}${release}${abi}"
239 echo "$machine-${os}${release}${abi}"
233240 exit ;;
234241 *:Bitrig:*:*)
235242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
236 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
237244 exit ;;
238245 *:OpenBSD:*:*)
239246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
240 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
241248 exit ;;
242249 *:LibertyBSD:*:*)
243250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
244 echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
245255 exit ;;
246256 *:ekkoBSD:*:*)
247 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
248258 exit ;;
249259 *:SolidBSD:*:*)
250 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
251261 exit ;;
252262 macppc:MirBSD:*:*)
253 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
254264 exit ;;
255265 *:MirBSD:*:*)
256 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
257267 exit ;;
258268 *:Sortix:*:*)
259 echo ${UNAME_MACHINE}-unknown-sortix
269 echo "$UNAME_MACHINE"-unknown-sortix
260270 exit ;;
261271 *:Redox:*:*)
262 echo ${UNAME_MACHINE}-unknown-redox
263 exit ;;
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
264277 alpha:OSF1:*:*)
265278 case $UNAME_RELEASE in
266279 *4.0)
312325 # A Tn.n version is a released field test version.
313326 # A Xn.n version is an unreleased experimental baselevel.
314327 # 1.2 uses "1.2" for uname -r.
315 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
316329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
317330 exitcode=$?
318331 trap '' 0
319332 exit $exitcode ;;
320 Alpha\ *:Windows_NT*:*)
321 # How do we know it's Interix rather than the generic POSIX subsystem?
322 # Should we change UNAME_MACHINE based on the output of uname instead
323 # of the specific Alpha model?
324 echo alpha-pc-interix
325 exit ;;
326 21064:Windows_NT:50:3)
327 echo alpha-dec-winnt3.5
328 exit ;;
329333 Amiga*:UNIX_System_V:4.0:*)
330334 echo m68k-unknown-sysv4
331335 exit ;;
332336 *:[Aa]miga[Oo][Ss]:*:*)
333 echo ${UNAME_MACHINE}-unknown-amigaos
337 echo "$UNAME_MACHINE"-unknown-amigaos
334338 exit ;;
335339 *:[Mm]orph[Oo][Ss]:*:*)
336 echo ${UNAME_MACHINE}-unknown-morphos
340 echo "$UNAME_MACHINE"-unknown-morphos
337341 exit ;;
338342 *:OS/390:*:*)
339343 echo i370-ibm-openedition
345349 echo powerpc-ibm-os400
346350 exit ;;
347351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
348 echo arm-acorn-riscix${UNAME_RELEASE}
352 echo arm-acorn-riscix"$UNAME_RELEASE"
349353 exit ;;
350354 arm*:riscos:*:*|arm*:RISCOS:*:*)
351355 echo arm-unknown-riscos
372376 sparc) echo sparc-icl-nx7; exit ;;
373377 esac ;;
374378 s390x:SunOS:*:*)
375 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
376380 exit ;;
377381 sun4H:SunOS:5.*:*)
378 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
379383 exit ;;
380384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
381 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
382386 exit ;;
383387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
384 echo i386-pc-auroraux${UNAME_RELEASE}
388 echo i386-pc-auroraux"$UNAME_RELEASE"
385389 exit ;;
386390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
387 eval $set_cc_for_build
391 eval "$set_cc_for_build"
388392 SUN_ARCH=i386
389393 # If there is a compiler, see if it is configured for 64-bit objects.
390394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
397401 SUN_ARCH=x86_64
398402 fi
399403 fi
400 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
401405 exit ;;
402406 sun4*:SunOS:6*:*)
403407 # According to config.sub, this is the proper way to canonicalize
404408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
405409 # it's likely to be more like Solaris than SunOS4.
406 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
407411 exit ;;
408412 sun4*:SunOS:*:*)
409413 case "`/usr/bin/arch -k`" in
412416 ;;
413417 esac
414418 # Japanese Language versions have a version number like `4.1.3-JL'.
415 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
416420 exit ;;
417421 sun3*:SunOS:*:*)
418 echo m68k-sun-sunos${UNAME_RELEASE}
422 echo m68k-sun-sunos"$UNAME_RELEASE"
419423 exit ;;
420424 sun*:*:4.2BSD:*)
421425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
422 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
423427 case "`/bin/arch`" in
424428 sun3)
425 echo m68k-sun-sunos${UNAME_RELEASE}
429 echo m68k-sun-sunos"$UNAME_RELEASE"
426430 ;;
427431 sun4)
428 echo sparc-sun-sunos${UNAME_RELEASE}
432 echo sparc-sun-sunos"$UNAME_RELEASE"
429433 ;;
430434 esac
431435 exit ;;
432436 aushp:SunOS:*:*)
433 echo sparc-auspex-sunos${UNAME_RELEASE}
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
434438 exit ;;
435439 # The situation for MiNT is a little confusing. The machine name
436440 # can be virtually everything (everything which is not
441445 # MiNT. But MiNT is downward compatible to TOS, so this should
442446 # be no problem.
443447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
444 echo m68k-atari-mint${UNAME_RELEASE}
448 echo m68k-atari-mint"$UNAME_RELEASE"
445449 exit ;;
446450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
447 echo m68k-atari-mint${UNAME_RELEASE}
451 echo m68k-atari-mint"$UNAME_RELEASE"
448452 exit ;;
449453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
450 echo m68k-atari-mint${UNAME_RELEASE}
454 echo m68k-atari-mint"$UNAME_RELEASE"
451455 exit ;;
452456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
453 echo m68k-milan-mint${UNAME_RELEASE}
457 echo m68k-milan-mint"$UNAME_RELEASE"
454458 exit ;;
455459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
456 echo m68k-hades-mint${UNAME_RELEASE}
460 echo m68k-hades-mint"$UNAME_RELEASE"
457461 exit ;;
458462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
459 echo m68k-unknown-mint${UNAME_RELEASE}
463 echo m68k-unknown-mint"$UNAME_RELEASE"
460464 exit ;;
461465 m68k:machten:*:*)
462 echo m68k-apple-machten${UNAME_RELEASE}
466 echo m68k-apple-machten"$UNAME_RELEASE"
463467 exit ;;
464468 powerpc:machten:*:*)
465 echo powerpc-apple-machten${UNAME_RELEASE}
469 echo powerpc-apple-machten"$UNAME_RELEASE"
466470 exit ;;
467471 RISC*:Mach:*:*)
468472 echo mips-dec-mach_bsd4.3
469473 exit ;;
470474 RISC*:ULTRIX:*:*)
471 echo mips-dec-ultrix${UNAME_RELEASE}
475 echo mips-dec-ultrix"$UNAME_RELEASE"
472476 exit ;;
473477 VAX*:ULTRIX*:*:*)
474 echo vax-dec-ultrix${UNAME_RELEASE}
478 echo vax-dec-ultrix"$UNAME_RELEASE"
475479 exit ;;
476480 2020:CLIX:*:* | 2430:CLIX:*:*)
477 echo clipper-intergraph-clix${UNAME_RELEASE}
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
478482 exit ;;
479483 mips:*:*:UMIPS | mips:*:*:RISCos)
480 eval $set_cc_for_build
481 sed 's/^ //' << EOF >$dummy.c
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
482486 #ifdef __cplusplus
483487 #include <stdio.h> /* for printf() prototype */
484488 int main (int argc, char *argv[]) {
487491 #endif
488492 #if defined (host_mips) && defined (MIPSEB)
489493 #if defined (SYSTYPE_SYSV)
490 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
491495 #endif
492496 #if defined (SYSTYPE_SVR4)
493 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
494498 #endif
495499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
496 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
497501 #endif
498502 #endif
499503 exit (-1);
500504 }
501505 EOF
502 $CC_FOR_BUILD -o $dummy $dummy.c &&
503 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
504 SYSTEM_NAME=`$dummy $dummyarg` &&
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
505509 { echo "$SYSTEM_NAME"; exit; }
506 echo mips-mips-riscos${UNAME_RELEASE}
510 echo mips-mips-riscos"$UNAME_RELEASE"
507511 exit ;;
508512 Motorola:PowerMAX_OS:*:*)
509513 echo powerpc-motorola-powermax
529533 AViiON:dgux:*:*)
530534 # DG/UX returns AViiON for all architectures
531535 UNAME_PROCESSOR=`/usr/bin/uname -p`
532 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
533537 then
534 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
535 [ ${TARGET_BINARY_INTERFACE}x = x ]
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
536540 then
537 echo m88k-dg-dgux${UNAME_RELEASE}
541 echo m88k-dg-dgux"$UNAME_RELEASE"
538542 else
539 echo m88k-dg-dguxbcs${UNAME_RELEASE}
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
540544 fi
541545 else
542 echo i586-dg-dgux${UNAME_RELEASE}
546 echo i586-dg-dgux"$UNAME_RELEASE"
543547 fi
544548 exit ;;
545549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
556560 echo m68k-tektronix-bsd
557561 exit ;;
558562 *:IRIX*:*:*)
559 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
560564 exit ;;
561565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
562566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
568572 if [ -x /usr/bin/oslevel ] ; then
569573 IBM_REV=`/usr/bin/oslevel`
570574 else
571 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
572 fi
573 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
574578 exit ;;
575579 *:AIX:2:3)
576580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
577 eval $set_cc_for_build
578 sed 's/^ //' << EOF >$dummy.c
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
579583 #include <sys/systemcfg.h>
580584
581585 main()
586590 exit(0);
587591 }
588592 EOF
589 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
590594 then
591595 echo "$SYSTEM_NAME"
592596 else
600604 exit ;;
601605 *:AIX:*:[4567])
602606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
603 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
604608 IBM_ARCH=rs6000
605609 else
606610 IBM_ARCH=powerpc
609613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
610614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
611615 else
612 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
613 fi
614 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
615619 exit ;;
616620 *:AIX:*:*)
617621 echo rs6000-ibm-aix
618622 exit ;;
619 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
620624 echo romp-ibm-bsd4.4
621625 exit ;;
622626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
623 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
624628 exit ;; # report: romp-ibm BSD 4.3
625629 *:BOSX:*:*)
626630 echo rs6000-bull-bosx
635639 echo m68k-hp-bsd4.4
636640 exit ;;
637641 9000/[34678]??:HP-UX:*:*)
638 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
639 case "${UNAME_MACHINE}" in
640 9000/31? ) HP_ARCH=m68000 ;;
641 9000/[34]?? ) HP_ARCH=m68k ;;
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
642646 9000/[678][0-9][0-9])
643647 if [ -x /usr/bin/getconf ]; then
644648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
645649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
646 case "${sc_cpu_version}" in
650 case "$sc_cpu_version" in
647651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
648652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
649653 532) # CPU_PA_RISC2_0
650 case "${sc_kernel_bits}" in
654 case "$sc_kernel_bits" in
651655 32) HP_ARCH=hppa2.0n ;;
652656 64) HP_ARCH=hppa2.0w ;;
653657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
654658 esac ;;
655659 esac
656660 fi
657 if [ "${HP_ARCH}" = "" ]; then
658 eval $set_cc_for_build
659 sed 's/^ //' << EOF >$dummy.c
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
660664
661665 #define _HPUX_SOURCE
662666 #include <stdlib.h>
689693 exit (0);
690694 }
691695 EOF
692 (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
693697 test -z "$HP_ARCH" && HP_ARCH=hppa
694698 fi ;;
695699 esac
696 if [ ${HP_ARCH} = hppa2.0w ]
700 if [ "$HP_ARCH" = hppa2.0w ]
697701 then
698 eval $set_cc_for_build
702 eval "$set_cc_for_build"
699703
700704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
701705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
714718 HP_ARCH=hppa64
715719 fi
716720 fi
717 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
718722 exit ;;
719723 ia64:HP-UX:*:*)
720 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
721 echo ia64-hp-hpux${HPUX_REV}
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
722726 exit ;;
723727 3050*:HI-UX:*:*)
724 eval $set_cc_for_build
725 sed 's/^ //' << EOF >$dummy.c
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
726730 #include <unistd.h>
727731 int
728732 main ()
747751 exit (0);
748752 }
749753 EOF
750 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
751755 { echo "$SYSTEM_NAME"; exit; }
752756 echo unknown-hitachi-hiuxwe2
753757 exit ;;
754 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
755759 echo hppa1.1-hp-bsd
756760 exit ;;
757761 9000/8??:4.3bsd:*:*)
760764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
761765 echo hppa1.0-hp-mpeix
762766 exit ;;
763 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
764768 echo hppa1.1-hp-osf
765769 exit ;;
766770 hp8??:OSF1:*:*)
768772 exit ;;
769773 i*86:OSF1:*:*)
770774 if [ -x /usr/sbin/sysversion ] ; then
771 echo ${UNAME_MACHINE}-unknown-osf1mk
775 echo "$UNAME_MACHINE"-unknown-osf1mk
772776 else
773 echo ${UNAME_MACHINE}-unknown-osf1
777 echo "$UNAME_MACHINE"-unknown-osf1
774778 fi
775779 exit ;;
776780 parisc*:Lites*:*:*)
795799 echo c4-convex-bsd
796800 exit ;;
797801 CRAY*Y-MP:*:*:*)
798 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
799803 exit ;;
800804 CRAY*[A-Z]90:*:*:*)
801 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
802806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
803807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
804808 -e 's/\.[^.]*$/.X/'
805809 exit ;;
806810 CRAY*TS:*:*:*)
807 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
808812 exit ;;
809813 CRAY*T3E:*:*:*)
810 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
811815 exit ;;
812816 CRAY*SV1:*:*:*)
813 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
814818 exit ;;
815819 *:UNICOS/mp:*:*)
816 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
817821 exit ;;
818822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
819823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
820824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
821 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
822826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
823827 exit ;;
824828 5000:UNIX_System_V:4.*:*)
825829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
826 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
827831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
828832 exit ;;
829833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
830 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
831835 exit ;;
832836 sparc*:BSD/OS:*:*)
833 echo sparc-unknown-bsdi${UNAME_RELEASE}
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
834838 exit ;;
835839 *:BSD/OS:*:*)
836 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
837841 exit ;;
838842 *:FreeBSD:*:*)
839843 UNAME_PROCESSOR=`/usr/bin/uname -p`
840 case ${UNAME_PROCESSOR} in
844 case "$UNAME_PROCESSOR" in
841845 amd64)
842846 UNAME_PROCESSOR=x86_64 ;;
843847 i386)
844848 UNAME_PROCESSOR=i586 ;;
845849 esac
846 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
847851 exit ;;
848852 i*:CYGWIN*:*)
849 echo ${UNAME_MACHINE}-pc-cygwin
853 echo "$UNAME_MACHINE"-pc-cygwin
850854 exit ;;
851855 *:MINGW64*:*)
852 echo ${UNAME_MACHINE}-pc-mingw64
856 echo "$UNAME_MACHINE"-pc-mingw64
853857 exit ;;
854858 *:MINGW*:*)
855 echo ${UNAME_MACHINE}-pc-mingw32
859 echo "$UNAME_MACHINE"-pc-mingw32
856860 exit ;;
857861 *:MSYS*:*)
858 echo ${UNAME_MACHINE}-pc-msys
859 exit ;;
860 i*:windows32*:*)
861 # uname -m includes "-pc" on this system.
862 echo ${UNAME_MACHINE}-mingw32
862 echo "$UNAME_MACHINE"-pc-msys
863863 exit ;;
864864 i*:PW*:*)
865 echo ${UNAME_MACHINE}-pc-pw32
865 echo "$UNAME_MACHINE"-pc-pw32
866866 exit ;;
867867 *:Interix*:*)
868 case ${UNAME_MACHINE} in
868 case "$UNAME_MACHINE" in
869869 x86)
870 echo i586-pc-interix${UNAME_RELEASE}
870 echo i586-pc-interix"$UNAME_RELEASE"
871871 exit ;;
872872 authenticamd | genuineintel | EM64T)
873 echo x86_64-unknown-interix${UNAME_RELEASE}
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
874874 exit ;;
875875 IA64)
876 echo ia64-unknown-interix${UNAME_RELEASE}
876 echo ia64-unknown-interix"$UNAME_RELEASE"
877877 exit ;;
878878 esac ;;
879 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
880 echo i${UNAME_MACHINE}-pc-mks
881 exit ;;
882 8664:Windows_NT:*)
883 echo x86_64-pc-mks
884 exit ;;
885 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
886 # How do we know it's Interix rather than the generic POSIX subsystem?
887 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
888 # UNAME_MACHINE based on the output of uname instead of i386?
889 echo i586-pc-interix
890 exit ;;
891879 i*:UWIN*:*)
892 echo ${UNAME_MACHINE}-pc-uwin
880 echo "$UNAME_MACHINE"-pc-uwin
893881 exit ;;
894882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
895883 echo x86_64-unknown-cygwin
896884 exit ;;
897 p*:CYGWIN*:*)
898 echo powerpcle-unknown-cygwin
899 exit ;;
900885 prep*:SunOS:5.*:*)
901 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
902887 exit ;;
903888 *:GNU:*:*)
904889 # the GNU system
905 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
906891 exit ;;
907892 *:GNU/*:*:*)
908893 # other systems with GNU libc and userland
909 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
910895 exit ;;
911896 i*86:Minix:*:*)
912 echo ${UNAME_MACHINE}-pc-minix
897 echo "$UNAME_MACHINE"-pc-minix
913898 exit ;;
914899 aarch64:Linux:*:*)
915 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
916901 exit ;;
917902 aarch64_be:Linux:*:*)
918903 UNAME_MACHINE=aarch64_be
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
920905 exit ;;
921906 alpha:Linux:*:*)
922907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
930915 esac
931916 objdump --private-headers /bin/sh | grep -q ld.so.1
932917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
933 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
934919 exit ;;
935920 arc:Linux:*:* | arceb:Linux:*:*)
936 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
937922 exit ;;
938923 arm*:Linux:*:*)
939 eval $set_cc_for_build
924 eval "$set_cc_for_build"
940925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
941926 | grep -q __ARM_EABI__
942927 then
943 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
944929 else
945930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
946931 | grep -q __ARM_PCS_VFP
947932 then
948 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
949934 else
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
951936 fi
952937 fi
953938 exit ;;
954939 avr32*:Linux:*:*)
955 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
956941 exit ;;
957942 cris:Linux:*:*)
958 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
959944 exit ;;
960945 crisv32:Linux:*:*)
961 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
962947 exit ;;
963948 e2k:Linux:*:*)
964 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
965950 exit ;;
966951 frv:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
968953 exit ;;
969954 hexagon:Linux:*:*)
970 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971956 exit ;;
972957 i*86:Linux:*:*)
973 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
974959 exit ;;
975960 ia64:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
977962 exit ;;
978963 k1om:Linux:*:*)
979 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
980965 exit ;;
981966 m32r*:Linux:*:*)
982 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
983968 exit ;;
984969 m68*:Linux:*:*)
985 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
986971 exit ;;
987972 mips:Linux:*:* | mips64:Linux:*:*)
988 eval $set_cc_for_build
989 sed 's/^ //' << EOF >$dummy.c
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
990975 #undef CPU
991976 #undef ${UNAME_MACHINE}
992977 #undef ${UNAME_MACHINE}el
1000985 #endif
1001986 #endif
1002987 EOF
1003 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
1004 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1005990 ;;
1006991 mips64el:Linux:*:*)
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1008993 exit ;;
1009994 openrisc*:Linux:*:*)
1010 echo or1k-unknown-linux-${LIBC}
995 echo or1k-unknown-linux-"$LIBC"
1011996 exit ;;
1012997 or32:Linux:*:* | or1k*:Linux:*:*)
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1014999 exit ;;
10151000 padre:Linux:*:*)
1016 echo sparc-unknown-linux-${LIBC}
1001 echo sparc-unknown-linux-"$LIBC"
10171002 exit ;;
10181003 parisc64:Linux:*:* | hppa64:Linux:*:*)
1019 echo hppa64-unknown-linux-${LIBC}
1004 echo hppa64-unknown-linux-"$LIBC"
10201005 exit ;;
10211006 parisc:Linux:*:* | hppa:Linux:*:*)
10221007 # Look for CPU level
10231008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1024 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
1025 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
1026 *) echo hppa-unknown-linux-${LIBC} ;;
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
10271012 esac
10281013 exit ;;
10291014 ppc64:Linux:*:*)
1030 echo powerpc64-unknown-linux-${LIBC}
1015 echo powerpc64-unknown-linux-"$LIBC"
10311016 exit ;;
10321017 ppc:Linux:*:*)
1033 echo powerpc-unknown-linux-${LIBC}
1018 echo powerpc-unknown-linux-"$LIBC"
10341019 exit ;;
10351020 ppc64le:Linux:*:*)
1036 echo powerpc64le-unknown-linux-${LIBC}
1021 echo powerpc64le-unknown-linux-"$LIBC"
10371022 exit ;;
10381023 ppcle:Linux:*:*)
1039 echo powerpcle-unknown-linux-${LIBC}
1024 echo powerpcle-unknown-linux-"$LIBC"
10401025 exit ;;
10411026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1042 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10431028 exit ;;
10441029 s390:Linux:*:* | s390x:Linux:*:*)
1045 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
10461031 exit ;;
10471032 sh64*:Linux:*:*)
1048 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10491034 exit ;;
10501035 sh*:Linux:*:*)
1051 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10521037 exit ;;
10531038 sparc:Linux:*:* | sparc64:Linux:*:*)
1054 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10551040 exit ;;
10561041 tile*:Linux:*:*)
1057 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10581043 exit ;;
10591044 vax:Linux:*:*)
1060 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
10611046 exit ;;
10621047 x86_64:Linux:*:*)
1063 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
1048 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
10641049 exit ;;
10651050 xtensa*:Linux:*:*)
1066 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1051 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
10671052 exit ;;
10681053 i*86:DYNIX/ptx:4*:*)
10691054 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10771062 # I am not positive that other SVR4 systems won't match this,
10781063 # I just have to hope. -- rms.
10791064 # Use sysv4.2uw... so that sysv4* matches it.
1080 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1065 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
10811066 exit ;;
10821067 i*86:OS/2:*:*)
10831068 # If we were able to find `uname', then EMX Unix compatibility
10841069 # is probably installed.
1085 echo ${UNAME_MACHINE}-pc-os2-emx
1070 echo "$UNAME_MACHINE"-pc-os2-emx
10861071 exit ;;
10871072 i*86:XTS-300:*:STOP)
1088 echo ${UNAME_MACHINE}-unknown-stop
1073 echo "$UNAME_MACHINE"-unknown-stop
10891074 exit ;;
10901075 i*86:atheos:*:*)
1091 echo ${UNAME_MACHINE}-unknown-atheos
1076 echo "$UNAME_MACHINE"-unknown-atheos
10921077 exit ;;
10931078 i*86:syllable:*:*)
1094 echo ${UNAME_MACHINE}-pc-syllable
1079 echo "$UNAME_MACHINE"-pc-syllable
10951080 exit ;;
10961081 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1097 echo i386-unknown-lynxos${UNAME_RELEASE}
1082 echo i386-unknown-lynxos"$UNAME_RELEASE"
10981083 exit ;;
10991084 i*86:*DOS:*:*)
1100 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1101 exit ;;
1102 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1103 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1085 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1086 exit ;;
1087 i*86:*:4.*:*)
1088 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
11041089 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1105 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1090 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
11061091 else
1107 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1092 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
11081093 fi
11091094 exit ;;
11101095 i*86:*:5:[678]*)
11141099 *Pentium) UNAME_MACHINE=i586 ;;
11151100 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
11161101 esac
1117 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1102 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
11181103 exit ;;
11191104 i*86:*:3.2:*)
11201105 if test -f /usr/options/cb.name; then
11211106 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1122 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1107 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
11231108 elif /bin/uname -X 2>/dev/null >/dev/null ; then
11241109 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11251110 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11291114 && UNAME_MACHINE=i686
11301115 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11311116 && UNAME_MACHINE=i686
1132 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1117 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
11331118 else
1134 echo ${UNAME_MACHINE}-pc-sysv32
1119 echo "$UNAME_MACHINE"-pc-sysv32
11351120 fi
11361121 exit ;;
11371122 pc:*:*:*)
11511136 exit ;;
11521137 i860:*:4.*:*) # i860-SVR4
11531138 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1154 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1139 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
11551140 else # Add other i860-SVR4 vendors below as they are discovered.
1156 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1141 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
11571142 fi
11581143 exit ;;
11591144 mini*:CTIX:SYS*5:*)
11731158 test -r /etc/.relid \
11741159 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11751160 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1176 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1161 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11771162 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1178 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1163 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11791164 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11801165 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11811166 && { echo i486-ncr-sysv4; exit; } ;;
11841169 test -r /etc/.relid \
11851170 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11861171 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1187 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1172 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
11881173 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1189 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1174 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
11901175 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1191 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1176 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
11921177 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1193 echo m68k-unknown-lynxos${UNAME_RELEASE}
1178 echo m68k-unknown-lynxos"$UNAME_RELEASE"
11941179 exit ;;
11951180 mc68030:UNIX_System_V:4.*:*)
11961181 echo m68k-atari-sysv4
11971182 exit ;;
11981183 TSUNAMI:LynxOS:2.*:*)
1199 echo sparc-unknown-lynxos${UNAME_RELEASE}
1184 echo sparc-unknown-lynxos"$UNAME_RELEASE"
12001185 exit ;;
12011186 rs6000:LynxOS:2.*:*)
1202 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1187 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
12031188 exit ;;
12041189 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1205 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1190 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
12061191 exit ;;
12071192 SM[BE]S:UNIX_SV:*:*)
1208 echo mips-dde-sysv${UNAME_RELEASE}
1193 echo mips-dde-sysv"$UNAME_RELEASE"
12091194 exit ;;
12101195 RM*:ReliantUNIX-*:*:*)
12111196 echo mips-sni-sysv4
12161201 *:SINIX-*:*:*)
12171202 if uname -p 2>/dev/null >/dev/null ; then
12181203 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1219 echo ${UNAME_MACHINE}-sni-sysv4
1204 echo "$UNAME_MACHINE"-sni-sysv4
12201205 else
12211206 echo ns32k-sni-sysv
12221207 fi
12361221 exit ;;
12371222 i*86:VOS:*:*)
12381223 # From Paul.Green@stratus.com.
1239 echo ${UNAME_MACHINE}-stratus-vos
1224 echo "$UNAME_MACHINE"-stratus-vos
12401225 exit ;;
12411226 *:VOS:*:*)
12421227 # From Paul.Green@stratus.com.
12431228 echo hppa1.1-stratus-vos
12441229 exit ;;
12451230 mc68*:A/UX:*:*)
1246 echo m68k-apple-aux${UNAME_RELEASE}
1231 echo m68k-apple-aux"$UNAME_RELEASE"
12471232 exit ;;
12481233 news*:NEWS-OS:6*:*)
12491234 echo mips-sony-newsos6
12501235 exit ;;
12511236 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12521237 if [ -d /usr/nec ]; then
1253 echo mips-nec-sysv${UNAME_RELEASE}
1238 echo mips-nec-sysv"$UNAME_RELEASE"
12541239 else
1255 echo mips-unknown-sysv${UNAME_RELEASE}
1240 echo mips-unknown-sysv"$UNAME_RELEASE"
12561241 fi
12571242 exit ;;
12581243 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12711256 echo x86_64-unknown-haiku
12721257 exit ;;
12731258 SX-4:SUPER-UX:*:*)
1274 echo sx4-nec-superux${UNAME_RELEASE}
1259 echo sx4-nec-superux"$UNAME_RELEASE"
12751260 exit ;;
12761261 SX-5:SUPER-UX:*:*)
1277 echo sx5-nec-superux${UNAME_RELEASE}
1262 echo sx5-nec-superux"$UNAME_RELEASE"
12781263 exit ;;
12791264 SX-6:SUPER-UX:*:*)
1280 echo sx6-nec-superux${UNAME_RELEASE}
1265 echo sx6-nec-superux"$UNAME_RELEASE"
12811266 exit ;;
12821267 SX-7:SUPER-UX:*:*)
1283 echo sx7-nec-superux${UNAME_RELEASE}
1268 echo sx7-nec-superux"$UNAME_RELEASE"
12841269 exit ;;
12851270 SX-8:SUPER-UX:*:*)
1286 echo sx8-nec-superux${UNAME_RELEASE}
1271 echo sx8-nec-superux"$UNAME_RELEASE"
12871272 exit ;;
12881273 SX-8R:SUPER-UX:*:*)
1289 echo sx8r-nec-superux${UNAME_RELEASE}
1274 echo sx8r-nec-superux"$UNAME_RELEASE"
12901275 exit ;;
12911276 SX-ACE:SUPER-UX:*:*)
1292 echo sxace-nec-superux${UNAME_RELEASE}
1277 echo sxace-nec-superux"$UNAME_RELEASE"
12931278 exit ;;
12941279 Power*:Rhapsody:*:*)
1295 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1280 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
12961281 exit ;;
12971282 *:Rhapsody:*:*)
1298 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1283 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
12991284 exit ;;
13001285 *:Darwin:*:*)
13011286 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1302 eval $set_cc_for_build
1287 eval "$set_cc_for_build"
13031288 if test "$UNAME_PROCESSOR" = unknown ; then
13041289 UNAME_PROCESSOR=powerpc
13051290 fi
1306 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1291 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
13071292 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
13081293 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
13091294 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
13311316 # that Apple uses in portable devices.
13321317 UNAME_PROCESSOR=x86_64
13331318 fi
1334 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1319 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
13351320 exit ;;
13361321 *:procnto*:*:* | *:QNX:[0123456789]*:*)
13371322 UNAME_PROCESSOR=`uname -p`
13391324 UNAME_PROCESSOR=i386
13401325 UNAME_MACHINE=pc
13411326 fi
1342 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1327 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
13431328 exit ;;
13441329 *:QNX:*:4*)
13451330 echo i386-pc-qnx
13461331 exit ;;
13471332 NEO-*:NONSTOP_KERNEL:*:*)
1348 echo neo-tandem-nsk${UNAME_RELEASE}
1333 echo neo-tandem-nsk"$UNAME_RELEASE"
13491334 exit ;;
13501335 NSE-*:NONSTOP_KERNEL:*:*)
1351 echo nse-tandem-nsk${UNAME_RELEASE}
1336 echo nse-tandem-nsk"$UNAME_RELEASE"
13521337 exit ;;
13531338 NSR-*:NONSTOP_KERNEL:*:*)
1354 echo nsr-tandem-nsk${UNAME_RELEASE}
1339 echo nsr-tandem-nsk"$UNAME_RELEASE"
1340 exit ;;
1341 NSV-*:NONSTOP_KERNEL:*:*)
1342 echo nsv-tandem-nsk"$UNAME_RELEASE"
13551343 exit ;;
13561344 NSX-*:NONSTOP_KERNEL:*:*)
1357 echo nsx-tandem-nsk${UNAME_RELEASE}
1345 echo nsx-tandem-nsk"$UNAME_RELEASE"
13581346 exit ;;
13591347 *:NonStop-UX:*:*)
13601348 echo mips-compaq-nonstopux
13631351 echo bs2000-siemens-sysv
13641352 exit ;;
13651353 DS/*:UNIX_System_V:*:*)
1366 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1354 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
13671355 exit ;;
13681356 *:Plan9:*:*)
13691357 # "uname -m" is not consistent, so use $cputype instead. 386
13741362 else
13751363 UNAME_MACHINE="$cputype"
13761364 fi
1377 echo ${UNAME_MACHINE}-unknown-plan9
1365 echo "$UNAME_MACHINE"-unknown-plan9
13781366 exit ;;
13791367 *:TOPS-10:*:*)
13801368 echo pdp10-unknown-tops10
13951383 echo pdp10-unknown-its
13961384 exit ;;
13971385 SEI:*:*:SEIUX)
1398 echo mips-sei-seiux${UNAME_RELEASE}
1386 echo mips-sei-seiux"$UNAME_RELEASE"
13991387 exit ;;
14001388 *:DragonFly:*:*)
1401 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1389 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
14021390 exit ;;
14031391 *:*VMS:*:*)
14041392 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1405 case "${UNAME_MACHINE}" in
1393 case "$UNAME_MACHINE" in
14061394 A*) echo alpha-dec-vms ; exit ;;
14071395 I*) echo ia64-dec-vms ; exit ;;
14081396 V*) echo vax-dec-vms ; exit ;;
14111399 echo i386-pc-xenix
14121400 exit ;;
14131401 i*86:skyos:*:*)
1414 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
1402 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
14151403 exit ;;
14161404 i*86:rdos:*:*)
1417 echo ${UNAME_MACHINE}-pc-rdos
1405 echo "$UNAME_MACHINE"-pc-rdos
14181406 exit ;;
14191407 i*86:AROS:*:*)
1420 echo ${UNAME_MACHINE}-pc-aros
1408 echo "$UNAME_MACHINE"-pc-aros
14211409 exit ;;
14221410 x86_64:VMkernel:*:*)
1423 echo ${UNAME_MACHINE}-unknown-esx
1411 echo "$UNAME_MACHINE"-unknown-esx
14241412 exit ;;
14251413 amd64:Isilon\ OneFS:*:*)
14261414 echo x86_64-unknown-onefs
14271415 exit ;;
14281416 esac
14291417
1418 echo "$0: unable to guess system type" >&2
1419
1420 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1421 mips:Linux | mips64:Linux)
1422 # If we got here on MIPS GNU/Linux, output extra information.
1423 cat >&2 <<EOF
1424
1425 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1426 the system type. Please install a C compiler and try again.
1427 EOF
1428 ;;
1429 esac
1430
14301431 cat >&2 <<EOF
1431 $0: unable to guess system type
14321432
14331433 This script (version $timestamp), has failed to recognize the
14341434 operating system you are using. If your script is old, overwrite *all*
14351435 copies of config.guess and config.sub with the latest versions from:
14361436
1437 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1437 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
14381438 and
1439 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1439 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
14401440
14411441 If $0 has already been updated, send the following data and any
14421442 information you think might be pertinent to config-patches@gnu.org to
14591459 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
14601460 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14611461
1462 UNAME_MACHINE = ${UNAME_MACHINE}
1463 UNAME_RELEASE = ${UNAME_RELEASE}
1464 UNAME_SYSTEM = ${UNAME_SYSTEM}
1465 UNAME_VERSION = ${UNAME_VERSION}
1462 UNAME_MACHINE = "$UNAME_MACHINE"
1463 UNAME_RELEASE = "$UNAME_RELEASE"
1464 UNAME_SYSTEM = "$UNAME_SYSTEM"
1465 UNAME_VERSION = "$UNAME_VERSION"
14661466 EOF
14671467
14681468 exit 1
14691469
14701470 # Local variables:
1471 # eval: (add-hook 'write-file-hooks 'time-stamp)
1471 # eval: (add-hook 'before-save-hook 'time-stamp)
14721472 # time-stamp-start: "timestamp='"
14731473 # time-stamp-format: "%:y-%02m-%02d"
14741474 # time-stamp-end: "'"
0 #!/bin/sh
0 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2017 Free Software Foundation, Inc.
3
4 timestamp='2017-04-02'
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-05-05'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
1414 # General Public License for more details.
1515 #
1616 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
1818 #
1919 # As a special exception to the GNU General Public License, if you
2020 # distribute this file as part of a program that contains a
3232 # Otherwise, we print the canonical config type on stdout and succeed.
3333
3434 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3636
3737 # This file is supposed to be the same for all GNU packages
3838 # and recognize all the CPU types, system types and aliases
5656
5757 Canonicalize a configuration name.
5858
59 Operation modes:
59 Options:
6060 -h, --help print this help, then exit
6161 -t, --time-stamp print date of last modification, then exit
6262 -v, --version print version number, then exit
6666 version="\
6767 GNU config.sub ($timestamp)
6868
69 Copyright 1992-2017 Free Software Foundation, Inc.
69 Copyright 1992-2018 Free Software Foundation, Inc.
7070
7171 This is free software; see the source for copying conditions. There is NO
7272 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9393
9494 *local*)
9595 # First pass through any local machine types.
96 echo $1
96 echo "$1"
9797 exit ;;
9898
9999 * )
109109 exit 1;;
110110 esac
111111
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
112 # Spilt fields of configuration type
113 IFS="-" read -r field1 field2 field3 field4 <<EOF
114 $1
115 EOF
116
117 # Separate into logical components for further validation
118 case $1 in
119 *-*-*-*)
120 basic_machine=$field1-$field2
121 os=-$field3-$field4
122 ;;
123 *-*-*)
124 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
125 # parts
126 maybe_os=$field2-$field3
127 case $maybe_os in
128 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
129 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
130 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
131 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
132 | storm-chaos* | os2-emx* | rtmk-nova*)
133 basic_machine=$field1
134 os=-$maybe_os
135 ;;
136 android-linux)
137 basic_machine=$field1-unknown
138 os=-linux-android
139 ;;
140 *)
141 basic_machine=$field1-$field2
142 os=-$field3
143 ;;
144 esac
145 ;;
146 *-*)
147 basic_machine=$field1
148 os=-$field2
149 ;;
150 *)
151 basic_machine=$1
152 os=
153 ;;
134154 esac
135155
136156 ### Let's recognize common machines as not being operating systems so
177197 ;;
178198 -sco6)
179199 os=-sco5v6
180 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
181201 ;;
182202 -sco5)
183203 os=-sco3.2v5
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
185205 ;;
186206 -sco4)
187207 os=-sco3.2v4
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
189209 ;;
190210 -sco3.2.[4-9]*)
191211 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
212 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
193213 ;;
194214 -sco3.2v[4-9]*)
195215 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
197217 ;;
198218 -sco5v6*)
199219 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
220 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201221 ;;
202222 -sco*)
203223 os=-sco3.2v2
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
224 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205225 ;;
206226 -udk*)
207 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
227 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
208228 ;;
209229 -isc)
210230 os=-isc2.2
211 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
231 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
212232 ;;
213233 -clix*)
214234 basic_machine=clipper-intergraph
215235 ;;
216236 -isc*)
217 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
237 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218238 ;;
219239 -lynx*178)
220240 os=-lynxos178
226246 os=-lynxos
227247 ;;
228248 -ptx*)
229 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -windowsnt*)
232 os=`echo $os | sed -e 's/windowsnt/winnt/'`
249 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
233250 ;;
234251 -psos*)
235252 os=-psos
251268 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
252269 | am33_2.0 \
253270 | arc | arceb \
254 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
271 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
255272 | avr | avr32 \
256273 | ba \
257274 | be32 | be64 \
258275 | bfin \
259 | c4x | c8051 | clipper \
276 | c4x | c8051 | clipper | csky \
260277 | d10v | d30v | dlx | dsp16xx \
261278 | e2k | epiphany \
262279 | fido | fr30 | frv | ft32 \
295312 | mt \
296313 | msp430 \
297314 | nds32 | nds32le | nds32be \
315 | nfp \
298316 | nios | nios2 | nios2eb | nios2el \
299317 | ns16k | ns32k \
300318 | open8 | or1k | or1knd | or32 \
301 | pdp10 | pdp11 | pj | pjl \
319 | pdp10 | pj | pjl \
302320 | powerpc | powerpc64 | powerpc64le | powerpcle \
303321 | pru \
304322 | pyramid \
315333 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316334 | visium \
317335 | wasm32 \
318 | we32k \
319336 | x86 | xc16x | xstormy16 | xtensa \
320337 | z8k | z80)
321338 basic_machine=$basic_machine-unknown
336353 basic_machine=$basic_machine-unknown
337354 os=-none
338355 ;;
339 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
356 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
357 ;;
358 m9s12z | m68hcs12z | hcs12z | s12z)
359 basic_machine=s12z-unknown
360 os=-none
340361 ;;
341362 ms1)
342363 basic_machine=mt-unknown
365386 ;;
366387 # Object if more than one company name word.
367388 *-*-*)
368 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
389 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
369390 exit 1
370391 ;;
371392 # Recognize the basic CPU types with company name.
381402 | be32-* | be64-* \
382403 | bfin-* | bs2000-* \
383404 | c[123]* | c30-* | [cjt]90-* | c4x-* \
384 | c8051-* | clipper-* | craynv-* | cydra-* \
405 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
385406 | d10v-* | d30v-* | dlx-* \
386407 | e2k-* | elxsi-* \
387408 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
422443 | mt-* \
423444 | msp430-* \
424445 | nds32-* | nds32le-* | nds32be-* \
446 | nfp-* \
425447 | nios-* | nios2-* | nios2eb-* | nios2el-* \
426448 | none-* | np1-* | ns16k-* | ns32k-* \
427449 | open8-* \
460482 # Recognize the various machine names and aliases which stand
461483 # for a CPU type and a company and sometimes even an OS.
462484 386bsd)
463 basic_machine=i386-unknown
485 basic_machine=i386-pc
464486 os=-bsd
465487 ;;
466488 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
494516 basic_machine=x86_64-pc
495517 ;;
496518 amd64-*)
497 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
519 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
498520 ;;
499521 amdahl)
500522 basic_machine=580-amdahl
539561 os=-linux
540562 ;;
541563 blackfin-*)
542 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
564 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
543565 os=-linux
544566 ;;
545567 bluegene*)
547569 os=-cnk
548570 ;;
549571 c54x-*)
550 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
572 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
551573 ;;
552574 c55x-*)
553 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
575 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
554576 ;;
555577 c6x-*)
556 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
578 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
557579 ;;
558580 c90)
559581 basic_machine=c90-cray
642664 basic_machine=rs6000-bull
643665 os=-bosx
644666 ;;
645 dpx2* | dpx2*-bull)
667 dpx2*)
646668 basic_machine=m68k-bull
647669 os=-sysv3
648670 ;;
651673 os=$os"spe"
652674 ;;
653675 e500v[12]-*)
654 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
676 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
655677 os=$os"spe"
656678 ;;
657679 ebmon29k)
743765 hp9k8[0-9][0-9] | hp8[0-9][0-9])
744766 basic_machine=hppa1.0-hp
745767 ;;
746 hppa-next)
747 os=-nextstep3
748 ;;
749768 hppaosf)
750769 basic_machine=hppa1.1-hp
751770 os=-osf
758777 basic_machine=i370-ibm
759778 ;;
760779 i*86v32)
761 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
780 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
762781 os=-sysv32
763782 ;;
764783 i*86v4*)
765 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
784 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
766785 os=-sysv4
767786 ;;
768787 i*86v)
769 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
788 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
770789 os=-sysv
771790 ;;
772791 i*86sol2)
773 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
792 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
774793 os=-solaris2
775794 ;;
776795 i386mach)
777796 basic_machine=i386-mach
778797 os=-mach
779798 ;;
780 i386-vsta | vsta)
799 vsta)
781800 basic_machine=i386-unknown
782801 os=-vsta
783802 ;;
796815 os=-sysv
797816 ;;
798817 leon-*|leon[3-9]-*)
799 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
818 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
800819 ;;
801820 m68knommu)
802821 basic_machine=m68k-unknown
803822 os=-linux
804823 ;;
805824 m68knommu-*)
806 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
825 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
807826 os=-linux
808 ;;
809 m88k-omron*)
810 basic_machine=m88k-omron
811827 ;;
812828 magnum | m3230)
813829 basic_machine=mips-mips
840856 os=-mint
841857 ;;
842858 mips3*-*)
843 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
859 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
844860 ;;
845861 mips3*)
846 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
862 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
847863 ;;
848864 monitor)
849865 basic_machine=m68k-rom68k
862878 os=-msdos
863879 ;;
864880 ms1-*)
865 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
881 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
866882 ;;
867883 msys)
868884 basic_machine=i686-pc
904920 basic_machine=v70-nec
905921 os=-sysv
906922 ;;
907 next | m*-next )
923 next | m*-next)
908924 basic_machine=m68k-next
909925 case $os in
910926 -nextstep* )
949965 nsr-tandem)
950966 basic_machine=nsr-tandem
951967 ;;
968 nsv-tandem)
969 basic_machine=nsv-tandem
970 ;;
952971 nsx-tandem)
953972 basic_machine=nsx-tandem
954973 ;;
9841003 os=-linux
9851004 ;;
9861005 parisc-*)
987 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
1006 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
9881007 os=-linux
9891008 ;;
9901009 pbd)
10001019 basic_machine=i386-pc
10011020 ;;
10021021 pc98-*)
1003 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
1022 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10041023 ;;
10051024 pentium | p5 | k5 | k6 | nexgen | viac3)
10061025 basic_machine=i586-pc
10151034 basic_machine=i786-pc
10161035 ;;
10171036 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1018 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
1037 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10191038 ;;
10201039 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1021 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1040 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10221041 ;;
10231042 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1024 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
1043 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10251044 ;;
10261045 pentium4-*)
1027 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
1046 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10281047 ;;
10291048 pn)
10301049 basic_machine=pn-gould
10341053 ppc | ppcbe) basic_machine=powerpc-unknown
10351054 ;;
10361055 ppc-* | ppcbe-*)
1037 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1056 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10381057 ;;
10391058 ppcle | powerpclittle)
10401059 basic_machine=powerpcle-unknown
10411060 ;;
10421061 ppcle-* | powerpclittle-*)
1043 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
1062 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10441063 ;;
10451064 ppc64) basic_machine=powerpc64-unknown
10461065 ;;
1047 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1066 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10481067 ;;
10491068 ppc64le | powerpc64little)
10501069 basic_machine=powerpc64le-unknown
10511070 ;;
10521071 ppc64le-* | powerpc64little-*)
1053 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
1072 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
10541073 ;;
10551074 ps2)
10561075 basic_machine=i386-ibm
11041123 sequent)
11051124 basic_machine=i386-sequent
11061125 ;;
1107 sh)
1108 basic_machine=sh-hitachi
1109 os=-hms
1110 ;;
11111126 sh5el)
11121127 basic_machine=sh5le-unknown
11131128 ;;
1114 sh64)
1115 basic_machine=sh64-unknown
1116 ;;
1117 sparclite-wrs | simso-wrs)
1129 simso-wrs)
11181130 basic_machine=sparclite-wrs
11191131 os=-vxworks
11201132 ;;
11331145 os=-sysv4
11341146 ;;
11351147 strongarm-* | thumb-*)
1136 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1148 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
11371149 ;;
11381150 sun2)
11391151 basic_machine=m68000-sun
12471259 basic_machine=a29k-wrs
12481260 os=-vxworks
12491261 ;;
1250 wasm32)
1251 basic_machine=wasm32-unknown
1252 ;;
12531262 w65*)
12541263 basic_machine=w65-wdc
12551264 os=-none
12581267 basic_machine=hppa1.1-winbond
12591268 os=-proelf
12601269 ;;
1270 x64)
1271 basic_machine=x86_64-pc
1272 ;;
12611273 xbox)
12621274 basic_machine=i686-pc
12631275 os=-mingw32
12661278 basic_machine=xps100-honeywell
12671279 ;;
12681280 xscale-* | xscalee[bl]-*)
1269 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1281 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
12701282 ;;
12711283 ymp)
12721284 basic_machine=ymp-cray
12731285 os=-unicos
1274 ;;
1275 z8k-*-coff)
1276 basic_machine=z8k-unknown
1277 os=-sim
1278 ;;
1279 z80-*-coff)
1280 basic_machine=z80-unknown
1281 os=-sim
12821286 ;;
12831287 none)
12841288 basic_machine=none-none
13081312 vax)
13091313 basic_machine=vax-dec
13101314 ;;
1311 pdp10)
1312 # there are many clones, so DEC is not a safe bet
1313 basic_machine=pdp10-unknown
1314 ;;
13151315 pdp11)
13161316 basic_machine=pdp11-dec
13171317 ;;
13211321 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
13221322 basic_machine=sh-unknown
13231323 ;;
1324 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1325 basic_machine=sparc-sun
1326 ;;
13271324 cydra)
13281325 basic_machine=cydra-cydrome
13291326 ;;
13431340 # Make sure to match an already-canonicalized machine name.
13441341 ;;
13451342 *)
1346 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1343 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
13471344 exit 1
13481345 ;;
13491346 esac
13511348 # Here we canonicalize certain aliases for manufacturers.
13521349 case $basic_machine in
13531350 *-digital*)
1354 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1351 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
13551352 ;;
13561353 *-commodore*)
1357 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1354 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
13581355 ;;
13591356 *)
13601357 ;;
13621359
13631360 # Decode manufacturer-specific aliases for certain operating systems.
13641361
1365 if [ x"$os" != x"" ]
1362 if [ x$os != x ]
13661363 then
13671364 case $os in
1368 # First match some system type aliases
1369 # that might get confused with valid system types.
1365 # First match some system type aliases that might get confused
1366 # with valid system types.
13701367 # -solaris* is a basic system type, with this one exception.
13711368 -auroraux)
13721369 os=-auroraux
13771374 -solaris)
13781375 os=-solaris2
13791376 ;;
1380 -svr4*)
1381 os=-sysv4
1382 ;;
13831377 -unixware*)
13841378 os=-sysv4.2uw
13851379 ;;
13861380 -gnu/linux*)
13871381 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13881382 ;;
1389 # First accept the basic system types.
1383 # es1800 is here to avoid being matched by es* (a different OS)
1384 -es1800*)
1385 os=-ose
1386 ;;
1387 # Now accept the basic system types.
13901388 # The portable systems comes first.
1391 # Each alternative MUST END IN A *, to match a version number.
1389 # Each alternative MUST end in a * to match a version number.
13921390 # -sysv* is not here because it comes later, after sysvr4.
13931391 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13941392 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
13981396 | -aos* | -aros* | -cloudabi* | -sortix* \
13991397 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
14001398 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1401 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1399 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
14021400 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
14031401 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
14041402 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
14051403 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1406 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1404 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
14071405 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
14081406 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
14091407 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
14101408 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
14111409 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1412 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1410 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
14131411 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
14141412 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
14151413 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1416 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1414 | -morphos* | -superux* | -rtmk* | -windiss* \
14171415 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
14181416 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1419 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
1417 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1418 | -midnightbsd*)
14201419 # Remember, each alternative MUST END IN *, to match a version number.
14211420 ;;
14221421 -qnx*)
14331432 -nto*)
14341433 os=`echo $os | sed -e 's|nto|nto-qnx|'`
14351434 ;;
1436 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1437 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1435 -sim | -xray | -os68k* | -v88r* \
1436 | -windows* | -osx | -abug | -netware* | -os9* \
14381437 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
14391438 ;;
14401439 -mac*)
1441 os=`echo $os | sed -e 's|mac|macos|'`
1440 os=`echo "$os" | sed -e 's|mac|macos|'`
14421441 ;;
14431442 -linux-dietlibc)
14441443 os=-linux-dietlibc
14471446 os=`echo $os | sed -e 's|linux|linux-gnu|'`
14481447 ;;
14491448 -sunos5*)
1450 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1449 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
14511450 ;;
14521451 -sunos6*)
1453 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1452 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
14541453 ;;
14551454 -opened*)
14561455 os=-openedition
14611460 -wince*)
14621461 os=-wince
14631462 ;;
1464 -osfrose*)
1465 os=-osfrose
1466 ;;
1467 -osf*)
1468 os=-osf
1469 ;;
14701463 -utek*)
14711464 os=-bsd
14721465 ;;
14911484 -nova*)
14921485 os=-rtmk-nova
14931486 ;;
1494 -ns2 )
1487 -ns2)
14951488 os=-nextstep2
14961489 ;;
14971490 -nsk*)
15131506 -oss*)
15141507 os=-sysv3
15151508 ;;
1516 -svr4)
1509 -svr4*)
15171510 os=-sysv4
15181511 ;;
15191512 -svr3)
15281521 -ose*)
15291522 os=-ose
15301523