Codebase list virt-viewer / e2a8e17
Imported Upstream version 0.5.0 Laurent Léonard 11 years ago
92 changed file(s) with 14205 addition(s) and 4497 deletion(s). Raw diff Collapse all Expand all
22
33 The Virt Viewer application is written by
44
5 Daniel P. Berrange <berrange-at-redhat-dot-com>
5 Daniel P. Berrange <berrange@redhat.com>
66
77 With additional patches from:
88
9 Chris Lalancette <clalance-at-redhat-dot-com>
10 Atsushi SAKAI <sakaia-at-jp-dot-fujitsu-dot-com>
11 Richard W.M. Jones <rjones-at-redhat-dot-com>
12 Guido G\374nther <agx-at-sigxcpu-dot-org>
13 Hiroyuki Kaguchi <fj7025cf-at-aa-dot-jp-dot-fujitsu-dot-com>
9 Atsushi SAKAI <sakaia@jp.fujitsu.com>
10 Chris Lalancette <clalance@redhat.com>
11 Guannan Ren <gren@redhat.com>
12 Guido G\374nther <agx@sigxcpu.org>
13 Hans de Goede <hdegoede@redhat.com>
14 Hiroyuki Kaguchi <fj7025cf@aa.jp.fujitsu.com>
15 Jiri Denemark <Jiri.Denemark@gmail.com>
16 Marc-André Lureau <marcandre.lureau@redhat.com>
17 Pavel Raiskup <praiskup@redhat.com>
18 Richard W.M. Jones <rjones@redhat.com>
1419 Ronnie Sahlberg <ronniesahlberg@gmail.com>
15 Marc-André Lureau <marcandre.lureau-at-redhat-dot-com>
20 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
1621
1722 ...send patches to get your name here...
1823
19 The Translation team are listed in the .po files for their
20 languages under the po/ directory.
24 Translations have been provided by
2125
26 <amitakhya@fedoraproject.org>
27 <andreyjktl@fedoraproject.org>
28 <anipeter@fedoraproject.org>
29 <ankit@fedoraproject.org>
30 <aron@fedoraproject.org>
31 <bozzo@fedoraproject.org>
32 <elsupergomez@fedoraproject.org>
33 <enshahar@fedoraproject.org>
34 <fdaluisio@fedoraproject.org>
35 <gcintra@fedoraproject.org>
36 <giallu@fedoraproject.org>
37 <hedda@fedoraproject.org>
38 <htaira@fedoraproject.org>
39 <ifelix@fedoraproject.org>
40 <jassy@fedoraproject.org>
41 <khasida@fedoraproject.org>
42 <kkrothap@fedoraproject.org>
43 <leahliu@fedoraproject.org>
44 <mgiri@fedoraproject.org>
45 <mospina@fedoraproject.org>
46 <mvdz@fedoraproject.org>
47 <rajesh@fedoraproject.org>
48 <raven@fedoraproject.org>
49 <renault@fedoraproject.org>
50 <runab@fedoraproject.org>
51 <samfreemanz@fedoraproject.org>
52 <sandeeps@fedoraproject.org>
53 <shanky@fedoraproject.org>
54 <snicore@fedoraproject.org>
55 <swkothar@fedoraproject.org>
56 <tchuang@fedoraproject.org>
57 <tombo@fedoraproject.org>
58 <tomspur@fedoraproject.org>
59 <warrink@fedoraproject.org>
60 <webappz@fedoraproject.org>
61 <ypoyarko@fedoraproject.org>
62 <yurchor@fedoraproject.org>
63 <zoltanh721@fedoraproject.org>
2264
2365 -- End
0 2012-02-14 Daniel P. Berrange <berrange@redhat.com>
1
2 Update for release 0.5.0
3
4 2012-02-14 Marc-André Lureau <marcandre.lureau@gmail.com>
5
6 First %d in controller title should be substituted with window nth
7
8 Add libp11-kit-0.dll to nsis script
9
10 2012-02-14 Daniel P. Berrange <berrange@redhat.com>
11
12 Set pretty icon for remote-viewer windows too
13
14 Don't hardcode 'localhost' in no @listen parameter is given
15 If no @listen parameter is given, we must not hardcode 'localhost'
16 since we can't assume we are running on the same host. Instead use
17 the hostname from the connection URI
18
19 Extract tlsPort for SPICE and use it to enable secure connections
20
21 2012-02-08 Daniel P. Berrange <berrange@redhat.com>
22
23 Don't do whitespace checks on icons
24
25 Set transient parent for screenshot dialog
26
27 Ensure auth popup windows have correct transient parent
28
29 2012-02-08 Marc-André Lureau <marcandre.lureau@gmail.com>
30
31 Make the password field activates default widget
32 When pressing "Enter", the default auth dialog action isn't activated.
33 Setting activates_default to TRUE fixes this issue.
34
35 Do not resize guest desktop if !auto-resize
36 If auto-resize is enabled, the guest desktop size will be resized to
37 match current window*zoom size.
38
39 This can be a problem if the user explicitely set the desktop size to
40 a different resolution and want to keep it. Disabling auto-resize
41 sounds like a simple way to allow that.
42
43 Resize Spice guest display to the container size
44 The SpiceDisplay doesn't receive the full allocation, because
45 VirtViewerDisplay maintains current aspect ratio. However, the guest
46 display can be resize up to its container size.
47
48 This fixes going full-screen and not getting native resolution for
49 instance.
50
51 2012-02-08 Daniel P. Berrange <berrange@redhat.com>
52
53 Ensure About dialog has transient hints setup
54
55 Import a pretty icon for virt-viewer application
56
57 Re-added GtkBuilder XML files to POTFILES.in
58 Adapt syntax-check rule to allow XML files in POTFILES.in and
59 re-add the GtkBuilder XML files
60
61 Implement SPICE desktop resizing that takes account of zoom level
62 The standard SPICE widget guest resize implementation does not
63 take into account the zoom level settings in virt-viewer, because
64 it has no knowledge of this functionality. The guest resize can,
65 however, be done by calling spice_main_set_display() directly.
66 This allows virt-viewer to resize the guest taking into account
67 zoom levels.
68
69 ie, if virt-viewer is run with --zoom 50 and the window
70 is resized to 400x300, then the guest agent should
71 be told to set its resolution to 800x600
72
73 2012-02-07 Daniel P. Berrange <berrange@redhat.com>
74
75 Revert support for resizing guest desktop
76 The SpiceDisplay widget has built-in support for resizing the
77 guest desktop, but this does not know that virt-viewer has a
78 zoom level setting. This makes the virt-viewer zoom completely
79 inoperable. Revert use of the 'resize-guest' property.
80
81 2012-02-06 Marc-André Lureau <marcandre.lureau@gmail.com>
82
83 Add spice-xpi-client-remote-viewer alternative
84
85 man: add remote-viewer man page
86
87 2012-02-06 Daniel P. Berrange <berrange@redhat.com>
88
89 Import GNULIB rules for syntax checking code
90
91 Add config.h to every source file
92
93 Use exit() constants
94
95 copyright fix
96
97 End of file whitespace cleanup
98
99 Update POTFILES.in
100
101 Replace @FOO@ with $(FOO) in all Makefile.am
102
103 Update copyright headers
104
105 Remove useless if() before free()
106
107 Update AUTHORS file
108
109 Simplify no-op debug macro & fix plugin header
110
111 Fix makefile.am subsitutions for plugin
112
113 Convert TABS to spaces & reindent everywhere
114
115 2012-02-06 Hans de Goede <hdegoede@redhat.com>
116
117 Only make the USB device selection sensitive when the vm is USB capable
118
119 Add a menu entry for USB device selection
120
121 2012-02-06 Marc-André Lureau <marcandre.lureau@gmail.com>
122
123 Grab the focus when showing the display
124 Override the grab_focus() method in the display class. Since both VNC
125 and Spice displays are the direct child, let's just grab the child.
126 It can be that this behaviour need to be overriden if Spice or VNC
127 display become more complex (using sub-childs or different objects)
128
129 2012-01-31 Daniel P. Berrange <berrange@redhat.com>
130
131 Ignore more generated files
132
133 2012-01-31 Guannan Ren <gren@redhat.com>
134
135 Disconnect virt-viewer when receiving signal session-cancelled
136
137 Register a new signal session-cancelled
138
139 Tune the first argument in calls to g_type_class_add_private()
140
141 2012-01-31 Daniel P. Berrange <berrange@redhat.com>
142
143 Support for virDomainOpenGraphics API
144 Add a new flag --attach, which instructs virt-viewer to attach
145 to the target display using virDomainOpenGraphics, instead of
146 initiating a VNC/SPICE connection directly.
147
148 Make VNC support opening connections based on URI
149
150 Adapt remote-viewer so that it builds without SPICE
151
152 2012-01-31 Marc-André Lureau <marcandre.lureau@redhat.com>
153
154 Add virt-viewer.nsis
155 Use ${DESTDIR} variable and @prefix@ to look for files.
156 Can't easily be generated, it has too much customization.
157
158 2012-01-31 Marc-André Lureau <marcandre.lureau@gmail.com>
159
160 Enable spice auto-usbredir
161
162 Remove usage of deprecated property
163
164 Add error dialog for USB redirection failure
165
166 Resize guest desktop with SPICE
167 This is the method we prefer, even though we can't keep aspect ratio.
168 We could eventually support aspect ration in spice-gtk.
169
170 2012-01-31 Marc-André Lureau <marcandre.lureau@redhat.com>
171
172 build: make libvirt optionnal
173
174 2012-01-31 Marc-André Lureau <marcandre.lureau@gmail.com>
175
176 Use a first letter capital in help
177 The GLib/GNOME convention seems to have first letter as capital for
178 option description strings.
179
180 2012-01-31 Marc-André Lureau <marcandre.lureau@redhat.com>
181
182 Add spice_get_option_group()
183
184 Add spice controller support in remote-viewer
185 Usage is simply "remote-viewer --spice-controller"
186
187 Add remote-viewer program
188 This program is meant for direct URI connections.
189 ex: remote-viewer vnc://uri
190
191 2012-01-30 Marc-André Lureau <marcandre.lureau@gmail.com>
192
193 Add a few property getters, used by controller
194 - virt_viewer_app_get_windows()
195 - virt_viewer_window_get_builder()
196 - "VirtViewerSessionSpice:spice-session" property
197
198 build: use AM_GLIB_GNU_GETTEXT
199 Using intltool macro only causes build issues on exotic platforms,
200 such as MinGW.
201
202 As long as this bug isn't fixed, we should use AM_GLIB_GNU_GETTEXT
203 https://bugs.launchpad.net/intltool/+bug/398571
204
205 NB this partially reverts
206
207 3473c4bb49adc0caca58dc1a8b6ce81c6870558a
208
209 The difference is the ordering of the rules. With AM_GLIB_GNU_GETTEXT
210 appearing after IT_PROG_INTLTOOL, the --disable-nls arg to configure
211 is broken. Thus AM_GLIB_GNU_GETTEXT is called first in this change.
212
213 2012-01-30 Marc-André Lureau <marcandre.lureau@redhat.com>
214
215 Make virt_viewer_activate() a vfunc
216 since other equivalent methods are already overridable.
217
218 Add window-added & window-removed signals
219
220 Use graphical URI for connection
221 If specified, use URI for connection details
222
223 Add virt_viewer_session_open_uri
224
225 build: replace deprecated functions
226
227 2012-01-30 Daniel P. Berrange <berrange@redhat.com>
228
229 Add support for --system arg to autogen.sh
230
0231 2011-11-09 Daniel P. Berrange <berrange@redhat.com>
1232
2233 Prep for 0.4.2 release
0 # Having a separate GNUmakefile lets me `include' the dynamically
1 # generated rules created via cfg.mk (package-local configuration)
2 # as well as maint.mk (generic maintainer rules).
3 # This makefile is used only if you run GNU Make.
4 # It is necessary if you want to build targets usually of interest
5 # only to the maintainer.
6
7 # Copyright (C) 2001, 2003, 2006-2011 Free Software Foundation, Inc.
8
9 # This program is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 # Systems where /bin/sh is not the default shell need this. The $(shell)
23 # command below won't work with e.g. stock DOS/Windows shells.
24 ifeq ($(wildcard /bin/s[h]),/bin/sh)
25 SHELL = /bin/sh
26 else
27 # will be used only with the next shell-test line, then overwritten
28 # by a configured-in value
29 SHELL = sh
30 endif
31
32 # If the user runs GNU make but has not yet run ./configure,
33 # give them a diagnostic.
34 _have-Makefile := $(shell test -f Makefile && echo yes)
35 ifeq ($(_have-Makefile),yes)
36
37 # Make tar archive easier to reproduce.
38 export TAR_OPTIONS = --owner=0 --group=0 --numeric-owner
39
40 # Allow the user to add to this in the Makefile.
41 ALL_RECURSIVE_TARGETS =
42
43 include Makefile
44
45 # Some projects override e.g., _autoreconf here.
46 -include $(srcdir)/cfg.mk
47
48 # Allow cfg.mk to override these.
49 _build-aux ?= build-aux
50 _autoreconf ?= autoreconf -v
51
52 include $(srcdir)/maint.mk
53
54 # Ensure that $(VERSION) is up to date for dist-related targets, but not
55 # for others: rerunning autoreconf and recompiling everything isn't cheap.
56 _have-git-version-gen := \
57 $(shell test -f $(srcdir)/$(_build-aux)/git-version-gen && echo yes)
58 ifeq ($(_have-git-version-gen)0,yes$(MAKELEVEL))
59 _is-dist-target ?= $(filter-out %clean, \
60 $(filter maintainer-% dist% alpha beta stable,$(MAKECMDGOALS)))
61 _is-install-target ?= $(filter-out %check, $(filter install%,$(MAKECMDGOALS)))
62 ifneq (,$(_is-dist-target)$(_is-install-target))
63 _curr-ver := $(shell cd $(srcdir) \
64 && $(_build-aux)/git-version-gen \
65 .tarball-version \
66 $(git-version-gen-tag-sed-script))
67 ifneq ($(_curr-ver),$(VERSION))
68 ifeq ($(_curr-ver),UNKNOWN)
69 $(info WARNING: unable to verify if $(VERSION) is the correct version)
70 else
71 ifneq (,$(_is-install-target))
72 # GNU Coding Standards state that 'make install' should not cause
73 # recompilation after 'make all'. But as long as changing the version
74 # string alters config.h, the cost of having 'make all' always have an
75 # up-to-date version is prohibitive. So, as a compromise, we merely
76 # warn when installing a version string that is out of date; the user
77 # should run 'autoreconf' (or something like 'make distcheck') to
78 # fix the version, 'make all' to propagate it, then 'make install'.
79 $(info WARNING: version string $(VERSION) is out of date;)
80 $(info run '$(MAKE) _version' to fix it)
81 else
82 $(info INFO: running autoreconf for new version string: $(_curr-ver))
83 GNUmakefile: _version
84 touch GNUmakefile
85 endif
86 endif
87 endif
88 endif
89 endif
90
91 .PHONY: _version
92 _version:
93 cd $(srcdir) && rm -rf autom4te.cache .version && $(_autoreconf)
94 $(MAKE) $(AM_MAKEFLAGS) Makefile
95
96 else
97
98 .DEFAULT_GOAL := abort-due-to-no-makefile
99 srcdir = .
100
101 # The package can override .DEFAULT_GOAL to run actions like autoreconf.
102 -include ./cfg.mk
103 include ./maint.mk
104
105 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
106 $(MAKECMDGOALS): abort-due-to-no-makefile
107 endif
108
109 abort-due-to-no-makefile:
110 @echo There seems to be no Makefile in this directory. 1>&2
111 @echo "You must run ./configure before running \`make'." 1>&2
112 @exit 1
113
114 endif
115
116 # Tell version 3.79 and up of GNU make to not build goals in this
117 # directory in parallel, in case someone tries to build multiple
118 # targets, and one of them can cause a recursive target to be invoked.
119
120 # Only set this if Automake doesn't provide it.
121 AM_RECURSIVE_TARGETS ?= $(RECURSIVE_TARGETS:-recursive=) \
122 $(RECURSIVE_CLEAN_TARGETS:-recursive=) \
123 dist distcheck tags ctags
124
125 ALL_RECURSIVE_TARGETS += $(AM_RECURSIVE_TARGETS)
126
127 ifneq ($(word 2, $(MAKECMDGOALS)), )
128 ifneq ($(filter $(ALL_RECURSIVE_TARGETS), $(MAKECMDGOALS)), )
129 .NOTPARALLEL:
130 endif
131 endif
0 NULL =
01
12 ACLOCAL_AMFLAGS = -I m4
23
3 SUBDIRS = src man plugin po
4 SUBDIRS = src man plugin po data icons
45
5 EXTRA_DIST = @PACKAGE@.spec \
6 intltool-extract.in \
7 intltool-merge.in \
8 intltool-update.in
6 EXTRA_DIST = \
7 $(PACKAGE).spec \
8 intltool-extract.in \
9 intltool-merge.in \
10 intltool-update.in \
11 GNUmakefile \
12 maint.mk \
13 cfg.mk \
14 build-aux/gitlog-to-changelog \
15 build-aux/useless-if-before-free \
16 build-aux/vc-list-files \
17 $(NULL)
918
10 DISTCLEAN_FILES = @PACKAGE@.spec \
11 intltool-extract \
12 intltool-merge \
13 intltool-update
19 DISTCLEAN_FILES = \
20 $(PACKAGE).spec \
21 intltool-extract \
22 intltool-merge \
23 intltool-update \
24 $(NULL)
1425
15 MAINTAINERCLEANFILES = \
16 m4/libtool.m4 \
17 m4/lt~obsolete.m4 \
18 m4/ltoptions.m4 \
19 m4/ltsugar.m4 \
20 m4/ltversion.m4
26 MAINTAINERCLEANFILES = \
27 m4/libtool.m4 \
28 m4/ltoptions.m4 \
29 m4/ltsugar.m4 \
30 m4/ltversion.m4 \
31 m4/lt~obsolete.m4 \
32 $(NULL)
2133
2234 dist-hook: gen-ChangeLog
2335
5050 configure.lineno config.status.lineno
5151 mkinstalldirs = $(install_sh) -d
5252 CONFIG_HEADER = config.h
53 CONFIG_CLEAN_FILES = virt-viewer.spec mingw32-virt-viewer.spec
53 CONFIG_CLEAN_FILES = mingw32-virt-viewer.spec virt-viewer.spec
5454 CONFIG_CLEAN_VPATH_FILES =
5555 AM_V_GEN = $(am__v_GEN_$(V))
5656 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
120120 AUTOHEADER = @AUTOHEADER@
121121 AUTOMAKE = @AUTOMAKE@
122122 AWK = @AWK@
123 CATALOGS = @CATALOGS@
124 CATOBJEXT = @CATOBJEXT@
123125 CC = @CC@
124126 CCDEPMODE = @CCDEPMODE@
125127 CFLAGS = @CFLAGS@
143145 GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
144146 GMODULE2_CFLAGS = @GMODULE2_CFLAGS@
145147 GMODULE2_LIBS = @GMODULE2_LIBS@
148 GMOFILES = @GMOFILES@
146149 GMSGFMT = @GMSGFMT@
147150 GREP = @GREP@
148151 GTK_API_VERSION = @GTK_API_VERSION@
157160 INSTALL_PROGRAM = @INSTALL_PROGRAM@
158161 INSTALL_SCRIPT = @INSTALL_SCRIPT@
159162 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
163 INSTOBJEXT = @INSTOBJEXT@
164 INTLLIBS = @INTLLIBS@
160165 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
161166 INTLTOOL_MERGE = @INTLTOOL_MERGE@
162167 INTLTOOL_PERL = @INTLTOOL_PERL@
176181 MAKEINFO = @MAKEINFO@
177182 MANIFEST_TOOL = @MANIFEST_TOOL@
178183 MKDIR_P = @MKDIR_P@
184 MKINSTALLDIRS = @MKINSTALLDIRS@
179185 MOZILLA_PLUGIN_CFLAGS = @MOZILLA_PLUGIN_CFLAGS@
180186 MOZILLA_PLUGIN_LIBS = @MOZILLA_PLUGIN_LIBS@
181187 MSGFMT = @MSGFMT@
188 MSGFMT_OPTS = @MSGFMT_OPTS@
182189 MSGMERGE = @MSGMERGE@
183190 NM = @NM@
184191 NMEDIT = @NMEDIT@
199206 PKG_CONFIG = @PKG_CONFIG@
200207 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
201208 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
209 POFILES = @POFILES@
210 POSUB = @POSUB@
211 PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
212 PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
202213 RANLIB = @RANLIB@
203214 SED = @SED@
204215 SET_MAKE = @SET_MAKE@
262273 top_build_prefix = @top_build_prefix@
263274 top_builddir = @top_builddir@
264275 top_srcdir = @top_srcdir@
276 NULL =
265277 ACLOCAL_AMFLAGS = -I m4
266 SUBDIRS = src man plugin po
267 EXTRA_DIST = @PACKAGE@.spec \
268 intltool-extract.in \
269 intltool-merge.in \
270 intltool-update.in
271
272 DISTCLEAN_FILES = @PACKAGE@.spec \
273 intltool-extract \
274 intltool-merge \
275 intltool-update
278 SUBDIRS = src man plugin po data icons
279 EXTRA_DIST = \
280 $(PACKAGE).spec \
281 intltool-extract.in \
282 intltool-merge.in \
283 intltool-update.in \
284 GNUmakefile \
285 maint.mk \
286 cfg.mk \
287 build-aux/gitlog-to-changelog \
288 build-aux/useless-if-before-free \
289 build-aux/vc-list-files \
290 $(NULL)
291
292 DISTCLEAN_FILES = \
293 $(PACKAGE).spec \
294 intltool-extract \
295 intltool-merge \
296 intltool-update \
297 $(NULL)
276298
277299 MAINTAINERCLEANFILES = \
278 m4/libtool.m4 \
279 m4/lt~obsolete.m4 \
280 m4/ltoptions.m4 \
281 m4/ltsugar.m4 \
282 m4/ltversion.m4
300 m4/libtool.m4 \
301 m4/ltoptions.m4 \
302 m4/ltsugar.m4 \
303 m4/ltversion.m4 \
304 m4/lt~obsolete.m4 \
305 $(NULL)
283306
284307 all: config.h
285308 $(MAKE) $(AM_MAKEFLAGS) all-recursive
336359
337360 distclean-hdr:
338361 -rm -f config.h stamp-h1
362 mingw32-virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/mingw32-virt-viewer.spec.in
363 cd $(top_builddir) && $(SHELL) ./config.status $@
339364 virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/virt-viewer.spec.in
340 cd $(top_builddir) && $(SHELL) ./config.status $@
341 mingw32-virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/mingw32-virt-viewer.spec.in
342365 cd $(top_builddir) && $(SHELL) ./config.status $@
343366
344367 mostlyclean-libtool:
00 Virt Viewer News
11 ================
2
3 0.5.0: Feb 14, 2012
4 -------------------
5
6 - Add a remote-viewer binary for connecting to a SPICE/VNC
7 server based on URI, instead of querying libvirt
8 - Add ability to attach to a local VM via libvirt instead of
9 connecting over UNIX sockets
10 - Add support for SPICE controller
11 - Allow build without libvirt, for remote-viewer only
12 - Automatically resize guest desktop when resizing window with SPICE
13 - Add support for redirecting host USB devices to remote guest
14 - Grab focus when first showing the display
15 - Register as a spice-xpi-client-remote alternative
16 - Add pretty icon for virt-viewer app
17 - Set transient window hints on all popups
18 - Activate password 'Ok' button when pressing Enter
19 - Support secure connections with SPICE
20 - Don't hardcode 'localhost' for hostname
221
322 0.4.2: Nov 9, 2011
423 -------------------
1818
1919 http://gtk-vnc.sourceforge.net/
2020
21 Virt Viewer uses the SPICE-GTK (>= 0.6) widget to provide a
21 Virt Viewer uses the SPICE-GTK (>= 0.9) widget to provide a
2222 display of the SPICE protocol, which is available from:
2323
2424 http://spice-space.org/page/Spice-Gtk
1717 You have another version of autoconf. It may work, but is not guaranteed to.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
22 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
23 #
24 # This file is free software, distributed under the terms of the GNU
25 # General Public License. As a special exception to the GNU General
26 # Public License, this file may be distributed as part of a program
27 # that contains a configuration script generated by Autoconf, under
28 # the same distribution terms as the rest of that program.
29 #
30 # This file can be copied and used freely without restrictions. It can
31 # be used in projects which are not available under the GNU Public License
32 # but which still want to provide support for the GNU gettext functionality.
33 #
34 # Macro to add for using GNU gettext.
35 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
36 #
37 # Modified to never use included libintl.
38 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
39 #
40 # Major rework to remove unused code
41 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
42 #
43 # Added better handling of ALL_LINGUAS from GNU gettext version
44 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
45 #
46 # Modified to require ngettext
47 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
48 #
49 # We need this here as well, since someone might use autoconf-2.5x
50 # to configure GLib then an older version to configure a package
51 # using AM_GLIB_GNU_GETTEXT
52 AC_PREREQ(2.53)
53
54 dnl
55 dnl We go to great lengths to make sure that aclocal won't
56 dnl try to pull in the installed version of these macros
57 dnl when running aclocal in the glib directory.
58 dnl
59 m4_copy([AC_DEFUN],[glib_DEFUN])
60 m4_copy([AC_REQUIRE],[glib_REQUIRE])
61 dnl
62 dnl At the end, if we're not within glib, we'll define the public
63 dnl definitions in terms of our private definitions.
64 dnl
65
66 # GLIB_LC_MESSAGES
67 #--------------------
68 glib_DEFUN([GLIB_LC_MESSAGES],
69 [AC_CHECK_HEADERS([locale.h])
70 if test $ac_cv_header_locale_h = yes; then
71 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
72 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
73 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
74 if test $am_cv_val_LC_MESSAGES = yes; then
75 AC_DEFINE(HAVE_LC_MESSAGES, 1,
76 [Define if your <locale.h> file defines LC_MESSAGES.])
77 fi
78 fi])
79
80 # GLIB_PATH_PROG_WITH_TEST
81 #----------------------------
82 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
83 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
84 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
85 [# Extract the first word of "$2", so it can be a program name with args.
86 set dummy $2; ac_word=[$]2
87 AC_MSG_CHECKING([for $ac_word])
88 AC_CACHE_VAL(ac_cv_path_$1,
89 [case "[$]$1" in
90 /*)
91 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
92 ;;
93 *)
94 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
95 for ac_dir in ifelse([$5], , $PATH, [$5]); do
96 test -z "$ac_dir" && ac_dir=.
97 if test -f $ac_dir/$ac_word; then
98 if [$3]; then
99 ac_cv_path_$1="$ac_dir/$ac_word"
100 break
101 fi
102 fi
103 done
104 IFS="$ac_save_ifs"
105 dnl If no 4th arg is given, leave the cache variable unset,
106 dnl so AC_PATH_PROGS will keep looking.
107 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
108 ])dnl
109 ;;
110 esac])dnl
111 $1="$ac_cv_path_$1"
112 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
113 AC_MSG_RESULT([$]$1)
114 else
115 AC_MSG_RESULT(no)
116 fi
117 AC_SUBST($1)dnl
118 ])
119
120 # GLIB_WITH_NLS
121 #-----------------
122 glib_DEFUN([GLIB_WITH_NLS],
123 dnl NLS is obligatory
124 [USE_NLS=yes
125 AC_SUBST(USE_NLS)
126
127 gt_cv_have_gettext=no
128
129 CATOBJEXT=NONE
130 XGETTEXT=:
131 INTLLIBS=
132
133 AC_CHECK_HEADER(libintl.h,
134 [gt_cv_func_dgettext_libintl="no"
135 libintl_extra_libs=""
136
137 #
138 # First check in libc
139 #
140 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
141 [AC_TRY_LINK([
142 #include <libintl.h>
143 ],
144 [return !ngettext ("","", 1)],
145 gt_cv_func_ngettext_libc=yes,
146 gt_cv_func_ngettext_libc=no)
147 ])
148
149 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
150 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
151 [AC_TRY_LINK([
152 #include <libintl.h>
153 ],
154 [return !dgettext ("","")],
155 gt_cv_func_dgettext_libc=yes,
156 gt_cv_func_dgettext_libc=no)
157 ])
158 fi
159
160 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
161 AC_CHECK_FUNCS(bind_textdomain_codeset)
162 fi
163
164 #
165 # If we don't have everything we want, check in libintl
166 #
167 if test "$gt_cv_func_dgettext_libc" != "yes" \
168 || test "$gt_cv_func_ngettext_libc" != "yes" \
169 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
170
171 AC_CHECK_LIB(intl, bindtextdomain,
172 [AC_CHECK_LIB(intl, ngettext,
173 [AC_CHECK_LIB(intl, dgettext,
174 gt_cv_func_dgettext_libintl=yes)])])
175
176 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
177 AC_MSG_CHECKING([if -liconv is needed to use gettext])
178 AC_MSG_RESULT([])
179 AC_CHECK_LIB(intl, ngettext,
180 [AC_CHECK_LIB(intl, dcgettext,
181 [gt_cv_func_dgettext_libintl=yes
182 libintl_extra_libs=-liconv],
183 :,-liconv)],
184 :,-liconv)
185 fi
186
187 #
188 # If we found libintl, then check in it for bind_textdomain_codeset();
189 # we'll prefer libc if neither have bind_textdomain_codeset(),
190 # and both have dgettext and ngettext
191 #
192 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
193 glib_save_LIBS="$LIBS"
194 LIBS="$LIBS -lintl $libintl_extra_libs"
195 unset ac_cv_func_bind_textdomain_codeset
196 AC_CHECK_FUNCS(bind_textdomain_codeset)
197 LIBS="$glib_save_LIBS"
198
199 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
200 gt_cv_func_dgettext_libc=no
201 else
202 if test "$gt_cv_func_dgettext_libc" = "yes" \
203 && test "$gt_cv_func_ngettext_libc" = "yes"; then
204 gt_cv_func_dgettext_libintl=no
205 fi
206 fi
207 fi
208 fi
209
210 if test "$gt_cv_func_dgettext_libc" = "yes" \
211 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
212 gt_cv_have_gettext=yes
213 fi
214
215 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
216 INTLLIBS="-lintl $libintl_extra_libs"
217 fi
218
219 if test "$gt_cv_have_gettext" = "yes"; then
220 AC_DEFINE(HAVE_GETTEXT,1,
221 [Define if the GNU gettext() function is already present or preinstalled.])
222 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
223 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
224 if test "$MSGFMT" != "no"; then
225 glib_save_LIBS="$LIBS"
226 LIBS="$LIBS $INTLLIBS"
227 AC_CHECK_FUNCS(dcgettext)
228 MSGFMT_OPTS=
229 AC_MSG_CHECKING([if msgfmt accepts -c])
230 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
231 msgid ""
232 msgstr ""
233 "Content-Type: text/plain; charset=UTF-8\n"
234 "Project-Id-Version: test 1.0\n"
235 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
236 "Last-Translator: test <foo@bar.xx>\n"
237 "Language-Team: C <LL@li.org>\n"
238 "MIME-Version: 1.0\n"
239 "Content-Transfer-Encoding: 8bit\n"
240 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
241 AC_SUBST(MSGFMT_OPTS)
242 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
243 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
244 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
245 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
246 return _nl_msg_cat_cntr],
247 [CATOBJEXT=.gmo
248 DATADIRNAME=share],
249 [case $host in
250 *-*-solaris*)
251 dnl On Solaris, if bind_textdomain_codeset is in libc,
252 dnl GNU format message catalog is always supported,
253 dnl since both are added to the libc all together.
254 dnl Hence, we'd like to go with DATADIRNAME=share and
255 dnl and CATOBJEXT=.gmo in this case.
256 AC_CHECK_FUNC(bind_textdomain_codeset,
257 [CATOBJEXT=.gmo
258 DATADIRNAME=share],
259 [CATOBJEXT=.mo
260 DATADIRNAME=lib])
261 ;;
262 *-*-openbsd*)
263 CATOBJEXT=.mo
264 DATADIRNAME=share
265 ;;
266 *)
267 CATOBJEXT=.mo
268 DATADIRNAME=lib
269 ;;
270 esac])
271 LIBS="$glib_save_LIBS"
272 INSTOBJEXT=.mo
273 else
274 gt_cv_have_gettext=no
275 fi
276 fi
277 ])
278
279 if test "$gt_cv_have_gettext" = "yes" ; then
280 AC_DEFINE(ENABLE_NLS, 1,
281 [always defined to indicate that i18n is enabled])
282 fi
283
284 dnl Test whether we really found GNU xgettext.
285 if test "$XGETTEXT" != ":"; then
286 dnl If it is not GNU xgettext we define it as : so that the
287 dnl Makefiles still can work.
288 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
289 : ;
290 else
291 AC_MSG_RESULT(
292 [found xgettext program is not GNU xgettext; ignore it])
293 XGETTEXT=":"
294 fi
295 fi
296
297 # We need to process the po/ directory.
298 POSUB=po
299
300 AC_OUTPUT_COMMANDS(
301 [case "$CONFIG_FILES" in *po/Makefile.in*)
302 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
303 esac])
304
305 dnl These rules are solely for the distribution goal. While doing this
306 dnl we only have to keep exactly one list of the available catalogs
307 dnl in configure.ac.
308 for lang in $ALL_LINGUAS; do
309 GMOFILES="$GMOFILES $lang.gmo"
310 POFILES="$POFILES $lang.po"
311 done
312
313 dnl Make all variables we use known to autoconf.
314 AC_SUBST(CATALOGS)
315 AC_SUBST(CATOBJEXT)
316 AC_SUBST(DATADIRNAME)
317 AC_SUBST(GMOFILES)
318 AC_SUBST(INSTOBJEXT)
319 AC_SUBST(INTLLIBS)
320 AC_SUBST(PO_IN_DATADIR_TRUE)
321 AC_SUBST(PO_IN_DATADIR_FALSE)
322 AC_SUBST(POFILES)
323 AC_SUBST(POSUB)
324 ])
325
326 # AM_GLIB_GNU_GETTEXT
327 # -------------------
328 # Do checks necessary for use of gettext. If a suitable implementation
329 # of gettext is found in either in libintl or in the C library,
330 # it will set INTLLIBS to the libraries needed for use of gettext
331 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
332 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
333 # on various variables needed by the Makefile.in.in installed by
334 # glib-gettextize.
335 dnl
336 glib_DEFUN([GLIB_GNU_GETTEXT],
337 [AC_REQUIRE([AC_PROG_CC])dnl
338 AC_REQUIRE([AC_HEADER_STDC])dnl
339
340 GLIB_LC_MESSAGES
341 GLIB_WITH_NLS
342
343 if test "$gt_cv_have_gettext" = "yes"; then
344 if test "x$ALL_LINGUAS" = "x"; then
345 LINGUAS=
346 else
347 AC_MSG_CHECKING(for catalogs to be installed)
348 NEW_LINGUAS=
349 for presentlang in $ALL_LINGUAS; do
350 useit=no
351 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
352 desiredlanguages="$LINGUAS"
353 else
354 desiredlanguages="$ALL_LINGUAS"
355 fi
356 for desiredlang in $desiredlanguages; do
357 # Use the presentlang catalog if desiredlang is
358 # a. equal to presentlang, or
359 # b. a variant of presentlang (because in this case,
360 # presentlang can be used as a fallback for messages
361 # which are not translated in the desiredlang catalog).
362 case "$desiredlang" in
363 "$presentlang"*) useit=yes;;
364 esac
365 done
366 if test $useit = yes; then
367 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
368 fi
369 done
370 LINGUAS=$NEW_LINGUAS
371 AC_MSG_RESULT($LINGUAS)
372 fi
373
374 dnl Construct list of names of catalog files to be constructed.
375 if test -n "$LINGUAS"; then
376 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
377 fi
378 fi
379
380 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
381 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
382 dnl Try to locate is.
383 MKINSTALLDIRS=
384 if test -n "$ac_aux_dir"; then
385 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
386 fi
387 if test -z "$MKINSTALLDIRS"; then
388 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
389 fi
390 AC_SUBST(MKINSTALLDIRS)
391
392 dnl Generate list of files to be processed by xgettext which will
393 dnl be included in po/Makefile.
394 test -d po || mkdir po
395 if test "x$srcdir" != "x."; then
396 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
397 posrcprefix="$srcdir/"
398 else
399 posrcprefix="../$srcdir/"
400 fi
401 else
402 posrcprefix="../"
403 fi
404 rm -f po/POTFILES
405 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
406 < $srcdir/po/POTFILES.in > po/POTFILES
407 ])
408
409 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
410 # -------------------------------
411 # Define VARIABLE to the location where catalog files will
412 # be installed by po/Makefile.
413 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
414 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
415 glib_save_prefix="$prefix"
416 glib_save_exec_prefix="$exec_prefix"
417 glib_save_datarootdir="$datarootdir"
418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
419 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
420 datarootdir=`eval echo "${datarootdir}"`
421 if test "x$CATOBJEXT" = "x.mo" ; then
422 localedir=`eval echo "${libdir}/locale"`
423 else
424 localedir=`eval echo "${datadir}/locale"`
425 fi
426 prefix="$glib_save_prefix"
427 exec_prefix="$glib_save_exec_prefix"
428 datarootdir="$glib_save_datarootdir"
429 AC_DEFINE_UNQUOTED($1, "$localedir",
430 [Define the location where the catalogs will be installed])
431 ])
432
433 dnl
434 dnl Now the definitions that aclocal will find
435 dnl
436 ifdef(glib_configure_ac,[],[
437 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
438 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
439 ])dnl
440
441 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
442 #
443 # Create a temporary file with TEST-FILE as its contents and pass the
444 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
445 # 0 and perform ACTION-IF-FAIL for any other exit status.
446 AC_DEFUN([GLIB_RUN_PROG],
447 [cat >conftest.foo <<_ACEOF
448 $2
449 _ACEOF
450 if AC_RUN_LOG([$1 conftest.foo]); then
451 m4_ifval([$3], [$3], [:])
452 m4_ifvaln([$4], [else $4])dnl
453 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
454 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
455 fi])
456
20457
21458
22459 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
0 eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
1 & eval 'exec perl -wS "$0" $argv:q'
2 if 0;
3 # Convert git log output to ChangeLog format.
4
5 my $VERSION = '2009-10-30 13:46'; # UTC
6 # The definition above must lie within the first 8 lines in order
7 # for the Emacs time-stamp write hook (at end) to update it.
8 # If you change this file with Emacs, please let the write hook
9 # do its job. Otherwise, update this string manually.
10
11 # Copyright (C) 2008-2011 Free Software Foundation, Inc.
12
13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version.
17
18 # This program is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 # GNU General Public License for more details.
22
23 # You should have received a copy of the GNU General Public License
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25
26 # Written by Jim Meyering
27
28 use strict;
29 use warnings;
30 use Getopt::Long;
31 use POSIX qw(strftime);
32
33 (my $ME = $0) =~ s|.*/||;
34
35 # use File::Coda; # http://meyering.net/code/Coda/
36 END {
37 defined fileno STDOUT or return;
38 close STDOUT and return;
39 warn "$ME: failed to close standard output: $!\n";
40 $? ||= 1;
41 }
42
43 sub usage ($)
44 {
45 my ($exit_code) = @_;
46 my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR);
47 if ($exit_code != 0)
48 {
49 print $STREAM "Try `$ME --help' for more information.\n";
50 }
51 else
52 {
53 print $STREAM <<EOF;
54 Usage: $ME [OPTIONS] [ARGS]
55
56 Convert git log output to ChangeLog format. If present, any ARGS
57 are passed to "git log". To avoid ARGS being parsed as options to
58 $ME, they may be preceded by '--'.
59
60 OPTIONS:
61
62 --since=DATE convert only the logs since DATE;
63 the default is to convert all log entries.
64 --format=FMT set format string for commit subject and body;
65 see 'man git-log' for the list of format metacharacters;
66 the default is '%s%n%b%n'
67
68 --help display this help and exit
69 --version output version information and exit
70
71 EXAMPLE:
72
73 $ME --since=2008-01-01 > ChangeLog
74 $ME -- -n 5 foo > last-5-commits-to-branch-foo
75
76 EOF
77 }
78 exit $exit_code;
79 }
80
81 # If the string $S is a well-behaved file name, simply return it.
82 # If it contains white space, quotes, etc., quote it, and return the new string.
83 sub shell_quote($)
84 {
85 my ($s) = @_;
86 if ($s =~ m![^\w+/.,-]!)
87 {
88 # Convert each single quote to '\''
89 $s =~ s/\'/\'\\\'\'/g;
90 # Then single quote the string.
91 $s = "'$s'";
92 }
93 return $s;
94 }
95
96 sub quoted_cmd(@)
97 {
98 return join (' ', map {shell_quote $_} @_);
99 }
100
101 {
102 my $since_date = '1970-01-01 UTC';
103 my $format_string = '%s%n%b%n';
104 GetOptions
105 (
106 help => sub { usage 0 },
107 version => sub { print "$ME version $VERSION\n"; exit },
108 'since=s' => \$since_date,
109 'format=s' => \$format_string,
110 ) or usage 1;
111
112 my @cmd = (qw (git log --log-size), "--since=$since_date",
113 '--pretty=format:%ct %an <%ae>%n%n'.$format_string, @ARGV);
114 open PIPE, '-|', @cmd
115 or die ("$ME: failed to run `". quoted_cmd (@cmd) ."': $!\n"
116 . "(Is your Git too old? Version 1.5.1 or later is required.)\n");
117
118 my $prev_date_line = '';
119 while (1)
120 {
121 defined (my $in = <PIPE>)
122 or last;
123 $in =~ /^log size (\d+)$/
124 or die "$ME:$.: Invalid line (expected log size):\n$in";
125 my $log_nbytes = $1;
126
127 my $log;
128 my $n_read = read PIPE, $log, $log_nbytes;
129 $n_read == $log_nbytes
130 or die "$ME:$.: unexpected EOF\n";
131
132 my @line = split "\n", $log;
133 my $author_line = shift @line;
134 defined $author_line
135 or die "$ME:$.: unexpected EOF\n";
136 $author_line =~ /^(\d+) (.*>)$/
137 or die "$ME:$.: Invalid line "
138 . "(expected date/author/email):\n$author_line\n";
139
140 my $date_line = sprintf "%s $2\n", strftime ("%F", localtime ($1));
141 # If this line would be the same as the previous date/name/email
142 # line, then arrange not to print it.
143 if ($date_line ne $prev_date_line)
144 {
145 $prev_date_line eq ''
146 or print "\n";
147 print $date_line;
148 }
149 $prev_date_line = $date_line;
150
151 # Omit "Signed-off-by..." lines.
152 @line = grep !/^Signed-off-by: .*>$/, @line;
153
154 # If there were any lines
155 if (@line == 0)
156 {
157 warn "$ME: warning: empty commit message:\n $date_line\n";
158 }
159 else
160 {
161 # Remove leading and trailing blank lines.
162 while ($line[0] =~ /^\s*$/) { shift @line; }
163 while ($line[$#line] =~ /^\s*$/) { pop @line; }
164
165 # Prefix each non-empty line with a TAB.
166 @line = map { length $_ ? "\t$_" : '' } @line;
167
168 print "\n", join ("\n", @line), "\n";
169 }
170
171 defined ($in = <PIPE>)
172 or last;
173 $in ne "\n"
174 and die "$ME:$.: unexpected line:\n$in";
175 }
176
177 close PIPE
178 or die "$ME: error closing pipe from " . quoted_cmd (@cmd) . "\n";
179 # FIXME-someday: include $PROCESS_STATUS in the diagnostic
180 }
181
182 # Local Variables:
183 # mode: perl
184 # indent-tabs-mode: nil
185 # eval: (add-hook 'write-file-hooks 'time-stamp)
186 # time-stamp-start: "my $VERSION = '"
187 # time-stamp-format: "%:y-%02m-%02d %02H:%02M"
188 # time-stamp-time-zone: "UTC"
189 # time-stamp-end: "'; # UTC"
190 # End:
0 eval '(exit $?0)' && eval 'exec perl -wST "$0" ${1+"$@"}'
1 & eval 'exec perl -wST "$0" $argv:q'
2 if 0;
3 # Detect instances of "if (p) free (p);".
4 # Likewise "if (p != 0)", "if (0 != p)", or with NULL; and with braces.
5
6 my $VERSION = '2011-04-20 13:43'; # UTC
7 # The definition above must lie within the first 8 lines in order
8 # for the Emacs time-stamp write hook (at end) to update it.
9 # If you change this file with Emacs, please let the write hook
10 # do its job. Otherwise, update this string manually.
11
12 # Copyright (C) 2008-2011 Free Software Foundation, Inc.
13
14 # This program is free software: you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation, either version 3 of the License, or
17 # (at your option) any later version.
18
19 # This program is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU General Public License for more details.
23
24 # You should have received a copy of the GNU General Public License
25 # along with this program. If not, see <http://www.gnu.org/licenses/>.
26
27 # Written by Jim Meyering
28
29 use strict;
30 use warnings;
31 use Getopt::Long;
32
33 (my $ME = $0) =~ s|.*/||;
34
35 # use File::Coda; # http://meyering.net/code/Coda/
36 END {
37 defined fileno STDOUT or return;
38 close STDOUT and return;
39 warn "$ME: failed to close standard output: $!\n";
40 $? ||= 1;
41 }
42
43 sub usage ($)
44 {
45 my ($exit_code) = @_;
46 my $STREAM = ($exit_code == 0 ? *STDOUT : *STDERR);
47 if ($exit_code != 0)
48 {
49 print $STREAM "Try `$ME --help' for more information.\n";
50 }
51 else
52 {
53 print $STREAM <<EOF;
54 Usage: $ME [OPTIONS] FILE...
55
56 Detect any instance in FILE of a useless "if" test before a free call, e.g.,
57 "if (p) free (p);". Any such test may be safely removed without affecting
58 the semantics of the C code in FILE. Use --name=FOO --name=BAR to also
59 detect free-like functions named FOO and BAR.
60
61 OPTIONS:
62
63 --list print only the name of each matching FILE (\\0-terminated)
64 --name=N add name N to the list of \`free\'-like functions to detect;
65 may be repeated
66
67 --help display this help and exit
68 --version output version information and exit
69
70 Exit status:
71
72 0 one or more matches
73 1 no match
74 2 an error
75
76 EXAMPLE:
77
78 For example, this command prints all removable "if" tests before "free"
79 and "kfree" calls in the linux kernel sources:
80
81 git ls-files -z |xargs -0 $ME --name=kfree
82
83 EOF
84 }
85 exit $exit_code;
86 }
87
88 sub is_NULL ($)
89 {
90 my ($expr) = @_;
91 return ($expr eq 'NULL' || $expr eq '0');
92 }
93
94 {
95 sub EXIT_MATCH {0}
96 sub EXIT_NO_MATCH {1}
97 sub EXIT_ERROR {2}
98 my $err = EXIT_NO_MATCH;
99
100 my $list;
101 my @name = qw(free);
102 GetOptions
103 (
104 help => sub { usage 0 },
105 version => sub { print "$ME version $VERSION\n"; exit },
106 list => \$list,
107 'name=s@' => \@name,
108 ) or usage 1;
109
110 # Make sure we have the right number of non-option arguments.
111 # Always tell the user why we fail.
112 @ARGV < 1
113 and (warn "$ME: missing FILE argument\n"), usage EXIT_ERROR;
114
115 my $or = join '|', @name;
116 my $regexp = qr/(?:$or)/;
117
118 # Set the input record separator.
119 # Note: this makes it impractical to print line numbers.
120 $/ = '"';
121
122 my $found_match = 0;
123 FILE:
124 foreach my $file (@ARGV)
125 {
126 open FH, '<', $file
127 or (warn "$ME: can't open `$file' for reading: $!\n"),
128 $err = EXIT_ERROR, next;
129 while (defined (my $line = <FH>))
130 {
131 while ($line =~
132 /\b(if\s*\(\s*([^)]+?)(?:\s*!=\s*([^)]+?))?\s*\)
133 # 1 2 3
134 (?: \s*$regexp\s*\((?:\s*\([^)]+\))?\s*([^)]+)\)\s*;|
135 \s*\{\s*$regexp\s*\((?:\s*\([^)]+\))?\s*([^)]+)\)\s*;\s*\}))/sxg)
136 {
137 my $all = $1;
138 my ($lhs, $rhs) = ($2, $3);
139 my ($free_opnd, $braced_free_opnd) = ($4, $5);
140 my $non_NULL;
141 if (!defined $rhs) { $non_NULL = $lhs }
142 elsif (is_NULL $rhs) { $non_NULL = $lhs }
143 elsif (is_NULL $lhs) { $non_NULL = $rhs }
144 else { next }
145
146 # Compare the non-NULL part of the "if" expression and the
147 # free'd expression, without regard to white space.
148 $non_NULL =~ tr/ \t//d;
149 my $e2 = defined $free_opnd ? $free_opnd : $braced_free_opnd;
150 $e2 =~ tr/ \t//d;
151 if ($non_NULL eq $e2)
152 {
153 $found_match = 1;
154 $list
155 and (print "$file\0"), next FILE;
156 print "$file: $all\n";
157 }
158 }
159 }
160 }
161 continue
162 {
163 close FH;
164 }
165
166 $found_match && $err == EXIT_NO_MATCH
167 and $err = EXIT_MATCH;
168
169 exit $err;
170 }
171
172 my $foo = <<'EOF';
173 # The above is to *find* them.
174 # This adjusts them, removing the unnecessary "if (p)" part.
175
176 # FIXME: do something like this as an option (doesn't do braces):
177 free=xfree
178 git grep -l -z "$free *(" \
179 | xargs -0 useless-if-before-free -l --name="$free" \
180 | xargs -0 perl -0x3b -pi -e \
181 's/\bif\s*\(\s*(\S+?)(?:\s*!=\s*(?:0|NULL))?\s*\)\s+('"$free"'\s*\((?:\s*\([^)]+\))?\s*\1\s*\)\s*;)/$2/s'
182
183 # Use the following to remove redundant uses of kfree inside braces.
184 # Note that -0777 puts perl in slurp-whole-file mode;
185 # but we have plenty of memory, these days...
186 free=kfree
187 git grep -l -z "$free *(" \
188 | xargs -0 useless-if-before-free -l --name="$free" \
189 | xargs -0 perl -0777 -pi -e \
190 's/\bif\s*\(\s*(\S+?)(?:\s*!=\s*(?:0|NULL))?\s*\)\s*\{\s*('"$free"'\s*\((?:\s*\([^)]+\))?\s*\1\s*\);)\s*\}[^\n]*$/$2/gms'
191
192 Be careful that the result of the above transformation is valid.
193 If the matched string is followed by "else", then obviously, it won't be.
194
195 When modifying files, refuse to process anything other than a regular file.
196 EOF
197
198 ## Local Variables:
199 ## mode: perl
200 ## indent-tabs-mode: nil
201 ## eval: (add-hook 'write-file-hooks 'time-stamp)
202 ## time-stamp-start: "my $VERSION = '"
203 ## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
204 ## time-stamp-time-zone: "UTC"
205 ## time-stamp-end: "'; # UTC"
206 ## End:
0 #!/bin/sh
1 # List version-controlled file names.
2
3 # Print a version string.
4 scriptversion=2011-05-16.22; # UTC
5
6 # Copyright (C) 2006-2011 Free Software Foundation, Inc.
7
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21
22 # List the specified version-controlled files.
23 # With no argument, list them all. With a single DIRECTORY argument,
24 # list the version-controlled files in that directory.
25
26 # If there's an argument, it must be a single, "."-relative directory name.
27 # cvsu is part of the cvsutils package: http://www.red-bean.com/cvsutils/
28
29 postprocess=
30 case $1 in
31 --help) cat <<EOF
32 Usage: $0 [-C SRCDIR] [DIR...]
33
34 Output a list of version-controlled files in DIR (default .), relative to
35 SRCDIR (default .). SRCDIR must be the top directory of a checkout.
36
37 Options:
38 --help print this help, then exit
39 --version print version number, then exit
40 -C SRCDIR change directory to SRCDIR before generating list
41
42 Report bugs and patches to <bug-gnulib@gnu.org>.
43 EOF
44 exit ;;
45
46 --version)
47 year=`echo "$scriptversion" | sed 's/[^0-9].*//'`
48 cat <<EOF
49 vc-list-files $scriptversion
50 Copyright (C) $year Free Software Foundation, Inc,
51 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
52 This is free software: you are free to change and redistribute it.
53 There is NO WARRANTY, to the extent permitted by law.
54 EOF
55 exit ;;
56
57 -C)
58 test "$2" = . || postprocess="| sed 's|^|$2/|'"
59 cd "$2" || exit 1
60 shift; shift ;;
61 esac
62
63 test $# = 0 && set .
64
65 for dir
66 do
67 if test -d .git; then
68 test "x$dir" = x. \
69 && dir= sed_esc= \
70 || { dir="$dir/"; sed_esc=`echo "$dir"|env sed 's,\([\\/]\),\\\\\1,g'`; }
71 # Ignore git symlinks - either they point into the tree, in which case
72 # we don't need to visit the target twice, or they point somewhere
73 # else (often into a submodule), in which case the content does not
74 # belong to this package.
75 eval exec git ls-tree -r 'HEAD:"$dir"' \
76 \| sed -n '"s/^100[^ ]*./$sed_esc/p"' $postprocess
77 elif test -d .hg; then
78 eval exec hg locate '"$dir/*"' $postprocess
79 elif test -d .bzr; then
80 test "$postprocess" = '' && postprocess="| sed 's|^\./||'"
81 eval exec bzr ls -R --versioned '"$dir"' $postprocess
82 elif test -d CVS; then
83 test "$postprocess" = '' && postprocess="| sed 's|^\./||'"
84 if test -x build-aux/cvsu; then
85 eval build-aux/cvsu --find --types=AFGM '"$dir"' $postprocess
86 elif (cvsu --help) >/dev/null 2>&1; then
87 eval cvsu --find --types=AFGM '"$dir"' $postprocess
88 else
89 eval awk -F/ \''{ \
90 if (!$1 && $3 !~ /^-/) { \
91 f=FILENAME; \
92 if (f ~ /CVS\/Entries$/) \
93 f = substr(f, 1, length(f)-11); \
94 print f $2; \
95 }}'\'' \
96 `find "$dir" -name Entries -print` /dev/null' $postprocess
97 fi
98 elif test -d .svn; then
99 eval exec svn list -R '"$dir"' $postprocess
100 else
101 echo "$0: Failed to determine type of version control used in `pwd`" 1>&2
102 exit 1
103 fi
104 done
105
106 # Local variables:
107 # eval: (add-hook 'write-file-hooks 'time-stamp)
108 # time-stamp-start: "scriptversion="
109 # time-stamp-format: "%:y-%02m-%02d.%02H"
110 # time-stamp-time-zone: "UTC"
111 # time-stamp-end: "; # UTC"
112 # End:
0 # Customize Makefile.maint. -*- makefile -*-
1 # Copyright (C) 2008-2011 Red Hat, Inc.
2 # Copyright (C) 2003-2008 Free Software Foundation, Inc.
3
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17 # Tests not to run as part of "make distcheck".
18 local-checks-to-skip = \
19 changelog-check \
20 check-AUTHORS \
21 makefile-check \
22 makefile_path_separator_check \
23 patch-check \
24 sc_GPL_version \
25 sc_always_defined_macros \
26 sc_cast_of_alloca_return_value \
27 sc_cross_check_PATH_usage_in_tests \
28 sc_dd_max_sym_length \
29 sc_error_exit_success \
30 sc_file_system \
31 sc_immutable_NEWS \
32 sc_makefile_path_separator_check \
33 sc_obsolete_symbols \
34 sc_prohibit_always_true_header_tests \
35 sc_prohibit_S_IS_definition \
36 sc_prohibit_atoi_atof \
37 sc_prohibit_hash_without_use \
38 sc_prohibit_jm_in_m4 \
39 sc_prohibit_quote_without_use \
40 sc_prohibit_quotearg_without_use \
41 sc_prohibit_stat_st_blocks \
42 sc_root_tests \
43 sc_space_tab \
44 sc_sun_os_names \
45 sc_system_h_headers \
46 sc_texinfo_acronym \
47 sc_tight_scope \
48 sc_two_space_separator_in_usage \
49 sc_error_message_uppercase \
50 sc_program_name \
51 sc_require_test_exit_idiom \
52 sc_makefile_check \
53 sc_useless_cpp_parens
54
55 # Files that should never cause syntax check failures.
56 VC_LIST_ALWAYS_EXCLUDE_REGEX = \
57 (^HACKING|\.po|maint.mk)$$
58
59 # Functions like free() that are no-ops on NULL arguments.
60 useless_free_options = \
61 --name=g_free \
62 --name=xmlBufferFree \
63 --name=xmlFree \
64 --name=xmlFreeDoc \
65 --name=xmlXPathFreeContext \
66 --name=xmlFreeParserContext \
67 --name=xmlXPathFreeObject
68
69 # Ensure that no C source file, docs, or rng schema uses TABs for
70 # indentation. Also match *.h.in files, to get libvirt.h.in. Exclude
71 # files in gnulib, since they're imported.
72 space_indent_files=(\.(rng|s?[ch](\.in)?|html.in|py)|(daemon|tools)/.*\.in)
73 sc_TAB_in_indentation:
74 @prohibit='^ * ' \
75 in_vc_files='$(space_indent_files)$$' \
76 halt='indent with space, not TAB, in C, sh, html, py, and RNG schemas' \
77 $(_sc_search_regexp)
78
79 # G_GNUC_UNUSED should only be applied in implementations, not
80 # header declarations
81 sc_avoid_attribute_unused_in_header:
82 @prohibit='^[^#]*G_GNUC_UNUSED([^:]|$$)' \
83 in_vc_files='\.h$$' \
84 halt='use G_GNUC_UNUSED in .c rather than .h files' \
85 $(_sc_search_regexp)
86
87 # Enforce recommended preprocessor indentation style.
88 sc_preprocessor_indentation:
89 @if cppi --version >/dev/null 2>&1; then \
90 $(VC_LIST_EXCEPT) | grep '\.[ch]$$' | xargs cppi -a -c \
91 || { echo '$(ME): incorrect preprocessor indentation' 1>&2; \
92 exit 1; }; \
93 else \
94 echo '$(ME): skipping test $@: cppi not installed' 1>&2; \
95 fi
96
97 sc_copyright_format:
98 @require='Copyright .*Red 'Hat', Inc\.' \
99 containing='Copyright .*Red 'Hat \
100 halt='Red Hat copyright is missing Inc.' \
101 $(_sc_search_regexp)
102 @prohibit='Copyright [^(].*Red 'Hat \
103 halt='consistently use (C) in Red Hat copyright' \
104 $(_sc_search_regexp)
105 @prohibit='\<Red''Hat\>' \
106 halt='spell Red Hat as two words' \
107 $(_sc_search_regexp)
108
109 # We don't use this feature of maint.mk.
110 prev_version_file = /dev/null
111
112 # Give credit where due:
113 # Ensure that each commit author email address (possibly mapped via
114 # git log's .mailmap) appears in our AUTHORS file.
115 sc_check_author_list:
116 @fail=0; \
117 for i in $$(git log --pretty=format:%aE%n|sort -u|grep -v '^$$'); do \
118 sanitized=$$(echo "$$i"|LC_ALL=C sed 's/\([^a-zA-Z0-9_@-]\)/\\\1/g'); \
119 grep -iq "<$$sanitized>" $(srcdir)/AUTHORS \
120 || { printf '%s\n' "$$i" >&2; fail=1; }; \
121 done; \
122 test $$fail = 1 \
123 && echo '$(ME): committer(s) not listed in AUTHORS' >&2; \
124 test $$fail = 0
125
126
127 exclude_file_name_regexp--sc_preprocessor_indentation = ^*/*.[ch]
128 exclude_file_name_regexp--sc_prohibit_strcmp = ^*/*.[ch]
129 exclude_file_name_regexp--sc_require_config_h = ^plugin/
130 exclude_file_name_regexp--sc_require_config_h_first = ^plugin/
131
132 exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^icons/
133 exclude_file_name_regexp--sc_trailing_blank = ^icons/
00 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* always defined to indicate that i18n is enabled */
3 #undef ENABLE_NLS
14
25 /* GETTEXT package name */
36 #undef GETTEXT_PACKAGE
7
8 /* Define to 1 if you have the `bind_textdomain_codeset' function. */
9 #undef HAVE_BIND_TEXTDOMAIN_CODESET
10
11 /* Define to 1 if you have the `dcgettext' function. */
12 #undef HAVE_DCGETTEXT
413
514 /* Define to 1 if you have the <dlfcn.h> header file. */
615 #undef HAVE_DLFCN_H
817 /* Define to 1 if you have the `fork' function. */
918 #undef HAVE_FORK
1019
20 /* Define if the GNU gettext() function is already present or preinstalled. */
21 #undef HAVE_GETTEXT
22
1123 /* Have gtk-vnc? */
1224 #undef HAVE_GTK_VNC
1325
1426 /* Define to 1 if you have the <inttypes.h> header file. */
1527 #undef HAVE_INTTYPES_H
28
29 /* Define if your <locale.h> file defines LC_MESSAGES. */
30 #undef HAVE_LC_MESSAGES
31
32 /* Have libvirt? */
33 #undef HAVE_LIBVIRT
34
35 /* Define to 1 if you have the <locale.h> header file. */
36 #undef HAVE_LOCALE_H
1637
1738 /* Define to 1 if you have the <memory.h> header file. */
1839 #undef HAVE_MEMORY_H
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for virt-viewer 0.4.2.
2 # Generated by GNU Autoconf 2.68 for virt-viewer 0.5.0.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
566566 # Identity of this package.
567567 PACKAGE_NAME='virt-viewer'
568568 PACKAGE_TARNAME='virt-viewer'
569 PACKAGE_VERSION='0.4.2'
570 PACKAGE_STRING='virt-viewer 0.4.2'
569 PACKAGE_VERSION='0.5.0'
570 PACKAGE_STRING='virt-viewer 0.5.0'
571571 PACKAGE_BUGREPORT=''
572572 PACKAGE_URL=''
573573
638638 GTK_VNC_API_VERSION
639639 GTK_REQUIRED
640640 GTK_API_VERSION
641 HAVE_LIBVIRT_FALSE
642 HAVE_LIBVIRT_TRUE
641643 LIBVIRT_LIBS
642644 LIBVIRT_CFLAGS
643645 LIBXML2_LIBS
647649 PKG_CONFIG_LIBDIR
648650 PKG_CONFIG_PATH
649651 PKG_CONFIG
650 DATADIRNAME
651652 ALL_LINGUAS
652653 INTLTOOL_PERL
653 GMSGFMT
654 MSGFMT
655654 MSGMERGE
656 XGETTEXT
657655 INTLTOOL_POLICY_RULE
658656 INTLTOOL_SERVICE_RULE
659657 INTLTOOL_THEME_RULE
676674 INTLTOOL_EXTRACT
677675 INTLTOOL_MERGE
678676 INTLTOOL_UPDATE
677 MKINSTALLDIRS
678 POSUB
679 POFILES
680 PO_IN_DATADIR_FALSE
681 PO_IN_DATADIR_TRUE
682 INTLLIBS
683 INSTOBJEXT
684 GMOFILES
685 DATADIRNAME
686 CATOBJEXT
687 CATALOGS
688 XGETTEXT
689 GMSGFMT
690 MSGFMT_OPTS
691 MSGFMT
679692 USE_NLS
680693 GETTEXT_PACKAGE
681694 WARN_CFLAGS
803816 enable_compile_warnings
804817 enable_iso_c
805818 enable_nls
819 with_libvirt
806820 with_gtk
807821 with_gtk_vnc
808822 with_spice_gtk
13801394 # Omit some internal or obsolete options to make the list less imposing.
13811395 # This message is too long to be a string in the A/UX 3.1 sh.
13821396 cat <<_ACEOF
1383 \`configure' configures virt-viewer 0.4.2 to adapt to many kinds of systems.
1397 \`configure' configures virt-viewer 0.5.0 to adapt to many kinds of systems.
13841398
13851399 Usage: $0 [OPTION]... [VAR=VALUE]...
13861400
14501464
14511465 if test -n "$ac_init_help"; then
14521466 case $ac_init_help in
1453 short | recursive ) echo "Configuration of virt-viewer 0.4.2:";;
1467 short | recursive ) echo "Configuration of virt-viewer 0.5.0:";;
14541468 esac
14551469 cat <<\_ACEOF
14561470
14811495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
14821496 --with-sysroot=DIR Search for dependent libraries within DIR
14831497 (or the compiler's sysroot if not specified).
1498 --without-libvirt Ignore presence of libvirt and disable it
14841499 --with-gtk=2.0|3.0 which gtk+ version to compile against (default: 2.0)
14851500 --without-gtk-vnc Ignore presence of gtk-vnc and disable it
14861501 --without-spice-gtk Ignore presence of spice-gtk and disable it
15981613 test -n "$ac_init_help" && exit $ac_status
15991614 if $ac_init_version; then
16001615 cat <<\_ACEOF
1601 virt-viewer configure 0.4.2
1616 virt-viewer configure 0.5.0
16021617 generated by GNU Autoconf 2.68
16031618
16041619 Copyright (C) 2010 Free Software Foundation, Inc.
19631978 This file contains any messages produced by compilers while
19641979 running configure, to aid debugging if configure makes a mistake.
19651980
1966 It was created by virt-viewer $as_me 0.4.2, which was
1981 It was created by virt-viewer $as_me 0.5.0, which was
19671982 generated by GNU Autoconf 2.68. Invocation command line was
19681983
19691984 $ $0 $@
27812796
27822797 # Define the identity of the package.
27832798 PACKAGE='virt-viewer'
2784 VERSION='0.4.2'
2799 VERSION='0.5.0'
27852800
27862801
27872802 cat >>confdefs.h <<_ACEOF
29142929 GTK2_REQUIRED="2.12.0"
29152930 GTK3_REQUIRED="3.0"
29162931 GTK_VNC_REQUIRED="0.4.3"
2917 SPICE_GTK_REQUIRED="0.6"
2932 SPICE_GTK_REQUIRED="0.9"
29182933
29192934 ac_ext=c
29202935 ac_cpp='$CPP $CPPFLAGS'
1148911504 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
1149011505
1149111506
11507 # Autoconf 2.61a.99 and earlier don't support linking a file only
11508 # in VPATH builds. But since GNUmakefile is for maintainer use
11509 # only, it does not matter if we skip the link with older autoconf.
11510 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
11511 # builds, so use a shell variable to bypass this.
11512 GNUmakefile=GNUmakefile
11513 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
11514
11515
1149211516
1149311517
1149411518 # Check whether --enable-compile-warnings was given.
1160011624
1160111625
1160211626
11627 for ac_header in locale.h
11628 do :
11629 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11630 if test "x$ac_cv_header_locale_h" = xyes; then :
11631 cat >>confdefs.h <<_ACEOF
11632 #define HAVE_LOCALE_H 1
11633 _ACEOF
11634
11635 fi
11636
11637 done
11638
11639 if test $ac_cv_header_locale_h = yes; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11641 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11642 if ${am_cv_val_LC_MESSAGES+:} false; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <locale.h>
11648 int
11649 main ()
11650 {
11651 return LC_MESSAGES
11652 ;
11653 return 0;
11654 }
11655 _ACEOF
11656 if ac_fn_c_try_link "$LINENO"; then :
11657 am_cv_val_LC_MESSAGES=yes
11658 else
11659 am_cv_val_LC_MESSAGES=no
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11665 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11666 if test $am_cv_val_LC_MESSAGES = yes; then
11667
11668 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11669
11670 fi
11671 fi
11672 USE_NLS=yes
11673
11674
11675 gt_cv_have_gettext=no
11676
11677 CATOBJEXT=NONE
11678 XGETTEXT=:
11679 INTLLIBS=
11680
11681 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
11682 if test "x$ac_cv_header_libintl_h" = xyes; then :
11683 gt_cv_func_dgettext_libintl="no"
11684 libintl_extra_libs=""
11685
11686 #
11687 # First check in libc
11688 #
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
11690 $as_echo_n "checking for ngettext in libc... " >&6; }
11691 if ${gt_cv_func_ngettext_libc+:} false; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696
11697 #include <libintl.h>
11698
11699 int
11700 main ()
11701 {
11702 return !ngettext ("","", 1)
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 if ac_fn_c_try_link "$LINENO"; then :
11708 gt_cv_func_ngettext_libc=yes
11709 else
11710 gt_cv_func_ngettext_libc=no
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
11717 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
11718
11719 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
11721 $as_echo_n "checking for dgettext in libc... " >&6; }
11722 if ${gt_cv_func_dgettext_libc+:} false; then :
11723 $as_echo_n "(cached) " >&6
11724 else
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 /* end confdefs.h. */
11727
11728 #include <libintl.h>
11729
11730 int
11731 main ()
11732 {
11733 return !dgettext ("","")
11734 ;
11735 return 0;
11736 }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 gt_cv_func_dgettext_libc=yes
11740 else
11741 gt_cv_func_dgettext_libc=no
11742 fi
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
11748 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
11749 fi
11750
11751 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11752 for ac_func in bind_textdomain_codeset
11753 do :
11754 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11755 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
11756 cat >>confdefs.h <<_ACEOF
11757 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
11758 _ACEOF
11759
11760 fi
11761 done
11762
11763 fi
11764
11765 #
11766 # If we don't have everything we want, check in libintl
11767 #
11768 if test "$gt_cv_func_dgettext_libc" != "yes" \
11769 || test "$gt_cv_func_ngettext_libc" != "yes" \
11770 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11771
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
11773 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11774 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776 else
11777 ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-lintl $LIBS"
11779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11780 /* end confdefs.h. */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 char bindtextdomain ();
11789 int
11790 main ()
11791 {
11792 return bindtextdomain ();
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_link "$LINENO"; then :
11798 ac_cv_lib_intl_bindtextdomain=yes
11799 else
11800 ac_cv_lib_intl_bindtextdomain=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext \
11803 conftest$ac_exeext conftest.$ac_ext
11804 LIBS=$ac_check_lib_save_LIBS
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
11807 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11808 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11810 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11811 if ${ac_cv_lib_intl_ngettext+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 ac_check_lib_save_LIBS=$LIBS
11815 LIBS="-lintl $LIBS"
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818
11819 /* Override any GCC internal prototype to avoid an error.
11820 Use char because int might match the return type of a GCC
11821 builtin and then its argument prototype would still apply. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 char ngettext ();
11826 int
11827 main ()
11828 {
11829 return ngettext ();
11830 ;
11831 return 0;
11832 }
11833 _ACEOF
11834 if ac_fn_c_try_link "$LINENO"; then :
11835 ac_cv_lib_intl_ngettext=yes
11836 else
11837 ac_cv_lib_intl_ngettext=no
11838 fi
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11841 LIBS=$ac_check_lib_save_LIBS
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11844 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11845 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
11847 $as_echo_n "checking for dgettext in -lintl... " >&6; }
11848 if ${ac_cv_lib_intl_dgettext+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 ac_check_lib_save_LIBS=$LIBS
11852 LIBS="-lintl $LIBS"
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11855
11856 /* Override any GCC internal prototype to avoid an error.
11857 Use char because int might match the return type of a GCC
11858 builtin and then its argument prototype would still apply. */
11859 #ifdef __cplusplus
11860 extern "C"
11861 #endif
11862 char dgettext ();
11863 int
11864 main ()
11865 {
11866 return dgettext ();
11867 ;
11868 return 0;
11869 }
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 ac_cv_lib_intl_dgettext=yes
11873 else
11874 ac_cv_lib_intl_dgettext=no
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878 LIBS=$ac_check_lib_save_LIBS
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
11881 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11882 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
11883 gt_cv_func_dgettext_libintl=yes
11884 fi
11885
11886 fi
11887
11888 fi
11889
11890
11891 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
11893 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11895 $as_echo "" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11897 $as_echo_n "checking for ngettext in -lintl... " >&6; }
11898 if ${ac_cv_lib_intl_ngettext+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 ac_check_lib_save_LIBS=$LIBS
11902 LIBS="-lintl -liconv $LIBS"
11903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11905
11906 /* Override any GCC internal prototype to avoid an error.
11907 Use char because int might match the return type of a GCC
11908 builtin and then its argument prototype would still apply. */
11909 #ifdef __cplusplus
11910 extern "C"
11911 #endif
11912 char ngettext ();
11913 int
11914 main ()
11915 {
11916 return ngettext ();
11917 ;
11918 return 0;
11919 }
11920 _ACEOF
11921 if ac_fn_c_try_link "$LINENO"; then :
11922 ac_cv_lib_intl_ngettext=yes
11923 else
11924 ac_cv_lib_intl_ngettext=no
11925 fi
11926 rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_lib_save_LIBS
11929 fi
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11931 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11932 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
11934 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
11935 if ${ac_cv_lib_intl_dcgettext+:} false; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 ac_check_lib_save_LIBS=$LIBS
11939 LIBS="-lintl -liconv $LIBS"
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941 /* end confdefs.h. */
11942
11943 /* Override any GCC internal prototype to avoid an error.
11944 Use char because int might match the return type of a GCC
11945 builtin and then its argument prototype would still apply. */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 char dcgettext ();
11950 int
11951 main ()
11952 {
11953 return dcgettext ();
11954 ;
11955 return 0;
11956 }
11957 _ACEOF
11958 if ac_fn_c_try_link "$LINENO"; then :
11959 ac_cv_lib_intl_dcgettext=yes
11960 else
11961 ac_cv_lib_intl_dcgettext=no
11962 fi
11963 rm -f core conftest.err conftest.$ac_objext \
11964 conftest$ac_exeext conftest.$ac_ext
11965 LIBS=$ac_check_lib_save_LIBS
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
11968 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11969 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
11970 gt_cv_func_dgettext_libintl=yes
11971 libintl_extra_libs=-liconv
11972 else
11973 :
11974 fi
11975
11976 else
11977 :
11978 fi
11979
11980 fi
11981
11982 #
11983 # If we found libintl, then check in it for bind_textdomain_codeset();
11984 # we'll prefer libc if neither have bind_textdomain_codeset(),
11985 # and both have dgettext and ngettext
11986 #
11987 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11988 glib_save_LIBS="$LIBS"
11989 LIBS="$LIBS -lintl $libintl_extra_libs"
11990 unset ac_cv_func_bind_textdomain_codeset
11991 for ac_func in bind_textdomain_codeset
11992 do :
11993 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11994 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
11995 cat >>confdefs.h <<_ACEOF
11996 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
11997 _ACEOF
11998
11999 fi
12000 done
12001
12002 LIBS="$glib_save_LIBS"
12003
12004 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
12005 gt_cv_func_dgettext_libc=no
12006 else
12007 if test "$gt_cv_func_dgettext_libc" = "yes" \
12008 && test "$gt_cv_func_ngettext_libc" = "yes"; then
12009 gt_cv_func_dgettext_libintl=no
12010 fi
12011 fi
12012 fi
12013 fi
12014
12015 if test "$gt_cv_func_dgettext_libc" = "yes" \
12016 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
12017 gt_cv_have_gettext=yes
12018 fi
12019
12020 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
12021 INTLLIBS="-lintl $libintl_extra_libs"
12022 fi
12023
12024 if test "$gt_cv_have_gettext" = "yes"; then
12025
12026 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12027
12028 # Extract the first word of "msgfmt", so it can be a program name with args.
12029 set dummy msgfmt; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_MSGFMT+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 case "$MSGFMT" in
12036 /*)
12037 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12038 ;;
12039 *)
12040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12041 for ac_dir in $PATH; do
12042 test -z "$ac_dir" && ac_dir=.
12043 if test -f $ac_dir/$ac_word; then
12044 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12045 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12046 break
12047 fi
12048 fi
12049 done
12050 IFS="$ac_save_ifs"
12051 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12052 ;;
12053 esac
12054 fi
12055 MSGFMT="$ac_cv_path_MSGFMT"
12056 if test "$MSGFMT" != "no"; then
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12058 $as_echo "$MSGFMT" >&6; }
12059 else
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063 if test "$MSGFMT" != "no"; then
12064 glib_save_LIBS="$LIBS"
12065 LIBS="$LIBS $INTLLIBS"
12066 for ac_func in dcgettext
12067 do :
12068 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
12069 if test "x$ac_cv_func_dcgettext" = xyes; then :
12070 cat >>confdefs.h <<_ACEOF
12071 #define HAVE_DCGETTEXT 1
12072 _ACEOF
12073
12074 fi
12075 done
12076
12077 MSGFMT_OPTS=
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
12079 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
12080 cat >conftest.foo <<_ACEOF
12081
12082 msgid ""
12083 msgstr ""
12084 "Content-Type: text/plain; charset=UTF-8\n"
12085 "Project-Id-Version: test 1.0\n"
12086 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
12087 "Last-Translator: test <foo@bar.xx>\n"
12088 "Language-Team: C <LL@li.org>\n"
12089 "MIME-Version: 1.0\n"
12090 "Content-Transfer-Encoding: 8bit\n"
12091
12092 _ACEOF
12093 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
12094 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; }; then
12098 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12100 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101 $as_echo "no" >&6; }
12102 echo "$as_me: failed input was:" >&5
12103 sed 's/^/| /' conftest.foo >&5
12104 fi
12105
12106 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12107 set dummy gmsgfmt; ac_word=$2
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109 $as_echo_n "checking for $ac_word... " >&6; }
12110 if ${ac_cv_path_GMSGFMT+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 case $GMSGFMT in
12114 [\\/]* | ?:[\\/]*)
12115 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12116 ;;
12117 *)
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12120 do
12121 IFS=$as_save_IFS
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12125 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12127 break 2
12128 fi
12129 done
12130 done
12131 IFS=$as_save_IFS
12132
12133 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12134 ;;
12135 esac
12136 fi
12137 GMSGFMT=$ac_cv_path_GMSGFMT
12138 if test -n "$GMSGFMT"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12140 $as_echo "$GMSGFMT" >&6; }
12141 else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12144 fi
12145
12146
12147 # Extract the first word of "xgettext", so it can be a program name with args.
12148 set dummy xgettext; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if ${ac_cv_path_XGETTEXT+:} false; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 case "$XGETTEXT" in
12155 /*)
12156 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12157 ;;
12158 *)
12159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12160 for ac_dir in $PATH; do
12161 test -z "$ac_dir" && ac_dir=.
12162 if test -f $ac_dir/$ac_word; then
12163 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12164 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12165 break
12166 fi
12167 fi
12168 done
12169 IFS="$ac_save_ifs"
12170 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12171 ;;
12172 esac
12173 fi
12174 XGETTEXT="$ac_cv_path_XGETTEXT"
12175 if test "$XGETTEXT" != ":"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12177 $as_echo "$XGETTEXT" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12181 fi
12182
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12185
12186 int
12187 main ()
12188 {
12189 extern int _nl_msg_cat_cntr;
12190 return _nl_msg_cat_cntr
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 CATOBJEXT=.gmo
12197 DATADIRNAME=share
12198 else
12199 case $host in
12200 *-*-solaris*)
12201 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12202 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
12203 CATOBJEXT=.gmo
12204 DATADIRNAME=share
12205 else
12206 CATOBJEXT=.mo
12207 DATADIRNAME=lib
12208 fi
12209
12210 ;;
12211 *-*-openbsd*)
12212 CATOBJEXT=.mo
12213 DATADIRNAME=share
12214 ;;
12215 *)
12216 CATOBJEXT=.mo
12217 DATADIRNAME=lib
12218 ;;
12219 esac
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS="$glib_save_LIBS"
12224 INSTOBJEXT=.mo
12225 else
12226 gt_cv_have_gettext=no
12227 fi
12228 fi
12229
12230 fi
12231
12232
12233
12234 if test "$gt_cv_have_gettext" = "yes" ; then
12235
12236 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12237
12238 fi
12239
12240 if test "$XGETTEXT" != ":"; then
12241 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12242 : ;
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12245 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12246 XGETTEXT=":"
12247 fi
12248 fi
12249
12250 # We need to process the po/ directory.
12251 POSUB=po
12252
12253 ac_config_commands="$ac_config_commands default-1"
12254
12255
12256 for lang in $ALL_LINGUAS; do
12257 GMOFILES="$GMOFILES $lang.gmo"
12258 POFILES="$POFILES $lang.po"
12259 done
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273 if test "$gt_cv_have_gettext" = "yes"; then
12274 if test "x$ALL_LINGUAS" = "x"; then
12275 LINGUAS=
12276 else
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12278 $as_echo_n "checking for catalogs to be installed... " >&6; }
12279 NEW_LINGUAS=
12280 for presentlang in $ALL_LINGUAS; do
12281 useit=no
12282 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12283 desiredlanguages="$LINGUAS"
12284 else
12285 desiredlanguages="$ALL_LINGUAS"
12286 fi
12287 for desiredlang in $desiredlanguages; do
12288 # Use the presentlang catalog if desiredlang is
12289 # a. equal to presentlang, or
12290 # b. a variant of presentlang (because in this case,
12291 # presentlang can be used as a fallback for messages
12292 # which are not translated in the desiredlang catalog).
12293 case "$desiredlang" in
12294 "$presentlang"*) useit=yes;;
12295 esac
12296 done
12297 if test $useit = yes; then
12298 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12299 fi
12300 done
12301 LINGUAS=$NEW_LINGUAS
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12303 $as_echo "$LINGUAS" >&6; }
12304 fi
12305
12306 if test -n "$LINGUAS"; then
12307 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12308 fi
12309 fi
12310
12311 MKINSTALLDIRS=
12312 if test -n "$ac_aux_dir"; then
12313 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12314 fi
12315 if test -z "$MKINSTALLDIRS"; then
12316 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12317 fi
12318
12319
12320 test -d po || mkdir po
12321 if test "x$srcdir" != "x."; then
12322 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12323 posrcprefix="$srcdir/"
12324 else
12325 posrcprefix="../$srcdir/"
12326 fi
12327 else
12328 posrcprefix="../"
12329 fi
12330 rm -f po/POTFILES
12331 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12332 < $srcdir/po/POTFILES.in > po/POTFILES
12333
12334
1160312335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
1160412336 $as_echo_n "checking whether NLS is requested... " >&6; }
1160512337 # Check whether --enable-nls was given.
1246113193
1246213194 fi
1246313195
13196
13197 # Check whether --with-libvirt was given.
13198 if test "${with_libvirt+set}" = set; then :
13199 withval=$with_libvirt;
13200 fi
13201
13202
13203 if test "x$with_libvirt" != "xno"; then :
13204
1246413205 pkg_failed=no
1246513206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVIRT" >&5
1246613207 $as_echo_n "checking for LIBVIRT... " >&6; }
1246913210 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS"
1247013211 elif test -n "$PKG_CONFIG"; then
1247113212 if test -n "$PKG_CONFIG" && \
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= \$LIBVIRT_REQUIRED\""; } >&5
12473 ($PKG_CONFIG --exists --print-errors "libvirt >= $LIBVIRT_REQUIRED") 2>&5
13213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt\""; } >&5
13214 ($PKG_CONFIG --exists --print-errors "libvirt") 2>&5
1247413215 ac_status=$?
1247513216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1247613217 test $ac_status = 0; }; then
12477 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= $LIBVIRT_REQUIRED" 2>/dev/null`
13218 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt" 2>/dev/null`
1247813219 else
1247913220 pkg_failed=yes
1248013221 fi
1248513226 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS"
1248613227 elif test -n "$PKG_CONFIG"; then
1248713228 if test -n "$PKG_CONFIG" && \
12488 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= \$LIBVIRT_REQUIRED\""; } >&5
12489 ($PKG_CONFIG --exists --print-errors "libvirt >= $LIBVIRT_REQUIRED") 2>&5
13229 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt\""; } >&5
13230 ($PKG_CONFIG --exists --print-errors "libvirt") 2>&5
1249013231 ac_status=$?
1249113232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1249213233 test $ac_status = 0; }; then
12493 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= $LIBVIRT_REQUIRED" 2>/dev/null`
13234 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt" 2>/dev/null`
1249413235 else
1249513236 pkg_failed=yes
1249613237 fi
1251013251 _pkg_short_errors_supported=no
1251113252 fi
1251213253 if test $_pkg_short_errors_supported = yes; then
12513 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvirt >= $LIBVIRT_REQUIRED" 2>&1`
13254 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvirt" 2>&1`
1251413255 else
12515 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvirt >= $LIBVIRT_REQUIRED" 2>&1`
13256 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvirt" 2>&1`
1251613257 fi
1251713258 # Put the nasty error message in config.log where it belongs
1251813259 echo "$LIBVIRT_PKG_ERRORS" >&5
1251913260
12520 as_fn_error $? "Package requirements (libvirt >= $LIBVIRT_REQUIRED) were not met:
12521
12522 $LIBVIRT_PKG_ERRORS
12523
12524 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12525 installed software in a non-standard prefix.
12526
12527 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
12528 and LIBVIRT_LIBS to avoid the need to call pkg-config.
12529 See the pkg-config man page for more details." "$LINENO" 5
12530
13261 have_libvirt=no
1253113262 elif test $pkg_failed = untried; then
1253213263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1253313264 $as_echo "no" >&6; }
12534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12536 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12537 is in your PATH or set the PKG_CONFIG environment variable to the full
12538 path to pkg-config.
12539
12540 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
12541 and LIBVIRT_LIBS to avoid the need to call pkg-config.
12542 See the pkg-config man page for more details.
12543
12544 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12545 See \`config.log' for more details" "$LINENO" 5; }
12546
13265 have_libvirt=no
1254713266 else
1254813267 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
1254913268 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
1255013269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1255113270 $as_echo "yes" >&6; }
12552
12553 fi
13271 have_libvirt=yes
13272 fi
13273 else
13274 have_libvirt=no
13275 fi
13276
13277 if test "x$have_libvirt" = "xyes"; then :
13278
13279 $as_echo "#define HAVE_LIBVIRT 1" >>confdefs.h
13280
13281 else
13282 if test "x$with_libvirt" = "xyes"; then :
13283 as_fn_error $? "libvirt requested but not found" "$LINENO" 5
13284
13285 fi
13286
13287 fi
13288 if test "x$have_libvirt" = "xyes"; then
13289 HAVE_LIBVIRT_TRUE=
13290 HAVE_LIBVIRT_FALSE='#'
13291 else
13292 HAVE_LIBVIRT_TRUE='#'
13293 HAVE_LIBVIRT_FALSE=
13294 fi
13295
1255413296
1255513297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which gtk+ version to compile against" >&5
1255613298 $as_echo_n "checking which gtk+ version to compile against... " >&6; }
1281113553 pkg_cv_SPICE_GTK_CFLAGS="$SPICE_GTK_CFLAGS"
1281213554 elif test -n "$PKG_CONFIG"; then
1281313555 if test -n "$PKG_CONFIG" && \
12814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-client-gtk-\$SPICE_GTK_API_VERSION >= \$SPICE_GTK_REQUIRED\""; } >&5
12815 ($PKG_CONFIG --exists --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED") 2>&5
13556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-client-gtk-\$SPICE_GTK_API_VERSION >= \$SPICE_GTK_REQUIRED
13557 spice-controller\""; } >&5
13558 ($PKG_CONFIG --exists --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
13559 spice-controller") 2>&5
1281613560 ac_status=$?
1281713561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1281813562 test $ac_status = 0; }; then
12819 pkg_cv_SPICE_GTK_CFLAGS=`$PKG_CONFIG --cflags "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED" 2>/dev/null`
13563 pkg_cv_SPICE_GTK_CFLAGS=`$PKG_CONFIG --cflags "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
13564 spice-controller" 2>/dev/null`
1282013565 else
1282113566 pkg_failed=yes
1282213567 fi
1282713572 pkg_cv_SPICE_GTK_LIBS="$SPICE_GTK_LIBS"
1282813573 elif test -n "$PKG_CONFIG"; then
1282913574 if test -n "$PKG_CONFIG" && \
12830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-client-gtk-\$SPICE_GTK_API_VERSION >= \$SPICE_GTK_REQUIRED\""; } >&5
12831 ($PKG_CONFIG --exists --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED") 2>&5
13575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-client-gtk-\$SPICE_GTK_API_VERSION >= \$SPICE_GTK_REQUIRED
13576 spice-controller\""; } >&5
13577 ($PKG_CONFIG --exists --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
13578 spice-controller") 2>&5
1283213579 ac_status=$?
1283313580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1283413581 test $ac_status = 0; }; then
12835 pkg_cv_SPICE_GTK_LIBS=`$PKG_CONFIG --libs "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED" 2>/dev/null`
13582 pkg_cv_SPICE_GTK_LIBS=`$PKG_CONFIG --libs "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
13583 spice-controller" 2>/dev/null`
1283613584 else
1283713585 pkg_failed=yes
1283813586 fi
1285213600 _pkg_short_errors_supported=no
1285313601 fi
1285413602 if test $_pkg_short_errors_supported = yes; then
12855 SPICE_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED" 2>&1`
13603 SPICE_GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
13604 spice-controller" 2>&1`
1285613605 else
12857 SPICE_GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED" 2>&1`
13606 SPICE_GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
13607 spice-controller" 2>&1`
1285813608 fi
1285913609 # Put the nasty error message in config.log where it belongs
1286013610 echo "$SPICE_GTK_PKG_ERRORS" >&5
1329214042 fi
1329314043
1329414044
13295 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile po/Makefile.in plugin/Makefile virt-viewer.spec mingw32-virt-viewer.spec"
14045 ac_config_files="$ac_config_files Makefile data/Makefile data/virt-viewer.nsis icons/Makefile icons/16x16/Makefile icons/22x22/Makefile icons/24x24/Makefile icons/32x32/Makefile icons/48x48/Makefile icons/256x256/Makefile man/Makefile mingw32-virt-viewer.spec plugin/Makefile po/Makefile.in src/Makefile virt-viewer.spec"
1329614046
1329714047 cat >confcache <<\_ACEOF
1329814048 # This file is a shell script that caches the results of configure
1342314173 ac_config_commands="$ac_config_commands po/stamp-it"
1342414174
1342514175
14176 if test -z "${HAVE_LIBVIRT_TRUE}" && test -z "${HAVE_LIBVIRT_FALSE}"; then
14177 as_fn_error $? "conditional \"HAVE_LIBVIRT\" was never defined.
14178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14179 fi
1342614180 if test -z "${HAVE_GTK_2_TRUE}" && test -z "${HAVE_GTK_2_FALSE}"; then
1342714181 as_fn_error $? "conditional \"HAVE_GTK_2\" was never defined.
1342814182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1385214606 # report actual input values of CONFIG_FILES etc. instead of their
1385314607 # values after options handling.
1385414608 ac_log="
13855 This file was extended by virt-viewer $as_me 0.4.2, which was
14609 This file was extended by virt-viewer $as_me 0.5.0, which was
1385614610 generated by GNU Autoconf 2.68. Invocation command line was
1385714611
1385814612 CONFIG_FILES = $CONFIG_FILES
1387914633 # Files that config.status was made for.
1388014634 config_files="$ac_config_files"
1388114635 config_headers="$ac_config_headers"
14636 config_links="$ac_config_links"
1388214637 config_commands="$ac_config_commands"
1388314638
1388414639 _ACEOF
1390914664 Configuration headers:
1391014665 $config_headers
1391114666
14667 Configuration links:
14668 $config_links
14669
1391214670 Configuration commands:
1391314671 $config_commands
1391414672
1391814676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1391914677 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1392014678 ac_cs_version="\\
13921 virt-viewer config.status 0.4.2
14679 virt-viewer config.status 0.5.0
1392214680 configured by $0, generated by GNU Autoconf 2.68,
1392314681 with options \\"\$ac_cs_config\\"
1392414682
1431515073
1431615074
1431715075
15076 GNUmakefile=$GNUmakefile
15077
1431815078
1431915079 _ACEOF
1432015080
1432715087 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1432815088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1432915089 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15090 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
15091 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
1433015092 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15093 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
15094 "data/virt-viewer.nsis") CONFIG_FILES="$CONFIG_FILES data/virt-viewer.nsis" ;;
15095 "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
15096 "icons/16x16/Makefile") CONFIG_FILES="$CONFIG_FILES icons/16x16/Makefile" ;;
15097 "icons/22x22/Makefile") CONFIG_FILES="$CONFIG_FILES icons/22x22/Makefile" ;;
15098 "icons/24x24/Makefile") CONFIG_FILES="$CONFIG_FILES icons/24x24/Makefile" ;;
15099 "icons/32x32/Makefile") CONFIG_FILES="$CONFIG_FILES icons/32x32/Makefile" ;;
15100 "icons/48x48/Makefile") CONFIG_FILES="$CONFIG_FILES icons/48x48/Makefile" ;;
15101 "icons/256x256/Makefile") CONFIG_FILES="$CONFIG_FILES icons/256x256/Makefile" ;;
15102 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15103 "mingw32-virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES mingw32-virt-viewer.spec" ;;
15104 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
15105 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
1433115106 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14332 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14333 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14334 "plugin/Makefile") CONFIG_FILES="$CONFIG_FILES plugin/Makefile" ;;
1433515107 "virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES virt-viewer.spec" ;;
14336 "mingw32-virt-viewer.spec") CONFIG_FILES="$CONFIG_FILES mingw32-virt-viewer.spec" ;;
1433715108 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
1433815109
1433915110 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1434815119 if $ac_need_defaults; then
1434915120 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1435015121 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15122 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
1435115123 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1435215124 fi
1435315125
1464515417 fi # test -n "$CONFIG_HEADERS"
1464615418
1464715419
14648 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15420 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
1464915421 shift
1465015422 for ac_tag
1465115423 do
1492215694 }
1492315695 s/.*/./; q'`/stamp-h$_am_stamp_count
1492415696 ;;
14925
15697 :L)
15698 #
15699 # CONFIG_LINK
15700 #
15701
15702 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15703 :
15704 else
15705 # Prefer the file from the source tree if names are identical.
15706 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15707 ac_source=$srcdir/$ac_source
15708 fi
15709
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15711 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15712
15713 if test ! -r "$ac_source"; then
15714 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15715 fi
15716 rm -f "$ac_file"
15717
15718 # Try a relative symlink, then a hard link, then a copy.
15719 case $ac_source in
15720 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15721 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15722 esac
15723 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15724 ln "$ac_source" "$ac_file" 2>/dev/null ||
15725 cp -p "$ac_source" "$ac_file" ||
15726 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15727 fi
15728 ;;
1492615729 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
1492715730 $as_echo "$as_me: executing $ac_file commands" >&6;}
1492815731 ;;
1565616459 chmod +x "$ofile"
1565716460
1565816461 ;;
16462 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16463 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16464 esac ;;
1565916465 "po/stamp-it":C)
1566016466 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
1566116467 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
00
1 AC_INIT(virt-viewer, 0.4.2)
1 AC_INIT(virt-viewer, 0.5.0)
22 AC_CONFIG_SRCDIR(src/virt-viewer-main.c)
33 AM_CONFIG_HEADER(config.h)
44 dnl Make automake keep quiet about wildcards & other GNUmake-isms
1515 GTK2_REQUIRED="2.12.0"
1616 GTK3_REQUIRED="3.0"
1717 GTK_VNC_REQUIRED="0.4.3"
18 SPICE_GTK_REQUIRED="0.6"
18 SPICE_GTK_REQUIRED="0.9"
1919
2020 AC_PROG_CC
2121 AM_PROG_CC_C_O
2525
2626 AC_DEFINE([_GNU_SOURCE], [], [Enable GNU extensions])
2727
28 # Autoconf 2.61a.99 and earlier don't support linking a file only
29 # in VPATH builds. But since GNUmakefile is for maintainer use
30 # only, it does not matter if we skip the link with older autoconf.
31 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
32 # builds, so use a shell variable to bypass this.
33 GNUmakefile=GNUmakefile
34 m4_if(m4_version_compare([2.61a.100],
35 m4_defn([m4_PACKAGE_VERSION])), [1], [],
36 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
37 [GNUmakefile=$GNUmakefile])])
38
2839 VIRT_VIEWER_COMPILE_WARNINGS(maximum)
2940
3041 GETTEXT_PACKAGE=virt-viewer
3142 AC_SUBST(GETTEXT_PACKAGE)
32 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
33
43 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],"$GETTEXT_PACKAGE", [GETTEXT package name])
44
45 AM_GLIB_GNU_GETTEXT
3446 IT_PROG_INTLTOOL([0.35.0])
3547
3648
3749 PKG_CHECK_MODULES(GMODULE2, gmodule-export-2.0 >= $GMODULE2_REQUIRED)
3850 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= $LIBXML2_REQUIRED)
39 PKG_CHECK_MODULES(LIBVIRT, libvirt >= $LIBVIRT_REQUIRED)
51
52 AC_ARG_WITH([libvirt],
53 AS_HELP_STRING([--without-libvirt], [Ignore presence of libvirt and disable it]))
54
55 AS_IF([test "x$with_libvirt" != "xno"],
56 [PKG_CHECK_MODULES(LIBVIRT,
57 [libvirt],
58 [have_libvirt=yes], [have_libvirt=no])],
59 [have_libvirt=no])
60
61 AS_IF([test "x$have_libvirt" = "xyes"],
62 [AC_DEFINE([HAVE_LIBVIRT], 1, [Have libvirt?])],
63 [AS_IF([test "x$with_libvirt" = "xyes"],
64 [AC_MSG_ERROR([libvirt requested but not found])
65 ])
66 ])
67 AM_CONDITIONAL([HAVE_LIBVIRT], [test "x$have_libvirt" = "xyes"])
4068
4169 AC_MSG_CHECKING([which gtk+ version to compile against])
4270 AC_ARG_WITH([gtk],
91119
92120 AS_IF([test "x$with_spice_gtk" != "xno"],
93121 [PKG_CHECK_MODULES(SPICE_GTK,
94 spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED,
122 [spice-client-gtk-$SPICE_GTK_API_VERSION >= $SPICE_GTK_REQUIRED
123 spice-controller],
95124 [have_spice_gtk=yes], [have_spice_gtk=no])],
96125 [have_spice_gtk=no])
97126
130159 fi
131160 AM_CONDITIONAL(ENABLE_PLUGIN, [test "x$enable_plugin" = "xyes"])
132161
133 AC_OUTPUT(Makefile
134 src/Makefile
135 man/Makefile
136 po/Makefile.in
137 plugin/Makefile
138 virt-viewer.spec
139 mingw32-virt-viewer.spec)
162 AC_OUTPUT([
163 Makefile
164 data/Makefile
165 data/virt-viewer.nsis
166 icons/Makefile
167 icons/16x16/Makefile
168 icons/22x22/Makefile
169 icons/24x24/Makefile
170 icons/32x32/Makefile
171 icons/48x48/Makefile
172 icons/256x256/Makefile
173 man/Makefile
174 mingw32-virt-viewer.spec
175 plugin/Makefile
176 po/Makefile.in
177 src/Makefile
178 virt-viewer.spec
179 ])
140180
141181 AC_MSG_NOTICE([])
142182 AC_MSG_NOTICE([Configuration summary])
0 NULL=
1
2 EXTRA_DIST = \
3 spice-xpi-client-remote-viewer \
4 virt-viewer.nsis.in \
5 $(NULL)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = data
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
37 $(srcdir)/virt-viewer.nsis.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
41 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
42 $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/config.h
47 CONFIG_CLEAN_FILES = virt-viewer.nsis
48 CONFIG_CLEAN_VPATH_FILES =
49 AM_V_GEN = $(am__v_GEN_$(V))
50 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))