New upstream version 0.5.6
Guido Günther
8 years ago
0 | 2013-05-01 Daniel P. Berrange <berrange@redhat.com> | |
1 | ||
2 | Set PKG_CONFIG_LIBDIR variable for mingw builds | |
3 | To avoid pkg-config accidentally falling back to | |
4 | native versions, set the PKG_CONFIG_LIBDIR var | |
5 | explicitly | |
6 | ||
7 | Set a default value for AUTOBUILD_INSTALL_ROOT | |
8 | ||
9 | Set MANUFACTURER env variable when running wixl | |
10 | The MANUFACTURER env variable is mandatory since it is used | |
11 | in the data files. wixl will exit with parser error if it | |
12 | is not set | |
13 | ||
14 | Add missing include of config.h | |
15 | ||
16 | Remove tab from source file | |
17 | ||
18 | Refresh translations from transifex | |
19 | ||
20 | 2013-04-30 Marc-André Lureau <marcandre.lureau@gmail.com> | |
21 | ||
22 | file: add delete-this-file option | |
23 | In case the virt-viewer setting file is meant to temporary, you may use | |
24 | the delete-this-file=1 option to ask the client to remove it, once it | |
25 | has been read. This is useful for example in ovirt context, where | |
26 | connection settings file are generated and can't be reused. | |
27 | ||
28 | 2013-04-25 Christophe Fergeau <cfergeau@redhat.com> | |
29 | ||
30 | Exit virt-viewer when trying to close any window | |
31 | Currently, in multi-screen scenarios, when closing one remote-viewer | |
32 | window, the corresponding screen gets disabled in the guest OS. | |
33 | This can be confusing as this behaves very differently from | |
34 | File/Quit. This commit will exit the whole application when the user | |
35 | tries to close one of virt-viewer window. | |
36 | ||
37 | 2013-04-23 Hans de Goede <hdegoede@redhat.com> | |
38 | ||
39 | gtk-3: Rework window size handling | |
40 | With gtk-2 we have a special hack, where at first we make the | |
41 | virt-viewer-display request its actual size, and then once the window is | |
42 | mapped, we request a size of 50x50 to allow the user to resize the window | |
43 | to something smaller. | |
44 | ||
45 | With gtk-3 >= 3.8.1 this is broken, and the window gets resized to a | |
46 | smaller size as soon as we change the size request to 50x50. | |
47 | ||
48 | gtk-3 has a much better way of dealing with this in the form of widgets | |
49 | being able to specify both a minimal and a natural size. This patch changes | |
50 | virt-viewer to use this with gtk-3, instead of the gtk-2 hack. | |
51 | ||
52 | ovBox: Make get_preferred_width/height differentiate between min and natural | |
53 | gtk-3's widget size negotiation code differentiates between the minimum | |
54 | size and the natural size of a widget, fix ovBox to pass this along from | |
55 | its underlying widget to its parent. | |
56 | ||
57 | virt-viewer-window: cleanup zoom handling | |
58 | We've 3 similar zoom function zoom in / out / reset. in / out do not | |
59 | schedule a window resize when there is no display, where as reset does, | |
60 | which is not consistent. Also there is some duplicate code between them. | |
61 | ||
62 | virt-viewer-display: Use virt_viewer_display_queue_resize where possible | |
63 | ||
64 | 2013-04-23 Marc-André Lureau <marcandre.lureau@gmail.com> | |
65 | ||
66 | mingw spec: fix x64 msi location | |
67 | ||
68 | 2013-04-15 Marc-André Lureau <marcandre.lureau@gmail.com> | |
69 | ||
70 | Prepeare notes for release 0.5.6 | |
71 | ||
72 | msi: build correct 64-bit msi | |
73 | ||
74 | msi: fix icon location | |
75 | ||
76 | build-sys: generate MSI installer instead of NSIS | |
77 | ||
78 | build-sys: regenerate spec files when they change | |
79 | ||
80 | spice: forward secure-channels | |
81 | This needs spice-gtk >= 0.19.7 and will warn with lower version | |
82 | ||
83 | 2013-04-13 Christophe Fergeau <cfergeau@redhat.com> | |
84 | ||
85 | Remove redundant check, g_strdup(NULL) is allowed | |
86 | This also makes the code consistent with its surroundings. | |
87 | ||
88 | Fix memory leak on remote-viewer exit | |
89 | When exiting remote-viewer, VirtViewepApp::dispose() calls | |
90 | virt_viewer_app_set_connect_info() with NULL parameters to free all | |
91 | internal fields. However, _set_connect_info() calls | |
92 | virt_viewer_app_update_pretty_address() which will always allocate | |
93 | a new string even if the fields it's using to fill the string are NULL. | |
94 | This commit fixes the leak by checking if the fields have non-NULL | |
95 | values before creating the newly-allocated string. | |
96 | ||
97 | ==24180== 14 bytes in 1 blocks are definitely lost in loss record 540 of 8,671 | |
98 | ==24180== at 0x4A0887C: malloc (vg_replace_malloc.c:270) | |
99 | ==24180== by 0x32D2B0A187: __vasprintf_chk (vasprintf_chk.c:80) | |
100 | ==24180== by 0x32D52845AA: g_vasprintf (stdio2.h:210) | |
101 | ==24180== by 0x32D52640DC: g_strdup_vprintf (gstrfuncs.c:517) | |
102 | ==24180== by 0x32D526417B: g_strdup_printf (gstrfuncs.c:543) | |
103 | ==24180== by 0x4136E6: virt_viewer_app_update_pretty_address (virt-viewer-app.c:1681) | |
104 | ==24180== by 0x414100: virt_viewer_app_set_connect_info (virt-viewer-app.c:1902) | |
105 | ==24180== by 0x4141D0: virt_viewer_app_free_connect_info (virt-viewer-app.c:1910) | |
106 | ==24180== by 0x4127C6: virt_viewer_app_dispose (virt-viewer-app.c:1353) | |
107 | ==24180== by 0x425488: remote_viewer_dispose (remote-viewer.c:131) | |
108 | ==24180== by 0x32D5E14787: g_object_unref (gobject.c:2986) | |
109 | ==24180== by 0x4280AF: main (remote-viewer-main.c:323) | |
110 | ||
111 | 2013-04-12 Christophe Fergeau <cfergeau@redhat.com> | |
112 | ||
113 | build-sys: Simplify setting of optional CFLAGS/LDFLAGS | |
114 | They don't need to be wrapped inside if HAVE_XXX blocks in Makefile.am | |
115 | as when XXX is not available, XXX_CFLAGS and XXX_LIBS will expand to | |
116 | the empty string, and thus we can carry them unconditionally in | |
117 | our app_CFLAGS/app_LDFLAGS variables. | |
118 | ||
119 | Be more consistent in #if/#ifdef use | |
120 | Some of the code is checking for spice-gtk/oVirt availability | |
121 | by using #ifdef HAVE_XXX, and some of the code is using #if HAVE_XXX. | |
122 | As configure.ac only AC_DEFINE() HAVE_XXX when XXX could be found, | |
123 | let's use the #ifdef HAVE_XXX form everywhere | |
124 | ||
125 | Add oVirt support | |
126 | This commit adds support for ovirt:// URIs. It does so by using | |
127 | libgovirt to get the spice/vnc connection information through | |
128 | oVirt xmlrpc API. | |
129 | ||
130 | 2013-04-11 Marc-André Lureau <marcandre.lureau@gmail.com> | |
131 | ||
132 | build-sys: fix distcheck | |
133 | ||
134 | 2013-04-11 Hans de Goede <hdegoede@redhat.com> | |
135 | ||
136 | po: Remove extraenous backslash, breaking the build | |
137 | ||
138 | 2013-04-08 Daniel P. Berrange <berrange@redhat.com> | |
139 | ||
140 | Refresh translations from transifex | |
141 | ||
142 | 2013-04-05 Hans de Goede <hdegoede@redhat.com> | |
143 | ||
144 | virt-viewer-app: Always allow users to close displays from the displays menu | |
145 | Marking display menu items as non sensitive for shown displays make no sense, | |
146 | since the user can always close them through the window-manager. | |
147 | ||
148 | Having a window for a display shown when the display is not selectable nor | |
149 | ready, can happen when the agent goes away. This happens for example when using | |
150 | a dual monitor config with a Linux guest and then switching to a text console | |
151 | inside the guest. | |
152 | ||
153 | 2013-04-02 Christophe Fergeau <cfergeau@redhat.com> | |
154 | ||
155 | Use translations when looking up key combination to send | |
156 | virt_viewer_window_menu_send() compares the label of the menu item | |
157 | that was clicked on with a list of known labels to know which | |
158 | key combination should be sent to the guest. | |
159 | However, the menu label can be translated, but the table doing | |
160 | the label -> key combination mapping uses untranslated labels. | |
161 | This means the menu item will not send any key combination when | |
162 | clicked if translated. | |
163 | This can be observed with fr_FR where "Ctrl+Alt+_Del" is translated | |
164 | to "Ctrl+Alt+_Suppr". | |
165 | ||
166 | 2013-04-02 Marc-André Lureau <marcandre.lureau@gmail.com> | |
167 | ||
168 | win32: maximize when leaving fullscreen the first time | |
169 | On windows, the client window may end up with a non-visible toolbar, | |
170 | and overlapping the windows statusbar. To workaround this, let's | |
171 | maximize the client the first time leaving fullscreen. | |
172 | ||
173 | https://bugzilla.redhat.com/show_bug.cgi?id=916810 | |
174 | ||
175 | 2013-03-28 Marc-André Lureau <marcandre.lureau@redhat.com> | |
176 | ||
177 | Do not enable extra monitors until they are explicitely enabled | |
178 | ||
179 | Make display menu item sensitive again | |
180 | Even if the display has not been explicitely disabled, as long as | |
181 | the display is "selectable" | |
182 | ||
183 | Fix regression introduced with "Do not disable extra client monitors" | |
184 | 3b981d953f270662360e5b0c78183924276a18ed | |
185 | ||
186 | 2013-03-26 Marc-André Lureau <marcandre.lureau@gmail.com> | |
187 | ||
188 | Remove gtk_window_present() call | |
189 | gtk_window_present() may forcefully call gdk_window_show(), which will | |
190 | call ShowWindow(). Although gdk call is not supposed to move the | |
191 | window if it's already visible, it does restore the window position on | |
192 | Vista+. For example, a snapped window will be moved back to its | |
193 | previous position. | |
194 | ||
195 | Gtk+ ShowWindow() is currently using SW_SHOWNOACTIVATE, it should | |
196 | probably use SW_SHOWNA instead, but that didn't help anyway for a | |
197 | snapped window. | |
198 | ||
199 | Since virt_viewer_window_show() already ensure the window is visible, | |
200 | I am not sure why gtk_window_present() is there in the first place, so | |
201 | just remove it. | |
202 | ||
203 | https://bugzilla.redhat.com/show_bug.cgi?id=912713 | |
204 | ||
205 | Add gtk_widget_get_realized() define for old gtk+ | |
206 | Fix build with gtk < 2.20 | |
207 | ||
208 | window: keep display size when leaving fullscreen for first time | |
209 | If the application was started in fullscreen, window geometry has not | |
210 | been saved, since the window was not realized. We can unfullscreen and | |
211 | restore 1:1 window to match guest display size with | |
212 | virt_viewer_display_queue_resize() | |
213 | ||
214 | https://bugzilla.redhat.com/show_bug.cgi?id=916810 | |
215 | ||
216 | window: save window geometry if the window is realized | |
217 | Protect against re-entering fullscreen by moving pre-condition, | |
218 | keey the last know window geometry, since it stays valid. | |
219 | ||
220 | window: resize to monitor geometry | |
221 | This code is potentially bad, we should set size request to the size of the monitor | |
222 | ||
223 | 2013-03-25 Marc-André Lureau <marcandre.lureau@gmail.com> | |
224 | ||
225 | display: make a function to queue the dirty display allocation trick | |
226 | ||
227 | app: add get_fullscreen_auto_conf() | |
228 | ||
229 | 2013-03-25 Christophe Fergeau <cfergeau@redhat.com> | |
230 | ||
231 | Reuse existing 'displays' submenu rather than recreating it | |
232 | Because of what apparently is a gtk+2 bug , we | |
233 | cannot recreate the submenu every time we need to refresh it, | |
234 | otherwise the application may get frozen with the keyboard and | |
235 | mouse grabbed if gtk_menu_item_set_submenu is called while | |
236 | the menu is displayed. Reusing the same menu every time | |
237 | works around this issue. | |
238 | ||
239 | https://bugzilla.redhat.com/show_bug.cgi?id=922712 | |
240 | ||
241 | 2013-03-22 Marc-André Lureau <marcandre.lureau@gmail.com> | |
242 | ||
243 | Do not disable extra client monitors | |
244 | This allows reconfiguration of extra monitors whenever the agent is | |
245 | back, for example after reboot. | |
246 | ||
247 | https://bugzilla.redhat.com/show_bug.cgi?id=918997 | |
248 | ||
249 | spice: always send auto-conf on agent connection | |
250 | Restore the auto-conf client monitor configuration whenever the agent | |
251 | is started. This ensures the guest has the expected number of monitors | |
252 | enabled when rebooting in fullscreen. | |
253 | ||
254 | https://bugzilla.redhat.com/show_bug.cgi?id=918997 | |
255 | ||
256 | 2013-03-22 Hans de Goede <hdegoede@redhat.com> | |
257 | ||
258 | virt-viewer-display-spice: Skip monitor info in fullscreen-auto-conf mode | |
259 | When we are in fullscreen-auto-conf virt-viewer-session-spice sends a | |
260 | monitor-info message to the agent with the exact client monitor info, and | |
261 | virt-viewer-display-spice should not override that. | |
262 | ||
263 | Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com> | |
264 | ||
265 | 2013-03-22 Marc-André Lureau <marcandre.lureau@gmail.com> | |
266 | ||
267 | Forward directly key events to display | |
268 | Even if the display is disabled, we should keep sending key events to | |
269 | guest. It can wake up from sleep for instance. | |
270 | ||
271 | There is a single widget per window, so we can directly send key | |
272 | events there. If the menu is active, it has the grab, so the window | |
273 | doesn't receive those key events. | |
274 | ||
275 | https://bugzilla.redhat.com/show_bug.cgi?id=870710 | |
276 | ||
277 | 2013-03-21 Hans de Goede <hdegoede@redhat.com> | |
278 | ||
279 | virt-viewer-app: Call virt_viewer_app_update_menu_displays on show_hint change | |
280 | Since the sensitivity of the display menu-check-items depends on show_hint, | |
281 | we need to call virt_viewer_app_update_menu_displays on show_hint change. | |
282 | ||
283 | This fixes the following scenario: | |
284 | 1) Linux guest with upto 4 displays on a single qxl dev | |
285 | 2) Configure it for 2 displays | |
286 | 3) Switch to a text-console in the guest (ie send ctrl+alt+F3) | |
287 | 4) All displays except for disp 1 are now not sensitve in the menu | |
288 | 5) Switch back to X | |
289 | 6) The second display in the view->displays menu is still not sensitive | |
290 | ||
291 | virt-viewer-display: Document difference between nth display and monitor | |
292 | ||
293 | virt-viewer-window: Don't use priv->display when it is NULL | |
294 | Add some missing checks for not having a display. Note that where | |
295 | functions should not be called (ie menu items should be disabled) I've | |
296 | used g_return_if_fail. | |
297 | ||
298 | virt-viewer-window: Store the monitor locally | |
299 | With commit 81ed9d13 "virt_viewer_window_enter_fullscreen: Pass in monitor for | |
300 | fullscreen window" we need a monitor number to determine where to move | |
301 | the window when going fullscreen. | |
302 | ||
303 | Since the VirtViewerDisplay needs to know the fullscreen monitor number too, | |
304 | to determine the fullscreen size it was being stored there. But we don't | |
305 | always have a display, leading to errors like: | |
306 | ||
307 | (remote-viewer:7996): remote-viewer-CRITICAL **: | |
308 | virt_viewer_display_get_monitor: assertion `VIRT_VIEWER_IS_DISPLAY(self)' | |
309 | failed | |
310 | ||
311 | And to the monitor number not always being stored. This patchset fixes this | |
312 | by storing the monitor number inside VirtViewerWindow, and passing it to | |
313 | VirtViewerDisplay only when we've a display. | |
314 | ||
315 | 2013-03-20 Christophe Fergeau <cfergeau@redhat.com> | |
316 | ||
317 | Fix compilation with older glib versions | |
318 | Recent commits introduced use of g_clear_object and | |
319 | g_byte_array_new_take which are only present respectively in glib | |
320 | 2.28 and 2.32 | |
321 | ||
322 | Fix compilation with older gtk+ | |
323 | gtk_widget_get_mapped is only available in gtk+ 2.20, so we need | |
324 | a compat definition for older releases. | |
325 | ||
326 | 2013-03-20 Hans de Goede <hdegoede@redhat.com> | |
327 | ||
328 | virt-viewer-display-spice: Use display monitor property for fullscreen size | |
329 | When a display is pinned to a certain monitor for fullscreen, it will be moved | |
330 | there when going fullscreen. Currently we use gdk_screen_get_monitor_at_window | |
331 | to determine which monitor we are on and get the size from that monitor. | |
332 | ||
333 | But this is racy, sometimes the size_allocate function runs before the move | |
334 | has finished and we get the size from the wrong monitor: | |
335 | https://bugzilla.redhat.com/show_bug.cgi?id=918570 | |
336 | ||
337 | Since if the display is pinned to a certain monitor, the display will always | |
338 | end up on that monitor we can avoid the race by simply using that monitors | |
339 | size. | |
340 | ||
341 | virt_viewer_window_enter_fullscreen: Pass in monitor for fullscreen window | |
342 | Rather then passing in a move boolean + coordinates to move the window | |
343 | to for fullscreen mode, simply pass in the monitor, so that the underlying | |
344 | objects can also use the monitors size to determine the display size. | |
345 | ||
346 | Note: pass in -1 to use the monitor the window is currently on. | |
347 | ||
348 | virt-viewer-display: Add monitor property | |
349 | ||
350 | 2013-03-13 Marc-André Lureau <marcandre.lureau@gmail.com> | |
351 | ||
352 | spice: update fullscreen state on display creation | |
353 | This ensure self->priv->auto_resize has correct value. | |
354 | And allow changing guest resolution when started in fullscreen. | |
355 | ||
356 | https://bugzilla.redhat.com/show_bug.cgi?id=873298 | |
357 | ||
358 | Don't override G_LOG_DOMAIN=all | |
359 | If the string is different, the GLib log handler will not log all | |
360 | messages. | |
361 | ||
362 | 2013-03-13 Daniel P. Berrange <berrange@redhat.com> | |
363 | ||
364 | Delete browser plugin entirely | |
365 | The browser plugin code has been effectively unmaintained since | |
366 | the day it was merged. There has always been a caveat that the | |
367 | code has not been properly audited to ensure it is secure, and | |
368 | being unmaintained doesn't give a warm secure feeling. These | |
369 | days there are better solutions for the browser which are pure | |
370 | HTML5 code, noVNC and SPICE-HTML5. | |
371 | ||
372 | 2013-03-08 Marc-André Lureau <marcandre.lureau@gmail.com> | |
373 | ||
374 | file: add version field, raise an error if incompatibily | |
375 | The virt-viewer connection file can now have a version=0.5 field. If | |
376 | the virt-viewer version opening the connection doesn't provide at | |
377 | least that version, an error is raised with the version required. | |
378 | ||
379 | Allow app_initial_connect() to raise an error | |
380 | ||
381 | Add virt_viewer_compare_version() | |
382 | ||
383 | Add VIRT_VIEWER_ERROR GError | |
384 | ||
385 | 2013-02-21 Hans de Goede <hdegoede@redhat.com> | |
386 | ||
387 | Fix send-key menu not showing in fullscreen with gtk3 (rhbz#913601) | |
388 | This should also fix the send-key menu showing in the wrong position with a | |
389 | gtk2 build, when the tooltray icon is clicked on the 2nd or higher monitor. | |
390 | ||
0 | 391 | 2013-02-13 Daniel P. Berrange <berrange@redhat.com> |
392 | ||
393 | Post release version bump | |
1 | 394 | |
2 | 395 | Update for 0.5.5 release |
3 | 396 |
1 | 1 | |
2 | 2 | ACLOCAL_AMFLAGS = -I m4 |
3 | 3 | |
4 | SUBDIRS = icons src man plugin po data | |
4 | SUBDIRS = icons src man po data | |
5 | 5 | |
6 | 6 | EXTRA_DIST = \ |
7 | 7 | $(PACKAGE).spec \ |
76 | 76 | make -C $(builddir)/data virt-viewer-$(VERSION).exe |
77 | 77 | endif |
78 | 78 | |
79 | ||
80 | # this make sure those files are regenerated when they change | |
81 | # (in maintainer-mode) | |
82 | all-local: virt-viewer.spec mingw-virt-viewer.spec | |
83 | ||
79 | 84 | -include $(top_srcdir)/git.mk |
0 | # Makefile.in generated by automake 1.12.2 from Makefile.am. | |
0 | # Makefile.in generated by automake 1.13.1 from Makefile.am. | |
1 | 1 | # @configure_input@ |
2 | 2 | |
3 | 3 | # Copyright (C) 1994-2012 Free Software Foundation, Inc. |
49 | 49 | build_triplet = @build@ |
50 | 50 | host_triplet = @host@ |
51 | 51 | subdir = . |
52 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
53 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
54 | $(srcdir)/mingw-virt-viewer.spec.in \ | |
55 | $(srcdir)/virt-viewer.spec.in $(top_srcdir)/build-aux/compile \ | |
52 | DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ | |
53 | $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | |
54 | $(top_srcdir)/configure $(am__configure_deps) \ | |
55 | $(srcdir)/config.h.in $(srcdir)/mingw-virt-viewer.spec.in \ | |
56 | $(srcdir)/virt-viewer.spec.in COPYING build-aux/compile \ | |
57 | build-aux/config.guess build-aux/config.sub \ | |
58 | build-aux/install-sh build-aux/missing build-aux/ltmain.sh \ | |
59 | $(top_srcdir)/build-aux/compile \ | |
56 | 60 | $(top_srcdir)/build-aux/config.guess \ |
57 | 61 | $(top_srcdir)/build-aux/config.sub \ |
58 | 62 | $(top_srcdir)/build-aux/install-sh \ |
59 | 63 | $(top_srcdir)/build-aux/ltmain.sh \ |
60 | $(top_srcdir)/build-aux/missing $(top_srcdir)/configure \ | |
61 | AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \ | |
62 | build-aux/config.guess build-aux/config.sub \ | |
63 | build-aux/install-sh build-aux/ltmain.sh build-aux/missing | |
64 | $(top_srcdir)/build-aux/missing | |
64 | 65 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
65 | 66 | am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ |
66 | 67 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ |
89 | 90 | am__v_at_1 = |
90 | 91 | SOURCES = |
91 | 92 | DIST_SOURCES = |
92 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | |
93 | html-recursive info-recursive install-data-recursive \ | |
94 | install-dvi-recursive install-exec-recursive \ | |
95 | install-html-recursive install-info-recursive \ | |
96 | install-pdf-recursive install-ps-recursive install-recursive \ | |
97 | installcheck-recursive installdirs-recursive pdf-recursive \ | |
98 | ps-recursive uninstall-recursive | |
93 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | |
94 | ctags-recursive dvi-recursive html-recursive info-recursive \ | |
95 | install-data-recursive install-dvi-recursive \ | |
96 | install-exec-recursive install-html-recursive \ | |
97 | install-info-recursive install-pdf-recursive \ | |
98 | install-ps-recursive install-recursive installcheck-recursive \ | |
99 | installdirs-recursive pdf-recursive ps-recursive \ | |
100 | tags-recursive uninstall-recursive | |
99 | 101 | am__can_run_installinfo = \ |
100 | 102 | case $$AM_UPDATE_INFO_DIR in \ |
101 | 103 | n|no|NO) false;; \ |
103 | 105 | esac |
104 | 106 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
105 | 107 | distclean-recursive maintainer-clean-recursive |
106 | AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ | |
107 | $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ | |
108 | am__recursive_targets = \ | |
109 | $(RECURSIVE_TARGETS) \ | |
110 | $(RECURSIVE_CLEAN_TARGETS) \ | |
111 | $(am__extra_recursive_targets) | |
112 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | |
108 | 113 | cscope distdir dist dist-all distcheck |
114 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ | |
115 | $(LISP)config.h.in | |
116 | # Read a list of newline-separated strings from the standard input, | |
117 | # and print each of them once, without duplicates. Input order is | |
118 | # *not* preserved. | |
119 | am__uniquify_input = $(AWK) '\ | |
120 | BEGIN { nonempty = 0; } \ | |
121 | { items[$$0] = 1; nonempty = 1; } \ | |
122 | END { if (nonempty) { for (i in items) print i; }; } \ | |
123 | ' | |
124 | # Make sure the list of sources is unique. This is necessary because, | |
125 | # e.g., the same source file might be shared among _SOURCES variables | |
126 | # for different programs/libraries. | |
127 | am__define_uniq_tagged_files = \ | |
128 | list='$(am__tagged_files)'; \ | |
129 | unique=`for i in $$list; do \ | |
130 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
131 | done | $(am__uniquify_input)` | |
109 | 132 | ETAGS = etags |
110 | 133 | CTAGS = ctags |
111 | 134 | CSCOPE = cscope |
181 | 204 | EGREP = @EGREP@ |
182 | 205 | EXEEXT = @EXEEXT@ |
183 | 206 | FGREP = @FGREP@ |
184 | FIREFOX_PLUGIN_CFLAGS = @FIREFOX_PLUGIN_CFLAGS@ | |
185 | FIREFOX_PLUGIN_LIBS = @FIREFOX_PLUGIN_LIBS@ | |
186 | 207 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
187 | 208 | GLIB2_CFLAGS = @GLIB2_CFLAGS@ |
188 | 209 | GLIB2_LIBS = @GLIB2_LIBS@ |
229 | 250 | MANIFEST_TOOL = @MANIFEST_TOOL@ |
230 | 251 | MKDIR_P = @MKDIR_P@ |
231 | 252 | MKINSTALLDIRS = @MKINSTALLDIRS@ |
232 | MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@ | |
233 | MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@ | |
234 | 253 | MSGFMT = @MSGFMT@ |
235 | 254 | MSGFMT_OPTS = @MSGFMT_OPTS@ |
236 | 255 | MSGMERGE = @MSGMERGE@ |
237 | 256 | NM = @NM@ |
238 | 257 | NMEDIT = @NMEDIT@ |
239 | NSPR_CFLAGS = @NSPR_CFLAGS@ | |
240 | NSPR_LIBS = @NSPR_LIBS@ | |
241 | 258 | OBJDUMP = @OBJDUMP@ |
242 | 259 | OBJEXT = @OBJEXT@ |
243 | 260 | OTOOL = @OTOOL@ |
244 | 261 | OTOOL64 = @OTOOL64@ |
262 | OVIRT_CFLAGS = @OVIRT_CFLAGS@ | |
263 | OVIRT_LIBS = @OVIRT_LIBS@ | |
245 | 264 | PACKAGE = @PACKAGE@ |
246 | 265 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
247 | 266 | PACKAGE_NAME = @PACKAGE_NAME@ |
272 | 291 | VERSION = @VERSION@ |
273 | 292 | WARN_CFLAGS = @WARN_CFLAGS@ |
274 | 293 | WINDRES = @WINDRES@ |
294 | WIXL_ARCH = @WIXL_ARCH@ | |
275 | 295 | XGETTEXT = @XGETTEXT@ |
276 | 296 | abs_builddir = @abs_builddir@ |
277 | 297 | abs_srcdir = @abs_srcdir@ |
329 | 349 | top_srcdir = @top_srcdir@ |
330 | 350 | NULL = |
331 | 351 | ACLOCAL_AMFLAGS = -I m4 |
332 | SUBDIRS = icons src man plugin po data | |
352 | SUBDIRS = icons src man po data | |
333 | 353 | EXTRA_DIST = \ |
334 | 354 | $(PACKAGE).spec \ |
335 | 355 | intltool-extract.in \ |
444 | 464 | # (1) if the variable is set in 'config.status', edit 'config.status' |
445 | 465 | # (which will cause the Makefiles to be regenerated when you run 'make'); |
446 | 466 | # (2) otherwise, pass the desired values on the 'make' command line. |
447 | $(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS): | |
467 | $(am__recursive_targets): | |
448 | 468 | @fail= failcom='exit 1'; \ |
449 | 469 | for f in x $$MAKEFLAGS; do \ |
450 | 470 | case $$f in \ |
472 | 492 | if test "$$dot_seen" = "no"; then \ |
473 | 493 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
474 | 494 | fi; test -z "$$fail" |
475 | tags-recursive: | |
476 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
477 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | |
478 | done | |
479 | ctags-recursive: | |
480 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
481 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | |
482 | done | |
483 | cscopelist-recursive: | |
484 | list='$(SUBDIRS)'; for subdir in $$list; do \ | |
485 | test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \ | |
486 | done | |
487 | ||
488 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
489 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
490 | unique=`for i in $$list; do \ | |
491 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
492 | done | \ | |
493 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
494 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
495 | mkid -fID $$unique | |
496 | tags: TAGS | |
497 | ||
498 | TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
499 | $(TAGS_FILES) $(LISP) | |
495 | ||
496 | ID: $(am__tagged_files) | |
497 | $(am__define_uniq_tagged_files); mkid -fID $$unique | |
498 | tags: tags-recursive | |
499 | TAGS: tags | |
500 | ||
501 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
500 | 502 | set x; \ |
501 | 503 | here=`pwd`; \ |
502 | 504 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
512 | 514 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ |
513 | 515 | fi; \ |
514 | 516 | done; \ |
515 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
516 | unique=`for i in $$list; do \ | |
517 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
518 | done | \ | |
519 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
520 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
517 | $(am__define_uniq_tagged_files); \ | |
521 | 518 | shift; \ |
522 | 519 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ |
523 | 520 | test -n "$$unique" || unique=$$empty_fix; \ |
529 | 526 | $$unique; \ |
530 | 527 | fi; \ |
531 | 528 | fi |
532 | ctags: CTAGS | |
533 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
534 | $(TAGS_FILES) $(LISP) | |
535 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
536 | unique=`for i in $$list; do \ | |
537 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
538 | done | \ | |
539 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
540 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
529 | ctags: ctags-recursive | |
530 | ||
531 | CTAGS: ctags | |
532 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | |
533 | $(am__define_uniq_tagged_files); \ | |
541 | 534 | test -z "$(CTAGS_ARGS)$$unique" \ |
542 | 535 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
543 | 536 | $$unique |
546 | 539 | here=`$(am__cd) $(top_builddir) && pwd` \ |
547 | 540 | && $(am__cd) $(top_srcdir) \ |
548 | 541 | && gtags -i $(GTAGS_ARGS) "$$here" |
549 | ||
550 | 542 | cscope: cscope.files |
551 | 543 | test ! -s cscope.files \ |
552 | 544 | || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) |
553 | ||
554 | 545 | clean-cscope: |
555 | 546 | -rm -f cscope.files |
556 | ||
557 | cscope.files: clean-cscope cscopelist-recursive cscopelist | |
558 | ||
559 | cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP) | |
560 | list='$(SOURCES) $(HEADERS) $(LISP)'; \ | |
547 | cscope.files: clean-cscope cscopelist | |
548 | cscopelist: cscopelist-recursive | |
549 | ||
550 | cscopelist-am: $(am__tagged_files) | |
551 | list='$(am__tagged_files)'; \ | |
561 | 552 | case "$(srcdir)" in \ |
562 | 553 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ |
563 | 554 | *) sdir=$(subdir)/$(srcdir) ;; \ |
694 | 685 | *.zip*) \ |
695 | 686 | unzip $(distdir).zip ;;\ |
696 | 687 | esac |
697 | chmod -R a-w $(distdir); chmod u+w $(distdir) | |
698 | mkdir $(distdir)/_build | |
699 | mkdir $(distdir)/_inst | |
688 | chmod -R a-w $(distdir) | |
689 | chmod u+w $(distdir) | |
690 | mkdir $(distdir)/_build $(distdir)/_inst | |
700 | 691 | chmod a-w $(distdir) |
701 | 692 | test -d $(distdir)/_build || exit 0; \ |
702 | 693 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
760 | 751 | exit 1; } >&2 |
761 | 752 | check-am: all-am |
762 | 753 | check: check-recursive |
763 | all-am: Makefile config.h | |
754 | all-am: Makefile config.h all-local | |
764 | 755 | installdirs: installdirs-recursive |
765 | 756 | installdirs-am: |
766 | 757 | install: install-recursive |
864 | 855 | |
865 | 856 | uninstall-am: |
866 | 857 | |
867 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ | |
868 | cscopelist-recursive ctags-recursive install-am install-strip \ | |
869 | tags-recursive | |
870 | ||
871 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | |
872 | all all-am am--refresh check check-am clean clean-cscope \ | |
873 | clean-generic clean-libtool cscope cscopelist \ | |
874 | cscopelist-recursive ctags ctags-recursive dist dist-all \ | |
875 | dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar dist-tarZ \ | |
876 | dist-xz dist-zip distcheck distclean distclean-generic \ | |
877 | distclean-hdr distclean-libtool distclean-tags distcleancheck \ | |
878 | distdir distuninstallcheck dvi dvi-am html html-am info \ | |
879 | info-am install install-am install-data install-data-am \ | |
880 | install-dvi install-dvi-am install-exec install-exec-am \ | |
881 | install-html install-html-am install-info install-info-am \ | |
882 | install-man install-pdf install-pdf-am install-ps \ | |
883 | install-ps-am install-strip installcheck installcheck-am \ | |
884 | installdirs installdirs-am maintainer-clean \ | |
885 | maintainer-clean-generic mostlyclean mostlyclean-generic \ | |
886 | mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ | |
887 | uninstall uninstall-am | |
858 | .MAKE: $(am__recursive_targets) all install-am install-strip | |
859 | ||
860 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \ | |
861 | am--refresh check check-am clean clean-cscope clean-generic \ | |
862 | clean-libtool cscope cscopelist-am ctags ctags-am dist \ | |
863 | dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ | |
864 | dist-tarZ dist-xz dist-zip distcheck distclean \ | |
865 | distclean-generic distclean-hdr distclean-libtool \ | |
866 | distclean-tags distcleancheck distdir distuninstallcheck dvi \ | |
867 | dvi-am html html-am info info-am install install-am \ | |
868 | install-data install-data-am install-dvi install-dvi-am \ | |
869 | install-exec install-exec-am install-html install-html-am \ | |
870 | install-info install-info-am install-man install-pdf \ | |
871 | install-pdf-am install-ps install-ps-am install-strip \ | |
872 | installcheck installcheck-am installdirs installdirs-am \ | |
873 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
874 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | |
875 | tags tags-am uninstall uninstall-am | |
888 | 876 | |
889 | 877 | |
890 | 878 | dist-hook: gen-ChangeLog gen-AUTHORS |
914 | 902 | @OS_WIN32_TRUE@nsis: |
915 | 903 | @OS_WIN32_TRUE@ make -C $(builddir)/data virt-viewer-$(VERSION).exe |
916 | 904 | |
905 | # this make sure those files are regenerated when they change | |
906 | # (in maintainer-mode) | |
907 | all-local: virt-viewer.spec mingw-virt-viewer.spec | |
908 | ||
917 | 909 | -include $(top_srcdir)/git.mk |
918 | 910 | |
919 | 911 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
0 | 0 | Virt Viewer News |
1 | 1 | ================ |
2 | ||
3 | 0.5.6: Apr 12, 2013 | |
4 | ------------------- | |
5 | ||
6 | - Add ovirt:// support to remote-viewer (needs libgovirt) | |
7 | - Many fullscreen and multi-monitor fixes | |
8 | - Add a minimum version check in connection file | |
9 | - Fix sending key combinations from "Send Key" menu when the key names are | |
10 | localized | |
11 | - Fix build with older glib and gtk+ | |
12 | - Fix MSI x64 build | |
13 | - Clean-ups (remove browser plugin entirely) | |
2 | 14 | |
3 | 15 | 0.5.5: Feb 13, 2013 |
4 | 16 | ------------------- |
0 | # generated automatically by aclocal 1.12.2 -*- Autoconf -*- | |
0 | # generated automatically by aclocal 1.13.1 -*- Autoconf -*- | |
1 | 1 | |
2 | 2 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. |
3 | 3 | |
10 | 10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | 11 | # PARTICULAR PURPOSE. |
12 | 12 | |
13 | m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) | |
13 | 14 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 15 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 | 16 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, |
456 | 457 | |
457 | 458 | |
458 | 459 | # nls.m4 serial 5 (gettext-0.18) |
459 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, | |
460 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation, | |
460 | 461 | dnl Inc. |
461 | 462 | dnl This file is free software; the Free Software Foundation |
462 | 463 | dnl gives unlimited permission to copy and/or distribute it, |
688 | 689 | m4_popdef([pkg_description]) |
689 | 690 | ]) dnl PKG_NOARCH_INSTALLDIR |
690 | 691 | |
691 | # Copyright (C) 2002-2012 Free Software Foundation, Inc. | |
692 | # Copyright (C) 2002-2013 Free Software Foundation, Inc. | |
692 | 693 | # |
693 | 694 | # This file is free software; the Free Software Foundation |
694 | 695 | # gives unlimited permission to copy and/or distribute it, |
695 | 696 | # with or without modifications, as long as this notice is preserved. |
696 | ||
697 | # serial 8 | |
698 | 697 | |
699 | 698 | # AM_AUTOMAKE_VERSION(VERSION) |
700 | 699 | # ---------------------------- |
702 | 701 | # generated from the m4 files accompanying Automake X.Y. |
703 | 702 | # (This private macro should not be called outside this file.) |
704 | 703 | AC_DEFUN([AM_AUTOMAKE_VERSION], |
705 | [am__api_version='1.12' | |
704 | [am__api_version='1.13' | |
706 | 705 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
707 | 706 | dnl require some minimum version. Point them to the right macro. |
708 | m4_if([$1], [1.12.2], [], | |
707 | m4_if([$1], [1.13.1], [], | |
709 | 708 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
710 | 709 | ]) |
711 | 710 | |
721 | 720 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
722 | 721 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
723 | 722 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
724 | [AM_AUTOMAKE_VERSION([1.12.2])dnl | |
723 | [AM_AUTOMAKE_VERSION([1.13.1])dnl | |
725 | 724 | m4_ifndef([AC_AUTOCONF_VERSION], |
726 | 725 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
727 | 726 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
728 | 727 | |
729 | 728 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- |
730 | 729 | |
731 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
730 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
732 | 731 | # |
733 | 732 | # This file is free software; the Free Software Foundation |
734 | 733 | # gives unlimited permission to copy and/or distribute it, |
735 | 734 | # with or without modifications, as long as this notice is preserved. |
736 | ||
737 | # serial 2 | |
738 | 735 | |
739 | 736 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
740 | 737 | # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to |
783 | 780 | |
784 | 781 | # AM_CONDITIONAL -*- Autoconf -*- |
785 | 782 | |
786 | # Copyright (C) 1997-2012 Free Software Foundation, Inc. | |
783 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
787 | 784 | # |
788 | 785 | # This file is free software; the Free Software Foundation |
789 | 786 | # gives unlimited permission to copy and/or distribute it, |
790 | 787 | # with or without modifications, as long as this notice is preserved. |
791 | ||
792 | # serial 10 | |
793 | 788 | |
794 | 789 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) |
795 | 790 | # ------------------------------------- |
816 | 811 | Usually this means the macro was only invoked conditionally.]]) |
817 | 812 | fi])]) |
818 | 813 | |
819 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
814 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
820 | 815 | # |
821 | 816 | # This file is free software; the Free Software Foundation |
822 | 817 | # gives unlimited permission to copy and/or distribute it, |
823 | 818 | # with or without modifications, as long as this notice is preserved. |
824 | 819 | |
825 | # serial 17 | |
826 | 820 | |
827 | 821 | # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be |
828 | 822 | # written in clear, in which case automake, when reading aclocal.m4, |
1008 | 1002 | |
1009 | 1003 | # Generate code to set up dependency tracking. -*- Autoconf -*- |
1010 | 1004 | |
1011 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
1005 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
1012 | 1006 | # |
1013 | 1007 | # This file is free software; the Free Software Foundation |
1014 | 1008 | # gives unlimited permission to copy and/or distribute it, |
1015 | 1009 | # with or without modifications, as long as this notice is preserved. |
1016 | 1010 | |
1017 | # serial 6 | |
1018 | 1011 | |
1019 | 1012 | # _AM_OUTPUT_DEPENDENCY_COMMANDS |
1020 | 1013 | # ------------------------------ |
1021 | 1014 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
1022 | 1015 | [{ |
1023 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
1016 | # Older Autoconf quotes --file arguments for eval, but not when files | |
1024 | 1017 | # are listed without --file. Let's play safe and only enable the eval |
1025 | 1018 | # if we detect the quoting. |
1026 | 1019 | case $CONFIG_FILES in |
1085 | 1078 | |
1086 | 1079 | # Do all the work for Automake. -*- Autoconf -*- |
1087 | 1080 | |
1088 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
1081 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
1089 | 1082 | # |
1090 | 1083 | # This file is free software; the Free Software Foundation |
1091 | 1084 | # gives unlimited permission to copy and/or distribute it, |
1092 | 1085 | # with or without modifications, as long as this notice is preserved. |
1093 | ||
1094 | # serial 19 | |
1095 | 1086 | |
1096 | 1087 | # This macro actually does too much. Some checks are only needed if |
1097 | 1088 | # your package does certain things. But this isn't really a big deal. |
1108 | 1099 | # arguments mandatory, and then we can depend on a new Autoconf |
1109 | 1100 | # release and drop the old call support. |
1110 | 1101 | AC_DEFUN([AM_INIT_AUTOMAKE], |
1111 | [AC_PREREQ([2.62])dnl | |
1102 | [AC_PREREQ([2.65])dnl | |
1112 | 1103 | dnl Autoconf wants to disallow AM_ names. We explicitly allow |
1113 | 1104 | dnl the ones we care about. |
1114 | 1105 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
1138 | 1129 | dnl Distinguish between old-style and new-style calls. |
1139 | 1130 | m4_ifval([$2], |
1140 | 1131 | [AC_DIAGNOSE([obsolete], |
1141 | [$0: two- and three-arguments forms are deprecated. For more info, see: | |
1142 | http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation]) | |
1132 | [$0: two- and three-arguments forms are deprecated.]) | |
1143 | 1133 | m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
1144 | 1134 | AC_SUBST([PACKAGE], [$1])dnl |
1145 | 1135 | AC_SUBST([VERSION], [$2])], |
1193 | 1183 | [_AM_DEPENDENCIES([OBJC])], |
1194 | 1184 | [m4_define([AC_PROG_OBJC], |
1195 | 1185 | m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl |
1196 | dnl Support for Objective C++ was only introduced in Autoconf 2.65, | |
1197 | dnl but we still cater to Autoconf 2.62. | |
1198 | m4_ifdef([AC_PROG_OBJCXX], | |
1199 | [AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
1186 | AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], | |
1200 | 1187 | [_AM_DEPENDENCIES([OBJCXX])], |
1201 | 1188 | [m4_define([AC_PROG_OBJCXX], |
1202 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl | |
1189 | m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl | |
1203 | 1190 | ]) |
1204 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
1205 | dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the | |
1206 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
1207 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
1191 | AC_REQUIRE([AM_SILENT_RULES])dnl | |
1192 | dnl The testsuite driver may need to know about EXEEXT, so add the | |
1193 | dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This | |
1194 | dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
1208 | 1195 | AC_CONFIG_COMMANDS_PRE(dnl |
1209 | 1196 | [m4_provide_if([_AM_COMPILER_EXEEXT], |
1210 | 1197 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
1238 | 1225 | done |
1239 | 1226 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
1240 | 1227 | |
1241 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1228 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1242 | 1229 | # |
1243 | 1230 | # This file is free software; the Free Software Foundation |
1244 | 1231 | # gives unlimited permission to copy and/or distribute it, |
1245 | 1232 | # with or without modifications, as long as this notice is preserved. |
1246 | ||
1247 | # serial 8 | |
1248 | 1233 | |
1249 | 1234 | # AM_PROG_INSTALL_SH |
1250 | 1235 | # ------------------ |
1261 | 1246 | fi |
1262 | 1247 | AC_SUBST([install_sh])]) |
1263 | 1248 | |
1264 | # Copyright (C) 2003-2012 Free Software Foundation, Inc. | |
1249 | # Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
1265 | 1250 | # |
1266 | 1251 | # This file is free software; the Free Software Foundation |
1267 | 1252 | # gives unlimited permission to copy and/or distribute it, |
1268 | 1253 | # with or without modifications, as long as this notice is preserved. |
1269 | ||
1270 | # serial 2 | |
1271 | 1254 | |
1272 | 1255 | # Check whether the underlying file-system supports filenames |
1273 | 1256 | # with a leading dot. For instance MS-DOS doesn't. |
1284 | 1267 | |
1285 | 1268 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
1286 | 1269 | |
1287 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1270 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1288 | 1271 | # |
1289 | 1272 | # This file is free software; the Free Software Foundation |
1290 | 1273 | # gives unlimited permission to copy and/or distribute it, |
1291 | 1274 | # with or without modifications, as long as this notice is preserved. |
1292 | ||
1293 | # serial 5 | |
1294 | 1275 | |
1295 | 1276 | # AM_MAKE_INCLUDE() |
1296 | 1277 | # ----------------- |
1334 | 1315 | rm -f confinc confmf |
1335 | 1316 | ]) |
1336 | 1317 | |
1337 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
1318 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
1338 | 1319 | # |
1339 | 1320 | # This file is free software; the Free Software Foundation |
1340 | 1321 | # gives unlimited permission to copy and/or distribute it, |
1341 | 1322 | # with or without modifications, as long as this notice is preserved. |
1342 | ||
1343 | # serial 6 | |
1344 | 1323 | |
1345 | 1324 | # AM_PROG_CC_C_O |
1346 | 1325 | # -------------- |
1370 | 1349 | |
1371 | 1350 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
1372 | 1351 | |
1373 | # Copyright (C) 1997-2012 Free Software Foundation, Inc. | |
1352 | # Copyright (C) 1997-2013 Free Software Foundation, Inc. | |
1374 | 1353 | # |
1375 | 1354 | # This file is free software; the Free Software Foundation |
1376 | 1355 | # gives unlimited permission to copy and/or distribute it, |
1377 | 1356 | # with or without modifications, as long as this notice is preserved. |
1378 | ||
1379 | # serial 7 | |
1380 | 1357 | |
1381 | 1358 | # AM_MISSING_PROG(NAME, PROGRAM) |
1382 | 1359 | # ------------------------------ |
1385 | 1362 | $1=${$1-"${am_missing_run}$2"} |
1386 | 1363 | AC_SUBST($1)]) |
1387 | 1364 | |
1388 | ||
1389 | 1365 | # AM_MISSING_HAS_RUN |
1390 | 1366 | # ------------------ |
1391 | # Define MISSING if not defined so far and test if it supports --run. | |
1392 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
1367 | # Define MISSING if not defined so far and test if it is modern enough. | |
1368 | # If it is, set am_missing_run to use it, otherwise, to nothing. | |
1393 | 1369 | AC_DEFUN([AM_MISSING_HAS_RUN], |
1394 | 1370 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
1395 | 1371 | AC_REQUIRE_AUX_FILE([missing])dnl |
1402 | 1378 | esac |
1403 | 1379 | fi |
1404 | 1380 | # Use eval to expand $SHELL |
1405 | if eval "$MISSING --run true"; then | |
1406 | am_missing_run="$MISSING --run " | |
1381 | if eval "$MISSING --is-lightweight"; then | |
1382 | am_missing_run="$MISSING " | |
1407 | 1383 | else |
1408 | 1384 | am_missing_run= |
1409 | 1385 | AC_MSG_WARN(['missing' script is too old or missing]) |
1412 | 1388 | |
1413 | 1389 | # Helper functions for option handling. -*- Autoconf -*- |
1414 | 1390 | |
1415 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1391 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1416 | 1392 | # |
1417 | 1393 | # This file is free software; the Free Software Foundation |
1418 | 1394 | # gives unlimited permission to copy and/or distribute it, |
1419 | 1395 | # with or without modifications, as long as this notice is preserved. |
1420 | ||
1421 | # serial 6 | |
1422 | 1396 | |
1423 | 1397 | # _AM_MANGLE_OPTION(NAME) |
1424 | 1398 | # ----------------------- |
1445 | 1419 | |
1446 | 1420 | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
1447 | 1421 | |
1448 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
1422 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
1449 | 1423 | # |
1450 | 1424 | # This file is free software; the Free Software Foundation |
1451 | 1425 | # gives unlimited permission to copy and/or distribute it, |
1452 | 1426 | # with or without modifications, as long as this notice is preserved. |
1453 | ||
1454 | # serial 9 | |
1455 | 1427 | |
1456 | 1428 | # AM_SANITY_CHECK |
1457 | 1429 | # --------------- |
1528 | 1500 | rm -f conftest.file |
1529 | 1501 | ]) |
1530 | 1502 | |
1531 | # Copyright (C) 2009-2012 Free Software Foundation, Inc. | |
1503 | # Copyright (C) 2009-2013 Free Software Foundation, Inc. | |
1532 | 1504 | # |
1533 | 1505 | # This file is free software; the Free Software Foundation |
1534 | 1506 | # gives unlimited permission to copy and/or distribute it, |
1535 | 1507 | # with or without modifications, as long as this notice is preserved. |
1536 | ||
1537 | # serial 3 | |
1538 | 1508 | |
1539 | 1509 | # AM_SILENT_RULES([DEFAULT]) |
1540 | 1510 | # -------------------------- |
1590 | 1560 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl |
1591 | 1561 | ]) |
1592 | 1562 | |
1593 | # Copyright (C) 2001-2012 Free Software Foundation, Inc. | |
1563 | # Copyright (C) 2001-2013 Free Software Foundation, Inc. | |
1594 | 1564 | # |
1595 | 1565 | # This file is free software; the Free Software Foundation |
1596 | 1566 | # gives unlimited permission to copy and/or distribute it, |
1597 | 1567 | # with or without modifications, as long as this notice is preserved. |
1598 | ||
1599 | # serial 2 | |
1600 | 1568 | |
1601 | 1569 | # AM_PROG_INSTALL_STRIP |
1602 | 1570 | # --------------------- |
1620 | 1588 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1621 | 1589 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1622 | 1590 | |
1623 | # Copyright (C) 2006-2012 Free Software Foundation, Inc. | |
1591 | # Copyright (C) 2006-2013 Free Software Foundation, Inc. | |
1624 | 1592 | # |
1625 | 1593 | # This file is free software; the Free Software Foundation |
1626 | 1594 | # gives unlimited permission to copy and/or distribute it, |
1627 | 1595 | # with or without modifications, as long as this notice is preserved. |
1628 | ||
1629 | # serial 3 | |
1630 | 1596 | |
1631 | 1597 | # _AM_SUBST_NOTMAKE(VARIABLE) |
1632 | 1598 | # --------------------------- |
1641 | 1607 | |
1642 | 1608 | # Check how to create a tarball. -*- Autoconf -*- |
1643 | 1609 | |
1644 | # Copyright (C) 2004-2012 Free Software Foundation, Inc. | |
1610 | # Copyright (C) 2004-2013 Free Software Foundation, Inc. | |
1645 | 1611 | # |
1646 | 1612 | # This file is free software; the Free Software Foundation |
1647 | 1613 | # gives unlimited permission to copy and/or distribute it, |
1648 | 1614 | # with or without modifications, as long as this notice is preserved. |
1649 | ||
1650 | # serial 3 | |
1651 | 1615 | |
1652 | 1616 | # _AM_PROG_TAR(FORMAT) |
1653 | 1617 | # -------------------- |
0 | 0 | #! /bin/sh |
1 | 1 | # Wrapper for compilers which do not understand '-c -o'. |
2 | 2 | |
3 | scriptversion=2012-03-05.13; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
3 | scriptversion=2012-10-14.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
6 | 6 | # Written by Tom Tromey <tromey@cygnus.com>. |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
111 | 111 | lib=$dir/$lib.lib |
112 | 112 | break |
113 | 113 | fi |
114 | if test -f "$dir/lib$lib.a"; then | |
115 | found=yes | |
116 | lib=$dir/lib$lib.a | |
117 | break | |
118 | fi | |
114 | 119 | done |
115 | 120 | IFS=$save_IFS |
116 | 121 |
1 | 1 | # Attempt to guess a canonical system name. |
2 | 2 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3 | 3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
4 | # 2011, 2012 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2012-06-10' | |
4 | # 2011, 2012, 2013 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2012-12-29' | |
7 | 7 | |
8 | 8 | # This file is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License as published by |
10 | # the Free Software Foundation; either version 2 of the License, or | |
10 | # the Free Software Foundation; either version 3 of the License, or | |
11 | 11 | # (at your option) any later version. |
12 | 12 | # |
13 | 13 | # This program is distributed in the hope that it will be useful, but |
21 | 21 | # As a special exception to the GNU General Public License, if you |
22 | 22 | # distribute this file as part of a program that contains a |
23 | 23 | # configuration script generated by Autoconf, you may include it under |
24 | # the same distribution terms that you use for the rest of that program. | |
25 | ||
26 | ||
27 | # Originally written by Per Bothner. Please send patches (context | |
28 | # diff format) to <config-patches@gnu.org> and include a ChangeLog | |
29 | # entry. | |
24 | # the same distribution terms that you use for the rest of that | |
25 | # program. This Exception is an additional permission under section 7 | |
26 | # of the GNU General Public License, version 3 ("GPLv3"). | |
30 | 27 | # |
31 | # This script attempts to guess a canonical system name similar to | |
32 | # config.sub. If it succeeds, it prints the system name on stdout, and | |
33 | # exits with 0. Otherwise, it exits with 1. | |
28 | # Originally written by Per Bothner. | |
34 | 29 | # |
35 | 30 | # You can get the latest version of this script from: |
36 | 31 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
32 | # | |
33 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. | |
34 | ||
37 | 35 | |
38 | 36 | me=`echo "$0" | sed -e 's,.*/,,'` |
39 | 37 | |
54 | 52 | |
55 | 53 | Originally written by Per Bothner. |
56 | 54 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
57 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
58 | Free Software Foundation, Inc. | |
55 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, | |
56 | 2012, 2013 Free Software Foundation, Inc. | |
59 | 57 | |
60 | 58 | This is free software; see the source for copying conditions. There is NO |
61 | 59 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
198 | 196 | # contains redundant information, the shorter form: |
199 | 197 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. |
200 | 198 | echo "${machine}-${os}${release}" |
199 | exit ;; | |
200 | *:Bitrig:*:*) | |
201 | UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` | |
202 | echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} | |
201 | 203 | exit ;; |
202 | 204 | *:OpenBSD:*:*) |
203 | 205 | UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` |
301 | 303 | arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) |
302 | 304 | echo arm-acorn-riscix${UNAME_RELEASE} |
303 | 305 | exit ;; |
304 | arm:riscos:*:*|arm:RISCOS:*:*) | |
306 | arm*:riscos:*:*|arm*:RISCOS:*:*) | |
305 | 307 | echo arm-unknown-riscos |
306 | 308 | exit ;; |
307 | 309 | SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) |
800 | 802 | i*:CYGWIN*:*) |
801 | 803 | echo ${UNAME_MACHINE}-pc-cygwin |
802 | 804 | exit ;; |
805 | *:MINGW64*:*) | |
806 | echo ${UNAME_MACHINE}-pc-mingw64 | |
807 | exit ;; | |
803 | 808 | *:MINGW*:*) |
804 | 809 | echo ${UNAME_MACHINE}-pc-mingw32 |
805 | 810 | exit ;; |
1200 | 1205 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
1201 | 1206 | echo i586-pc-haiku |
1202 | 1207 | exit ;; |
1208 | x86_64:Haiku:*:*) | |
1209 | echo x86_64-unknown-haiku | |
1210 | exit ;; | |
1203 | 1211 | SX-4:SUPER-UX:*:*) |
1204 | 1212 | echo sx4-nec-superux${UNAME_RELEASE} |
1205 | 1213 | exit ;; |
1328 | 1336 | echo ${UNAME_MACHINE}-unknown-esx |
1329 | 1337 | exit ;; |
1330 | 1338 | esac |
1331 | ||
1332 | #echo '(No uname command or uname output not recognized.)' 1>&2 | |
1333 | #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 | |
1334 | 1339 | |
1335 | 1340 | eval $set_cc_for_build |
1336 | 1341 | cat >$dummy.c <<EOF |
1 | 1 | # Configuration validation subroutine script. |
2 | 2 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
3 | 3 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, |
4 | # 2011, 2012 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2012-04-18' | |
7 | ||
8 | # This file is (in principle) common to ALL GNU software. | |
9 | # The presence of a machine in this file suggests that SOME GNU software | |
10 | # can handle that machine. It does not imply ALL GNU software can. | |
11 | # | |
12 | # This file is free software; you can redistribute it and/or modify | |
13 | # it under the terms of the GNU General Public License as published by | |
14 | # the Free Software Foundation; either version 2 of the License, or | |
4 | # 2011, 2012, 2013 Free Software Foundation, Inc. | |
5 | ||
6 | timestamp='2012-12-29' | |
7 | ||
8 | # This file is free software; you can redistribute it and/or modify it | |
9 | # under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 3 of the License, or | |
15 | 11 | # (at your option) any later version. |
16 | 12 | # |
17 | # This program is distributed in the hope that it will be useful, | |
18 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | # GNU General Public License for more details. | |
13 | # This program is distributed in the hope that it will be useful, but | |
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | # General Public License for more details. | |
21 | 17 | # |
22 | 18 | # You should have received a copy of the GNU General Public License |
23 | 19 | # along with this program; if not, see <http://www.gnu.org/licenses/>. |
25 | 21 | # As a special exception to the GNU General Public License, if you |
26 | 22 | # distribute this file as part of a program that contains a |
27 | 23 | # configuration script generated by Autoconf, you may include it under |
28 | # the same distribution terms that you use for the rest of that program. | |
29 | ||
30 | ||
31 | # Please send patches to <config-patches@gnu.org>. Submit a context | |
32 | # diff and a properly formatted GNU ChangeLog entry. | |
24 | # the same distribution terms that you use for the rest of that | |
25 | # program. This Exception is an additional permission under section 7 | |
26 | # of the GNU General Public License, version 3 ("GPLv3"). | |
27 | ||
28 | ||
29 | # Please send patches with a ChangeLog entry to config-patches@gnu.org. | |
33 | 30 | # |
34 | 31 | # Configuration subroutine to validate and canonicalize a configuration type. |
35 | 32 | # Supply the specified configuration type as an argument. |
73 | 70 | GNU config.sub ($timestamp) |
74 | 71 | |
75 | 72 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
76 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 | |
77 | Free Software Foundation, Inc. | |
73 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, | |
74 | 2012, 2013 Free Software Foundation, Inc. | |
78 | 75 | |
79 | 76 | This is free software; see the source for copying conditions. There is NO |
80 | 77 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
122 | 119 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
123 | 120 | case $maybe_os in |
124 | 121 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
125 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
122 | linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ | |
126 | 123 | knetbsd*-gnu* | netbsd*-gnu* | \ |
127 | 124 | kopensolaris*-gnu* | \ |
128 | 125 | storm-chaos* | os2-emx* | rtmk-nova*) |
155 | 152 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
156 | 153 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
157 | 154 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
158 | -apple | -axis | -knuth | -cray | -microblaze) | |
155 | -apple | -axis | -knuth | -cray | -microblaze*) | |
159 | 156 | os= |
160 | 157 | basic_machine=$1 |
161 | 158 | ;; |
258 | 255 | | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ |
259 | 256 | | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ |
260 | 257 | | am33_2.0 \ |
261 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | |
262 | | be32 | be64 \ | |
258 | | arc \ | |
259 | | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ | |
260 | | avr | avr32 \ | |
261 | | be32 | be64 \ | |
263 | 262 | | bfin \ |
264 | 263 | | c4x | clipper \ |
265 | 264 | | d10v | d30v | dlx | dsp16xx \ |
272 | 271 | | le32 | le64 \ |
273 | 272 | | lm32 \ |
274 | 273 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
275 | | maxq | mb | microblaze | mcore | mep | metag \ | |
274 | | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | |
276 | 275 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
277 | 276 | | mips16 \ |
278 | 277 | | mips64 | mips64el \ |
388 | 387 | | lm32-* \ |
389 | 388 | | m32c-* | m32r-* | m32rle-* \ |
390 | 389 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
391 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | |
390 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
391 | | microblaze-* | microblazeel-* \ | |
392 | 392 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
393 | 393 | | mips16-* \ |
394 | 394 | | mips64-* | mips64el-* \ |
787 | 787 | basic_machine=ns32k-utek |
788 | 788 | os=-sysv |
789 | 789 | ;; |
790 | microblaze) | |
790 | microblaze*) | |
791 | 791 | basic_machine=microblaze-xilinx |
792 | ;; | |
793 | mingw64) | |
794 | basic_machine=x86_64-pc | |
795 | os=-mingw64 | |
792 | 796 | ;; |
793 | 797 | mingw32) |
794 | 798 | basic_machine=i386-pc |
1003 | 1007 | ;; |
1004 | 1008 | ppc64) basic_machine=powerpc64-unknown |
1005 | 1009 | ;; |
1006 | ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1010 | ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` | |
1007 | 1011 | ;; |
1008 | 1012 | ppc64le | powerpc64little | ppc64-le | powerpc64-little) |
1009 | 1013 | basic_machine=powerpc64le-unknown |
1018 | 1022 | basic_machine=i586-unknown |
1019 | 1023 | os=-pw32 |
1020 | 1024 | ;; |
1021 | rdos) | |
1025 | rdos | rdos64) | |
1026 | basic_machine=x86_64-pc | |
1027 | os=-rdos | |
1028 | ;; | |
1029 | rdos32) | |
1022 | 1030 | basic_machine=i386-pc |
1023 | 1031 | os=-rdos |
1024 | 1032 | ;; |
1351 | 1359 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1352 | 1360 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1353 | 1361 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
1354 | | -openbsd* | -solidbsd* \ | |
1362 | | -bitrig* | -openbsd* | -solidbsd* \ | |
1355 | 1363 | | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ |
1356 | 1364 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1357 | 1365 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1358 | 1366 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1359 | 1367 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1360 | 1368 | | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1361 | | -mingw32* | -linux-gnu* | -linux-android* \ | |
1362 | | -linux-newlib* | -linux-uclibc* \ | |
1369 | | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ | |
1370 | | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | |
1363 | 1371 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1364 | 1372 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1365 | 1373 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
0 | 0 | #! /bin/sh |
1 | 1 | # depcomp - compile a program generating dependencies as side-effects |
2 | 2 | |
3 | scriptversion=2012-03-27.16; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2012 Free Software Foundation, Inc. | |
3 | scriptversion=2012-10-18.11; # UTC | |
4 | ||
5 | # Copyright (C) 1999-2013 Free Software Foundation, Inc. | |
6 | 6 | |
7 | 7 | # This program is free software; you can redistribute it and/or modify |
8 | 8 | # it under the terms of the GNU General Public License as published by |
26 | 26 | |
27 | 27 | case $1 in |
28 | 28 | '') |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
29 | echo "$0: No command. Try '$0 --help' for more information." 1>&2 | |
30 | exit 1; | |
31 | ;; | |
32 | 32 | -h | --h*) |
33 | 33 | cat <<\EOF |
34 | 34 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] |
55 | 55 | ;; |
56 | 56 | esac |
57 | 57 | |
58 | # Get the directory component of the given path, and save it in the | |
59 | # global variables '$dir'. Note that this directory component will | |
60 | # be either empty or ending with a '/' character. This is deliberate. | |
61 | set_dir_from () | |
62 | { | |
63 | case $1 in | |
64 | */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; | |
65 | *) dir=;; | |
66 | esac | |
67 | } | |
68 | ||
69 | # Get the suffix-stripped basename of the given path, and save it the | |
70 | # global variable '$base'. | |
71 | set_base_from () | |
72 | { | |
73 | base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` | |
74 | } | |
75 | ||
76 | # If no dependency file was actually created by the compiler invocation, | |
77 | # we still have to create a dummy depfile, to avoid errors with the | |
78 | # Makefile "include basename.Plo" scheme. | |
79 | make_dummy_depfile () | |
80 | { | |
81 | echo "#dummy" > "$depfile" | |
82 | } | |
83 | ||
84 | # Factor out some common post-processing of the generated depfile. | |
85 | # Requires the auxiliary global variable '$tmpdepfile' to be set. | |
86 | aix_post_process_depfile () | |
87 | { | |
88 | # If the compiler actually managed to produce a dependency file, | |
89 | # post-process it. | |
90 | if test -f "$tmpdepfile"; then | |
91 | # Each line is of the form 'foo.o: dependency.h'. | |
92 | # Do two passes, one to just change these to | |
93 | # $object: dependency.h | |
94 | # and one to simply output | |
95 | # dependency.h: | |
96 | # which is needed to avoid the deleted-header problem. | |
97 | { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" | |
98 | sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" | |
99 | } > "$depfile" | |
100 | rm -f "$tmpdepfile" | |
101 | else | |
102 | make_dummy_depfile | |
103 | fi | |
104 | } | |
105 | ||
58 | 106 | # A tabulation character. |
59 | 107 | tab=' ' |
60 | 108 | # A newline character. |
61 | 109 | nl=' |
62 | 110 | ' |
111 | # Character ranges might be problematic outside the C locale. | |
112 | # These definitions help. | |
113 | upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ | |
114 | lower=abcdefghijklmnopqrstuvwxyz | |
115 | digits=0123456789 | |
116 | alpha=${upper}${lower} | |
63 | 117 | |
64 | 118 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then |
65 | 119 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 |
72 | 126 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} |
73 | 127 | |
74 | 128 | rm -f "$tmpdepfile" |
129 | ||
130 | # Avoid interferences from the environment. | |
131 | gccflag= dashmflag= | |
75 | 132 | |
76 | 133 | # Some modes work just like other modes, but use different flags. We |
77 | 134 | # parameterize here, but still list the modes in the big case below, |
84 | 141 | fi |
85 | 142 | |
86 | 143 | if test "$depmode" = dashXmstdout; then |
87 | # This is just like dashmstdout with a different argument. | |
88 | dashmflag=-xM | |
89 | depmode=dashmstdout | |
144 | # This is just like dashmstdout with a different argument. | |
145 | dashmflag=-xM | |
146 | depmode=dashmstdout | |
90 | 147 | fi |
91 | 148 | |
92 | 149 | cygpath_u="cygpath -u -f -" |
93 | 150 | if test "$depmode" = msvcmsys; then |
94 | # This is just like msvisualcpp but w/o cygpath translation. | |
95 | # Just convert the backslash-escaped backslashes to single forward | |
96 | # slashes to satisfy depend.m4 | |
97 | cygpath_u='sed s,\\\\,/,g' | |
98 | depmode=msvisualcpp | |
151 | # This is just like msvisualcpp but w/o cygpath translation. | |
152 | # Just convert the backslash-escaped backslashes to single forward | |
153 | # slashes to satisfy depend.m4 | |
154 | cygpath_u='sed s,\\\\,/,g' | |
155 | depmode=msvisualcpp | |
99 | 156 | fi |
100 | 157 | |
101 | 158 | if test "$depmode" = msvc7msys; then |
102 | # This is just like msvc7 but w/o cygpath translation. | |
103 | # Just convert the backslash-escaped backslashes to single forward | |
104 | # slashes to satisfy depend.m4 | |
105 | cygpath_u='sed s,\\\\,/,g' | |
106 | depmode=msvc7 | |
159 | # This is just like msvc7 but w/o cygpath translation. | |
160 | # Just convert the backslash-escaped backslashes to single forward | |
161 | # slashes to satisfy depend.m4 | |
162 | cygpath_u='sed s,\\\\,/,g' | |
163 | depmode=msvc7 | |
107 | 164 | fi |
108 | 165 | |
109 | 166 | if test "$depmode" = xlc; then |
110 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. | |
111 | gccflag=-qmakedep=gcc,-MF | |
112 | depmode=gcc | |
167 | # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. | |
168 | gccflag=-qmakedep=gcc,-MF | |
169 | depmode=gcc | |
113 | 170 | fi |
114 | 171 | |
115 | 172 | case "$depmode" in |
132 | 189 | done |
133 | 190 | "$@" |
134 | 191 | stat=$? |
135 | if test $stat -eq 0; then : | |
136 | else | |
192 | if test $stat -ne 0; then | |
137 | 193 | rm -f "$tmpdepfile" |
138 | 194 | exit $stat |
139 | 195 | fi |
141 | 197 | ;; |
142 | 198 | |
143 | 199 | gcc) |
200 | ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. | |
201 | ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. | |
202 | ## (see the conditional assignment to $gccflag above). | |
144 | 203 | ## There are various ways to get dependency output from gcc. Here's |
145 | 204 | ## why we pick this rather obscure method: |
146 | 205 | ## - Don't want to use -MD because we'd like the dependencies to end |
147 | 206 | ## up in a subdir. Having to rename by hand is ugly. |
148 | 207 | ## (We might end up doing this anyway to support other compilers.) |
149 | 208 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like |
150 | ## -MM, not -M (despite what the docs say). | |
209 | ## -MM, not -M (despite what the docs say). Also, it might not be | |
210 | ## supported by the other compilers which use the 'gcc' depmode. | |
151 | 211 | ## - Using -M directly means running the compiler twice (even worse |
152 | 212 | ## than renaming). |
153 | 213 | if test -z "$gccflag"; then |
155 | 215 | fi |
156 | 216 | "$@" -Wp,"$gccflag$tmpdepfile" |
157 | 217 | stat=$? |
158 | if test $stat -eq 0; then : | |
159 | else | |
218 | if test $stat -ne 0; then | |
160 | 219 | rm -f "$tmpdepfile" |
161 | 220 | exit $stat |
162 | 221 | fi |
163 | 222 | rm -f "$depfile" |
164 | 223 | echo "$object : \\" > "$depfile" |
165 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
166 | ## The second -e expression handles DOS-style file names with drive letters. | |
224 | # The second -e expression handles DOS-style file names with drive | |
225 | # letters. | |
167 | 226 | sed -e 's/^[^:]*: / /' \ |
168 | 227 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" |
169 | 228 | ## This next piece of magic avoids the "deleted header file" problem. |
172 | 231 | ## typically no way to rebuild the header). We avoid this by adding |
173 | 232 | ## dummy dependencies for each header file. Too bad gcc doesn't do |
174 | 233 | ## this for us directly. |
175 | tr ' ' "$nl" < "$tmpdepfile" | | |
176 | 234 | ## Some versions of gcc put a space before the ':'. On the theory |
177 | 235 | ## that the space means something, we add a space to the output as |
178 | 236 | ## well. hp depmode also adds that space, but also prefixes the VPATH |
179 | 237 | ## to the object. Take care to not repeat it in the output. |
180 | 238 | ## Some versions of the HPUX 10.20 sed can't process this invocation |
181 | 239 | ## correctly. Breaking it into two sed invocations is a workaround. |
182 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
183 | | sed -e 's/$/ :/' >> "$depfile" | |
240 | tr ' ' "$nl" < "$tmpdepfile" \ | |
241 | | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | |
242 | | sed -e 's/$/ :/' >> "$depfile" | |
184 | 243 | rm -f "$tmpdepfile" |
185 | 244 | ;; |
186 | 245 | |
198 | 257 | "$@" -MDupdate "$tmpdepfile" |
199 | 258 | fi |
200 | 259 | stat=$? |
201 | if test $stat -eq 0; then : | |
202 | else | |
260 | if test $stat -ne 0; then | |
203 | 261 | rm -f "$tmpdepfile" |
204 | 262 | exit $stat |
205 | 263 | fi |
207 | 265 | |
208 | 266 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files |
209 | 267 | echo "$object : \\" > "$depfile" |
210 | ||
211 | 268 | # Clip off the initial element (the dependent). Don't try to be |
212 | 269 | # clever and replace this with sed code, as IRIX sed won't handle |
213 | 270 | # lines with more than a fixed number of characters (4096 in |
215 | 272 | # the IRIX cc adds comments like '#:fec' to the end of the |
216 | 273 | # dependency line. |
217 | 274 | tr ' ' "$nl" < "$tmpdepfile" \ |
218 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
219 | tr "$nl" ' ' >> "$depfile" | |
275 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ | |
276 | | tr "$nl" ' ' >> "$depfile" | |
220 | 277 | echo >> "$depfile" |
221 | ||
222 | 278 | # The second pass generates a dummy entry for each header file. |
223 | 279 | tr ' ' "$nl" < "$tmpdepfile" \ |
224 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
225 | >> "$depfile" | |
280 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
281 | >> "$depfile" | |
226 | 282 | else |
227 | # The sourcefile does not contain any dependencies, so just | |
228 | # store a dummy comment line, to avoid errors with the Makefile | |
229 | # "include basename.Plo" scheme. | |
230 | echo "#dummy" > "$depfile" | |
283 | make_dummy_depfile | |
231 | 284 | fi |
232 | 285 | rm -f "$tmpdepfile" |
233 | 286 | ;; |
245 | 298 | # current directory. Also, the AIX compiler puts '$object:' at the |
246 | 299 | # start of each line; $object doesn't have directory information. |
247 | 300 | # Version 6 uses the directory in both cases. |
248 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
249 | test "x$dir" = "x$object" && dir= | |
250 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
301 | set_dir_from "$object" | |
302 | set_base_from "$object" | |
251 | 303 | if test "$libtool" = yes; then |
252 | 304 | tmpdepfile1=$dir$base.u |
253 | 305 | tmpdepfile2=$base.u |
260 | 312 | "$@" -M |
261 | 313 | fi |
262 | 314 | stat=$? |
263 | ||
264 | if test $stat -eq 0; then : | |
265 | else | |
315 | if test $stat -ne 0; then | |
266 | 316 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" |
267 | 317 | exit $stat |
268 | 318 | fi |
271 | 321 | do |
272 | 322 | test -f "$tmpdepfile" && break |
273 | 323 | done |
274 | if test -f "$tmpdepfile"; then | |
275 | # Each line is of the form 'foo.o: dependent.h'. | |
276 | # Do two passes, one to just change these to | |
277 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
278 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
279 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
280 | else | |
281 | # The sourcefile does not contain any dependencies, so just | |
282 | # store a dummy comment line, to avoid errors with the Makefile | |
283 | # "include basename.Plo" scheme. | |
284 | echo "#dummy" > "$depfile" | |
285 | fi | |
324 | aix_post_process_depfile | |
325 | ;; | |
326 | ||
327 | tcc) | |
328 | # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 | |
329 | # FIXME: That version still under development at the moment of writing. | |
330 | # Make that this statement remains true also for stable, released | |
331 | # versions. | |
332 | # It will wrap lines (doesn't matter whether long or short) with a | |
333 | # trailing '\', as in: | |
334 | # | |
335 | # foo.o : \ | |
336 | # foo.c \ | |
337 | # foo.h \ | |
338 | # | |
339 | # It will put a trailing '\' even on the last line, and will use leading | |
340 | # spaces rather than leading tabs (at least since its commit 0394caf7 | |
341 | # "Emit spaces for -MD"). | |
342 | "$@" -MD -MF "$tmpdepfile" | |
343 | stat=$? | |
344 | if test $stat -ne 0; then | |
345 | rm -f "$tmpdepfile" | |
346 | exit $stat | |
347 | fi | |
348 | rm -f "$depfile" | |
349 | # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. | |
350 | # We have to change lines of the first kind to '$object: \'. | |
351 | sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" | |
352 | # And for each line of the second kind, we have to emit a 'dep.h:' | |
353 | # dummy dependency, to avoid the deleted-header problem. | |
354 | sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" | |
286 | 355 | rm -f "$tmpdepfile" |
287 | 356 | ;; |
288 | 357 | |
289 | icc) | |
290 | # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. | |
291 | # However on | |
292 | # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
293 | # ICC 7.0 will fill foo.d with something like | |
294 | # foo.o: sub/foo.c | |
295 | # foo.o: sub/foo.h | |
296 | # which is wrong. We want | |
297 | # sub/foo.o: sub/foo.c | |
298 | # sub/foo.o: sub/foo.h | |
299 | # sub/foo.c: | |
300 | # sub/foo.h: | |
301 | # ICC 7.1 will output | |
358 | ## The order of this option in the case statement is important, since the | |
359 | ## shell code in configure will try each of these formats in the order | |
360 | ## listed in this file. A plain '-MD' option would be understood by many | |
361 | ## compilers, so we must ensure this comes after the gcc and icc options. | |
362 | pgcc) | |
363 | # Portland's C compiler understands '-MD'. | |
364 | # Will always output deps to 'file.d' where file is the root name of the | |
365 | # source file under compilation, even if file resides in a subdirectory. | |
366 | # The object file name does not affect the name of the '.d' file. | |
367 | # pgcc 10.2 will output | |
302 | 368 | # foo.o: sub/foo.c sub/foo.h |
303 | # and will wrap long lines using '\': | |
369 | # and will wrap long lines using '\' : | |
304 | 370 | # foo.o: sub/foo.c ... \ |
305 | 371 | # sub/foo.h ... \ |
306 | 372 | # ... |
307 | # tcc 0.9.26 (FIXME still under development at the moment of writing) | |
308 | # will emit a similar output, but also prepend the continuation lines | |
309 | # with horizontal tabulation characters. | |
310 | "$@" -MD -MF "$tmpdepfile" | |
311 | stat=$? | |
312 | if test $stat -eq 0; then : | |
313 | else | |
373 | set_dir_from "$object" | |
374 | # Use the source, not the object, to determine the base name, since | |
375 | # that's sadly what pgcc will do too. | |
376 | set_base_from "$source" | |
377 | tmpdepfile=$base.d | |
378 | ||
379 | # For projects that build the same source file twice into different object | |
380 | # files, the pgcc approach of using the *source* file root name can cause | |
381 | # problems in parallel builds. Use a locking strategy to avoid stomping on | |
382 | # the same $tmpdepfile. | |
383 | lockdir=$base.d-lock | |
384 | trap " | |
385 | echo '$0: caught signal, cleaning up...' >&2 | |
386 | rmdir '$lockdir' | |
387 | exit 1 | |
388 | " 1 2 13 15 | |
389 | numtries=100 | |
390 | i=$numtries | |
391 | while test $i -gt 0; do | |
392 | # mkdir is a portable test-and-set. | |
393 | if mkdir "$lockdir" 2>/dev/null; then | |
394 | # This process acquired the lock. | |
395 | "$@" -MD | |
396 | stat=$? | |
397 | # Release the lock. | |
398 | rmdir "$lockdir" | |
399 | break | |
400 | else | |
401 | # If the lock is being held by a different process, wait | |
402 | # until the winning process is done or we timeout. | |
403 | while test -d "$lockdir" && test $i -gt 0; do | |
404 | sleep 1 | |
405 | i=`expr $i - 1` | |
406 | done | |
407 | fi | |
408 | i=`expr $i - 1` | |
409 | done | |
410 | trap - 1 2 13 15 | |
411 | if test $i -le 0; then | |
412 | echo "$0: failed to acquire lock after $numtries attempts" >&2 | |
413 | echo "$0: check lockdir '$lockdir'" >&2 | |
414 | exit 1 | |
415 | fi | |
416 | ||
417 | if test $stat -ne 0; then | |
314 | 418 | rm -f "$tmpdepfile" |
315 | 419 | exit $stat |
316 | 420 | fi |
317 | 421 | rm -f "$depfile" |
318 | # Each line is of the form 'foo.o: dependent.h', | |
319 | # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. | |
422 | # Each line is of the form `foo.o: dependent.h', | |
423 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | |
320 | 424 | # Do two passes, one to just change these to |
321 | # '$object: dependent.h' and one to simply 'dependent.h:'. | |
322 | sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ | |
323 | < "$tmpdepfile" > "$depfile" | |
324 | sed ' | |
325 | s/[ '"$tab"'][ '"$tab"']*/ /g | |
326 | s/^ *// | |
327 | s/ *\\*$// | |
328 | s/^[^:]*: *// | |
329 | /^$/d | |
330 | /:$/d | |
331 | s/$/ :/ | |
332 | ' < "$tmpdepfile" >> "$depfile" | |
425 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
426 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | |
427 | # Some versions of the HPUX 10.20 sed can't process this invocation | |
428 | # correctly. Breaking it into two sed invocations is a workaround. | |
429 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \ | |
430 | | sed -e 's/$/ :/' >> "$depfile" | |
333 | 431 | rm -f "$tmpdepfile" |
334 | 432 | ;; |
335 | 433 | |
340 | 438 | # 'foo.d', which lands next to the object file, wherever that |
341 | 439 | # happens to be. |
342 | 440 | # Much of this is similar to the tru64 case; see comments there. |
343 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
344 | test "x$dir" = "x$object" && dir= | |
345 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
441 | set_dir_from "$object" | |
442 | set_base_from "$object" | |
346 | 443 | if test "$libtool" = yes; then |
347 | 444 | tmpdepfile1=$dir$base.d |
348 | 445 | tmpdepfile2=$dir.libs/$base.d |
353 | 450 | "$@" +Maked |
354 | 451 | fi |
355 | 452 | stat=$? |
356 | if test $stat -eq 0; then : | |
357 | else | |
453 | if test $stat -ne 0; then | |
358 | 454 | rm -f "$tmpdepfile1" "$tmpdepfile2" |
359 | 455 | exit $stat |
360 | 456 | fi |
364 | 460 | test -f "$tmpdepfile" && break |
365 | 461 | done |
366 | 462 | if test -f "$tmpdepfile"; then |
367 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
463 | sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" | |
368 | 464 | # Add 'dependent.h:' lines. |
369 | 465 | sed -ne '2,${ |
370 | s/^ *// | |
371 | s/ \\*$// | |
372 | s/$/:/ | |
373 | p | |
374 | }' "$tmpdepfile" >> "$depfile" | |
466 | s/^ *// | |
467 | s/ \\*$// | |
468 | s/$/:/ | |
469 | p | |
470 | }' "$tmpdepfile" >> "$depfile" | |
375 | 471 | else |
376 | echo "#dummy" > "$depfile" | |
472 | make_dummy_depfile | |
377 | 473 | fi |
378 | 474 | rm -f "$tmpdepfile" "$tmpdepfile2" |
379 | 475 | ;; |
380 | 476 | |
381 | 477 | tru64) |
382 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
383 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
384 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
385 | # dependencies in 'foo.d' instead, so we check for that too. | |
386 | # Subdirectories are respected. | |
387 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
388 | test "x$dir" = "x$object" && dir= | |
389 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
390 | ||
391 | if test "$libtool" = yes; then | |
392 | # With Tru64 cc, shared objects can also be used to make a | |
393 | # static library. This mechanism is used in libtool 1.4 series to | |
394 | # handle both shared and static libraries in a single compilation. | |
395 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
396 | # | |
397 | # With libtool 1.5 this exception was removed, and libtool now | |
398 | # generates 2 separate objects for the 2 libraries. These two | |
399 | # compilations output dependencies in $dir.libs/$base.o.d and | |
400 | # in $dir$base.o.d. We have to check for both files, because | |
401 | # one of the two compilations can be disabled. We should prefer | |
402 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
403 | # automatically cleaned when .libs/ is deleted, while ignoring | |
404 | # the former would cause a distcleancheck panic. | |
405 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
406 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
407 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
408 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
409 | "$@" -Wc,-MD | |
410 | else | |
411 | tmpdepfile1=$dir$base.o.d | |
412 | tmpdepfile2=$dir$base.d | |
413 | tmpdepfile3=$dir$base.d | |
414 | tmpdepfile4=$dir$base.d | |
415 | "$@" -MD | |
416 | fi | |
417 | ||
418 | stat=$? | |
419 | if test $stat -eq 0; then : | |
420 | else | |
421 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
422 | exit $stat | |
423 | fi | |
424 | ||
425 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
426 | do | |
427 | test -f "$tmpdepfile" && break | |
428 | done | |
429 | if test -f "$tmpdepfile"; then | |
430 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
431 | sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
432 | else | |
433 | echo "#dummy" > "$depfile" | |
434 | fi | |
435 | rm -f "$tmpdepfile" | |
436 | ;; | |
478 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
479 | # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. | |
480 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
481 | # dependencies in 'foo.d' instead, so we check for that too. | |
482 | # Subdirectories are respected. | |
483 | set_dir_from "$object" | |
484 | set_base_from "$object" | |
485 | ||
486 | if test "$libtool" = yes; then | |
487 | # Libtool generates 2 separate objects for the 2 libraries. These | |
488 | # two compilations output dependencies in $dir.libs/$base.o.d and | |
489 | # in $dir$base.o.d. We have to check for both files, because | |
490 | # one of the two compilations can be disabled. We should prefer | |
491 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
492 | # automatically cleaned when .libs/ is deleted, while ignoring | |
493 | # the former would cause a distcleancheck panic. | |
494 | tmpdepfile1=$dir$base.o.d # libtool 1.5 | |
495 | tmpdepfile2=$dir.libs/$base.o.d # Likewise. | |
496 | tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
497 | "$@" -Wc,-MD | |
498 | else | |
499 | tmpdepfile1=$dir$base.d | |
500 | tmpdepfile2=$dir$base.d | |
501 | tmpdepfile3=$dir$base.d | |
502 | "$@" -MD | |
503 | fi | |
504 | ||
505 | stat=$? | |
506 | if test $stat -ne 0; then | |
507 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
508 | exit $stat | |
509 | fi | |
510 | ||
511 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
512 | do | |
513 | test -f "$tmpdepfile" && break | |
514 | done | |
515 | # Same post-processing that is required for AIX mode. | |
516 | aix_post_process_depfile | |
517 | ;; | |
437 | 518 | |
438 | 519 | msvc7) |
439 | 520 | if test "$libtool" = yes; then |
444 | 525 | "$@" $showIncludes > "$tmpdepfile" |
445 | 526 | stat=$? |
446 | 527 | grep -v '^Note: including file: ' "$tmpdepfile" |
447 | if test "$stat" = 0; then : | |
448 | else | |
528 | if test $stat -ne 0; then | |
449 | 529 | rm -f "$tmpdepfile" |
450 | 530 | exit $stat |
451 | 531 | fi |
522 | 602 | # in the target name. This is to cope with DOS-style filenames: |
523 | 603 | # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. |
524 | 604 | "$@" $dashmflag | |
525 | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" | |
605 | sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" | |
526 | 606 | rm -f "$depfile" |
527 | 607 | cat < "$tmpdepfile" > "$depfile" |
528 | tr ' ' "$nl" < "$tmpdepfile" | \ | |
529 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
530 | ## correctly. Breaking it into two sed invocations is a workaround. | |
531 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
608 | # Some versions of the HPUX 10.20 sed can't process this sed invocation | |
609 | # correctly. Breaking it into two sed invocations is a workaround. | |
610 | tr ' ' "$nl" < "$tmpdepfile" \ | |
611 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
612 | | sed -e 's/$/ :/' >> "$depfile" | |
532 | 613 | rm -f "$tmpdepfile" |
533 | 614 | ;; |
534 | 615 | |
581 | 662 | # makedepend may prepend the VPATH from the source file name to the object. |
582 | 663 | # No need to regex-escape $object, excess matching of '.' is harmless. |
583 | 664 | sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" |
584 | sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ | |
585 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
586 | ## correctly. Breaking it into two sed invocations is a workaround. | |
587 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
665 | # Some versions of the HPUX 10.20 sed can't process the last invocation | |
666 | # correctly. Breaking it into two sed invocations is a workaround. | |
667 | sed '1,2d' "$tmpdepfile" \ | |
668 | | tr ' ' "$nl" \ | |
669 | | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ | |
670 | | sed -e 's/$/ :/' >> "$depfile" | |
588 | 671 | rm -f "$tmpdepfile" "$tmpdepfile".bak |
589 | 672 | ;; |
590 | 673 | |
620 | 703 | esac |
621 | 704 | done |
622 | 705 | |
623 | "$@" -E | | |
624 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
625 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
626 | sed '$ s: \\$::' > "$tmpdepfile" | |
706 | "$@" -E \ | |
707 | | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
708 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
709 | | sed '$ s: \\$::' > "$tmpdepfile" | |
627 | 710 | rm -f "$depfile" |
628 | 711 | echo "$object : \\" > "$depfile" |
629 | 712 | cat < "$tmpdepfile" >> "$depfile" |
655 | 738 | shift |
656 | 739 | ;; |
657 | 740 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") |
658 | set fnord "$@" | |
659 | shift | |
660 | shift | |
661 | ;; | |
741 | set fnord "$@" | |
742 | shift | |
743 | shift | |
744 | ;; | |
662 | 745 | *) |
663 | set fnord "$@" "$arg" | |
664 | shift | |
665 | shift | |
666 | ;; | |
746 | set fnord "$@" "$arg" | |
747 | shift | |
748 | shift | |
749 | ;; | |
667 | 750 | esac |
668 | 751 | done |
669 | 752 | "$@" -E 2>/dev/null | |
81 | 81 | PACKAGE=libtool |
82 | 82 | VERSION=2.4.2 |
83 | 83 | TIMESTAMP="" |
84 | : ${DD=dd} | |
84 | 85 | package_revision=1.3337 |
85 | 86 | |
86 | 87 | # Be Bourne compatible |
1223 | 1224 | ## Main. ## |
1224 | 1225 | ## ----------- ## |
1225 | 1226 | |
1227 | # func_try_sizelim file n | |
1228 | # try to write at most the first N bytes from FILE to the standard output when | |
1229 | # possible, otherwise put whole file | |
1230 | func_try_sizelim () | |
1231 | { | |
1232 | if test -n "$DD"; then | |
1233 | $DD if="$1" bs=$2 count=1 2>/dev/null | |
1234 | if test $? -eq 127; then | |
1235 | cat "$1" 2>/dev/null | |
1236 | fi | |
1237 | else | |
1238 | cat "$1" 2>/dev/null | |
1239 | fi | |
1240 | } | |
1241 | ||
1226 | 1242 | # func_lalib_p file |
1227 | 1243 | # True iff FILE is a libtool `.la' library or `.lo' object file. |
1228 | 1244 | # This function is only a basic sanity check; it will hardly flush out |
1230 | 1246 | func_lalib_p () |
1231 | 1247 | { |
1232 | 1248 | test -f "$1" && |
1233 | $SED -e 4q "$1" 2>/dev/null \ | |
1249 | func_try_sizelim "$1" 4096 | $SED -e 4q 2>/dev/null \ | |
1234 | 1250 | | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 |
1235 | 1251 | } |
1236 | 1252 |
0 | 0 | #! /bin/sh |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2012-01-06.18; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2012 Free Software Foundation, Inc. | |
6 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
1 | # Common wrapper for a few potentially missing GNU programs. | |
2 | ||
3 | scriptversion=2012-06-26.16; # UTC | |
4 | ||
5 | # Copyright (C) 1996-2013 Free Software Foundation, Inc. | |
6 | # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
7 | 7 | |
8 | 8 | # This program is free software; you can redistribute it and/or modify |
9 | 9 | # it under the terms of the GNU General Public License as published by |
28 | 28 | exit 1 |
29 | 29 | fi |
30 | 30 | |
31 | run=: | |
32 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
33 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
34 | ||
35 | # In the cases where this matters, 'missing' is being run in the | |
36 | # srcdir already. | |
37 | if test -f configure.ac; then | |
38 | configure_ac=configure.ac | |
39 | else | |
40 | configure_ac=configure.in | |
41 | fi | |
42 | ||
43 | msg="missing on your system" | |
44 | ||
45 | 31 | case $1 in |
46 | --run) | |
47 | # Try to run requested program, and just exit if it succeeds. | |
48 | run= | |
49 | shift | |
50 | "$@" && exit 0 | |
51 | # Exit code 63 means version mismatch. This often happens | |
52 | # when the user try to use an ancient version of a tool on | |
53 | # a file that requires a minimum version. In this case we | |
54 | # we should proceed has if the program had been absent, or | |
55 | # if --run hadn't been passed. | |
56 | if test $? = 63; then | |
57 | run=: | |
58 | msg="probably too old" | |
59 | fi | |
60 | ;; | |
32 | ||
33 | --is-lightweight) | |
34 | # Used by our autoconf macros to check whether the available missing | |
35 | # script is modern enough. | |
36 | exit 0 | |
37 | ;; | |
38 | ||
39 | --run) | |
40 | # Back-compat with the calling convention used by older automake. | |
41 | shift | |
42 | ;; | |
61 | 43 | |
62 | 44 | -h|--h|--he|--hel|--help) |
63 | 45 | echo "\ |
64 | 46 | $0 [OPTION]... PROGRAM [ARGUMENT]... |
65 | 47 | |
66 | Handle 'PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
67 | error status if there is no known handling for PROGRAM. | |
48 | Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due | |
49 | to PROGRAM being missing or too old. | |
68 | 50 | |
69 | 51 | Options: |
70 | 52 | -h, --help display this help and exit |
71 | 53 | -v, --version output version information and exit |
72 | --run try to run the given command, and emulate it if it fails | |
73 | 54 | |
74 | 55 | Supported PROGRAM values: |
75 | aclocal touch file 'aclocal.m4' | |
76 | autoconf touch file 'configure' | |
77 | autoheader touch file 'config.h.in' | |
78 | autom4te touch the output file, or create a stub one | |
79 | automake touch all 'Makefile.in' files | |
80 | bison create 'y.tab.[ch]', if possible, from existing .[ch] | |
81 | flex create 'lex.yy.c', if possible, from existing .c | |
82 | help2man touch the output file | |
83 | lex create 'lex.yy.c', if possible, from existing .c | |
84 | makeinfo touch the output file | |
85 | yacc create 'y.tab.[ch]', if possible, from existing .[ch] | |
56 | aclocal autoconf autoheader autom4te automake makeinfo | |
57 | bison yacc flex lex help2man | |
86 | 58 | |
87 | 59 | Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and |
88 | 60 | 'g' are ignored when checking the name. |
97 | 69 | ;; |
98 | 70 | |
99 | 71 | -*) |
100 | echo 1>&2 "$0: Unknown '$1' option" | |
72 | echo 1>&2 "$0: unknown '$1' option" | |
101 | 73 | echo 1>&2 "Try '$0 --help' for more information" |
102 | 74 | exit 1 |
103 | 75 | ;; |
104 | 76 | |
105 | 77 | esac |
106 | 78 | |
107 | # normalize program name to check for. | |
108 | program=`echo "$1" | sed ' | |
109 | s/^gnu-//; t | |
110 | s/^gnu//; t | |
111 | s/^g//; t'` | |
112 | ||
113 | # Now exit if we have it, but it failed. Also exit now if we | |
114 | # don't have it and --version was passed (most likely to detect | |
115 | # the program). This is about non-GNU programs, so use $1 not | |
116 | # $program. | |
117 | case $1 in | |
118 | lex*|yacc*) | |
119 | # Not GNU programs, they don't have --version. | |
120 | ;; | |
121 | ||
122 | *) | |
123 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
124 | # We have it, but it failed. | |
125 | exit 1 | |
126 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
127 | # Could not run --version or --help. This is probably someone | |
128 | # running '$TOOL --version' or '$TOOL --help' to check whether | |
129 | # $TOOL exists and not knowing $TOOL uses missing. | |
130 | exit 1 | |
131 | fi | |
132 | ;; | |
133 | esac | |
134 | ||
135 | # If it does not exist, or fails to run (possibly an outdated version), | |
136 | # try to emulate it. | |
137 | case $program in | |
138 | aclocal*) | |
139 | echo 1>&2 "\ | |
140 | WARNING: '$1' is $msg. You should only need it if | |
141 | you modified 'acinclude.m4' or '${configure_ac}'. You might want | |
142 | to install the Automake and Perl packages. Grab them from | |
143 | any GNU archive site." | |
144 | touch aclocal.m4 | |
145 | ;; | |
146 | ||
147 | autoconf*) | |
148 | echo 1>&2 "\ | |
149 | WARNING: '$1' is $msg. You should only need it if | |
150 | you modified '${configure_ac}'. You might want to install the | |
151 | Autoconf and GNU m4 packages. Grab them from any GNU | |
152 | archive site." | |
153 | touch configure | |
154 | ;; | |
155 | ||
156 | autoheader*) | |
157 | echo 1>&2 "\ | |
158 | WARNING: '$1' is $msg. You should only need it if | |
159 | you modified 'acconfig.h' or '${configure_ac}'. You might want | |
160 | to install the Autoconf and GNU m4 packages. Grab them | |
161 | from any GNU archive site." | |
162 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
163 | test -z "$files" && files="config.h" | |
164 | touch_files= | |
165 | for f in $files; do | |
166 | case $f in | |
167 | *:*) touch_files="$touch_files "`echo "$f" | | |
168 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
169 | *) touch_files="$touch_files $f.in";; | |
170 | esac | |
171 | done | |
172 | touch $touch_files | |
173 | ;; | |
174 | ||
175 | automake*) | |
176 | echo 1>&2 "\ | |
177 | WARNING: '$1' is $msg. You should only need it if | |
178 | you modified 'Makefile.am', 'acinclude.m4' or '${configure_ac}'. | |
179 | You might want to install the Automake and Perl packages. | |
180 | Grab them from any GNU archive site." | |
181 | find . -type f -name Makefile.am -print | | |
182 | sed 's/\.am$/.in/' | | |
183 | while read f; do touch "$f"; done | |
184 | ;; | |
185 | ||
186 | autom4te*) | |
187 | echo 1>&2 "\ | |
188 | WARNING: '$1' is needed, but is $msg. | |
189 | You might have modified some files without having the | |
190 | proper tools for further handling them. | |
191 | You can get '$1' as part of Autoconf from any GNU | |
192 | archive site." | |
193 | ||
194 | file=`echo "$*" | sed -n "$sed_output"` | |
195 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
196 | if test -f "$file"; then | |
197 | touch $file | |
198 | else | |
199 | test -z "$file" || exec >$file | |
200 | echo "#! /bin/sh" | |
201 | echo "# Created by GNU Automake missing as a replacement of" | |
202 | echo "# $ $@" | |
203 | echo "exit 0" | |
204 | chmod +x $file | |
205 | exit 1 | |
206 | fi | |
207 | ;; | |
208 | ||
209 | bison*|yacc*) | |
210 | echo 1>&2 "\ | |
211 | WARNING: '$1' $msg. You should only need it if | |
212 | you modified a '.y' file. You may need the Bison package | |
213 | in order for those modifications to take effect. You can get | |
214 | Bison from any GNU archive site." | |
215 | rm -f y.tab.c y.tab.h | |
216 | if test $# -ne 1; then | |
217 | eval LASTARG=\${$#} | |
218 | case $LASTARG in | |
219 | *.y) | |
220 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
221 | if test -f "$SRCFILE"; then | |
222 | cp "$SRCFILE" y.tab.c | |
223 | fi | |
224 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
225 | if test -f "$SRCFILE"; then | |
226 | cp "$SRCFILE" y.tab.h | |
227 | fi | |
228 | ;; | |
229 | esac | |
230 | fi | |
231 | if test ! -f y.tab.h; then | |
232 | echo >y.tab.h | |
233 | fi | |
234 | if test ! -f y.tab.c; then | |
235 | echo 'main() { return 0; }' >y.tab.c | |
236 | fi | |
237 | ;; | |
238 | ||
239 | lex*|flex*) | |
240 | echo 1>&2 "\ | |
241 | WARNING: '$1' is $msg. You should only need it if | |
242 | you modified a '.l' file. You may need the Flex package | |
243 | in order for those modifications to take effect. You can get | |
244 | Flex from any GNU archive site." | |
245 | rm -f lex.yy.c | |
246 | if test $# -ne 1; then | |
247 | eval LASTARG=\${$#} | |
248 | case $LASTARG in | |
249 | *.l) | |
250 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
251 | if test -f "$SRCFILE"; then | |
252 | cp "$SRCFILE" lex.yy.c | |
253 | fi | |
254 | ;; | |
255 | esac | |
256 | fi | |
257 | if test ! -f lex.yy.c; then | |
258 | echo 'main() { return 0; }' >lex.yy.c | |
259 | fi | |
260 | ;; | |
261 | ||
262 | help2man*) | |
263 | echo 1>&2 "\ | |
264 | WARNING: '$1' is $msg. You should only need it if | |
265 | you modified a dependency of a manual page. You may need the | |
266 | Help2man package in order for those modifications to take | |
267 | effect. You can get Help2man from any GNU archive site." | |
268 | ||
269 | file=`echo "$*" | sed -n "$sed_output"` | |
270 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
271 | if test -f "$file"; then | |
272 | touch $file | |
273 | else | |
274 | test -z "$file" || exec >$file | |
275 | echo ".ab help2man is required to generate this page" | |
276 | exit $? | |
277 | fi | |
278 | ;; | |
279 | ||
280 | makeinfo*) | |
281 | echo 1>&2 "\ | |
282 | WARNING: '$1' is $msg. You should only need it if | |
283 | you modified a '.texi' or '.texinfo' file, or any other file | |
284 | indirectly affecting the aspect of the manual. The spurious | |
285 | call might also be the consequence of using a buggy 'make' (AIX, | |
286 | DU, IRIX). You might want to install the Texinfo package or | |
287 | the GNU make package. Grab either from any GNU archive site." | |
288 | # The file to touch is that specified with -o ... | |
289 | file=`echo "$*" | sed -n "$sed_output"` | |
290 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
291 | if test -z "$file"; then | |
292 | # ... or it is the one specified with @setfilename ... | |
293 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
294 | file=`sed -n ' | |
295 | /^@setfilename/{ | |
296 | s/.* \([^ ]*\) *$/\1/ | |
297 | p | |
298 | q | |
299 | }' $infile` | |
300 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
301 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
302 | fi | |
303 | # If the file does not exist, the user really needs makeinfo; | |
304 | # let's fail without touching anything. | |
305 | test -f $file || exit 1 | |
306 | touch $file | |
307 | ;; | |
308 | ||
309 | *) | |
310 | echo 1>&2 "\ | |
311 | WARNING: '$1' is needed, and is $msg. | |
312 | You might have modified some files without having the | |
313 | proper tools for further handling them. Check the 'README' file, | |
314 | it often tells you about the needed prerequisites for installing | |
315 | this package. You may also peek at any GNU archive site, in case | |
316 | some other package would contain this missing '$1' program." | |
317 | exit 1 | |
318 | ;; | |
319 | esac | |
320 | ||
321 | exit 0 | |
79 | # Run the given program, remember its exit status. | |
80 | "$@"; st=$? | |
81 | ||
82 | # If it succeeded, we are done. | |
83 | test $st -eq 0 && exit 0 | |
84 | ||
85 | # Also exit now if we it failed (or wasn't found), and '--version' was | |
86 | # passed; such an option is passed most likely to detect whether the | |
87 | # program is present and works. | |
88 | case $2 in --version|--help) exit $st;; esac | |
89 | ||
90 | # Exit code 63 means version mismatch. This often happens when the user | |
91 | # tries to use an ancient version of a tool on a file that requires a | |
92 | # minimum version. | |
93 | if test $st -eq 63; then | |
94 | msg="probably too old" | |
95 | elif test $st -eq 127; then | |
96 | # Program was missing. | |
97 | msg="missing on your system" | |
98 | else | |
99 | # Program was found and executed, but failed. Give up. | |
100 | exit $st | |
101 | fi | |
102 | ||
103 | perl_URL=http://www.perl.org/ | |
104 | flex_URL=http://flex.sourceforge.net/ | |
105 | gnu_software_URL=http://www.gnu.org/software | |
106 | ||
107 | program_details () | |
108 | { | |
109 | case $1 in | |
110 | aclocal|automake) | |
111 | echo "The '$1' program is part of the GNU Automake package:" | |
112 | echo "<$gnu_software_URL/automake>" | |
113 | echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" | |
114 | echo "<$gnu_software_URL/autoconf>" | |
115 | echo "<$gnu_software_URL/m4/>" | |
116 | echo "<$perl_URL>" | |
117 | ;; | |
118 | autoconf|autom4te|autoheader) | |
119 | echo "The '$1' program is part of the GNU Autoconf package:" | |
120 | echo "<$gnu_software_URL/autoconf/>" | |
121 | echo "It also requires GNU m4 and Perl in order to run:" | |
122 | echo "<$gnu_software_URL/m4/>" | |
123 | echo "<$perl_URL>" | |
124 | ;; | |
125 | esac | |
126 | } | |
127 | ||
128 | give_advice () | |
129 | { | |
130 | # Normalize program name to check for. | |
131 | normalized_program=`echo "$1" | sed ' | |
132 | s/^gnu-//; t | |
133 | s/^gnu//; t | |
134 | s/^g//; t'` | |
135 | ||
136 | printf '%s\n' "'$1' is $msg." | |
137 | ||
138 | configure_deps="'configure.ac' or m4 files included by 'configure.ac'" | |
139 | case $normalized_program in | |
140 | autoconf*) | |
141 | echo "You should only need it if you modified 'configure.ac'," | |
142 | echo "or m4 files included by it." | |
143 | program_details 'autoconf' | |
144 | ;; | |
145 | autoheader*) | |
146 | echo "You should only need it if you modified 'acconfig.h' or" | |
147 | echo "$configure_deps." | |
148 | program_details 'autoheader' | |
149 | ;; | |
150 | automake*) | |
151 | echo "You should only need it if you modified 'Makefile.am' or" | |
152 | echo "$configure_deps." | |
153 | program_details 'automake' | |
154 | ;; | |
155 | aclocal*) | |
156 | echo "You should only need it if you modified 'acinclude.m4' or" | |
157 | echo "$configure_deps." | |
158 | program_details 'aclocal' | |
159 | ;; | |
160 | autom4te*) | |
161 | echo "You might have modified some maintainer files that require" | |
162 | echo "the 'automa4te' program to be rebuilt." | |
163 | program_details 'autom4te' | |
164 | ;; | |
165 | bison*|yacc*) | |
166 | echo "You should only need it if you modified a '.y' file." | |
167 | echo "You may want to install the GNU Bison package:" | |
168 | echo "<$gnu_software_URL/bison/>" | |
169 | ;; | |
170 | lex*|flex*) | |
171 | echo "You should only need it if you modified a '.l' file." | |
172 | echo "You may want to install the Fast Lexical Analyzer package:" | |
173 | echo "<$flex_URL>" | |
174 | ;; | |
175 | help2man*) | |
176 | echo "You should only need it if you modified a dependency" \ | |
177 | "of a man page." | |
178 | echo "You may want to install the GNU Help2man package:" | |
179 | echo "<$gnu_software_URL/help2man/>" | |
180 | ;; | |
181 | makeinfo*) | |
182 | echo "You should only need it if you modified a '.texi' file, or" | |
183 | echo "any other file indirectly affecting the aspect of the manual." | |
184 | echo "You might want to install the Texinfo package:" | |
185 | echo "<$gnu_software_URL/texinfo/>" | |
186 | echo "The spurious makeinfo call might also be the consequence of" | |
187 | echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" | |
188 | echo "want to install GNU make:" | |
189 | echo "<$gnu_software_URL/make/>" | |
190 | ;; | |
191 | *) | |
192 | echo "You might have modified some files without having the proper" | |
193 | echo "tools for further handling them. Check the 'README' file, it" | |
194 | echo "often tells you about the needed prerequisites for installing" | |
195 | echo "this package. You may also peek at any GNU archive site, in" | |
196 | echo "case some other package contains this missing '$1' program." | |
197 | ;; | |
198 | esac | |
199 | } | |
200 | ||
201 | give_advice "$1" | sed -e '1s/^/WARNING: /' \ | |
202 | -e '2,$s/^/ /' >&2 | |
203 | ||
204 | # Propagate the correct exit status (expected to be 127 for a program | |
205 | # not found, 63 for a program that failed due to version mismatch). | |
206 | exit $st | |
322 | 207 | |
323 | 208 | # Local variables: |
324 | 209 | # eval: (add-hook 'write-file-hooks 'time-stamp) |
112 | 112 | |
113 | 113 | exclude_file_name_regexp--sc_preprocessor_indentation = ^*/*.[ch] |
114 | 114 | exclude_file_name_regexp--sc_prohibit_strcmp = ^*/*.[ch] |
115 | exclude_file_name_regexp--sc_require_config_h = ^plugin/|src/gbinding\.c|src/windows-cmdline-wrapper.c | |
116 | exclude_file_name_regexp--sc_require_config_h_first = ^plugin/|src/gbinding\.c|src/windows-cmdline-wrapper.c | |
115 | exclude_file_name_regexp--sc_require_config_h = ^src/gbinding\.c|src/windows-cmdline-wrapper.c | |
116 | exclude_file_name_regexp--sc_require_config_h_first = ^src/gbinding\.c|src/windows-cmdline-wrapper.c | |
117 | 117 | |
118 | 118 | exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^icons/ |
119 | 119 | exclude_file_name_regexp--sc_trailing_blank = ^icons/ |
46 | 46 | |
47 | 47 | /* Define to 1 if you have the <memory.h> header file. */ |
48 | 48 | #undef HAVE_MEMORY_H |
49 | ||
50 | /* Have libgovirt? */ | |
51 | #undef HAVE_OVIRT | |
49 | 52 | |
50 | 53 | /* Define to 1 if you have the `socketpair' function. */ |
51 | 54 | #undef HAVE_SOCKETPAIR |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.69 for virt-viewer 0.5.5. | |
2 | # Generated by GNU Autoconf 2.69 for virt-viewer 0.5.6. | |
3 | 3 | # |
4 | 4 | # |
5 | 5 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
586 | 586 | # Identity of this package. |
587 | 587 | PACKAGE_NAME='virt-viewer' |
588 | 588 | PACKAGE_TARNAME='virt-viewer' |
589 | PACKAGE_VERSION='0.5.5' | |
590 | PACKAGE_STRING='virt-viewer 0.5.5' | |
589 | PACKAGE_VERSION='0.5.6' | |
590 | PACKAGE_STRING='virt-viewer 0.5.6' | |
591 | 591 | PACKAGE_BUGREPORT='' |
592 | 592 | PACKAGE_URL='' |
593 | 593 | |
633 | 633 | am__EXEEXT_TRUE |
634 | 634 | LTLIBOBJS |
635 | 635 | LIBOBJS |
636 | ENABLE_PLUGIN_FALSE | |
637 | ENABLE_PLUGIN_TRUE | |
638 | MOZILLA_PLUGIN_LIBS | |
639 | MOZILLA_PLUGIN_CFLAGS | |
640 | FIREFOX_PLUGIN_LIBS | |
641 | FIREFOX_PLUGIN_CFLAGS | |
642 | NSPR_LIBS | |
643 | NSPR_CFLAGS | |
636 | OVIRT_LIBS | |
637 | OVIRT_CFLAGS | |
644 | 638 | HAVE_SPICE_GTK_FALSE |
645 | 639 | HAVE_SPICE_GTK_TRUE |
646 | 640 | SPICE_PROTOCOL_LIBS |
766 | 760 | CC |
767 | 761 | OS_WIN32_FALSE |
768 | 762 | OS_WIN32_TRUE |
769 | AM_BACKSLASH | |
770 | AM_DEFAULT_VERBOSITY | |
771 | AM_DEFAULT_V | |
772 | AM_V | |
763 | WIXL_ARCH | |
773 | 764 | host_os |
774 | 765 | host_vendor |
775 | 766 | host_cpu |
778 | 769 | build_vendor |
779 | 770 | build_cpu |
780 | 771 | build |
772 | AM_BACKSLASH | |
773 | AM_DEFAULT_VERBOSITY | |
774 | AM_DEFAULT_V | |
775 | AM_V | |
781 | 776 | am__untar |
782 | 777 | am__tar |
783 | 778 | AMTAR |
858 | 853 | with_gtk |
859 | 854 | with_gtk_vnc |
860 | 855 | with_spice_gtk |
861 | enable_plugin | |
856 | with_ovirt | |
862 | 857 | with_buildid |
863 | 858 | ' |
864 | 859 | ac_precious_vars='build_alias |
889 | 884 | SPICE_CONTROLLER_LIBS |
890 | 885 | SPICE_PROTOCOL_CFLAGS |
891 | 886 | SPICE_PROTOCOL_LIBS |
892 | NSPR_CFLAGS | |
893 | NSPR_LIBS | |
894 | FIREFOX_PLUGIN_CFLAGS | |
895 | FIREFOX_PLUGIN_LIBS | |
896 | MOZILLA_PLUGIN_CFLAGS | |
897 | MOZILLA_PLUGIN_LIBS' | |
887 | OVIRT_CFLAGS | |
888 | OVIRT_LIBS' | |
898 | 889 | |
899 | 890 | |
900 | 891 | # Initialize some variables set by options. |
1435 | 1426 | # Omit some internal or obsolete options to make the list less imposing. |
1436 | 1427 | # This message is too long to be a string in the A/UX 3.1 sh. |
1437 | 1428 | cat <<_ACEOF |
1438 | \`configure' configures virt-viewer 0.5.5 to adapt to many kinds of systems. | |
1429 | \`configure' configures virt-viewer 0.5.6 to adapt to many kinds of systems. | |
1439 | 1430 | |
1440 | 1431 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1441 | 1432 | |
1505 | 1496 | |
1506 | 1497 | if test -n "$ac_init_help"; then |
1507 | 1498 | case $ac_init_help in |
1508 | short | recursive ) echo "Configuration of virt-viewer 0.5.5:";; | |
1499 | short | recursive ) echo "Configuration of virt-viewer 0.5.6:";; | |
1509 | 1500 | esac |
1510 | 1501 | cat <<\_ACEOF |
1511 | 1502 | |
1528 | 1519 | Turn on compiler warnings |
1529 | 1520 | --enable-iso-c Try to warn if code is not ISO C |
1530 | 1521 | --disable-nls do not use Native Language Support |
1531 | --enable-plugin=no/yes enable browser plugin default=no | |
1532 | 1522 | |
1533 | 1523 | Optional Packages: |
1534 | 1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1542 | 1532 | --with-gtk=2.0|3.0 which gtk+ version to compile against (default: 2.0) |
1543 | 1533 | --without-gtk-vnc Ignore presence of gtk-vnc and disable it |
1544 | 1534 | --without-spice-gtk Ignore presence of spice-gtk and disable it |
1535 | --without-ovirt Ignore presence of librest and disable oVirt support | |
1545 | 1536 | --with-buildid=id Set additional build version details |
1546 | 1537 | |
1547 | 1538 | Some influential environment variables: |
1587 | 1578 | C compiler flags for SPICE_PROTOCOL, overriding pkg-config |
1588 | 1579 | SPICE_PROTOCOL_LIBS |
1589 | 1580 | linker flags for SPICE_PROTOCOL, overriding pkg-config |
1590 | NSPR_CFLAGS C compiler flags for NSPR, overriding pkg-config | |
1591 | NSPR_LIBS linker flags for NSPR, overriding pkg-config | |
1592 | FIREFOX_PLUGIN_CFLAGS | |
1593 | C compiler flags for FIREFOX_PLUGIN, overriding pkg-config | |
1594 | FIREFOX_PLUGIN_LIBS | |
1595 | linker flags for FIREFOX_PLUGIN, overriding pkg-config | |
1596 | MOZILLA_PLUGIN_CFLAGS | |
1597 | C compiler flags for MOZILLA_PLUGIN, overriding pkg-config | |
1598 | MOZILLA_PLUGIN_LIBS | |
1599 | linker flags for MOZILLA_PLUGIN, overriding pkg-config | |
1581 | OVIRT_CFLAGS | |
1582 | C compiler flags for OVIRT, overriding pkg-config | |
1583 | OVIRT_LIBS linker flags for OVIRT, overriding pkg-config | |
1600 | 1584 | |
1601 | 1585 | Use these variables to override the choices made by `configure' or to help |
1602 | 1586 | it to find libraries and programs with nonstandard names/locations. |
1664 | 1648 | test -n "$ac_init_help" && exit $ac_status |
1665 | 1649 | if $ac_init_version; then |
1666 | 1650 | cat <<\_ACEOF |
1667 | virt-viewer configure 0.5.5 | |
1651 | virt-viewer configure 0.5.6 | |
1668 | 1652 | generated by GNU Autoconf 2.69 |
1669 | 1653 | |
1670 | 1654 | Copyright (C) 2012 Free Software Foundation, Inc. |
2029 | 2013 | This file contains any messages produced by compilers while |
2030 | 2014 | running configure, to aid debugging if configure makes a mistake. |
2031 | 2015 | |
2032 | It was created by virt-viewer $as_me 0.5.5, which was | |
2016 | It was created by virt-viewer $as_me 0.5.6, which was | |
2033 | 2017 | generated by GNU Autoconf 2.69. Invocation command line was |
2034 | 2018 | |
2035 | 2019 | $ $0 $@ |
2410 | 2394 | |
2411 | 2395 | ac_config_headers="$ac_config_headers config.h" |
2412 | 2396 | |
2413 | am__api_version='1.12' | |
2397 | am__api_version='1.13' | |
2414 | 2398 | |
2415 | 2399 | # Find a good install program. We prefer a C program (faster), |
2416 | 2400 | # so one script is as good as another. But avoid the broken or |
2594 | 2578 | esac |
2595 | 2579 | fi |
2596 | 2580 | # Use eval to expand $SHELL |
2597 | if eval "$MISSING --run true"; then | |
2598 | am_missing_run="$MISSING --run " | |
2581 | if eval "$MISSING --is-lightweight"; then | |
2582 | am_missing_run="$MISSING " | |
2599 | 2583 | else |
2600 | 2584 | am_missing_run= |
2601 | 2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2835 | 2819 | fi |
2836 | 2820 | rmdir .tst 2>/dev/null |
2837 | 2821 | |
2822 | # Check whether --enable-silent-rules was given. | |
2823 | if test "${enable_silent_rules+set}" = set; then : | |
2824 | enableval=$enable_silent_rules; | |
2825 | fi | |
2826 | ||
2827 | case $enable_silent_rules in # ((( | |
2828 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2829 | no) AM_DEFAULT_VERBOSITY=1;; | |
2830 | *) AM_DEFAULT_VERBOSITY=1;; | |
2831 | esac | |
2832 | am_make=${MAKE-make} | |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2834 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2835 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2836 | $as_echo_n "(cached) " >&6 | |
2837 | else | |
2838 | if $as_echo 'TRUE=$(BAR$(V)) | |
2839 | BAR0=false | |
2840 | BAR1=true | |
2841 | V=1 | |
2842 | am__doit: | |
2843 | @$(TRUE) | |
2844 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2845 | am_cv_make_support_nested_variables=yes | |
2846 | else | |
2847 | am_cv_make_support_nested_variables=no | |
2848 | fi | |
2849 | fi | |
2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2851 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2852 | if test $am_cv_make_support_nested_variables = yes; then | |
2853 | AM_V='$(V)' | |
2854 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2855 | else | |
2856 | AM_V=$AM_DEFAULT_VERBOSITY | |
2857 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2858 | fi | |
2859 | AM_BACKSLASH='\' | |
2860 | ||
2838 | 2861 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2839 | 2862 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2840 | 2863 | # is not polluted with repeated "-I." |
2857 | 2880 | |
2858 | 2881 | # Define the identity of the package. |
2859 | 2882 | PACKAGE='virt-viewer' |
2860 | VERSION='0.5.5' | |
2883 | VERSION='0.5.6' | |
2861 | 2884 | |
2862 | 2885 | |
2863 | 2886 | cat >>confdefs.h <<_ACEOF |
3032 | 3055 | case "$host_os" in |
3033 | 3056 | *mingw*|*cygwin*) |
3034 | 3057 | os_win32=yes |
3058 | case "$host" in | |
3059 | amd64*|x86_64*) | |
3060 | WIXL_ARCH="x64" | |
3061 | ;; | |
3062 | *) | |
3063 | WIXL_ARCH="x86" | |
3064 | ;; | |
3065 | esac | |
3066 | ||
3035 | 3067 | ;; |
3036 | 3068 | *) |
3037 | 3069 | os_win32=no |
14170 | 14202 | fi |
14171 | 14203 | |
14172 | 14204 | |
14205 | ||
14206 | # Check whether --with-ovirt was given. | |
14207 | if test "${with_ovirt+set}" = set; then : | |
14208 | withval=$with_ovirt; | |
14209 | fi | |
14210 | ||
14211 | ||
14212 | if test "x$with_ovirt" != "xno"; then : | |
14213 | ||
14214 | pkg_failed=no | |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OVIRT" >&5 | |
14216 | $as_echo_n "checking for OVIRT... " >&6; } | |
14217 | ||
14218 | if test -n "$OVIRT_CFLAGS"; then | |
14219 | pkg_cv_OVIRT_CFLAGS="$OVIRT_CFLAGS" | |
14220 | elif test -n "$PKG_CONFIG"; then | |
14221 | if test -n "$PKG_CONFIG" && \ | |
14222 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"govirt-1.0\""; } >&5 | |
14223 | ($PKG_CONFIG --exists --print-errors "govirt-1.0") 2>&5 | |
14224 | ac_status=$? | |
14225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14226 | test $ac_status = 0; }; then | |
14227 | pkg_cv_OVIRT_CFLAGS=`$PKG_CONFIG --cflags "govirt-1.0" 2>/dev/null` | |
14228 | test "x$?" != "x0" && pkg_failed=yes | |
14229 | else | |
14230 | pkg_failed=yes | |
14231 | fi | |
14232 | else | |
14233 | pkg_failed=untried | |
14234 | fi | |
14235 | if test -n "$OVIRT_LIBS"; then | |
14236 | pkg_cv_OVIRT_LIBS="$OVIRT_LIBS" | |
14237 | elif test -n "$PKG_CONFIG"; then | |
14238 | if test -n "$PKG_CONFIG" && \ | |
14239 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"govirt-1.0\""; } >&5 | |
14240 | ($PKG_CONFIG --exists --print-errors "govirt-1.0") 2>&5 | |
14241 | ac_status=$? | |
14242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14243 | test $ac_status = 0; }; then | |
14244 | pkg_cv_OVIRT_LIBS=`$PKG_CONFIG --libs "govirt-1.0" 2>/dev/null` | |
14245 | test "x$?" != "x0" && pkg_failed=yes | |
14246 | else | |
14247 | pkg_failed=yes | |
14248 | fi | |
14249 | else | |
14250 | pkg_failed=untried | |
14251 | fi | |
14252 | ||
14253 | ||
14254 | ||
14255 | if test $pkg_failed = yes; then | |
14256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14257 | $as_echo "no" >&6; } | |
14258 | ||
14259 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14260 | _pkg_short_errors_supported=yes | |
14261 | else | |
14262 | _pkg_short_errors_supported=no | |
14263 | fi | |
14264 | if test $_pkg_short_errors_supported = yes; then | |
14265 | OVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "govirt-1.0" 2>&1` | |
14266 | else | |
14267 | OVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "govirt-1.0" 2>&1` | |
14268 | fi | |
14269 | # Put the nasty error message in config.log where it belongs | |
14270 | echo "$OVIRT_PKG_ERRORS" >&5 | |
14271 | ||
14272 | have_ovirt=no | |
14273 | elif test $pkg_failed = untried; then | |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14275 | $as_echo "no" >&6; } | |
14276 | have_ovirt=no | |
14277 | else | |
14278 | OVIRT_CFLAGS=$pkg_cv_OVIRT_CFLAGS | |
14279 | OVIRT_LIBS=$pkg_cv_OVIRT_LIBS | |
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14281 | $as_echo "yes" >&6; } | |
14282 | have_ovirt=yes | |
14283 | fi | |
14284 | else | |
14285 | have_ovirt=no | |
14286 | fi | |
14287 | ||
14288 | if test "x$have_ovirt" = "xyes"; then : | |
14289 | ||
14290 | $as_echo "#define HAVE_OVIRT 1" >>confdefs.h | |
14291 | ||
14292 | else | |
14293 | if test "x$with_ovirt" = "xyes"; then : | |
14294 | as_fn_error $? "oVirt support requested but libgovirt not found" "$LINENO" 5 | |
14295 | ||
14296 | fi | |
14297 | ||
14298 | fi | |
14299 | ||
14173 | 14300 | for ac_header in sys/socket.h sys/un.h windows.h |
14174 | 14301 | do : |
14175 | 14302 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
14196 | 14323 | done |
14197 | 14324 | |
14198 | 14325 | |
14199 | NSPR_REQUIRED=4.0.0 | |
14200 | FIREFOX_PLUGIN_REQUIRED=1.5.0 | |
14201 | MOZILLA_PLUGIN_REQUIRED=1.8 | |
14202 | # Check whether --enable-plugin was given. | |
14203 | if test "${enable_plugin+set}" = set; then : | |
14204 | enableval=$enable_plugin; | |
14205 | else | |
14206 | enable_plugin=no | |
14207 | fi | |
14208 | ||
14209 | if test "x$enable_plugin" = "xyes"; then | |
14210 | ||
14211 | pkg_failed=no | |
14212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSPR" >&5 | |
14213 | $as_echo_n "checking for NSPR... " >&6; } | |
14214 | ||
14215 | if test -n "$NSPR_CFLAGS"; then | |
14216 | pkg_cv_NSPR_CFLAGS="$NSPR_CFLAGS" | |
14217 | elif test -n "$PKG_CONFIG"; then | |
14218 | if test -n "$PKG_CONFIG" && \ | |
14219 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_REQUIRED\""; } >&5 | |
14220 | ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_REQUIRED") 2>&5 | |
14221 | ac_status=$? | |
14222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14223 | test $ac_status = 0; }; then | |
14224 | pkg_cv_NSPR_CFLAGS=`$PKG_CONFIG --cflags "nspr >= $NSPR_REQUIRED" 2>/dev/null` | |
14225 | test "x$?" != "x0" && pkg_failed=yes | |
14226 | else | |
14227 | pkg_failed=yes | |
14228 | fi | |
14229 | else | |
14230 | pkg_failed=untried | |
14231 | fi | |
14232 | if test -n "$NSPR_LIBS"; then | |
14233 | pkg_cv_NSPR_LIBS="$NSPR_LIBS" | |
14234 | elif test -n "$PKG_CONFIG"; then | |
14235 | if test -n "$PKG_CONFIG" && \ | |
14236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nspr >= \$NSPR_REQUIRED\""; } >&5 | |
14237 | ($PKG_CONFIG --exists --print-errors "nspr >= $NSPR_REQUIRED") 2>&5 | |
14238 | ac_status=$? | |
14239 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14240 | test $ac_status = 0; }; then | |
14241 | pkg_cv_NSPR_LIBS=`$PKG_CONFIG --libs "nspr >= $NSPR_REQUIRED" 2>/dev/null` | |
14242 | test "x$?" != "x0" && pkg_failed=yes | |
14243 | else | |
14244 | pkg_failed=yes | |
14245 | fi | |
14246 | else | |
14247 | pkg_failed=untried | |
14248 | fi | |
14249 | ||
14250 | ||
14251 | ||
14252 | if test $pkg_failed = yes; then | |
14253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14254 | $as_echo "no" >&6; } | |
14255 | ||
14256 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14257 | _pkg_short_errors_supported=yes | |
14258 | else | |
14259 | _pkg_short_errors_supported=no | |
14260 | fi | |
14261 | if test $_pkg_short_errors_supported = yes; then | |
14262 | NSPR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nspr >= $NSPR_REQUIRED" 2>&1` | |
14263 | else | |
14264 | NSPR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nspr >= $NSPR_REQUIRED" 2>&1` | |
14265 | fi | |
14266 | # Put the nasty error message in config.log where it belongs | |
14267 | echo "$NSPR_PKG_ERRORS" >&5 | |
14268 | ||
14269 | as_fn_error $? "Package requirements (nspr >= $NSPR_REQUIRED) were not met: | |
14270 | ||
14271 | $NSPR_PKG_ERRORS | |
14272 | ||
14273 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14274 | installed software in a non-standard prefix. | |
14275 | ||
14276 | Alternatively, you may set the environment variables NSPR_CFLAGS | |
14277 | and NSPR_LIBS to avoid the need to call pkg-config. | |
14278 | See the pkg-config man page for more details." "$LINENO" 5 | |
14279 | elif test $pkg_failed = untried; then | |
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14281 | $as_echo "no" >&6; } | |
14282 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14283 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14284 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
14285 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14286 | path to pkg-config. | |
14287 | ||
14288 | Alternatively, you may set the environment variables NSPR_CFLAGS | |
14289 | and NSPR_LIBS to avoid the need to call pkg-config. | |
14290 | See the pkg-config man page for more details. | |
14291 | ||
14292 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14293 | See \`config.log' for more details" "$LINENO" 5; } | |
14294 | else | |
14295 | NSPR_CFLAGS=$pkg_cv_NSPR_CFLAGS | |
14296 | NSPR_LIBS=$pkg_cv_NSPR_LIBS | |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14298 | $as_echo "yes" >&6; } | |
14299 | ||
14300 | fi | |
14301 | ||
14302 | pkg_failed=no | |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIREFOX_PLUGIN" >&5 | |
14304 | $as_echo_n "checking for FIREFOX_PLUGIN... " >&6; } | |
14305 | ||
14306 | if test -n "$FIREFOX_PLUGIN_CFLAGS"; then | |
14307 | pkg_cv_FIREFOX_PLUGIN_CFLAGS="$FIREFOX_PLUGIN_CFLAGS" | |
14308 | elif test -n "$PKG_CONFIG"; then | |
14309 | if test -n "$PKG_CONFIG" && \ | |
14310 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"firefox-plugin >= \$FIREFOX_PLUGIN_REQUIRED\""; } >&5 | |
14311 | ($PKG_CONFIG --exists --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED") 2>&5 | |
14312 | ac_status=$? | |
14313 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14314 | test $ac_status = 0; }; then | |
14315 | pkg_cv_FIREFOX_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>/dev/null` | |
14316 | test "x$?" != "x0" && pkg_failed=yes | |
14317 | else | |
14318 | pkg_failed=yes | |
14319 | fi | |
14320 | else | |
14321 | pkg_failed=untried | |
14322 | fi | |
14323 | if test -n "$FIREFOX_PLUGIN_LIBS"; then | |
14324 | pkg_cv_FIREFOX_PLUGIN_LIBS="$FIREFOX_PLUGIN_LIBS" | |
14325 | elif test -n "$PKG_CONFIG"; then | |
14326 | if test -n "$PKG_CONFIG" && \ | |
14327 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"firefox-plugin >= \$FIREFOX_PLUGIN_REQUIRED\""; } >&5 | |
14328 | ($PKG_CONFIG --exists --print-errors "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED") 2>&5 | |
14329 | ac_status=$? | |
14330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14331 | test $ac_status = 0; }; then | |
14332 | pkg_cv_FIREFOX_PLUGIN_LIBS=`$PKG_CONFIG --libs "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>/dev/null` | |
14333 | test "x$?" != "x0" && pkg_failed=yes | |
14334 | else | |
14335 | pkg_failed=yes | |
14336 | fi | |
14337 | else | |
14338 | pkg_failed=untried | |
14339 | fi | |
14340 | ||
14341 | ||
14342 | ||
14343 | if test $pkg_failed = yes; then | |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14345 | $as_echo "no" >&6; } | |
14346 | ||
14347 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14348 | _pkg_short_errors_supported=yes | |
14349 | else | |
14350 | _pkg_short_errors_supported=no | |
14351 | fi | |
14352 | if test $_pkg_short_errors_supported = yes; then | |
14353 | FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>&1` | |
14354 | else | |
14355 | FIREFOX_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "firefox-plugin >= $FIREFOX_PLUGIN_REQUIRED" 2>&1` | |
14356 | fi | |
14357 | # Put the nasty error message in config.log where it belongs | |
14358 | echo "$FIREFOX_PLUGIN_PKG_ERRORS" >&5 | |
14359 | ||
14360 | ||
14361 | ||
14362 | pkg_failed=no | |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLA_PLUGIN" >&5 | |
14364 | $as_echo_n "checking for MOZILLA_PLUGIN... " >&6; } | |
14365 | ||
14366 | if test -n "$MOZILLA_PLUGIN_CFLAGS"; then | |
14367 | pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS" | |
14368 | elif test -n "$PKG_CONFIG"; then | |
14369 | if test -n "$PKG_CONFIG" && \ | |
14370 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\""; } >&5 | |
14371 | ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5 | |
14372 | ac_status=$? | |
14373 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14374 | test $ac_status = 0; }; then | |
14375 | pkg_cv_MOZILLA_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null` | |
14376 | test "x$?" != "x0" && pkg_failed=yes | |
14377 | else | |
14378 | pkg_failed=yes | |
14379 | fi | |
14380 | else | |
14381 | pkg_failed=untried | |
14382 | fi | |
14383 | if test -n "$MOZILLA_PLUGIN_LIBS"; then | |
14384 | pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS" | |
14385 | elif test -n "$PKG_CONFIG"; then | |
14386 | if test -n "$PKG_CONFIG" && \ | |
14387 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\""; } >&5 | |
14388 | ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5 | |
14389 | ac_status=$? | |
14390 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14391 | test $ac_status = 0; }; then | |
14392 | pkg_cv_MOZILLA_PLUGIN_LIBS=`$PKG_CONFIG --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null` | |
14393 | test "x$?" != "x0" && pkg_failed=yes | |
14394 | else | |
14395 | pkg_failed=yes | |
14396 | fi | |
14397 | else | |
14398 | pkg_failed=untried | |
14399 | fi | |
14400 | ||
14401 | ||
14402 | ||
14403 | if test $pkg_failed = yes; then | |
14404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14405 | $as_echo "no" >&6; } | |
14406 | ||
14407 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14408 | _pkg_short_errors_supported=yes | |
14409 | else | |
14410 | _pkg_short_errors_supported=no | |
14411 | fi | |
14412 | if test $_pkg_short_errors_supported = yes; then | |
14413 | MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1` | |
14414 | else | |
14415 | MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1` | |
14416 | fi | |
14417 | # Put the nasty error message in config.log where it belongs | |
14418 | echo "$MOZILLA_PLUGIN_PKG_ERRORS" >&5 | |
14419 | ||
14420 | as_fn_error $? "Package requirements (mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED) were not met: | |
14421 | ||
14422 | $MOZILLA_PLUGIN_PKG_ERRORS | |
14423 | ||
14424 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14425 | installed software in a non-standard prefix. | |
14426 | ||
14427 | Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS | |
14428 | and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config. | |
14429 | See the pkg-config man page for more details." "$LINENO" 5 | |
14430 | elif test $pkg_failed = untried; then | |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14432 | $as_echo "no" >&6; } | |
14433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14435 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
14436 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14437 | path to pkg-config. | |
14438 | ||
14439 | Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS | |
14440 | and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config. | |
14441 | See the pkg-config man page for more details. | |
14442 | ||
14443 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14444 | See \`config.log' for more details" "$LINENO" 5; } | |
14445 | else | |
14446 | MOZILLA_PLUGIN_CFLAGS=$pkg_cv_MOZILLA_PLUGIN_CFLAGS | |
14447 | MOZILLA_PLUGIN_LIBS=$pkg_cv_MOZILLA_PLUGIN_LIBS | |
14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14449 | $as_echo "yes" >&6; } | |
14450 | ||
14451 | fi | |
14452 | FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS" | |
14453 | FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS" | |
14454 | ||
14455 | elif test $pkg_failed = untried; then | |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14457 | $as_echo "no" >&6; } | |
14458 | ||
14459 | ||
14460 | pkg_failed=no | |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MOZILLA_PLUGIN" >&5 | |
14462 | $as_echo_n "checking for MOZILLA_PLUGIN... " >&6; } | |
14463 | ||
14464 | if test -n "$MOZILLA_PLUGIN_CFLAGS"; then | |
14465 | pkg_cv_MOZILLA_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS" | |
14466 | elif test -n "$PKG_CONFIG"; then | |
14467 | if test -n "$PKG_CONFIG" && \ | |
14468 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\""; } >&5 | |
14469 | ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5 | |
14470 | ac_status=$? | |
14471 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14472 | test $ac_status = 0; }; then | |
14473 | pkg_cv_MOZILLA_PLUGIN_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null` | |
14474 | test "x$?" != "x0" && pkg_failed=yes | |
14475 | else | |
14476 | pkg_failed=yes | |
14477 | fi | |
14478 | else | |
14479 | pkg_failed=untried | |
14480 | fi | |
14481 | if test -n "$MOZILLA_PLUGIN_LIBS"; then | |
14482 | pkg_cv_MOZILLA_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS" | |
14483 | elif test -n "$PKG_CONFIG"; then | |
14484 | if test -n "$PKG_CONFIG" && \ | |
14485 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-plugin >= \$MOZILLA_PLUGIN_REQUIRED\""; } >&5 | |
14486 | ($PKG_CONFIG --exists --print-errors "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED") 2>&5 | |
14487 | ac_status=$? | |
14488 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14489 | test $ac_status = 0; }; then | |
14490 | pkg_cv_MOZILLA_PLUGIN_LIBS=`$PKG_CONFIG --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>/dev/null` | |
14491 | test "x$?" != "x0" && pkg_failed=yes | |
14492 | else | |
14493 | pkg_failed=yes | |
14494 | fi | |
14495 | else | |
14496 | pkg_failed=untried | |
14497 | fi | |
14498 | ||
14499 | ||
14500 | ||
14501 | if test $pkg_failed = yes; then | |
14502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14503 | $as_echo "no" >&6; } | |
14504 | ||
14505 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14506 | _pkg_short_errors_supported=yes | |
14507 | else | |
14508 | _pkg_short_errors_supported=no | |
14509 | fi | |
14510 | if test $_pkg_short_errors_supported = yes; then | |
14511 | MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1` | |
14512 | else | |
14513 | MOZILLA_PLUGIN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED" 2>&1` | |
14514 | fi | |
14515 | # Put the nasty error message in config.log where it belongs | |
14516 | echo "$MOZILLA_PLUGIN_PKG_ERRORS" >&5 | |
14517 | ||
14518 | as_fn_error $? "Package requirements (mozilla-plugin >= $MOZILLA_PLUGIN_REQUIRED) were not met: | |
14519 | ||
14520 | $MOZILLA_PLUGIN_PKG_ERRORS | |
14521 | ||
14522 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14523 | installed software in a non-standard prefix. | |
14524 | ||
14525 | Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS | |
14526 | and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config. | |
14527 | See the pkg-config man page for more details." "$LINENO" 5 | |
14528 | elif test $pkg_failed = untried; then | |
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14530 | $as_echo "no" >&6; } | |
14531 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14532 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
14533 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
14534 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14535 | path to pkg-config. | |
14536 | ||
14537 | Alternatively, you may set the environment variables MOZILLA_PLUGIN_CFLAGS | |
14538 | and MOZILLA_PLUGIN_LIBS to avoid the need to call pkg-config. | |
14539 | See the pkg-config man page for more details. | |
14540 | ||
14541 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14542 | See \`config.log' for more details" "$LINENO" 5; } | |
14543 | else | |
14544 | MOZILLA_PLUGIN_CFLAGS=$pkg_cv_MOZILLA_PLUGIN_CFLAGS | |
14545 | MOZILLA_PLUGIN_LIBS=$pkg_cv_MOZILLA_PLUGIN_LIBS | |
14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14547 | $as_echo "yes" >&6; } | |
14548 | ||
14549 | fi | |
14550 | FIREFOX_PLUGIN_CFLAGS="$MOZILLA_PLUGIN_CFLAGS" | |
14551 | FIREFOX_PLUGIN_LIBS="$MOZILLA_PLUGIN_LIBS" | |
14552 | ||
14553 | else | |
14554 | FIREFOX_PLUGIN_CFLAGS=$pkg_cv_FIREFOX_PLUGIN_CFLAGS | |
14555 | FIREFOX_PLUGIN_LIBS=$pkg_cv_FIREFOX_PLUGIN_LIBS | |
14556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14557 | $as_echo "yes" >&6; } | |
14558 | ||
14559 | fi | |
14560 | ||
14561 | ||
14562 | fi | |
14563 | if test "x$enable_plugin" = "xyes"; then | |
14564 | ENABLE_PLUGIN_TRUE= | |
14565 | ENABLE_PLUGIN_FALSE='#' | |
14566 | else | |
14567 | ENABLE_PLUGIN_TRUE='#' | |
14568 | ENABLE_PLUGIN_FALSE= | |
14569 | fi | |
14570 | ||
14571 | 14326 | |
14572 | 14327 | if test "x$have_gtk_vnc" != "xyes" && test "x$have_spice_gtk" != "xyes"; then |
14573 | 14328 | as_fn_error $? "At least one of spice or vnc must be used" "$LINENO" 5 |
14585 | 14340 | _ACEOF |
14586 | 14341 | |
14587 | 14342 | |
14588 | ac_config_files="$ac_config_files Makefile data/Makefile data/virt-viewer.wxs data/virt-viewer.nsis data/virt-viewer-debug.nsis icons/Makefile icons/16x16/Makefile icons/22x22/Makefile icons/24x24/Makefile icons/32x32/Makefile icons/48x48/Makefile icons/256x256/Makefile man/Makefile mingw-virt-viewer.spec plugin/Makefile po/Makefile.in src/Makefile src/virt-viewer.rc virt-viewer.spec" | |
14343 | ac_config_files="$ac_config_files Makefile data/Makefile data/virt-viewer.wxs data/virt-viewer.nsis data/virt-viewer-debug.nsis icons/Makefile icons/16x16/Makefile icons/22x22/Makefile icons/24x24/Makefile icons/32x32/Makefile icons/48x48/Makefile icons/256x256/Makefile man/Makefile mingw-virt-viewer.spec po/Makefile.in src/Makefile src/virt-viewer.rc virt-viewer.spec" | |
14589 | 14344 | |
14590 | 14345 | cat >confcache <<\_ACEOF |
14591 | 14346 | # This file is a shell script that caches the results of configure |
14748 | 14503 | as_fn_error $? "conditional \"HAVE_SPICE_GTK\" was never defined. |
14749 | 14504 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
14750 | 14505 | fi |
14751 | if test -z "${ENABLE_PLUGIN_TRUE}" && test -z "${ENABLE_PLUGIN_FALSE}"; then | |
14752 | as_fn_error $? "conditional \"ENABLE_PLUGIN\" was never defined. | |
14753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14754 | fi | |
14755 | 14506 | |
14756 | 14507 | : "${CONFIG_STATUS=./config.status}" |
14757 | 14508 | ac_write_fail=0 |
15149 | 14900 | # report actual input values of CONFIG_FILES etc. instead of their |
15150 | 14901 | # values after options handling. |
15151 | 14902 | ac_log=" |
15152 | This file was extended by virt-viewer $as_me 0.5.5, which was | |
14903 | This file was extended by virt-viewer $as_me 0.5.6, which was | |
15153 | 14904 | generated by GNU Autoconf 2.69. Invocation command line was |
15154 | 14905 | |
15155 | 14906 | CONFIG_FILES = $CONFIG_FILES |
15219 | 14970 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15220 | 14971 | ac_cs_config="`$as_echo "$ac_configure_args&q |