Codebase list virt-viewer / e4be188
Imported upstream version 0.0.2 Guido Guenther 16 years ago
24 changed file(s) with 10237 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Virt Viewer Authors
1 ===================
2
3 The Virt Viewer application is written by
4
5 Daniel P. Berrange <berrange@redhat.com>
6
7 With additional patches from:
8
9 ...send patches to get your name here...
10
11 -- End
0 GNU GENERAL PUBLIC LICENSE
1 Version 2, June 1991
2
3 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
4 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
5 Everyone is permitted to copy and distribute verbatim copies
6 of this license document, but changing it is not allowed.
7
8 Preamble
9
10 The licenses for most software are designed to take away your
11 freedom to share and change it. By contrast, the GNU General Public
12 License is intended to guarantee your freedom to share and change free
13 software--to make sure the software is free for all its users. This
14 General Public License applies to most of the Free Software
15 Foundation's software and to any other program whose authors commit to
16 using it. (Some other Free Software Foundation software is covered by
17 the GNU Library General Public License instead.) You can apply it to
18 your programs, too.
19
20 When we speak of free software, we are referring to freedom, not
21 price. Our General Public Licenses are designed to make sure that you
22 have the freedom to distribute copies of free software (and charge for
23 this service if you wish), that you receive source code or can get it
24 if you want it, that you can change the software or use pieces of it
25 in new free programs; and that you know you can do these things.
26
27 To protect your rights, we need to make restrictions that forbid
28 anyone to deny you these rights or to ask you to surrender the rights.
29 These restrictions translate to certain responsibilities for you if you
30 distribute copies of the software, or if you modify it.
31
32 For example, if you distribute copies of such a program, whether
33 gratis or for a fee, you must give the recipients all the rights that
34 you have. You must make sure that they, too, receive or can get the
35 source code. And you must show them these terms so they know their
36 rights.
37
38 We protect your rights with two steps: (1) copyright the software, and
39 (2) offer you this license which gives you legal permission to copy,
40 distribute and/or modify the software.
41
42 Also, for each author's protection and ours, we want to make certain
43 that everyone understands that there is no warranty for this free
44 software. If the software is modified by someone else and passed on, we
45 want its recipients to know that what they have is not the original, so
46 that any problems introduced by others will not reflect on the original
47 authors' reputations.
48
49 Finally, any free program is threatened constantly by software
50 patents. We wish to avoid the danger that redistributors of a free
51 program will individually obtain patent licenses, in effect making the
52 program proprietary. To prevent this, we have made it clear that any
53 patent must be licensed for everyone's free use or not licensed at all.
54
55 The precise terms and conditions for copying, distribution and
56 modification follow.
57
58 GNU GENERAL PUBLIC LICENSE
59 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
60
61 0. This License applies to any program or other work which contains
62 a notice placed by the copyright holder saying it may be distributed
63 under the terms of this General Public License. The "Program", below,
64 refers to any such program or work, and a "work based on the Program"
65 means either the Program or any derivative work under copyright law:
66 that is to say, a work containing the Program or a portion of it,
67 either verbatim or with modifications and/or translated into another
68 language. (Hereinafter, translation is included without limitation in
69 the term "modification".) Each licensee is addressed as "you".
70
71 Activities other than copying, distribution and modification are not
72 covered by this License; they are outside its scope. The act of
73 running the Program is not restricted, and the output from the Program
74 is covered only if its contents constitute a work based on the
75 Program (independent of having been made by running the Program).
76 Whether that is true depends on what the Program does.
77
78 1. You may copy and distribute verbatim copies of the Program's
79 source code as you receive it, in any medium, provided that you
80 conspicuously and appropriately publish on each copy an appropriate
81 copyright notice and disclaimer of warranty; keep intact all the
82 notices that refer to this License and to the absence of any warranty;
83 and give any other recipients of the Program a copy of this License
84 along with the Program.
85
86 You may charge a fee for the physical act of transferring a copy, and
87 you may at your option offer warranty protection in exchange for a fee.
88
89 2. You may modify your copy or copies of the Program or any portion
90 of it, thus forming a work based on the Program, and copy and
91 distribute such modifications or work under the terms of Section 1
92 above, provided that you also meet all of these conditions:
93
94 a) You must cause the modified files to carry prominent notices
95 stating that you changed the files and the date of any change.
96
97 b) You must cause any work that you distribute or publish, that in
98 whole or in part contains or is derived from the Program or any
99 part thereof, to be licensed as a whole at no charge to all third
100 parties under the terms of this License.
101
102 c) If the modified program normally reads commands interactively
103 when run, you must cause it, when started running for such
104 interactive use in the most ordinary way, to print or display an
105 announcement including an appropriate copyright notice and a
106 notice that there is no warranty (or else, saying that you provide
107 a warranty) and that users may redistribute the program under
108 these conditions, and telling the user how to view a copy of this
109 License. (Exception: if the Program itself is interactive but
110 does not normally print such an announcement, your work based on
111 the Program is not required to print an announcement.)
112
113 These requirements apply to the modified work as a whole. If
114 identifiable sections of that work are not derived from the Program,
115 and can be reasonably considered independent and separate works in
116 themselves, then this License, and its terms, do not apply to those
117 sections when you distribute them as separate works. But when you
118 distribute the same sections as part of a whole which is a work based
119 on the Program, the distribution of the whole must be on the terms of
120 this License, whose permissions for other licensees extend to the
121 entire whole, and thus to each and every part regardless of who wrote it.
122
123 Thus, it is not the intent of this section to claim rights or contest
124 your rights to work written entirely by you; rather, the intent is to
125 exercise the right to control the distribution of derivative or
126 collective works based on the Program.
127
128 In addition, mere aggregation of another work not based on the Program
129 with the Program (or with a work based on the Program) on a volume of
130 a storage or distribution medium does not bring the other work under
131 the scope of this License.
132
133 3. You may copy and distribute the Program (or a work based on it,
134 under Section 2) in object code or executable form under the terms of
135 Sections 1 and 2 above provided that you also do one of the following:
136
137 a) Accompany it with the complete corresponding machine-readable
138 source code, which must be distributed under the terms of Sections
139 1 and 2 above on a medium customarily used for software interchange; or,
140
141 b) Accompany it with a written offer, valid for at least three
142 years, to give any third party, for a charge no more than your
143 cost of physically performing source distribution, a complete
144 machine-readable copy of the corresponding source code, to be
145 distributed under the terms of Sections 1 and 2 above on a medium
146 customarily used for software interchange; or,
147
148 c) Accompany it with the information you received as to the offer
149 to distribute corresponding source code. (This alternative is
150 allowed only for noncommercial distribution and only if you
151 received the program in object code or executable form with such
152 an offer, in accord with Subsection b above.)
153
154 The source code for a work means the preferred form of the work for
155 making modifications to it. For an executable work, complete source
156 code means all the source code for all modules it contains, plus any
157 associated interface definition files, plus the scripts used to
158 control compilation and installation of the executable. However, as a
159 special exception, the source code distributed need not include
160 anything that is normally distributed (in either source or binary
161 form) with the major components (compiler, kernel, and so on) of the
162 operating system on which the executable runs, unless that component
163 itself accompanies the executable.
164
165 If distribution of executable or object code is made by offering
166 access to copy from a designated place, then offering equivalent
167 access to copy the source code from the same place counts as
168 distribution of the source code, even though third parties are not
169 compelled to copy the source along with the object code.
170
171 4. You may not copy, modify, sublicense, or distribute the Program
172 except as expressly provided under this License. Any attempt
173 otherwise to copy, modify, sublicense or distribute the Program is
174 void, and will automatically terminate your rights under this License.
175 However, parties who have received copies, or rights, from you under
176 this License will not have their licenses terminated so long as such
177 parties remain in full compliance.
178
179 5. You are not required to accept this License, since you have not
180 signed it. However, nothing else grants you permission to modify or
181 distribute the Program or its derivative works. These actions are
182 prohibited by law if you do not accept this License. Therefore, by
183 modifying or distributing the Program (or any work based on the
184 Program), you indicate your acceptance of this License to do so, and
185 all its terms and conditions for copying, distributing or modifying
186 the Program or works based on it.
187
188 6. Each time you redistribute the Program (or any work based on the
189 Program), the recipient automatically receives a license from the
190 original licensor to copy, distribute or modify the Program subject to
191 these terms and conditions. You may not impose any further
192 restrictions on the recipients' exercise of the rights granted herein.
193 You are not responsible for enforcing compliance by third parties to
194 this License.
195
196 7. If, as a consequence of a court judgment or allegation of patent
197 infringement or for any other reason (not limited to patent issues),
198 conditions are imposed on you (whether by court order, agreement or
199 otherwise) that contradict the conditions of this License, they do not
200 excuse you from the conditions of this License. If you cannot
201 distribute so as to satisfy simultaneously your obligations under this
202 License and any other pertinent obligations, then as a consequence you
203 may not distribute the Program at all. For example, if a patent
204 license would not permit royalty-free redistribution of the Program by
205 all those who receive copies directly or indirectly through you, then
206 the only way you could satisfy both it and this License would be to
207 refrain entirely from distribution of the Program.
208
209 If any portion of this section is held invalid or unenforceable under
210 any particular circumstance, the balance of the section is intended to
211 apply and the section as a whole is intended to apply in other
212 circumstances.
213
214 It is not the purpose of this section to induce you to infringe any
215 patents or other property right claims or to contest validity of any
216 such claims; this section has the sole purpose of protecting the
217 integrity of the free software distribution system, which is
218 implemented by public license practices. Many people have made
219 generous contributions to the wide range of software distributed
220 through that system in reliance on consistent application of that
221 system; it is up to the author/donor to decide if he or she is willing
222 to distribute software through any other system and a licensee cannot
223 impose that choice.
224
225 This section is intended to make thoroughly clear what is believed to
226 be a consequence of the rest of this License.
227
228 8. If the distribution and/or use of the Program is restricted in
229 certain countries either by patents or by copyrighted interfaces, the
230 original copyright holder who places the Program under this License
231 may add an explicit geographical distribution limitation excluding
232 those countries, so that distribution is permitted only in or among
233 countries not thus excluded. In such case, this License incorporates
234 the limitation as if written in the body of this License.
235
236 9. The Free Software Foundation may publish revised and/or new versions
237 of the General Public License from time to time. Such new versions will
238 be similar in spirit to the present version, but may differ in detail to
239 address new problems or concerns.
240
241 Each version is given a distinguishing version number. If the Program
242 specifies a version number of this License which applies to it and "any
243 later version", you have the option of following the terms and conditions
244 either of that version or of any later version published by the Free
245 Software Foundation. If the Program does not specify a version number of
246 this License, you may choose any version ever published by the Free Software
247 Foundation.
248
249 10. If you wish to incorporate parts of the Program into other free
250 programs whose distribution conditions are different, write to the author
251 to ask for permission. For software which is copyrighted by the Free
252 Software Foundation, write to the Free Software Foundation; we sometimes
253 make exceptions for this. Our decision will be guided by the two goals
254 of preserving the free status of all derivatives of our free software and
255 of promoting the sharing and reuse of software generally.
256
257 NO WARRANTY
258
259 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
260 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
261 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
262 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
263 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
264 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
265 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
266 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
267 REPAIR OR CORRECTION.
268
269 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
270 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
271 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
272 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
273 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
274 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
275 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
276 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
277 POSSIBILITY OF SUCH DAMAGES.
278
279 END OF TERMS AND CONDITIONS
280
281 How to Apply These Terms to Your New Programs
282
283 If you develop a new program, and you want it to be of the greatest
284 possible use to the public, the best way to achieve this is to make it
285 free software which everyone can redistribute and change under these terms.
286
287 To do so, attach the following notices to the program. It is safest
288 to attach them to the start of each source file to most effectively
289 convey the exclusion of warranty; and each file should have at least
290 the "copyright" line and a pointer to where the full notice is found.
291
292 <one line to give the program's name and a brief idea of what it does.>
293 Copyright (C) <year> <name of author>
294
295 This program is free software; you can redistribute it and/or modify
296 it under the terms of the GNU General Public License as published by
297 the Free Software Foundation; either version 2 of the License, or
298 (at your option) any later version.
299
300 This program is distributed in the hope that it will be useful,
301 but WITHOUT ANY WARRANTY; without even the implied warranty of
302 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
303 GNU General Public License for more details.
304
305 You should have received a copy of the GNU General Public License
306 along with this program; if not, write to the Free Software
307 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
308
309
310 Also add information on how to contact you by electronic and paper mail.
311
312 If the program is interactive, make it output a short notice like this
313 when it starts in an interactive mode:
314
315 Gnomovision version 69, Copyright (C) year name of author
316 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 This is free software, and you are welcome to redistribute it
318 under certain conditions; type `show c' for details.
319
320 The hypothetical commands `show w' and `show c' should show the appropriate
321 parts of the General Public License. Of course, the commands you use may
322 be called something other than `show w' and `show c'; they could even be
323 mouse-clicks or menu items--whatever suits your program.
324
325 You should also get your employer (if you work as a programmer) or your
326 school, if any, to sign a "copyright disclaimer" for the program, if
327 necessary. Here is a sample; alter the names:
328
329 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
332 <signature of Ty Coon>, 1 April 1989
333 Ty Coon, President of Vice
334
335 This General Public License does not permit incorporating your program into
336 proprietary programs. If your program is a subroutine library, you may
337 consider it more useful to permit linking proprietary applications with the
338 library. If this is what you want to do, use the GNU Library General
339 Public License instead of this License.
0 2007-08-28 "Daniel P. Berrange <berrange@redhat.com>
1
2 * man/virt-viewer.pod:
3 Document the '--direct' option
4 [0d9a8fd612d9] [tip]
5
6 * src/main.c:
7 Support TLS credentials & improved SSH tunnelling
8 [2ca6f1a9ba64]
9
10 * src/main.c:
11 Support for connecting over an SSH tunnel
12 [33102c06fd50]
13
14 2007-08-27 "Daniel P. Berrange <berrange@redhat.com>
15
16 * Merge
17 [c40130b3a7ec]
18
19 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
20
21 * COPYING, INSTALL:
22 Added COPYING/INSTALL files
23 [1f83ef35bb59]
24
25 2007-08-27 "Daniel P. Berrange <berrange@redhat.com>
26
27 * src/main.c:
28 Added initial ability to connect remote hosts
29 [ac9cae161efb]
30
31 * src/main.c:
32 Disable debug flag
33 [61d8448ba53f]
34
35 * src/main.c:
36 Fixed delete-event handler args
37 [21f7b4c5c93c]
38
39 2007-08-15 "Daniel P. Berrange <berrange@redhat.com>
40
41 * .hgtags:
42 Added tag release-0.0.1 for changeset 2b78ab2d18ce
43 [916abae9a263]
44
45 * virt-viewer.spec.in:
46 Fixed build requires & group. Removed exclusivearch
47 [2b78ab2d18ce] [release-0.0.1]
48
49 * AUTHORS, NEWS, README, virt-viewer.spec.in:
50 Fill out authors, news & readme
51 [6a74d1951e33]
52
53 2007-07-20 "Daniel P. Berrange <berrange@redhat.com>
54
55 * src/main.c:
56 Connected up screenshot & about menus
57 [7cd9b16e3185]
58
59 * Makefile.am, configure.ac, man/Makefile.am, man/virt-viewer.pod,
60 virt-viewer.spec.in:
61 Added manual page
62 [db9f0ff467e5]
63
64 * .hgignore, AUTHORS, ChangeLog, Makefile.am, NEWS, README,
65 acinclude.m4, autobuild.sh, autogen.sh, configure.ac,
66 src/Makefile.am, src/main.c, virt-viewer.spec.in:
67 Initial commit
68 [df454dc97f2f]
69
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
8
9 Basic Installation
10 ==================
11
12 These are generic installation instructions.
13
14 The `configure' shell script attempts to guess correct values for
15 various system-dependent variables used during compilation. It uses
16 those values to create a `Makefile' in each directory of the package.
17 It may also create one or more `.h' files containing system-dependent
18 definitions. Finally, it creates a shell script `config.status' that
19 you can run in the future to recreate the current configuration, and a
20 file `config.log' containing compiler output (useful mainly for
21 debugging `configure').
22
23 It can also use an optional file (typically called `config.cache'
24 and enabled with `--cache-file=config.cache' or simply `-C') that saves
25 the results of its tests to speed up reconfiguring. (Caching is
26 disabled by default to prevent problems with accidental use of stale
27 cache files.)
28
29 If you need to do unusual things to compile the package, please try
30 to figure out how `configure' could check whether to do them, and mail
31 diffs or instructions to the address given in the `README' so they can
32 be considered for the next release. If you are using the cache, and at
33 some point `config.cache' contains results you don't want to keep, you
34 may remove or edit it.
35
36 The file `configure.ac' (or `configure.in') is used to create
37 `configure' by a program called `autoconf'. You only need
38 `configure.ac' if you want to change it or regenerate `configure' using
39 a newer version of `autoconf'.
40
41 The simplest way to compile this package is:
42
43 1. `cd' to the directory containing the package's source code and type
44 `./configure' to configure the package for your system. If you're
45 using `csh' on an old version of System V, you might need to type
46 `sh ./configure' instead to prevent `csh' from trying to execute
47 `configure' itself.
48
49 Running `configure' takes awhile. While running, it prints some
50 messages telling which features it is checking for.
51
52 2. Type `make' to compile the package.
53
54 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
56
57 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
61 source code directory by typing `make clean'. To also remove the
62 files that `configure' created (so you can compile the package for
63 a different kind of computer), type `make distclean'. There is
64 also a `make maintainer-clean' target, but that is intended mainly
65 for the package's developers. If you use it, you may have to get
66 all sorts of other programs in order to regenerate files that came
67 with the distribution.
68
69 Compilers and Options
70 =====================
71
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
75
76 You can give `configure' initial values for configuration parameters
77 by setting variables in the command line or in the environment. Here
78 is an example:
79
80 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
81
82 *Note Defining Variables::, for more details.
83
84 Compiling For Multiple Architectures
85 ====================================
86
87 You can compile the package for more than one kind of computer at the
88 same time, by placing the object files for each architecture in their
89 own directory. To do this, you must use a version of `make' that
90 supports the `VPATH' variable, such as GNU `make'. `cd' to the
91 directory where you want the object files and executables to go and run
92 the `configure' script. `configure' automatically checks for the
93 source code in the directory that `configure' is in and in `..'.
94
95 If you have to use a `make' that does not support the `VPATH'
96 variable, you have to compile the package for one architecture at a
97 time in the source code directory. After you have installed the
98 package for one architecture, use `make distclean' before reconfiguring
99 for another architecture.
100
101 Installation Names
102 ==================
103
104 By default, `make install' installs the package's commands under
105 `/usr/local/bin', include files under `/usr/local/include', etc. You
106 can specify an installation prefix other than `/usr/local' by giving
107 `configure' the option `--prefix=PREFIX'.
108
109 You can specify separate installation prefixes for
110 architecture-specific files and architecture-independent files. If you
111 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
112 PREFIX as the prefix for installing programs and libraries.
113 Documentation and other data files still use the regular prefix.
114
115 In addition, if you use an unusual directory layout you can give
116 options like `--bindir=DIR' to specify different values for particular
117 kinds of files. Run `configure --help' for a list of the directories
118 you can set and what kinds of files go in them.
119
120 If the package supports it, you can cause programs to be installed
121 with an extra prefix or suffix on their names by giving `configure' the
122 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
123
124 Optional Features
125 =================
126
127 Some packages pay attention to `--enable-FEATURE' options to
128 `configure', where FEATURE indicates an optional part of the package.
129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
130 is something like `gnu-as' or `x' (for the X Window System). The
131 `README' should mention any `--enable-' and `--with-' options that the
132 package recognizes.
133
134 For packages that use the X Window System, `configure' can usually
135 find the X include and library files automatically, but if it doesn't,
136 you can use the `configure' options `--x-includes=DIR' and
137 `--x-libraries=DIR' to specify their locations.
138
139 Specifying the System Type
140 ==========================
141
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
147 `--build=TYPE' option. TYPE can either be a short name for the system
148 type, such as `sun4', or a canonical name which has the form:
149
150 CPU-COMPANY-SYSTEM
151
152 where SYSTEM can have one of these forms:
153
154 OS KERNEL-OS
155
156 See the file `config.sub' for the possible values of each field. If
157 `config.sub' isn't included in this package, then this package doesn't
158 need to know the machine type.
159
160 If you are _building_ compiler tools for cross-compiling, you should
161 use the option `--target=TYPE' to select the type of system they will
162 produce code for.
163
164 If you want to _use_ a cross compiler, that generates code for a
165 platform different from the build platform, you should specify the
166 "host" platform (i.e., that on which the generated programs will
167 eventually be run) with `--host=TYPE'.
168
169 Sharing Defaults
170 ================
171
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
175 `configure' looks for `PREFIX/share/config.site' if it exists, then
176 `PREFIX/etc/config.site' if it exists. Or, you can set the
177 `CONFIG_SITE' environment variable to the location of the site script.
178 A warning: not all `configure' scripts look for a site script.
179
180 Defining Variables
181 ==================
182
183 Variables not defined in a site shell script can be set in the
184 environment passed to `configure'. However, some packages may run
185 configure again during the build, and the customized values of these
186 variables may be lost. In order to avoid this problem, you should set
187 them in the `configure' command line, using `VAR=value'. For example:
188
189 ./configure CC=/usr/local2/bin/gcc
190
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
198
199 `configure' Invocation
200 ======================
201
202 `configure' recognizes the following options to control how it operates.
203
204 `--help'
205 `-h'
206 Print a summary of the options to `configure', and exit.
207
208 `--version'
209 `-V'
210 Print the version of Autoconf used to generate the `configure'
211 script, and exit.
212
213 `--cache-file=FILE'
214 Enable the cache: use and save the results of the tests in FILE,
215 traditionally `config.cache'. FILE defaults to `/dev/null' to
216 disable caching.
217
218 `--config-cache'
219 `-C'
220 Alias for `--cache-file=config.cache'.
221
222 `--quiet'
223 `--silent'
224 `-q'
225 Do not print messages saying which checks are being made. To
226 suppress all normal output, redirect it to `/dev/null' (any error
227 messages will still be shown).
228
229 `--srcdir=DIR'
230 Look for the package's source code in directory DIR. Usually
231 `configure' can determine that directory automatically.
232
233 `configure' also accepts some other, not widely useful, options. Run
234 `configure --help' for more details.
235
0
1 SUBDIRS = src man
2
3 EXTRA_DIST = @PACKAGE@.spec
4
5 DISTCLEAN_FILES = @PACKAGE@.spec
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 subdir = .
36 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
37 $(srcdir)/Makefile.in $(srcdir)/virt-viewer.spec.in \
38 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
39 compile depcomp install-sh missing
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
42 $(top_srcdir)/configure.ac
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
46 configure.lineno configure.status.lineno
47 mkinstalldirs = $(install_sh) -d
48 CONFIG_CLEAN_FILES = virt-viewer.spec
49 SOURCES =
50 DIST_SOURCES =
51 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
52 html-recursive info-recursive install-data-recursive \
53 install-exec-recursive install-info-recursive \
54 install-recursive installcheck-recursive installdirs-recursive \
55 pdf-recursive ps-recursive uninstall-info-recursive \
56 uninstall-recursive
57 ETAGS = etags
58 CTAGS = ctags
59 DIST_SUBDIRS = $(SUBDIRS)
60 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
61 distdir = $(PACKAGE)-$(VERSION)
62 top_distdir = $(distdir)
63 am__remove_distdir = \
64 { test ! -d $(distdir) \
65 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
66 && rm -fr $(distdir); }; }
67 DIST_ARCHIVES = $(distdir).tar.gz
68 GZIP_ENV = --best
69 distuninstallcheck_listfiles = find . -type f -print
70 distcleancheck_listfiles = find . -type f -print
71 ACLOCAL = @ACLOCAL@
72 AMDEP_FALSE = @AMDEP_FALSE@
73 AMDEP_TRUE = @AMDEP_TRUE@
74 AMTAR = @AMTAR@
75 AUTOCONF = @AUTOCONF@
76 AUTOHEADER = @AUTOHEADER@
77 AUTOMAKE = @AUTOMAKE@
78 AWK = @AWK@
79 CC = @CC@
80 CCDEPMODE = @CCDEPMODE@
81 CFLAGS = @CFLAGS@
82 CPPFLAGS = @CPPFLAGS@
83 CYGPATH_W = @CYGPATH_W@
84 DEFS = @DEFS@
85 DEPDIR = @DEPDIR@
86 ECHO_C = @ECHO_C@
87 ECHO_N = @ECHO_N@
88 ECHO_T = @ECHO_T@
89 EXEEXT = @EXEEXT@
90 GTK2_CFLAGS = @GTK2_CFLAGS@
91 GTK2_LIBS = @GTK2_LIBS@
92 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
93 GTKVNC_LIBS = @GTKVNC_LIBS@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LDFLAGS = @LDFLAGS@
99 LIBOBJS = @LIBOBJS@
100 LIBS = @LIBS@
101 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
102 LIBVIRT_LIBS = @LIBVIRT_LIBS@
103 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
104 LIBXML2_LIBS = @LIBXML2_LIBS@
105 LTLIBOBJS = @LTLIBOBJS@
106 MAKEINFO = @MAKEINFO@
107 OBJEXT = @OBJEXT@
108 PACKAGE = @PACKAGE@
109 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
110 PACKAGE_NAME = @PACKAGE_NAME@
111 PACKAGE_STRING = @PACKAGE_STRING@
112 PACKAGE_TARNAME = @PACKAGE_TARNAME@
113 PACKAGE_VERSION = @PACKAGE_VERSION@
114 PATH_SEPARATOR = @PATH_SEPARATOR@
115 PKG_CONFIG = @PKG_CONFIG@
116 SET_MAKE = @SET_MAKE@
117 SHELL = @SHELL@
118 STRIP = @STRIP@
119 VERSION = @VERSION@
120 WARN_CFLAGS = @WARN_CFLAGS@
121 ac_ct_CC = @ac_ct_CC@
122 ac_ct_STRIP = @ac_ct_STRIP@
123 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
124 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
125 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
126 am__include = @am__include@
127 am__leading_dot = @am__leading_dot@
128 am__quote = @am__quote@
129 am__tar = @am__tar@
130 am__untar = @am__untar@
131 bindir = @bindir@
132 build_alias = @build_alias@
133 datadir = @datadir@
134 exec_prefix = @exec_prefix@
135 host_alias = @host_alias@
136 includedir = @includedir@
137 infodir = @infodir@
138 install_sh = @install_sh@
139 libdir = @libdir@
140 libexecdir = @libexecdir@
141 localstatedir = @localstatedir@
142 mandir = @mandir@
143 mkdir_p = @mkdir_p@
144 oldincludedir = @oldincludedir@
145 prefix = @prefix@
146 program_transform_name = @program_transform_name@
147 sbindir = @sbindir@
148 sharedstatedir = @sharedstatedir@
149 sysconfdir = @sysconfdir@
150 target_alias = @target_alias@
151 SUBDIRS = src man
152 EXTRA_DIST = @PACKAGE@.spec
153 DISTCLEAN_FILES = @PACKAGE@.spec
154 all: all-recursive
155
156 .SUFFIXES:
157 am--refresh:
158 @:
159 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
160 @for dep in $?; do \
161 case '$(am__configure_deps)' in \
162 *$$dep*) \
163 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
164 cd $(srcdir) && $(AUTOMAKE) --gnu \
165 && exit 0; \
166 exit 1;; \
167 esac; \
168 done; \
169 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
170 cd $(top_srcdir) && \
171 $(AUTOMAKE) --gnu Makefile
172 .PRECIOUS: Makefile
173 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
174 @case '$?' in \
175 *config.status*) \
176 echo ' $(SHELL) ./config.status'; \
177 $(SHELL) ./config.status;; \
178 *) \
179 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
180 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
181 esac;
182
183 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
184 $(SHELL) ./config.status --recheck
185
186 $(top_srcdir)/configure: $(am__configure_deps)
187 cd $(srcdir) && $(AUTOCONF)
188 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
189 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
190 virt-viewer.spec: $(top_builddir)/config.status $(srcdir)/virt-viewer.spec.in
191 cd $(top_builddir) && $(SHELL) ./config.status $@
192 uninstall-info-am:
193
194 # This directory's subdirectories are mostly independent; you can cd
195 # into them and run `make' without going through this Makefile.
196 # To change the values of `make' variables: instead of editing Makefiles,
197 # (1) if the variable is set in `config.status', edit `config.status'
198 # (which will cause the Makefiles to be regenerated when you run `make');
199 # (2) otherwise, pass the desired values on the `make' command line.
200 $(RECURSIVE_TARGETS):
201 @failcom='exit 1'; \
202 for f in x $$MAKEFLAGS; do \
203 case $$f in \
204 *=* | --[!k]*);; \
205 *k*) failcom='fail=yes';; \
206 esac; \
207 done; \
208 dot_seen=no; \
209 target=`echo $@ | sed s/-recursive//`; \
210 list='$(SUBDIRS)'; for subdir in $$list; do \
211 echo "Making $$target in $$subdir"; \
212 if test "$$subdir" = "."; then \
213 dot_seen=yes; \
214 local_target="$$target-am"; \
215 else \
216 local_target="$$target"; \
217 fi; \
218 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
219 || eval $$failcom; \
220 done; \
221 if test "$$dot_seen" = "no"; then \
222 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
223 fi; test -z "$$fail"
224
225 mostlyclean-recursive clean-recursive distclean-recursive \
226 maintainer-clean-recursive:
227 @failcom='exit 1'; \
228 for f in x $$MAKEFLAGS; do \
229 case $$f in \
230 *=* | --[!k]*);; \
231 *k*) failcom='fail=yes';; \
232 esac; \
233 done; \
234 dot_seen=no; \
235 case "$@" in \
236 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
237 *) list='$(SUBDIRS)' ;; \
238 esac; \
239 rev=''; for subdir in $$list; do \
240 if test "$$subdir" = "."; then :; else \
241 rev="$$subdir $$rev"; \
242 fi; \
243 done; \
244 rev="$$rev ."; \
245 target=`echo $@ | sed s/-recursive//`; \
246 for subdir in $$rev; do \
247 echo "Making $$target in $$subdir"; \
248 if test "$$subdir" = "."; then \
249 local_target="$$target-am"; \
250 else \
251 local_target="$$target"; \
252 fi; \
253 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
254 || eval $$failcom; \
255 done && test -z "$$fail"
256 tags-recursive:
257 list='$(SUBDIRS)'; for subdir in $$list; do \
258 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
259 done
260 ctags-recursive:
261 list='$(SUBDIRS)'; for subdir in $$list; do \
262 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
263 done
264
265 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
266 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
267 unique=`for i in $$list; do \
268 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
269 done | \
270 $(AWK) ' { files[$$0] = 1; } \
271 END { for (i in files) print i; }'`; \
272 mkid -fID $$unique
273 tags: TAGS
274
275 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
276 $(TAGS_FILES) $(LISP)
277 tags=; \
278 here=`pwd`; \
279 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
280 include_option=--etags-include; \
281 empty_fix=.; \
282 else \
283 include_option=--include; \
284 empty_fix=; \
285 fi; \
286 list='$(SUBDIRS)'; for subdir in $$list; do \
287 if test "$$subdir" = .; then :; else \
288 test ! -f $$subdir/TAGS || \
289 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
290 fi; \
291 done; \
292 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
293 unique=`for i in $$list; do \
294 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
295 done | \
296 $(AWK) ' { files[$$0] = 1; } \
297 END { for (i in files) print i; }'`; \
298 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
299 test -n "$$unique" || unique=$$empty_fix; \
300 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
301 $$tags $$unique; \
302 fi
303 ctags: CTAGS
304 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
305 $(TAGS_FILES) $(LISP)
306 tags=; \
307 here=`pwd`; \
308 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
309 unique=`for i in $$list; do \
310 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
311 done | \
312 $(AWK) ' { files[$$0] = 1; } \
313 END { for (i in files) print i; }'`; \
314 test -z "$(CTAGS_ARGS)$$tags$$unique" \
315 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
316 $$tags $$unique
317
318 GTAGS:
319 here=`$(am__cd) $(top_builddir) && pwd` \
320 && cd $(top_srcdir) \
321 && gtags -i $(GTAGS_ARGS) $$here
322
323 distclean-tags:
324 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
325
326 distdir: $(DISTFILES)
327 $(am__remove_distdir)
328 mkdir $(distdir)
329 $(mkdir_p) $(distdir)/.
330 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
331 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
332 list='$(DISTFILES)'; for file in $$list; do \
333 case $$file in \
334 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
335 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
336 esac; \
337 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
338 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
339 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
340 dir="/$$dir"; \
341 $(mkdir_p) "$(distdir)$$dir"; \
342 else \
343 dir=''; \
344 fi; \
345 if test -d $$d/$$file; then \
346 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
347 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
348 fi; \
349 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
350 else \
351 test -f $(distdir)/$$file \
352 || cp -p $$d/$$file $(distdir)/$$file \
353 || exit 1; \
354 fi; \
355 done
356 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
357 if test "$$subdir" = .; then :; else \
358 test -d "$(distdir)/$$subdir" \
359 || $(mkdir_p) "$(distdir)/$$subdir" \
360 || exit 1; \
361 distdir=`$(am__cd) $(distdir) && pwd`; \
362 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
363 (cd $$subdir && \
364 $(MAKE) $(AM_MAKEFLAGS) \
365 top_distdir="$$top_distdir" \
366 distdir="$$distdir/$$subdir" \
367 distdir) \
368 || exit 1; \
369 fi; \
370 done
371 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
372 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
373 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
374 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
375 || chmod -R a+r $(distdir)
376 dist-gzip: distdir
377 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
378 $(am__remove_distdir)
379
380 dist-bzip2: distdir
381 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
382 $(am__remove_distdir)
383
384 dist-tarZ: distdir
385 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
386 $(am__remove_distdir)
387
388 dist-shar: distdir
389 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
390 $(am__remove_distdir)
391
392 dist-zip: distdir
393 -rm -f $(distdir).zip
394 zip -rq $(distdir).zip $(distdir)
395 $(am__remove_distdir)
396
397 dist dist-all: distdir
398 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
399 $(am__remove_distdir)
400
401 # This target untars the dist file and tries a VPATH configuration. Then
402 # it guarantees that the distribution is self-contained by making another
403 # tarfile.
404 distcheck: dist
405 case '$(DIST_ARCHIVES)' in \
406 *.tar.gz*) \
407 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
408 *.tar.bz2*) \
409 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
410 *.tar.Z*) \
411 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
412 *.shar.gz*) \
413 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
414 *.zip*) \
415 unzip $(distdir).zip ;;\
416 esac
417 chmod -R a-w $(distdir); chmod a+w $(distdir)
418 mkdir $(distdir)/_build
419 mkdir $(distdir)/_inst
420 chmod a-w $(distdir)
421 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
422 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
423 && cd $(distdir)/_build \
424 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
425 $(DISTCHECK_CONFIGURE_FLAGS) \
426 && $(MAKE) $(AM_MAKEFLAGS) \
427 && $(MAKE) $(AM_MAKEFLAGS) dvi \
428 && $(MAKE) $(AM_MAKEFLAGS) check \
429 && $(MAKE) $(AM_MAKEFLAGS) install \
430 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
431 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
432 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
433 distuninstallcheck \
434 && chmod -R a-w "$$dc_install_base" \
435 && ({ \
436 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
437 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
438 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
439 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
440 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
441 } || { rm -rf "$$dc_destdir"; exit 1; }) \
442 && rm -rf "$$dc_destdir" \
443 && $(MAKE) $(AM_MAKEFLAGS) dist \
444 && rm -rf $(DIST_ARCHIVES) \
445 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
446 $(am__remove_distdir)
447 @(echo "$(distdir) archives ready for distribution: "; \
448 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
449 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
450 distuninstallcheck:
451 @cd $(distuninstallcheck_dir) \
452 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
453 || { echo "ERROR: files left after uninstall:" ; \
454 if test -n "$(DESTDIR)"; then \
455 echo " (check DESTDIR support)"; \
456 fi ; \
457 $(distuninstallcheck_listfiles) ; \
458 exit 1; } >&2
459 distcleancheck: distclean
460 @if test '$(srcdir)' = . ; then \
461 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
462 exit 1 ; \
463 fi
464 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
465 || { echo "ERROR: files left in build directory after distclean:" ; \
466 $(distcleancheck_listfiles) ; \
467 exit 1; } >&2
468 check-am: all-am
469 check: check-recursive
470 all-am: Makefile
471 installdirs: installdirs-recursive
472 installdirs-am:
473 install: install-recursive
474 install-exec: install-exec-recursive
475 install-data: install-data-recursive
476 uninstall: uninstall-recursive
477
478 install-am: all-am
479 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
480
481 installcheck: installcheck-recursive
482 install-strip:
483 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
484 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
485 `test -z '$(STRIP)' || \
486 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
487 mostlyclean-generic:
488
489 clean-generic:
490
491 distclean-generic:
492 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
493
494 maintainer-clean-generic:
495 @echo "This command is intended for maintainers to use"
496 @echo "it deletes files that may require special tools to rebuild."
497 clean: clean-recursive
498
499 clean-am: clean-generic mostlyclean-am
500
501 distclean: distclean-recursive
502 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
503 -rm -f Makefile
504 distclean-am: clean-am distclean-generic distclean-tags
505
506 dvi: dvi-recursive
507
508 dvi-am:
509
510 html: html-recursive
511
512 info: info-recursive
513
514 info-am:
515
516 install-data-am:
517
518 install-exec-am:
519
520 install-info: install-info-recursive
521
522 install-man:
523
524 installcheck-am:
525
526 maintainer-clean: maintainer-clean-recursive
527 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
528 -rm -rf $(top_srcdir)/autom4te.cache
529 -rm -f Makefile
530 maintainer-clean-am: distclean-am maintainer-clean-generic
531
532 mostlyclean: mostlyclean-recursive
533
534 mostlyclean-am: mostlyclean-generic
535
536 pdf: pdf-recursive
537
538 pdf-am:
539
540 ps: ps-recursive
541
542 ps-am:
543
544 uninstall-am: uninstall-info-am
545
546 uninstall-info: uninstall-info-recursive
547
548 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
549 check-am clean clean-generic clean-recursive ctags \
550 ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
551 dist-tarZ dist-zip distcheck distclean distclean-generic \
552 distclean-recursive distclean-tags distcleancheck distdir \
553 distuninstallcheck dvi dvi-am html html-am info info-am \
554 install install-am install-data install-data-am install-exec \
555 install-exec-am install-info install-info-am install-man \
556 install-strip installcheck installcheck-am installdirs \
557 installdirs-am maintainer-clean maintainer-clean-generic \
558 maintainer-clean-recursive mostlyclean mostlyclean-generic \
559 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
560 uninstall uninstall-am uninstall-info-am
561
562 # Tell versions [3.59,3.63) of GNU make to not export all variables.
563 # Otherwise a system limit (for SysV at least) may be exceeded.
564 .NOEXPORT:
0 Virt Viewer News
1 ================
2
3 August 28, 2008
4 ---------------
5
6 - Support connecting to remote libvirt servers
7 - Support connecting to remote VNC consoles
8 - Support tunnelling VNC over SSH
9 - Support TLS x509 certificate credentials
10
11 August 15, 2007
12 ---------------
13
14 - Initial release
0 Virt Viewer
1 ===========
2
3 Virt Viewer provides a graphical viewer for the guest OS
4 display. At this time is supports guest OS using the VNC
5 protocol. Further protocols may be supported in the future
6 as user demand dicatates. The viewer can connect directly
7 to both local and remotely hosted guest OS, optionally
8 using SSL/TLS encryption.
9
10 Viewer Viewer uses the GTK-VNC widget to provide a display
11 of the VNC protocol. This is available from
12
13 http://gtk-vnc.sourceforge.net/
14
15 Viewer Viewer uses libvirt to lookup information about the
16 guest OS display. This is available from
17
18 http://libvirt.org/
19
20 Further information about the Virt Viewer application can be
21 found on the Virt Manager website:
22
23 http://virt-manager.org/
24
25 Feedback should be directed to the mailing list at
26
27 http://virt-manager.org/mailinglist.html
28
29 -- End
0 dnl
1 dnl Taken from gnome-common/macros2/gnome-compiler-flags.m4
2 dnl
3 dnl We've added:
4 dnl -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
5 dnl We've removed
6 dnl CFLAGS="$realsave_CFLAGS"
7 dnl to avoid clobbering user-specified CFLAGS
8 dnl
9 AC_DEFUN([VIRT_VIEWER_COMPILE_WARNINGS],[
10 dnl ******************************
11 dnl More compiler warnings
12 dnl ******************************
13
14 AC_ARG_ENABLE(compile-warnings,
15 AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
16 [Turn on compiler warnings]),,
17 [enable_compile_warnings="m4_default([$1],[maximum])"])
18
19 warnCFLAGS=
20
21 try_compiler_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
22
23 case "$enable_compile_warnings" in
24 no)
25 ;;
26 minimum)
27 try_compiler_flags="$try_compiler_flags -Wall"
28 ;;
29 yes)
30 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99"
31 ;;
32 maximum|error)
33 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
34 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
35 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
36 if test "$enable_compile_warnings" = "error" ; then
37 try_compiler_flags="$try_compiler_flags -Werror"
38 fi
39 ;;
40 *)
41 AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
42 ;;
43 esac
44
45 compiler_flags=
46 for option in $try_compiler_flags; do
47 SAVE_CFLAGS="$CFLAGS"
48 CFLAGS="$CFLAGS $option"
49 AC_MSG_CHECKING([whether gcc understands $option])
50 AC_TRY_COMPILE([], [],
51 has_option=yes,
52 has_option=no,)
53 CFLAGS="$SAVE_CFLAGS"
54 AC_MSG_RESULT($has_option)
55 if test $has_option = yes; then
56 compiler_flags="$compiler_flags $option"
57 fi
58 unset has_option
59 unset SAVE_CFLAGS
60 done
61 unset option
62 unset try_compiler_flags
63
64 AC_ARG_ENABLE(iso-c,
65 AC_HELP_STRING([--enable-iso-c],
66 [Try to warn if code is not ISO C ]),,
67 [enable_iso_c=no])
68
69 AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
70 complCFLAGS=
71 if test "x$enable_iso_c" != "xno"; then
72 if test "x$GCC" = "xyes"; then
73 case " $CFLAGS " in
74 *[\ \ ]-ansi[\ \ ]*) ;;
75 *) complCFLAGS="$complCFLAGS -ansi" ;;
76 esac
77 case " $CFLAGS " in
78 *[\ \ ]-pedantic[\ \ ]*) ;;
79 *) complCFLAGS="$complCFLAGS -pedantic" ;;
80 esac
81 fi
82 fi
83 AC_MSG_RESULT($complCFLAGS)
84
85 WARN_CFLAGS="$compiler_flags $complCFLAGS"
86 AC_SUBST(WARN_CFLAGS)
87 ])
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
14 #
15 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
16 #
17 # This program is free software; you can redistribute it and/or modify
18 # it under the terms of the GNU General Public License as published by
19 # the Free Software Foundation; either version 2 of the License, or
20 # (at your option) any later version.
21 #
22 # This program is distributed in the hope that it will be useful, but
23 # WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 # General Public License for more details.
26 #
27 # You should have received a copy of the GNU General Public License
28 # along with this program; if not, write to the Free Software
29 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #
31 # As a special exception to the GNU General Public License, if you
32 # distribute this file as part of a program that contains a
33 # configuration script generated by Autoconf, you may include it under
34 # the same distribution terms that you use for the rest of that program.
35
36 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
37 # ----------------------------------
38 AC_DEFUN([PKG_PROG_PKG_CONFIG],
39 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
40 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
41 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
42 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
43 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
44 fi
45 if test -n "$PKG_CONFIG"; then
46 _pkg_min_version=m4_default([$1], [0.9.0])
47 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
48 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
49 AC_MSG_RESULT([yes])
50 else
51 AC_MSG_RESULT([no])
52 PKG_CONFIG=""
53 fi
54
55 fi[]dnl
56 ])# PKG_PROG_PKG_CONFIG
57
58 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
59 #
60 # Check to see whether a particular set of modules exists. Similar
61 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
62 #
63 #
64 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
65 # this or PKG_CHECK_MODULES is called, or make sure to call
66 # PKG_CHECK_EXISTS manually
67 # --------------------------------------------------------------
68 AC_DEFUN([PKG_CHECK_EXISTS],
69 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
70 if test -n "$PKG_CONFIG" && \
71 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
72 m4_ifval([$2], [$2], [:])
73 m4_ifvaln([$3], [else
74 $3])dnl
75 fi])
76
77
78 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
79 # ---------------------------------------------
80 m4_define([_PKG_CONFIG],
81 [if test -n "$PKG_CONFIG"; then
82 if test -n "$$1"; then
83 pkg_cv_[]$1="$$1"
84 else
85 PKG_CHECK_EXISTS([$3],
86 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
87 [pkg_failed=yes])
88 fi
89 else
90 pkg_failed=untried
91 fi[]dnl
92 ])# _PKG_CONFIG
93
94 # _PKG_SHORT_ERRORS_SUPPORTED
95 # -----------------------------
96 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
97 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
98 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
99 _pkg_short_errors_supported=yes
100 else
101 _pkg_short_errors_supported=no
102 fi[]dnl
103 ])# _PKG_SHORT_ERRORS_SUPPORTED
104
105
106 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
107 # [ACTION-IF-NOT-FOUND])
108 #
109 #
110 # Note that if there is a possibility the first call to
111 # PKG_CHECK_MODULES might not happen, you should be sure to include an
112 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
113 #
114 #
115 # --------------------------------------------------------------
116 AC_DEFUN([PKG_CHECK_MODULES],
117 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
118 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
119 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
120
121 pkg_failed=no
122 AC_MSG_CHECKING([for $1])
123
124 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
125 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
126
127 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
128 and $1[]_LIBS to avoid the need to call pkg-config.
129 See the pkg-config man page for more details.])
130
131 if test $pkg_failed = yes; then
132 _PKG_SHORT_ERRORS_SUPPORTED
133 if test $_pkg_short_errors_supported = yes; then
134 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
135 else
136 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
137 fi
138 # Put the nasty error message in config.log where it belongs
139 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
140
141 ifelse([$4], , [AC_MSG_ERROR(dnl
142 [Package requirements ($2) were not met:
143
144 $$1_PKG_ERRORS
145
146 Consider adjusting the PKG_CONFIG_PATH environment variable if you
147 installed software in a non-standard prefix.
148
149 _PKG_TEXT
150 ])],
151 [AC_MSG_RESULT([no])
152 $4])
153 elif test $pkg_failed = untried; then
154 ifelse([$4], , [AC_MSG_FAILURE(dnl
155 [The pkg-config script could not be found or is too old. Make sure it
156 is in your PATH or set the PKG_CONFIG environment variable to the full
157 path to pkg-config.
158
159 _PKG_TEXT
160
161 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
162 [$4])
163 else
164 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
165 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
166 AC_MSG_RESULT([yes])
167 ifelse([$3], , :, [$3])
168 fi[]dnl
169 ])# PKG_CHECK_MODULES
170
171 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
172 #
173 # This file is free software; the Free Software Foundation
174 # gives unlimited permission to copy and/or distribute it,
175 # with or without modifications, as long as this notice is preserved.
176
177 # AM_AUTOMAKE_VERSION(VERSION)
178 # ----------------------------
179 # Automake X.Y traces this macro to ensure aclocal.m4 has been
180 # generated from the m4 files accompanying Automake X.Y.
181 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
182
183 # AM_SET_CURRENT_AUTOMAKE_VERSION
184 # -------------------------------
185 # Call AM_AUTOMAKE_VERSION so it can be traced.
186 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
187 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
188 [AM_AUTOMAKE_VERSION([1.9.6])])
189
190 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
191
192 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
193 #
194 # This file is free software; the Free Software Foundation
195 # gives unlimited permission to copy and/or distribute it,
196 # with or without modifications, as long as this notice is preserved.
197
198 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
199 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
200 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
201 #
202 # Of course, Automake must honor this variable whenever it calls a
203 # tool from the auxiliary directory. The problem is that $srcdir (and
204 # therefore $ac_aux_dir as well) can be either absolute or relative,
205 # depending on how configure is run. This is pretty annoying, since
206 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
207 # source directory, any form will work fine, but in subdirectories a
208 # relative path needs to be adjusted first.
209 #
210 # $ac_aux_dir/missing
211 # fails when called from a subdirectory if $ac_aux_dir is relative
212 # $top_srcdir/$ac_aux_dir/missing
213 # fails if $ac_aux_dir is absolute,
214 # fails when called from a subdirectory in a VPATH build with
215 # a relative $ac_aux_dir
216 #
217 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
218 # are both prefixed by $srcdir. In an in-source build this is usually
219 # harmless because $srcdir is `.', but things will broke when you
220 # start a VPATH build or use an absolute $srcdir.
221 #
222 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
223 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
224 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
225 # and then we would define $MISSING as
226 # MISSING="\${SHELL} $am_aux_dir/missing"
227 # This will work as long as MISSING is not called from configure, because
228 # unfortunately $(top_srcdir) has no meaning in configure.
229 # However there are other variables, like CC, which are often used in
230 # configure, and could therefore not use this "fixed" $ac_aux_dir.
231 #
232 # Another solution, used here, is to always expand $ac_aux_dir to an
233 # absolute PATH. The drawback is that using absolute paths prevent a
234 # configured tree to be moved without reconfiguration.
235
236 AC_DEFUN([AM_AUX_DIR_EXPAND],
237 [dnl Rely on autoconf to set up CDPATH properly.
238 AC_PREREQ([2.50])dnl
239 # expand $ac_aux_dir to an absolute path
240 am_aux_dir=`cd $ac_aux_dir && pwd`
241 ])
242
243 # AM_CONDITIONAL -*- Autoconf -*-
244
245 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
246 # Free Software Foundation, Inc.
247 #
248 # This file is free software; the Free Software Foundation
249 # gives unlimited permission to copy and/or distribute it,
250 # with or without modifications, as long as this notice is preserved.
251
252 # serial 7
253
254 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
255 # -------------------------------------
256 # Define a conditional.
257 AC_DEFUN([AM_CONDITIONAL],
258 [AC_PREREQ(2.52)dnl
259 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
260 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
261 AC_SUBST([$1_TRUE])
262 AC_SUBST([$1_FALSE])
263 if $2; then
264 $1_TRUE=
265 $1_FALSE='#'
266 else
267 $1_TRUE='#'
268 $1_FALSE=
269 fi
270 AC_CONFIG_COMMANDS_PRE(
271 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
272 AC_MSG_ERROR([[conditional "$1" was never defined.
273 Usually this means the macro was only invoked conditionally.]])
274 fi])])
275
276
277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
278 # Free Software Foundation, Inc.
279 #
280 # This file is free software; the Free Software Foundation
281 # gives unlimited permission to copy and/or distribute it,
282 # with or without modifications, as long as this notice is preserved.
283
284 # serial 8
285
286 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
287 # written in clear, in which case automake, when reading aclocal.m4,
288 # will think it sees a *use*, and therefore will trigger all it's
289 # C support machinery. Also note that it means that autoscan, seeing
290 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
291
292
293 # _AM_DEPENDENCIES(NAME)
294 # ----------------------
295 # See how the compiler implements dependency checking.
296 # NAME is "CC", "CXX", "GCJ", or "OBJC".
297 # We try a few techniques and use that to set a single cache variable.
298 #
299 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
300 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
301 # dependency, and given that the user is not expected to run this macro,
302 # just rely on AC_PROG_CC.
303 AC_DEFUN([_AM_DEPENDENCIES],
304 [AC_REQUIRE([AM_SET_DEPDIR])dnl
305 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
306 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
307 AC_REQUIRE([AM_DEP_TRACK])dnl
308
309 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
310 [$1], CXX, [depcc="$CXX" am_compiler_list=],
311 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
312 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
313 [depcc="$$1" am_compiler_list=])
314
315 AC_CACHE_CHECK([dependency style of $depcc],
316 [am_cv_$1_dependencies_compiler_type],
317 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
318 # We make a subdir and do the tests there. Otherwise we can end up
319 # making bogus files that we don't know about and never remove. For
320 # instance it was reported that on HP-UX the gcc test will end up
321 # making a dummy file named `D' -- because `-MD' means `put the output
322 # in D'.
323 mkdir conftest.dir
324 # Copy depcomp to subdir because otherwise we won't find it if we're
325 # using a relative directory.
326 cp "$am_depcomp" conftest.dir
327 cd conftest.dir
328 # We will build objects and dependencies in a subdirectory because
329 # it helps to detect inapplicable dependency modes. For instance
330 # both Tru64's cc and ICC support -MD to output dependencies as a
331 # side effect of compilation, but ICC will put the dependencies in
332 # the current directory while Tru64 will put them in the object
333 # directory.
334 mkdir sub
335
336 am_cv_$1_dependencies_compiler_type=none
337 if test "$am_compiler_list" = ""; then
338 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
339 fi
340 for depmode in $am_compiler_list; do
341 # Setup a source with many dependencies, because some compilers
342 # like to wrap large dependency lists on column 80 (with \), and
343 # we should not choose a depcomp mode which is confused by this.
344 #
345 # We need to recreate these files for each test, as the compiler may
346 # overwrite some of them when testing with obscure command lines.
347 # This happens at least with the AIX C compiler.
348 : > sub/conftest.c
349 for i in 1 2 3 4 5 6; do
350 echo '#include "conftst'$i'.h"' >> sub/conftest.c
351 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
352 # Solaris 8's {/usr,}/bin/sh.
353 touch sub/conftst$i.h
354 done
355 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
356
357 case $depmode in
358 nosideeffect)
359 # after this tag, mechanisms are not by side-effect, so they'll
360 # only be used when explicitly requested
361 if test "x$enable_dependency_tracking" = xyes; then
362 continue
363 else
364 break
365 fi
366 ;;
367 none) break ;;
368 esac
369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
370 # mode. It turns out that the SunPro C++ compiler does not properly
371 # handle `-M -o', and we need to detect this.
372 if depmode=$depmode \
373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
376 >/dev/null 2>conftest.err &&
377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
378 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
380 # icc doesn't choke on unknown options, it will just issue warnings
381 # or remarks (even with -Werror). So we grep stderr for any message
382 # that says an option was ignored or not supported.
383 # When given -MP, icc 7.0 and 7.1 complain thusly:
384 # icc: Command line warning: ignoring option '-M'; no argument required
385 # The diagnosis changed in icc 8.0:
386 # icc: Command line remark: option '-MP' not supported
387 if (grep 'ignoring option' conftest.err ||
388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
389 am_cv_$1_dependencies_compiler_type=$depmode
390 break
391 fi
392 fi
393 done
394
395 cd ..
396 rm -rf conftest.dir
397 else
398 am_cv_$1_dependencies_compiler_type=none
399 fi
400 ])
401 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
402 AM_CONDITIONAL([am__fastdep$1], [
403 test "x$enable_dependency_tracking" != xno \
404 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
405 ])
406
407
408 # AM_SET_DEPDIR
409 # -------------
410 # Choose a directory name for dependency files.
411 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
412 AC_DEFUN([AM_SET_DEPDIR],
413 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
414 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
415 ])
416
417
418 # AM_DEP_TRACK
419 # ------------
420 AC_DEFUN([AM_DEP_TRACK],
421 [AC_ARG_ENABLE(dependency-tracking,
422 [ --disable-dependency-tracking speeds up one-time build
423 --enable-dependency-tracking do not reject slow dependency extractors])
424 if test "x$enable_dependency_tracking" != xno; then
425 am_depcomp="$ac_aux_dir/depcomp"
426 AMDEPBACKSLASH='\'
427 fi
428 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
429 AC_SUBST([AMDEPBACKSLASH])
430 ])
431
432 # Generate code to set up dependency tracking. -*- Autoconf -*-
433
434 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
435 # Free Software Foundation, Inc.
436 #
437 # This file is free software; the Free Software Foundation
438 # gives unlimited permission to copy and/or distribute it,
439 # with or without modifications, as long as this notice is preserved.
440
441 #serial 3
442
443 # _AM_OUTPUT_DEPENDENCY_COMMANDS
444 # ------------------------------
445 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
446 [for mf in $CONFIG_FILES; do
447 # Strip MF so we end up with the name of the file.
448 mf=`echo "$mf" | sed -e 's/:.*$//'`
449 # Check whether this is an Automake generated Makefile or not.
450 # We used to match only the files named `Makefile.in', but
451 # some people rename them; so instead we look at the file content.
452 # Grep'ing the first line is not enough: some people post-process
453 # each Makefile.in and add a new line on top of each file to say so.
454 # So let's grep whole file.
455 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
456 dirpart=`AS_DIRNAME("$mf")`
457 else
458 continue
459 fi
460 # Extract the definition of DEPDIR, am__include, and am__quote
461 # from the Makefile without running `make'.
462 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
463 test -z "$DEPDIR" && continue
464 am__include=`sed -n 's/^am__include = //p' < "$mf"`
465 test -z "am__include" && continue
466 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
467 # When using ansi2knr, U may be empty or an underscore; expand it
468 U=`sed -n 's/^U = //p' < "$mf"`
469 # Find all dependency output files, they are included files with
470 # $(DEPDIR) in their names. We invoke sed twice because it is the
471 # simplest approach to changing $(DEPDIR) to its actual value in the
472 # expansion.
473 for file in `sed -n "
474 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
475 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
476 # Make sure the directory exists.
477 test -f "$dirpart/$file" && continue
478 fdir=`AS_DIRNAME(["$file"])`
479 AS_MKDIR_P([$dirpart/$fdir])
480 # echo "creating $dirpart/$file"
481 echo '# dummy' > "$dirpart/$file"
482 done
483 done
484 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
485
486
487 # AM_OUTPUT_DEPENDENCY_COMMANDS
488 # -----------------------------
489 # This macro should only be invoked once -- use via AC_REQUIRE.
490 #
491 # This code is only required when automatic dependency tracking
492 # is enabled. FIXME. This creates each `.P' file that we will
493 # need in order to bootstrap the dependency handling code.
494 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
495 [AC_CONFIG_COMMANDS([depfiles],
496 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
497 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
498 ])
499
500 # Do all the work for Automake. -*- Autoconf -*-
501
502 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
503 # Free Software Foundation, Inc.
504 #
505 # This file is free software; the Free Software Foundation
506 # gives unlimited permission to copy and/or distribute it,
507 # with or without modifications, as long as this notice is preserved.
508
509 # serial 12
510
511 # This macro actually does too much. Some checks are only needed if
512 # your package does certain things. But this isn't really a big deal.
513
514 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
515 # AM_INIT_AUTOMAKE([OPTIONS])
516 # -----------------------------------------------
517 # The call with PACKAGE and VERSION arguments is the old style
518 # call (pre autoconf-2.50), which is being phased out. PACKAGE
519 # and VERSION should now be passed to AC_INIT and removed from
520 # the call to AM_INIT_AUTOMAKE.
521 # We support both call styles for the transition. After
522 # the next Automake release, Autoconf can make the AC_INIT
523 # arguments mandatory, and then we can depend on a new Autoconf
524 # release and drop the old call support.
525 AC_DEFUN([AM_INIT_AUTOMAKE],
526 [AC_PREREQ([2.58])dnl
527 dnl Autoconf wants to disallow AM_ names. We explicitly allow
528 dnl the ones we care about.
529 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
530 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
531 AC_REQUIRE([AC_PROG_INSTALL])dnl
532 # test to see if srcdir already configured
533 if test "`cd $srcdir && pwd`" != "`pwd`" &&
534 test -f $srcdir/config.status; then
535 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
536 fi
537
538 # test whether we have cygpath
539 if test -z "$CYGPATH_W"; then
540 if (cygpath --version) >/dev/null 2>/dev/null; then
541 CYGPATH_W='cygpath -w'
542 else
543 CYGPATH_W=echo
544 fi
545 fi
546 AC_SUBST([CYGPATH_W])
547
548 # Define the identity of the package.
549 dnl Distinguish between old-style and new-style calls.
550 m4_ifval([$2],
551 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
552 AC_SUBST([PACKAGE], [$1])dnl
553 AC_SUBST([VERSION], [$2])],
554 [_AM_SET_OPTIONS([$1])dnl
555 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
556 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
557
558 _AM_IF_OPTION([no-define],,
559 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
560 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
561
562 # Some tools Automake needs.
563 AC_REQUIRE([AM_SANITY_CHECK])dnl
564 AC_REQUIRE([AC_ARG_PROGRAM])dnl
565 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
566 AM_MISSING_PROG(AUTOCONF, autoconf)
567 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
568 AM_MISSING_PROG(AUTOHEADER, autoheader)
569 AM_MISSING_PROG(MAKEINFO, makeinfo)
570 AM_PROG_INSTALL_SH
571 AM_PROG_INSTALL_STRIP
572 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
573 # We need awk for the "check" target. The system "awk" is bad on
574 # some platforms.
575 AC_REQUIRE([AC_PROG_AWK])dnl
576 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
577 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
578 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
579 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
580 [_AM_PROG_TAR([v7])])])
581 _AM_IF_OPTION([no-dependencies],,
582 [AC_PROVIDE_IFELSE([AC_PROG_CC],
583 [_AM_DEPENDENCIES(CC)],
584 [define([AC_PROG_CC],
585 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
586 AC_PROVIDE_IFELSE([AC_PROG_CXX],
587 [_AM_DEPENDENCIES(CXX)],
588 [define([AC_PROG_CXX],
589 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
590 ])
591 ])
592
593
594 # When config.status generates a header, we must update the stamp-h file.
595 # This file resides in the same directory as the config header
596 # that is generated. The stamp files are numbered to have different names.
597
598 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
599 # loop where config.status creates the headers, so we can generate
600 # our stamp files there.
601 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
602 [# Compute $1's index in $config_headers.
603 _am_stamp_count=1
604 for _am_header in $config_headers :; do
605 case $_am_header in
606 $1 | $1:* )
607 break ;;
608 * )
609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
610 esac
611 done
612 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
613
614 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
615 #
616 # This file is free software; the Free Software Foundation
617 # gives unlimited permission to copy and/or distribute it,
618 # with or without modifications, as long as this notice is preserved.
619
620 # AM_PROG_INSTALL_SH
621 # ------------------
622 # Define $install_sh.
623 AC_DEFUN([AM_PROG_INSTALL_SH],
624 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
625 install_sh=${install_sh-"$am_aux_dir/install-sh"}
626 AC_SUBST(install_sh)])
627
628 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
629 #
630 # This file is free software; the Free Software Foundation
631 # gives unlimited permission to copy and/or distribute it,
632 # with or without modifications, as long as this notice is preserved.
633
634 # serial 2
635
636 # Check whether the underlying file-system supports filenames
637 # with a leading dot. For instance MS-DOS doesn't.
638 AC_DEFUN([AM_SET_LEADING_DOT],
639 [rm -rf .tst 2>/dev/null
640 mkdir .tst 2>/dev/null
641 if test -d .tst; then
642 am__leading_dot=.
643 else
644 am__leading_dot=_
645 fi
646 rmdir .tst 2>/dev/null
647 AC_SUBST([am__leading_dot])])
648
649 # Check to see how 'make' treats includes. -*- Autoconf -*-
650
651 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
652 #
653 # This file is free software; the Free Software Foundation
654 # gives unlimited permission to copy and/or distribute it,
655 # with or without modifications, as long as this notice is preserved.
656
657 # serial 3
658
659 # AM_MAKE_INCLUDE()
660 # -----------------
661 # Check to see how make treats includes.
662 AC_DEFUN([AM_MAKE_INCLUDE],
663 [am_make=${MAKE-make}
664 cat > confinc << 'END'
665 am__doit:
666 @echo done
667 .PHONY: am__doit
668 END
669 # If we don't find an include directive, just comment out the code.
670 AC_MSG_CHECKING([for style of include used by $am_make])
671 am__include="#"
672 am__quote=
673 _am_result=none
674 # First try GNU make style include.
675 echo "include confinc" > confmf
676 # We grep out `Entering directory' and `Leaving directory'
677 # messages which can occur if `w' ends up in MAKEFLAGS.
678 # In particular we don't look at `^make:' because GNU make might
679 # be invoked under some other name (usually "gmake"), in which
680 # case it prints its new name instead of `make'.
681 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
682 am__include=include
683 am__quote=
684 _am_result=GNU
685 fi
686 # Now try BSD make style include.
687 if test "$am__include" = "#"; then
688 echo '.include "confinc"' > confmf
689 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
690 am__include=.include
691 am__quote="\""
692 _am_result=BSD
693 fi
694 fi
695 AC_SUBST([am__include])
696 AC_SUBST([am__quote])
697 AC_MSG_RESULT([$_am_result])
698 rm -f confinc confmf
699 ])
700
701 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
702
703 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
704 # Free Software Foundation, Inc.
705 #
706 # This file is free software; the Free Software Foundation
707 # gives unlimited permission to copy and/or distribute it,
708 # with or without modifications, as long as this notice is preserved.
709
710 # serial 4
711
712 # AM_MISSING_PROG(NAME, PROGRAM)
713 # ------------------------------
714 AC_DEFUN([AM_MISSING_PROG],
715 [AC_REQUIRE([AM_MISSING_HAS_RUN])
716 $1=${$1-"${am_missing_run}$2"}
717 AC_SUBST($1)])
718
719
720 # AM_MISSING_HAS_RUN
721 # ------------------
722 # Define MISSING if not defined so far and test if it supports --run.
723 # If it does, set am_missing_run to use it, otherwise, to nothing.
724 AC_DEFUN([AM_MISSING_HAS_RUN],
725 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
726 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
727 # Use eval to expand $SHELL
728 if eval "$MISSING --run true"; then
729 am_missing_run="$MISSING --run "
730 else
731 am_missing_run=
732 AC_MSG_WARN([`missing' script is too old or missing])
733 fi
734 ])
735
736 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
737 #
738 # This file is free software; the Free Software Foundation
739 # gives unlimited permission to copy and/or distribute it,
740 # with or without modifications, as long as this notice is preserved.
741
742 # AM_PROG_MKDIR_P
743 # ---------------
744 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
745 #
746 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
747 # created by `make install' are always world readable, even if the
748 # installer happens to have an overly restrictive umask (e.g. 077).
749 # This was a mistake. There are at least two reasons why we must not
750 # use `-m 0755':
751 # - it causes special bits like SGID to be ignored,
752 # - it may be too restrictive (some setups expect 775 directories).
753 #
754 # Do not use -m 0755 and let people choose whatever they expect by
755 # setting umask.
756 #
757 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
758 # Some implementations (such as Solaris 8's) are not thread-safe: if a
759 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
760 # concurrently, both version can detect that a/ is missing, but only
761 # one can create it and the other will error out. Consequently we
762 # restrict ourselves to GNU make (using the --version option ensures
763 # this.)
764 AC_DEFUN([AM_PROG_MKDIR_P],
765 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
766 # We used to keeping the `.' as first argument, in order to
767 # allow $(mkdir_p) to be used without argument. As in
768 # $(mkdir_p) $(somedir)
769 # where $(somedir) is conditionally defined. However this is wrong
770 # for two reasons:
771 # 1. if the package is installed by a user who cannot write `.'
772 # make install will fail,
773 # 2. the above comment should most certainly read
774 # $(mkdir_p) $(DESTDIR)$(somedir)
775 # so it does not work when $(somedir) is undefined and
776 # $(DESTDIR) is not.
777 # To support the latter case, we have to write
778 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
779 # so the `.' trick is pointless.
780 mkdir_p='mkdir -p --'
781 else
782 # On NextStep and OpenStep, the `mkdir' command does not
783 # recognize any option. It will interpret all options as
784 # directories to create, and then abort because `.' already
785 # exists.
786 for d in ./-p ./--version;
787 do
788 test -d $d && rmdir $d
789 done
790 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
791 if test -f "$ac_aux_dir/mkinstalldirs"; then
792 mkdir_p='$(mkinstalldirs)'
793 else
794 mkdir_p='$(install_sh) -d'
795 fi
796 fi
797 AC_SUBST([mkdir_p])])
798
799 # Helper functions for option handling. -*- Autoconf -*-
800
801 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
802 #
803 # This file is free software; the Free Software Foundation
804 # gives unlimited permission to copy and/or distribute it,
805 # with or without modifications, as long as this notice is preserved.
806
807 # serial 3
808
809 # _AM_MANGLE_OPTION(NAME)
810 # -----------------------
811 AC_DEFUN([_AM_MANGLE_OPTION],
812 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
813
814 # _AM_SET_OPTION(NAME)
815 # ------------------------------
816 # Set option NAME. Presently that only means defining a flag for this option.
817 AC_DEFUN([_AM_SET_OPTION],
818 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
819
820 # _AM_SET_OPTIONS(OPTIONS)
821 # ----------------------------------
822 # OPTIONS is a space-separated list of Automake options.
823 AC_DEFUN([_AM_SET_OPTIONS],
824 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
825
826 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
827 # -------------------------------------------
828 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
829 AC_DEFUN([_AM_IF_OPTION],
830 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
831
832 # Check to make sure that the build environment is sane. -*- Autoconf -*-
833
834 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
835 # Free Software Foundation, Inc.
836 #
837 # This file is free software; the Free Software Foundation
838 # gives unlimited permission to copy and/or distribute it,
839 # with or without modifications, as long as this notice is preserved.
840
841 # serial 4
842
843 # AM_SANITY_CHECK
844 # ---------------
845 AC_DEFUN([AM_SANITY_CHECK],
846 [AC_MSG_CHECKING([whether build environment is sane])
847 # Just in case
848 sleep 1
849 echo timestamp > conftest.file
850 # Do `set' in a subshell so we don't clobber the current shell's
851 # arguments. Must try -L first in case configure is actually a
852 # symlink; some systems play weird games with the mod time of symlinks
853 # (eg FreeBSD returns the mod time of the symlink's containing
854 # directory).
855 if (
856 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
857 if test "$[*]" = "X"; then
858 # -L didn't work.
859 set X `ls -t $srcdir/configure conftest.file`
860 fi
861 rm -f conftest.file
862 if test "$[*]" != "X $srcdir/configure conftest.file" \
863 && test "$[*]" != "X conftest.file $srcdir/configure"; then
864
865 # If neither matched, then we have a broken ls. This can happen
866 # if, for instance, CONFIG_SHELL is bash and it inherits a
867 # broken ls alias from the environment. This has actually
868 # happened. Such a system could not be considered "sane".
869 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
870 alias in your environment])
871 fi
872
873 test "$[2]" = conftest.file
874 )
875 then
876 # Ok.
877 :
878 else
879 AC_MSG_ERROR([newly created file is older than distributed files!
880 Check your system clock])
881 fi
882 AC_MSG_RESULT(yes)])
883
884 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
885 #
886 # This file is free software; the Free Software Foundation
887 # gives unlimited permission to copy and/or distribute it,
888 # with or without modifications, as long as this notice is preserved.
889
890 # AM_PROG_INSTALL_STRIP
891 # ---------------------
892 # One issue with vendor `install' (even GNU) is that you can't
893 # specify the program used to strip binaries. This is especially
894 # annoying in cross-compiling environments, where the build's strip
895 # is unlikely to handle the host's binaries.
896 # Fortunately install-sh will honor a STRIPPROG variable, so we
897 # always use install-sh in `make install-strip', and initialize
898 # STRIPPROG with the value of the STRIP variable (set by the user).
899 AC_DEFUN([AM_PROG_INSTALL_STRIP],
900 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
901 # Installed binaries are usually stripped using `strip' when the user
902 # run `make install-strip'. However `strip' might not be the right
903 # tool to use in cross-compilation environments, therefore Automake
904 # will honor the `STRIP' environment variable to overrule this program.
905 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
906 if test "$cross_compiling" != no; then
907 AC_CHECK_TOOL([STRIP], [strip], :)
908 fi
909 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
910 AC_SUBST([INSTALL_STRIP_PROGRAM])])
911
912 # Check how to create a tarball. -*- Autoconf -*-
913
914 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
915 #
916 # This file is free software; the Free Software Foundation
917 # gives unlimited permission to copy and/or distribute it,
918 # with or without modifications, as long as this notice is preserved.
919
920 # serial 2
921
922 # _AM_PROG_TAR(FORMAT)
923 # --------------------
924 # Check how to create a tarball in format FORMAT.
925 # FORMAT should be one of `v7', `ustar', or `pax'.
926 #
927 # Substitute a variable $(am__tar) that is a command
928 # writing to stdout a FORMAT-tarball containing the directory
929 # $tardir.
930 # tardir=directory && $(am__tar) > result.tar
931 #
932 # Substitute a variable $(am__untar) that extract such
933 # a tarball read from stdin.
934 # $(am__untar) < result.tar
935 AC_DEFUN([_AM_PROG_TAR],
936 [# Always define AMTAR for backward compatibility.
937 AM_MISSING_PROG([AMTAR], [tar])
938 m4_if([$1], [v7],
939 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
940 [m4_case([$1], [ustar],, [pax],,
941 [m4_fatal([Unknown tar format])])
942 AC_MSG_CHECKING([how to create a $1 tar archive])
943 # Loop over all known methods to create a tar archive until one works.
944 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
945 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
946 # Do not fold the above two line into one, because Tru64 sh and
947 # Solaris sh will not grok spaces in the rhs of `-'.
948 for _am_tool in $_am_tools
949 do
950 case $_am_tool in
951 gnutar)
952 for _am_tar in tar gnutar gtar;
953 do
954 AM_RUN_LOG([$_am_tar --version]) && break
955 done
956 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
957 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
958 am__untar="$_am_tar -xf -"
959 ;;
960 plaintar)
961 # Must skip GNU tar: if it does not support --format= it doesn't create
962 # ustar tarball either.
963 (tar --version) >/dev/null 2>&1 && continue
964 am__tar='tar chf - "$$tardir"'
965 am__tar_='tar chf - "$tardir"'
966 am__untar='tar xf -'
967 ;;
968 pax)
969 am__tar='pax -L -x $1 -w "$$tardir"'
970 am__tar_='pax -L -x $1 -w "$tardir"'
971 am__untar='pax -r'
972 ;;
973 cpio)
974 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
975 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
976 am__untar='cpio -i -H $1 -d'
977 ;;
978 none)
979 am__tar=false
980 am__tar_=false
981 am__untar=false
982 ;;
983 esac
984
985 # If the value was cached, stop now. We just wanted to have am__tar
986 # and am__untar set.
987 test -n "${am_cv_prog_tar_$1}" && break
988
989 # tar/untar a dummy directory, and stop if the command works
990 rm -rf conftest.dir
991 mkdir conftest.dir
992 echo GrepMe > conftest.dir/file
993 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
994 rm -rf conftest.dir
995 if test -s conftest.tar; then
996 AM_RUN_LOG([$am__untar <conftest.tar])
997 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
998 fi
999 done
1000 rm -rf conftest.dir
1001
1002 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1003 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1004 AC_SUBST([am__tar])
1005 AC_SUBST([am__untar])
1006 ]) # _AM_PROG_TAR
1007
1008 m4_include([acinclude.m4])
0 #! /bin/sh
1 # Wrapper for compilers which do not understand `-c -o'.
2
3 scriptversion=2005-05-14.22
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
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 2, or (at your option)
11 # 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, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
30
31 case $1 in
32 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
34 exit 1;
35 ;;
36 -h | --h*)
37 cat <<\EOF
38 Usage: compile [--help] [--version] PROGRAM [ARGS]
39
40 Wrapper for compilers which do not understand `-c -o'.
41 Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
42 arguments, and rename the output as expected.
43
44 If you are trying to build a whole package this is not the
45 right script to run: please start by reading the file `INSTALL'.
46
47 Report bugs to <bug-automake@gnu.org>.
48 EOF
49 exit $?
50 ;;
51 -v | --v*)
52 echo "compile $scriptversion"
53 exit $?
54 ;;
55 esac
56
57 ofile=
58 cfile=
59 eat=
60
61 for arg
62 do
63 if test -n "$eat"; then
64 eat=
65 else
66 case $1 in
67 -o)
68 # configure might choose to run compile as `compile cc -o foo foo.c'.
69 # So we strip `-o arg' only if arg is an object.
70 eat=1
71 case $2 in
72 *.o | *.obj)
73 ofile=$2
74 ;;
75 *)
76 set x "$@" -o "$2"
77 shift
78 ;;
79 esac
80 ;;
81 *.c)
82 cfile=$1
83 set x "$@" "$1"
84 shift
85 ;;
86 *)
87 set x "$@" "$1"
88 shift
89 ;;
90 esac
91 fi
92 shift
93 done
94
95 if test -z "$ofile" || test -z "$cfile"; then
96 # If no `-o' option was seen then we might have been invoked from a
97 # pattern rule where we don't need one. That is ok -- this is a
98 # normal compilation that the losing compiler can handle. If no
99 # `.c' file was seen then we are probably linking. That is also
100 # ok.
101 exec "$@"
102 fi
103
104 # Name of file we expect compiler to create.
105 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
106
107 # Create the lock directory.
108 # Note: use `[/.-]' here to ensure that we don't use the same name
109 # that we are using for the .o file. Also, base the name on the expected
110 # object file name, since that is what matters with a parallel build.
111 lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
112 while true; do
113 if mkdir "$lockdir" >/dev/null 2>&1; then
114 break
115 fi
116 sleep 1
117 done
118 # FIXME: race condition here if user kills between mkdir and trap.
119 trap "rmdir '$lockdir'; exit 1" 1 2 15
120
121 # Run the compile.
122 "$@"
123 ret=$?
124
125 if test -f "$cofile"; then
126 mv "$cofile" "$ofile"
127 elif test -f "${cofile}bj"; then
128 mv "${cofile}bj" "$ofile"
129 fi
130
131 rmdir "$lockdir"
132 exit $ret
133
134 # Local Variables:
135 # mode: shell-script
136 # sh-indentation: 2
137 # eval: (add-hook 'write-file-hooks 'time-stamp)
138 # time-stamp-start: "scriptversion="
139 # time-stamp-format: "%:y-%02m-%02d.%02H"
140 # time-stamp-end: "$"
141 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59.
3 #
4 # Copyright (C) 2003 Free Software Foundation, Inc.
5 # This configure script is free software; the Free Software Foundation
6 # gives unlimited permission to copy, distribute and modify it.
7 ## --------------------- ##
8 ## M4sh Initialization. ##
9 ## --------------------- ##
10
11 # Be Bourne compatible
12 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13 emulate sh
14 NULLCMD=:
15 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16 # is contrary to our usage. Disable this feature.
17 alias -g '${1+"$@"}'='"$@"'
18 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19 set -o posix
20 fi
21 DUALCASE=1; export DUALCASE # for MKS sh
22
23 # Support unset when possible.
24 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25 as_unset=unset
26 else
27 as_unset=false
28 fi
29
30
31 # Work around bugs in pre-3.0 UWIN ksh.
32 $as_unset ENV MAIL MAILPATH
33 PS1='$ '
34 PS2='> '
35 PS4='+ '
36
37 # NLS nuisances.
38 for as_var in \
39 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41 LC_TELEPHONE LC_TIME
42 do
43 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44 eval $as_var=C; export $as_var
45 else
46 $as_unset $as_var
47 fi
48 done
49
50 # Required to use basename.
51 if expr a : '\(a\)' >/dev/null 2>&1; then
52 as_expr=expr
53 else
54 as_expr=false
55 fi
56
57 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58 as_basename=basename
59 else
60 as_basename=false
61 fi
62
63
64 # Name of the executable.
65 as_me=`$as_basename "$0" ||
66 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67 X"$0" : 'X\(//\)$' \| \
68 X"$0" : 'X\(/\)$' \| \
69 . : '\(.\)' 2>/dev/null ||
70 echo X/"$0" |
71 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72 /^X\/\(\/\/\)$/{ s//\1/; q; }
73 /^X\/\(\/\).*/{ s//\1/; q; }
74 s/.*/./; q'`
75
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87 echo "#! /bin/sh" >conf$$.sh
88 echo "exit 0" >>conf$$.sh
89 chmod +x conf$$.sh
90 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
91 PATH_SEPARATOR=';'
92 else
93 PATH_SEPARATOR=:
94 fi
95 rm -f conf$$.sh
96 fi
97
98
99 as_lineno_1=$LINENO
100 as_lineno_2=$LINENO
101 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102 test "x$as_lineno_1" != "x$as_lineno_2" &&
103 test "x$as_lineno_3" = "x$as_lineno_2" || {
104 # Find who we are. Look in the path if we contain no path at all
105 # relative or not.
106 case $0 in
107 *[\\/]* ) as_myself=$0 ;;
108 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111 IFS=$as_save_IFS
112 test -z "$as_dir" && as_dir=.
113 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116 ;;
117 esac
118 # We did not find ourselves, most probably we were run as `sh COMMAND'
119 # in which case we are not to be found in the path.
120 if test "x$as_myself" = x; then
121 as_myself=$0
122 fi
123 if test ! -f "$as_myself"; then
124 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125 { (exit 1); exit 1; }; }
126 fi
127 case $CONFIG_SHELL in
128 '')
129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132 IFS=$as_save_IFS
133 test -z "$as_dir" && as_dir=.
134 for as_base in sh bash ksh sh5; do
135 case $as_dir in
136 /*)
137 if ("$as_dir/$as_base" -c '
138 as_lineno_1=$LINENO
139 as_lineno_2=$LINENO
140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141 test "x$as_lineno_1" != "x$as_lineno_2" &&
142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
145 CONFIG_SHELL=$as_dir/$as_base
146 export CONFIG_SHELL
147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
148 fi;;
149 esac
150 done
151 done
152 ;;
153 esac
154
155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
156 # uniformly replaced by the line number. The first 'sed' inserts a
157 # line-number line before each line; the second 'sed' does the real
158 # work. The second script uses 'N' to pair each line-number line
159 # with the numbered line, and appends trailing '-' during
160 # substitution so that $LINENO is not a special case at line end.
161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
163 sed '=' <$as_myself |
164 sed '
165 N
166 s,$,-,
167 : loop
168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
169 t loop
170 s,-$,,
171 s,^['$as_cr_digits']*\n,,
172 ' >$as_me.lineno &&
173 chmod +x $as_me.lineno ||
174 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
175 { (exit 1); exit 1; }; }
176
177 # Don't try to exec as it changes $[0], causing all sort of problems
178 # (the dirname of $[0] is not the place where we might find the
179 # original and so on. Autoconf is especially sensible to this).
180 . ./$as_me.lineno
181 # Exit status is that of the last command.
182 exit
183 }
184
185
186 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
187 *c*,-n*) ECHO_N= ECHO_C='
188 ' ECHO_T=' ' ;;
189 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
190 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
191 esac
192
193 if expr a : '\(a\)' >/dev/null 2>&1; then
194 as_expr=expr
195 else
196 as_expr=false
197 fi
198
199 rm -f conf$$ conf$$.exe conf$$.file
200 echo >conf$$.file
201 if ln -s conf$$.file conf$$ 2>/dev/null; then
202 # We could just check for DJGPP; but this test a) works b) is more generic
203 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
204 if test -f conf$$.exe; then
205 # Don't use ln at all; we don't have any links
206 as_ln_s='cp -p'
207 else
208 as_ln_s='ln -s'
209 fi
210 elif ln conf$$.file conf$$ 2>/dev/null; then
211 as_ln_s=ln
212 else
213 as_ln_s='cp -p'
214 fi
215 rm -f conf$$ conf$$.exe conf$$.file
216
217 if mkdir -p . 2>/dev/null; then
218 as_mkdir_p=:
219 else
220 test -d ./-p && rmdir ./-p
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="virt-viewer.spec.in"
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE WARN_CFLAGS PKG_CONFIG ac_pt_PKG_CONFIG LIBXML2_CFLAGS LIBXML2_LIBS LIBVIRT_CFLAGS LIBVIRT_LIBS GTK2_CFLAGS GTK2_LIBS GTKVNC_CFLAGS GTKVNC_LIBS LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318 # If the previous option needs an argument, assign it.
319 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
321 ac_prev=
322 continue
323 fi
324
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327 # Accept the important Cygnus configure options, so we can diagnose typos.
328
329 case $ac_option in
330
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332 ac_prev=bindir ;;
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334 bindir=$ac_optarg ;;
335
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build_alias ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build_alias=$ac_optarg ;;
340
341 -cache-file | --cache-file | --cache-fil | --cache-fi \
342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343 ac_prev=cache_file ;;
344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346 cache_file=$ac_optarg ;;
347
348 --config-cache | -C)
349 cache_file=config.cache ;;
350
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
355 datadir=$ac_optarg ;;
356
357 -disable-* | --disable-*)
358 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359 # Reject names that are not valid shell variable names.
360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362 { (exit 1); exit 1; }; }
363 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
365
366 -enable-* | --enable-*)
367 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368 # Reject names that are not valid shell variable names.
369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
378
379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381 | --exec | --exe | --ex)
382 ac_prev=exec_prefix ;;
383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385 | --exec=* | --exe=* | --ex=*)
386 exec_prefix=$ac_optarg ;;
387
388 -gas | --gas | --ga | --g)
389 # Obsolete; use --with-gas.
390 with_gas=yes ;;
391
392 -help | --help | --hel | --he | -h)
393 ac_init_help=long ;;
394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395 ac_init_help=recursive ;;
396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397 ac_init_help=short ;;
398
399 -host | --host | --hos | --ho)
400 ac_prev=host_alias ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host_alias=$ac_optarg ;;
403
404 -includedir | --includedir | --includedi | --included | --include \
405 | --includ | --inclu | --incl | --inc)
406 ac_prev=includedir ;;
407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408 | --includ=* | --inclu=* | --incl=* | --inc=*)
409 includedir=$ac_optarg ;;
410
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
412 ac_prev=infodir ;;
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir=$ac_optarg ;;
415
416 -libdir | --libdir | --libdi | --libd)
417 ac_prev=libdir ;;
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
419 libdir=$ac_optarg ;;
420
421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422 | --libexe | --libex | --libe)
423 ac_prev=libexecdir ;;
424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425 | --libexe=* | --libex=* | --libe=*)
426 libexecdir=$ac_optarg ;;
427
428 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
431 ac_prev=localstatedir ;;
432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435 localstatedir=$ac_optarg ;;
436
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438 ac_prev=mandir ;;
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440 mandir=$ac_optarg ;;
441
442 -nfp | --nfp | --nf)
443 # Obsolete; use --without-fp.
444 with_fp=no ;;
445
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c | -n)
448 no_create=yes ;;
449
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452 no_recursion=yes ;;
453
454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456 | --oldin | --oldi | --old | --ol | --o)
457 ac_prev=oldincludedir ;;
458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461 oldincludedir=$ac_optarg ;;
462
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464 ac_prev=prefix ;;
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466 prefix=$ac_optarg ;;
467
468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
469 | --program-pre | --program-pr | --program-p)
470 ac_prev=program_prefix ;;
471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473 program_prefix=$ac_optarg ;;
474
475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
476 | --program-suf | --program-su | --program-s)
477 ac_prev=program_suffix ;;
478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480 program_suffix=$ac_optarg ;;
481
482 -program-transform-name | --program-transform-name \
483 | --program-transform-nam | --program-transform-na \
484 | --program-transform-n | --program-transform- \
485 | --program-transform | --program-transfor \
486 | --program-transfo | --program-transf \
487 | --program-trans | --program-tran \
488 | --progr-tra | --program-tr | --program-t)
489 ac_prev=program_transform_name ;;
490 -program-transform-name=* | --program-transform-name=* \
491 | --program-transform-nam=* | --program-transform-na=* \
492 | --program-transform-n=* | --program-transform-=* \
493 | --program-transform=* | --program-transfor=* \
494 | --program-transfo=* | --program-transf=* \
495 | --program-trans=* | --program-tran=* \
496 | --progr-tra=* | --program-tr=* | --program-t=*)
497 program_transform_name=$ac_optarg ;;
498
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
501 silent=yes ;;
502
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504 ac_prev=sbindir ;;
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506 | --sbi=* | --sb=*)
507 sbindir=$ac_optarg ;;
508
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
512 | --sha | --sh)
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517 | --sha=* | --sh=*)
518 sharedstatedir=$ac_optarg ;;
519
520 -site | --site | --sit)
521 ac_prev=site ;;
522 -site=* | --site=* | --sit=*)
523 site=$ac_optarg ;;
524
525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526 ac_prev=srcdir ;;
527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528 srcdir=$ac_optarg ;;
529
530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531 | --syscon | --sysco | --sysc | --sys | --sy)
532 ac_prev=sysconfdir ;;
533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535 sysconfdir=$ac_optarg ;;
536
537 -target | --target | --targe | --targ | --tar | --ta | --t)
538 ac_prev=target_alias ;;
539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540 target_alias=$ac_optarg ;;
541
542 -v | -verbose | --verbose | --verbos | --verbo | --verb)
543 verbose=yes ;;
544
545 -version | --version | --versio | --versi | --vers | -V)
546 ac_init_version=: ;;
547
548 -with-* | --with-*)
549 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid package name: $ac_package" >&2
553 { (exit 1); exit 1; }; }
554 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
560
561 -without-* | --without-*)
562 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid package name: $ac_package" >&2
566 { (exit 1); exit 1; }; }
567 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
569
570 --x)
571 # Obsolete; use --with-x.
572 with_x=yes ;;
573
574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575 | --x-incl | --x-inc | --x-in | --x-i)
576 ac_prev=x_includes ;;
577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579 x_includes=$ac_optarg ;;
580
581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583 ac_prev=x_libraries ;;
584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586 x_libraries=$ac_optarg ;;
587
588 -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590 { (exit 1); exit 1; }; }
591 ;;
592
593 *=*)
594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595 # Reject names that are not valid shell variable names.
596 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
601 export $ac_envvar ;;
602
603 *)
604 # FIXME: should be removed in autoconf 3.0.
605 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 ;;
610
611 esac
612 done
613
614 if test -n "$ac_prev"; then
615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616 { echo "$as_me: error: missing argument to $ac_option" >&2
617 { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623 eval ac_val=$`echo $ac_var`
624 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
628 esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
634 do
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652 if test "x$build_alias" = x; then
653 cross_compiling=maybe
654 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655 If a cross compiler is detected then cross compile mode will be used." >&2
656 elif test "x$build_alias" != "x$host_alias"; then
657 cross_compiling=yes
658 fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673 X"$0" : 'X\(//\)[^/]' \| \
674 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
686 fi
687 else
688 ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696 { (exit 1); exit 1; }; }
697 fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
732 ac_env_PKG_CONFIG_value=$PKG_CONFIG
733 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
734 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
735 ac_env_LIBXML2_CFLAGS_set=${LIBXML2_CFLAGS+set}
736 ac_env_LIBXML2_CFLAGS_value=$LIBXML2_CFLAGS
737 ac_cv_env_LIBXML2_CFLAGS_set=${LIBXML2_CFLAGS+set}
738 ac_cv_env_LIBXML2_CFLAGS_value=$LIBXML2_CFLAGS
739 ac_env_LIBXML2_LIBS_set=${LIBXML2_LIBS+set}
740 ac_env_LIBXML2_LIBS_value=$LIBXML2_LIBS
741 ac_cv_env_LIBXML2_LIBS_set=${LIBXML2_LIBS+set}
742 ac_cv_env_LIBXML2_LIBS_value=$LIBXML2_LIBS
743 ac_env_LIBVIRT_CFLAGS_set=${LIBVIRT_CFLAGS+set}
744 ac_env_LIBVIRT_CFLAGS_value=$LIBVIRT_CFLAGS
745 ac_cv_env_LIBVIRT_CFLAGS_set=${LIBVIRT_CFLAGS+set}
746 ac_cv_env_LIBVIRT_CFLAGS_value=$LIBVIRT_CFLAGS
747 ac_env_LIBVIRT_LIBS_set=${LIBVIRT_LIBS+set}
748 ac_env_LIBVIRT_LIBS_value=$LIBVIRT_LIBS
749 ac_cv_env_LIBVIRT_LIBS_set=${LIBVIRT_LIBS+set}
750 ac_cv_env_LIBVIRT_LIBS_value=$LIBVIRT_LIBS
751 ac_env_GTK2_CFLAGS_set=${GTK2_CFLAGS+set}
752 ac_env_GTK2_CFLAGS_value=$GTK2_CFLAGS
753 ac_cv_env_GTK2_CFLAGS_set=${GTK2_CFLAGS+set}
754 ac_cv_env_GTK2_CFLAGS_value=$GTK2_CFLAGS
755 ac_env_GTK2_LIBS_set=${GTK2_LIBS+set}
756 ac_env_GTK2_LIBS_value=$GTK2_LIBS
757 ac_cv_env_GTK2_LIBS_set=${GTK2_LIBS+set}
758 ac_cv_env_GTK2_LIBS_value=$GTK2_LIBS
759 ac_env_GTKVNC_CFLAGS_set=${GTKVNC_CFLAGS+set}
760 ac_env_GTKVNC_CFLAGS_value=$GTKVNC_CFLAGS
761 ac_cv_env_GTKVNC_CFLAGS_set=${GTKVNC_CFLAGS+set}
762 ac_cv_env_GTKVNC_CFLAGS_value=$GTKVNC_CFLAGS
763 ac_env_GTKVNC_LIBS_set=${GTKVNC_LIBS+set}
764 ac_env_GTKVNC_LIBS_value=$GTKVNC_LIBS
765 ac_cv_env_GTKVNC_LIBS_set=${GTKVNC_LIBS+set}
766 ac_cv_env_GTKVNC_LIBS_value=$GTKVNC_LIBS
767
768 #
769 # Report the --help message.
770 #
771 if test "$ac_init_help" = "long"; then
772 # Omit some internal or obsolete options to make the list less imposing.
773 # This message is too long to be a string in the A/UX 3.1 sh.
774 cat <<_ACEOF
775 \`configure' configures this package to adapt to many kinds of systems.
776
777 Usage: $0 [OPTION]... [VAR=VALUE]...
778
779 To assign environment variables (e.g., CC, CFLAGS...), specify them as
780 VAR=VALUE. See below for descriptions of some of the useful variables.
781
782 Defaults for the options are specified in brackets.
783
784 Configuration:
785 -h, --help display this help and exit
786 --help=short display options specific to this package
787 --help=recursive display the short help of all the included packages
788 -V, --version display version information and exit
789 -q, --quiet, --silent do not print \`checking...' messages
790 --cache-file=FILE cache test results in FILE [disabled]
791 -C, --config-cache alias for \`--cache-file=config.cache'
792 -n, --no-create do not create output files
793 --srcdir=DIR find the sources in DIR [configure dir or \`..']
794
795 _ACEOF
796
797 cat <<_ACEOF
798 Installation directories:
799 --prefix=PREFIX install architecture-independent files in PREFIX
800 [$ac_default_prefix]
801 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
802 [PREFIX]
803
804 By default, \`make install' will install all the files in
805 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
806 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
807 for instance \`--prefix=\$HOME'.
808
809 For better control, use the options below.
810
811 Fine tuning of the installation directories:
812 --bindir=DIR user executables [EPREFIX/bin]
813 --sbindir=DIR system admin executables [EPREFIX/sbin]
814 --libexecdir=DIR program executables [EPREFIX/libexec]
815 --datadir=DIR read-only architecture-independent data [PREFIX/share]
816 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
817 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
818 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
819 --libdir=DIR object code libraries [EPREFIX/lib]
820 --includedir=DIR C header files [PREFIX/include]
821 --oldincludedir=DIR C header files for non-gcc [/usr/include]
822 --infodir=DIR info documentation [PREFIX/info]
823 --mandir=DIR man documentation [PREFIX/man]
824 _ACEOF
825
826 cat <<\_ACEOF
827
828 Program names:
829 --program-prefix=PREFIX prepend PREFIX to installed program names
830 --program-suffix=SUFFIX append SUFFIX to installed program names
831 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
832 _ACEOF
833 fi
834
835 if test -n "$ac_init_help"; then
836
837 cat <<\_ACEOF
838
839 Optional Features:
840 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
841 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
842 --disable-dependency-tracking speeds up one-time build
843 --enable-dependency-tracking do not reject slow dependency extractors
844 --enable-compile-warnings=[no/minimum/yes/maximum/error]
845 Turn on compiler warnings
846 --enable-iso-c Try to warn if code is not ISO C
847
848 Some influential environment variables:
849 CC C compiler command
850 CFLAGS C compiler flags
851 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
852 nonstandard directory <lib dir>
853 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
854 headers in a nonstandard directory <include dir>
855 PKG_CONFIG path to pkg-config utility
856 LIBXML2_CFLAGS
857 C compiler flags for LIBXML2, overriding pkg-config
858 LIBXML2_LIBS
859 linker flags for LIBXML2, overriding pkg-config
860 LIBVIRT_CFLAGS
861 C compiler flags for LIBVIRT, overriding pkg-config
862 LIBVIRT_LIBS
863 linker flags for LIBVIRT, overriding pkg-config
864 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
865 GTK2_LIBS linker flags for GTK2, overriding pkg-config
866 GTKVNC_CFLAGS
867 C compiler flags for GTKVNC, overriding pkg-config
868 GTKVNC_LIBS linker flags for GTKVNC, overriding pkg-config
869
870 Use these variables to override the choices made by `configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
872
873 _ACEOF
874 fi
875
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
882
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887 else
888 ac_dir_suffix= ac_top_builddir=
889 fi
890
891 case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905 esac
906
907 # Do not use `cd foo && pwd` to compute absolute paths, because
908 # the directories may not exist.
909 case `pwd` in
910 .) ac_abs_builddir="$ac_dir";;
911 *)
912 case "$ac_dir" in
913 .) ac_abs_builddir=`pwd`;;
914 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
915 *) ac_abs_builddir=`pwd`/"$ac_dir";;
916 esac;;
917 esac
918 case $ac_abs_builddir in
919 .) ac_abs_top_builddir=${ac_top_builddir}.;;
920 *)
921 case ${ac_top_builddir}. in
922 .) ac_abs_top_builddir=$ac_abs_builddir;;
923 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
924 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
925 esac;;
926 esac
927 case $ac_abs_builddir in
928 .) ac_abs_srcdir=$ac_srcdir;;
929 *)
930 case $ac_srcdir in
931 .) ac_abs_srcdir=$ac_abs_builddir;;
932 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
933 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_srcdir=$ac_top_srcdir;;
938 *)
939 case $ac_top_srcdir in
940 .) ac_abs_top_srcdir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
942 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
943 esac;;
944 esac
945
946 cd $ac_dir
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
949 echo
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
952 echo
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
956 echo
957 $ac_configure --help
958 else
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960 fi
961 cd $ac_popdir
962 done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967 cat <<\_ACEOF
968
969 Copyright (C) 2003 Free Software Foundation, Inc.
970 This configure script is free software; the Free Software Foundation
971 gives unlimited permission to copy, distribute and modify it.
972 _ACEOF
973 exit 0
974 fi
975 exec 5>config.log
976 cat >&5 <<_ACEOF
977 This file contains any messages produced by compilers while
978 running configure, to aid debugging if configure makes a mistake.
979
980 It was created by $as_me, which was
981 generated by GNU Autoconf 2.59. Invocation command line was
982
983 $ $0 $@
984
985 _ACEOF
986 {
987 cat <<_ASUNAME
988 ## --------- ##
989 ## Platform. ##
990 ## --------- ##
991
992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
997
998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1000
1001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1004 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1008
1009 _ASUNAME
1010
1011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1012 for as_dir in $PATH
1013 do
1014 IFS=$as_save_IFS
1015 test -z "$as_dir" && as_dir=.
1016 echo "PATH: $as_dir"
1017 done
1018
1019 } >&5
1020
1021 cat >&5 <<_ACEOF
1022
1023
1024 ## ----------- ##
1025 ## Core tests. ##
1026 ## ----------- ##
1027
1028 _ACEOF
1029
1030
1031 # Keep a trace of the command line.
1032 # Strip out --no-create and --no-recursion so they do not pile up.
1033 # Strip out --silent because we don't want to record it for future runs.
1034 # Also quote any args containing shell meta-characters.
1035 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_configure_args=
1037 ac_configure_args0=
1038 ac_configure_args1=
1039 ac_sep=
1040 ac_must_keep_next=false
1041 for ac_pass in 1 2
1042 do
1043 for ac_arg
1044 do
1045 case $ac_arg in
1046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 continue ;;
1050 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1051 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1052 esac
1053 case $ac_pass in
1054 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1055 2)
1056 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1057 if test $ac_must_keep_next = true; then
1058 ac_must_keep_next=false # Got value, back to normal.
1059 else
1060 case $ac_arg in
1061 *=* | --config-cache | -C | -disable-* | --disable-* \
1062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1064 | -with-* | --with-* | -without-* | --without-* | --x)
1065 case "$ac_configure_args0 " in
1066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1067 esac
1068 ;;
1069 -* ) ac_must_keep_next=true ;;
1070 esac
1071 fi
1072 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1073 # Get rid of the leading space.
1074 ac_sep=" "
1075 ;;
1076 esac
1077 done
1078 done
1079 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1080 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1081
1082 # When interrupted or exit'd, cleanup temporary files, and complete
1083 # config.log. We remove comments because anyway the quotes in there
1084 # would cause problems or look ugly.
1085 # WARNING: Be sure not to use single quotes in there, as some shells,
1086 # such as our DU 5.0 friend, will then `close' the trap.
1087 trap 'exit_status=$?
1088 # Save into config.log some information that might help in debugging.
1089 {
1090 echo
1091
1092 cat <<\_ASBOX
1093 ## ---------------- ##
1094 ## Cache variables. ##
1095 ## ---------------- ##
1096 _ASBOX
1097 echo
1098 # The following way of writing the cache mishandles newlines in values,
1099 {
1100 (set) 2>&1 |
1101 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1102 *ac_space=\ *)
1103 sed -n \
1104 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1106 ;;
1107 *)
1108 sed -n \
1109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1110 ;;
1111 esac;
1112 }
1113 echo
1114
1115 cat <<\_ASBOX
1116 ## ----------------- ##
1117 ## Output variables. ##
1118 ## ----------------- ##
1119 _ASBOX
1120 echo
1121 for ac_var in $ac_subst_vars
1122 do
1123 eval ac_val=$`echo $ac_var`
1124 echo "$ac_var='"'"'$ac_val'"'"'"
1125 done | sort
1126 echo
1127
1128 if test -n "$ac_subst_files"; then
1129 cat <<\_ASBOX
1130 ## ------------- ##
1131 ## Output files. ##
1132 ## ------------- ##
1133 _ASBOX
1134 echo
1135 for ac_var in $ac_subst_files
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141 fi
1142
1143 if test -s confdefs.h; then
1144 cat <<\_ASBOX
1145 ## ----------- ##
1146 ## confdefs.h. ##
1147 ## ----------- ##
1148 _ASBOX
1149 echo
1150 sed "/^$/d" confdefs.h | sort
1151 echo
1152 fi
1153 test "$ac_signal" != 0 &&
1154 echo "$as_me: caught signal $ac_signal"
1155 echo "$as_me: exit $exit_status"
1156 } >&5
1157 rm -f core *.core &&
1158 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1159 exit $exit_status
1160 ' 0
1161 for ac_signal in 1 2 13 15; do
1162 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1163 done
1164 ac_signal=0
1165
1166 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1167 rm -rf conftest* confdefs.h
1168 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1169 echo >confdefs.h
1170
1171 # Predefined preprocessor variables.
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_NAME "$PACKAGE_NAME"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_STRING "$PACKAGE_STRING"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1195 _ACEOF
1196
1197
1198 # Let the site file select an alternate cache file if it wants to.
1199 # Prefer explicitly selected file to automatically selected ones.
1200 if test -z "$CONFIG_SITE"; then
1201 if test "x$prefix" != xNONE; then
1202 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1203 else
1204 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1205 fi
1206 fi
1207 for ac_site_file in $CONFIG_SITE; do
1208 if test -r "$ac_site_file"; then
1209 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1210 echo "$as_me: loading site script $ac_site_file" >&6;}
1211 sed 's/^/| /' "$ac_site_file" >&5
1212 . "$ac_site_file"
1213 fi
1214 done
1215
1216 if test -r "$cache_file"; then
1217 # Some versions of bash will fail to source /dev/null (special
1218 # files actually), so we avoid doing that.
1219 if test -f "$cache_file"; then
1220 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1221 echo "$as_me: loading cache $cache_file" >&6;}
1222 case $cache_file in
1223 [\\/]* | ?:[\\/]* ) . $cache_file;;
1224 *) . ./$cache_file;;
1225 esac
1226 fi
1227 else
1228 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1229 echo "$as_me: creating cache $cache_file" >&6;}
1230 >$cache_file
1231 fi
1232
1233 # Check that the precious variables saved in the cache have kept the same
1234 # value.
1235 ac_cache_corrupted=false
1236 for ac_var in `(set) 2>&1 |
1237 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1239 eval ac_new_set=\$ac_env_${ac_var}_set
1240 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1241 eval ac_new_val="\$ac_env_${ac_var}_value"
1242 case $ac_old_set,$ac_new_set in
1243 set,)
1244 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1247 ,set)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,);;
1252 *)
1253 if test "x$ac_old_val" != "x$ac_new_val"; then
1254 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1255 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1256 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1257 echo "$as_me: former value: $ac_old_val" >&2;}
1258 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1259 echo "$as_me: current value: $ac_new_val" >&2;}
1260 ac_cache_corrupted=:
1261 fi;;
1262 esac
1263 # Pass precious variables to config.status.
1264 if test "$ac_new_set" = set; then
1265 case $ac_new_val in
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 *) ac_arg=$ac_var=$ac_new_val ;;
1269 esac
1270 case " $ac_configure_args " in
1271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1272 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1273 esac
1274 fi
1275 done
1276 if $ac_cache_corrupted; then
1277 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1278 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1279 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1280 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1281 { (exit 1); exit 1; }; }
1282 fi
1283
1284 ac_ext=c
1285 ac_cpp='$CPP $CPPFLAGS'
1286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308 am__api_version="1.9"
1309 ac_aux_dir=
1310 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1311 if test -f $ac_dir/install-sh; then
1312 ac_aux_dir=$ac_dir
1313 ac_install_sh="$ac_aux_dir/install-sh -c"
1314 break
1315 elif test -f $ac_dir/install.sh; then
1316 ac_aux_dir=$ac_dir
1317 ac_install_sh="$ac_aux_dir/install.sh -c"
1318 break
1319 elif test -f $ac_dir/shtool; then
1320 ac_aux_dir=$ac_dir
1321 ac_install_sh="$ac_aux_dir/shtool install -c"
1322 break
1323 fi
1324 done
1325 if test -z "$ac_aux_dir"; then
1326 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1327 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1328 { (exit 1); exit 1; }; }
1329 fi
1330 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1331 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1332 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1333
1334 # Find a good install program. We prefer a C program (faster),
1335 # so one script is as good as another. But avoid the broken or
1336 # incompatible versions:
1337 # SysV /etc/install, /usr/sbin/install
1338 # SunOS /usr/etc/install
1339 # IRIX /sbin/install
1340 # AIX /bin/install
1341 # AmigaOS /C/install, which installs bootblocks on floppy discs
1342 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1343 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1344 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1345 # OS/2's system install, which has a completely different semantic
1346 # ./install, which can be erroneously created by make from ./install.sh.
1347 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1348 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1349 if test -z "$INSTALL"; then
1350 if test "${ac_cv_path_install+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 else
1353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354 for as_dir in $PATH
1355 do
1356 IFS=$as_save_IFS
1357 test -z "$as_dir" && as_dir=.
1358 # Account for people who put trailing slashes in PATH elements.
1359 case $as_dir/ in
1360 ./ | .// | /cC/* | \
1361 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1362 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1363 /usr/ucb/* ) ;;
1364 *)
1365 # OSF1 and SCO ODT 3.0 have their own names for install.
1366 # Don't use installbsd from OSF since it installs stuff as root
1367 # by default.
1368 for ac_prog in ginstall scoinst install; do
1369 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1371 if test $ac_prog = install &&
1372 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1373 # AIX install. It has an incompatible calling convention.
1374 :
1375 elif test $ac_prog = install &&
1376 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1377 # program-specific install script used by HP pwplus--don't use.
1378 :
1379 else
1380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1381 break 3
1382 fi
1383 fi
1384 done
1385 done
1386 ;;
1387 esac
1388 done
1389
1390
1391 fi
1392 if test "${ac_cv_path_install+set}" = set; then
1393 INSTALL=$ac_cv_path_install
1394 else
1395 # As a last resort, use the slow shell script. We don't cache a
1396 # path for INSTALL within a source directory, because that will
1397 # break other packages using the cache if that directory is
1398 # removed, or if the path is relative.
1399 INSTALL=$ac_install_sh
1400 fi
1401 fi
1402 echo "$as_me:$LINENO: result: $INSTALL" >&5
1403 echo "${ECHO_T}$INSTALL" >&6
1404
1405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1406 # It thinks the first close brace ends the variable substitution.
1407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1408
1409 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1410
1411 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1412
1413 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1414 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1415 # Just in case
1416 sleep 1
1417 echo timestamp > conftest.file
1418 # Do `set' in a subshell so we don't clobber the current shell's
1419 # arguments. Must try -L first in case configure is actually a
1420 # symlink; some systems play weird games with the mod time of symlinks
1421 # (eg FreeBSD returns the mod time of the symlink's containing
1422 # directory).
1423 if (
1424 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1425 if test "$*" = "X"; then
1426 # -L didn't work.
1427 set X `ls -t $srcdir/configure conftest.file`
1428 fi
1429 rm -f conftest.file
1430 if test "$*" != "X $srcdir/configure conftest.file" \
1431 && test "$*" != "X conftest.file $srcdir/configure"; then
1432
1433 # If neither matched, then we have a broken ls. This can happen
1434 # if, for instance, CONFIG_SHELL is bash and it inherits a
1435 # broken ls alias from the environment. This has actually
1436 # happened. Such a system could not be considered "sane".
1437 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1438 alias in your environment" >&5
1439 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1440 alias in your environment" >&2;}
1441 { (exit 1); exit 1; }; }
1442 fi
1443
1444 test "$2" = conftest.file
1445 )
1446 then
1447 # Ok.
1448 :
1449 else
1450 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1451 Check your system clock" >&5
1452 echo "$as_me: error: newly created file is older than distributed files!
1453 Check your system clock" >&2;}
1454 { (exit 1); exit 1; }; }
1455 fi
1456 echo "$as_me:$LINENO: result: yes" >&5
1457 echo "${ECHO_T}yes" >&6
1458 test "$program_prefix" != NONE &&
1459 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1460 # Use a double $ so make ignores it.
1461 test "$program_suffix" != NONE &&
1462 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1463 # Double any \ or $. echo might interpret backslashes.
1464 # By default was `s,x,x', remove it if useless.
1465 cat <<\_ACEOF >conftest.sed
1466 s/[\\$]/&&/g;s/;s,x,x,$//
1467 _ACEOF
1468 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1469 rm conftest.sed
1470
1471 # expand $ac_aux_dir to an absolute path
1472 am_aux_dir=`cd $ac_aux_dir && pwd`
1473
1474 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1475 # Use eval to expand $SHELL
1476 if eval "$MISSING --run true"; then
1477 am_missing_run="$MISSING --run "
1478 else
1479 am_missing_run=
1480 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1481 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1482 fi
1483
1484 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1485 # We used to keeping the `.' as first argument, in order to
1486 # allow $(mkdir_p) to be used without argument. As in
1487 # $(mkdir_p) $(somedir)
1488 # where $(somedir) is conditionally defined. However this is wrong
1489 # for two reasons:
1490 # 1. if the package is installed by a user who cannot write `.'
1491 # make install will fail,
1492 # 2. the above comment should most certainly read
1493 # $(mkdir_p) $(DESTDIR)$(somedir)
1494 # so it does not work when $(somedir) is undefined and
1495 # $(DESTDIR) is not.
1496 # To support the latter case, we have to write
1497 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1498 # so the `.' trick is pointless.
1499 mkdir_p='mkdir -p --'
1500 else
1501 # On NextStep and OpenStep, the `mkdir' command does not
1502 # recognize any option. It will interpret all options as
1503 # directories to create, and then abort because `.' already
1504 # exists.
1505 for d in ./-p ./--version;
1506 do
1507 test -d $d && rmdir $d
1508 done
1509 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1510 if test -f "$ac_aux_dir/mkinstalldirs"; then
1511 mkdir_p='$(mkinstalldirs)'
1512 else
1513 mkdir_p='$(install_sh) -d'
1514 fi
1515 fi
1516
1517 for ac_prog in gawk mawk nawk awk
1518 do
1519 # Extract the first word of "$ac_prog", so it can be a program name with args.
1520 set dummy $ac_prog; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_AWK+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 if test -n "$AWK"; then
1527 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_AWK="$ac_prog"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 AWK=$ac_cv_prog_AWK
1546 if test -n "$AWK"; then
1547 echo "$as_me:$LINENO: result: $AWK" >&5
1548 echo "${ECHO_T}$AWK" >&6
1549 else
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554 test -n "$AWK" && break
1555 done
1556
1557 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1558 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1559 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1560 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 cat >conftest.make <<\_ACEOF
1564 all:
1565 @echo 'ac_maketemp="$(MAKE)"'
1566 _ACEOF
1567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1568 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1569 if test -n "$ac_maketemp"; then
1570 eval ac_cv_prog_make_${ac_make}_set=yes
1571 else
1572 eval ac_cv_prog_make_${ac_make}_set=no
1573 fi
1574 rm -f conftest.make
1575 fi
1576 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1577 echo "$as_me:$LINENO: result: yes" >&5
1578 echo "${ECHO_T}yes" >&6
1579 SET_MAKE=
1580 else
1581 echo "$as_me:$LINENO: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1583 SET_MAKE="MAKE=${MAKE-make}"
1584 fi
1585
1586 rm -rf .tst 2>/dev/null
1587 mkdir .tst 2>/dev/null
1588 if test -d .tst; then
1589 am__leading_dot=.
1590 else
1591 am__leading_dot=_
1592 fi
1593 rmdir .tst 2>/dev/null
1594
1595 # test to see if srcdir already configured
1596 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1597 test -f $srcdir/config.status; then
1598 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1599 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1600 { (exit 1); exit 1; }; }
1601 fi
1602
1603 # test whether we have cygpath
1604 if test -z "$CYGPATH_W"; then
1605 if (cygpath --version) >/dev/null 2>/dev/null; then
1606 CYGPATH_W='cygpath -w'
1607 else
1608 CYGPATH_W=echo
1609 fi
1610 fi
1611
1612
1613 # Define the identity of the package.
1614 PACKAGE=virt-viewer
1615 VERSION=0.0.2
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE "$PACKAGE"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define VERSION "$VERSION"
1625 _ACEOF
1626
1627 # Some tools Automake needs.
1628
1629 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1630
1631
1632 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1633
1634
1635 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1636
1637
1638 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1639
1640
1641 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1642
1643 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1644
1645 # Installed binaries are usually stripped using `strip' when the user
1646 # run `make install-strip'. However `strip' might not be the right
1647 # tool to use in cross-compilation environments, therefore Automake
1648 # will honor the `STRIP' environment variable to overrule this program.
1649 if test "$cross_compiling" != no; then
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1652 set dummy ${ac_tool_prefix}strip; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_STRIP+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658 if test -n "$STRIP"; then
1659 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664 IFS=$as_save_IFS
1665 test -z "$as_dir" && as_dir=.
1666 for ac_exec_ext in '' $ac_executable_extensions; do
1667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 break 2
1671 fi
1672 done
1673 done
1674
1675 fi
1676 fi
1677 STRIP=$ac_cv_prog_STRIP
1678 if test -n "$STRIP"; then
1679 echo "$as_me:$LINENO: result: $STRIP" >&5
1680 echo "${ECHO_T}$STRIP" >&6
1681 else
1682 echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$ac_cv_prog_STRIP"; then
1688 ac_ct_STRIP=$STRIP
1689 # Extract the first word of "strip", so it can be a program name with args.
1690 set dummy strip; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696 if test -n "$ac_ct_STRIP"; then
1697 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702 IFS=$as_save_IFS
1703 test -z "$as_dir" && as_dir=.
1704 for ac_exec_ext in '' $ac_executable_extensions; do
1705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706 ac_cv_prog_ac_ct_STRIP="strip"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1709 fi
1710 done
1711 done
1712
1713 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1714 fi
1715 fi
1716 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1717 if test -n "$ac_ct_STRIP"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1719 echo "${ECHO_T}$ac_ct_STRIP" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 STRIP=$ac_ct_STRIP
1726 else
1727 STRIP="$ac_cv_prog_STRIP"
1728 fi
1729
1730 fi
1731 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1732
1733 # We need awk for the "check" target. The system "awk" is bad on
1734 # some platforms.
1735 # Always define AMTAR for backward compatibility.
1736
1737 AMTAR=${AMTAR-"${am_missing_run}tar"}
1738
1739 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1740
1741
1742
1743
1744
1745
1746 ac_ext=c
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1751 if test -n "$ac_tool_prefix"; then
1752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_CC+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$CC"; then
1760 ac_cv_prog_CC="$CC" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 CC=$ac_cv_prog_CC
1779 if test -n "$CC"; then
1780 echo "$as_me:$LINENO: result: $CC" >&5
1781 echo "${ECHO_T}$CC" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 fi
1788 if test -z "$ac_cv_prog_CC"; then
1789 ac_ct_CC=$CC
1790 # Extract the first word of "gcc", so it can be a program name with args.
1791 set dummy gcc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$ac_ct_CC"; then
1798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_ac_ct_CC="gcc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 fi
1815 fi
1816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1817 if test -n "$ac_ct_CC"; then
1818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1819 echo "${ECHO_T}$ac_ct_CC" >&6
1820 else
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 CC=$ac_ct_CC
1826 else
1827 CC="$ac_cv_prog_CC"
1828 fi
1829
1830 if test -z "$CC"; then
1831 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1833 set dummy ${ac_tool_prefix}cc; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="${ac_tool_prefix}cc"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867 fi
1868 if test -z "$ac_cv_prog_CC"; then
1869 ac_ct_CC=$CC
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC="cc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1890 fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1900 else
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905 CC=$ac_ct_CC
1906 else
1907 CC="$ac_cv_prog_CC"
1908 fi
1909
1910 fi
1911 if test -z "$CC"; then
1912 # Extract the first word of "cc", so it can be a program name with args.
1913 set dummy cc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 ac_prog_rejected=no
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1931 ac_prog_rejected=yes
1932 continue
1933 fi
1934 ac_cv_prog_CC="cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938 done
1939 done
1940
1941 if test $ac_prog_rejected = yes; then
1942 # We found a bogon in the path, so make sure we never use it.
1943 set dummy $ac_cv_prog_CC
1944 shift
1945 if test $# != 0; then
1946 # We chose a different compiler from the bogus one.
1947 # However, it has the same basename, so the bogon will be chosen
1948 # first if we set CC to just the basename; use the full file name.
1949 shift
1950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1951 fi
1952 fi
1953 fi
1954 fi
1955 CC=$ac_cv_prog_CC
1956 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
1963
1964 fi
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 for ac_prog in cl
1968 do
1969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 break 2
1989 fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 test -n "$CC" && break
2005 done
2006 fi
2007 if test -z "$CC"; then
2008 ac_ct_CC=$CC
2009 for ac_prog in cl
2010 do
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 ac_cv_prog_ac_ct_CC="$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034
2035 fi
2036 fi
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6
2041 else
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2044 fi
2045
2046 test -n "$ac_ct_CC" && break
2047 done
2048
2049 CC=$ac_ct_CC
2050 fi
2051
2052 fi
2053
2054
2055 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: no acceptable C compiler found in \$PATH
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2060
2061 # Provide some information about the compiler.
2062 echo "$as_me:$LINENO:" \
2063 "checking for C compiler version" >&5
2064 ac_compiler=`set X $ac_compile; echo $2`
2065 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2066 (eval $ac_compiler --version </dev/null >&5) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }
2070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2071 (eval $ac_compiler -v </dev/null >&5) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2076 (eval $ac_compiler -V </dev/null >&5) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080
2081 cat >conftest.$ac_ext <<_ACEOF
2082 /* confdefs.h. */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2087
2088 int
2089 main ()
2090 {
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 ac_clean_files_save=$ac_clean_files
2097 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2098 # Try to create an executable without -o first, disregard a.out.
2099 # It will help us diagnose broken compilers, and finding out an intuition
2100 # of exeext.
2101 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2102 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2103 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105 (eval $ac_link_default) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 # Find the output, starting from the most likely. This scheme is
2110 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111 # resort.
2112
2113 # Be careful to initialize this variable, since it used to be cached.
2114 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2115 ac_cv_exeext=
2116 # b.out is created by i960 compilers.
2117 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2118 do
2119 test -f "$ac_file" || continue
2120 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2122 ;;
2123 conftest.$ac_ext )
2124 # This is the source file.
2125 ;;
2126 [ab].out )
2127 # We found the default executable, but exeext='' is most
2128 # certainly right.
2129 break;;
2130 *.* )
2131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 # FIXME: I believe we export ac_cv_exeext for Libtool,
2133 # but it would be cool to find out if it's true. Does anybody
2134 # maintain Libtool? --akim.
2135 export ac_cv_exeext
2136 break;;
2137 * )
2138 break;;
2139 esac
2140 done
2141 else
2142 echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2144
2145 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: C compiler cannot create executables
2148 See \`config.log' for more details." >&2;}
2149 { (exit 77); exit 77; }; }
2150 fi
2151
2152 ac_exeext=$ac_cv_exeext
2153 echo "$as_me:$LINENO: result: $ac_file" >&5
2154 echo "${ECHO_T}$ac_file" >&6
2155
2156 # Check the compiler produces executables we can run. If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2161 # If not cross compiling, check that we can run a simple program.
2162 if test "$cross_compiling" != yes; then
2163 if { ac_try='./$ac_file'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 cross_compiling=no
2170 else
2171 if test "$cross_compiling" = maybe; then
2172 cross_compiling=yes
2173 else
2174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2175 If you meant to cross compile, use \`--host'.
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: cannot run C compiled programs.
2178 If you meant to cross compile, use \`--host'.
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2181 fi
2182 fi
2183 fi
2184 echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6
2186
2187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2188 ac_clean_files=$ac_clean_files_save
2189 # Check the compiler produces executables we can run. If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194 echo "${ECHO_T}$cross_compiling" >&6
2195
2196 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199 (eval $ac_link) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2204 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2205 # work properly (i.e., refer to `conftest.exe'), while it won't with
2206 # `rm'.
2207 for ac_file in conftest.exe conftest conftest.*; do
2208 test -f "$ac_file" || continue
2209 case $ac_file in
2210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2211 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 export ac_cv_exeext
2213 break;;
2214 * ) break;;
2215 esac
2216 done
2217 else
2218 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2221 See \`config.log' for more details." >&2;}
2222 { (exit 1); exit 1; }; }
2223 fi
2224
2225 rm -f conftest$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2227 echo "${ECHO_T}$ac_cv_exeext" >&6
2228
2229 rm -f conftest.$ac_ext
2230 EXEEXT=$ac_cv_exeext
2231 ac_exeext=$EXEEXT
2232 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2233 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2234 if test "${ac_cv_objext+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243
2244 int
2245 main ()
2246 {
2247
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.o conftest.obj
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; then
2258 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2259 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2262 break;;
2263 esac
2264 done
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2274 fi
2275
2276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2279 echo "${ECHO_T}$ac_cv_objext" >&6
2280 OBJEXT=$ac_cv_objext
2281 ac_objext=$OBJEXT
2282 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2283 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2284 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2293
2294 int
2295 main ()
2296 {
2297 #ifndef __GNUC__
2298 choke me
2299 #endif
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 ac_compiler_gnu=yes
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 ac_compiler_gnu=no
2333 fi
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2336
2337 fi
2338 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2339 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2340 GCC=`test $ac_compiler_gnu = yes && echo yes`
2341 ac_test_CFLAGS=${CFLAGS+set}
2342 ac_save_CFLAGS=$CFLAGS
2343 CFLAGS="-g"
2344 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2345 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_g+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h. */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2355
2356 int
2357 main ()
2358 {
2359
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 ac_cv_prog_cc_g=yes
2387 else
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 ac_cv_prog_cc_g=no
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2397 if test "$ac_test_CFLAGS" = set; then
2398 CFLAGS=$ac_save_CFLAGS
2399 elif test $ac_cv_prog_cc_g = yes; then
2400 if test "$GCC" = yes; then
2401 CFLAGS="-g -O2"
2402 else
2403 CFLAGS="-g"
2404 fi
2405 else
2406 if test "$GCC" = yes; then
2407 CFLAGS="-O2"
2408 else
2409 CFLAGS=
2410 fi
2411 fi
2412 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2413 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 ac_cv_prog_cc_stdc=no
2418 ac_save_CC=$CC
2419 cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2425 #include <stdarg.h>
2426 #include <stdio.h>
2427 #include <sys/types.h>
2428 #include <sys/stat.h>
2429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2430 struct buf { int x; };
2431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2432 static char *e (p, i)
2433 char **p;
2434 int i;
2435 {
2436 return p[i];
2437 }
2438 static char *f (char * (*g) (char **, int), char **p, ...)
2439 {
2440 char *s;
2441 va_list v;
2442 va_start (v,p);
2443 s = g (p, va_arg (v,int));
2444 va_end (v);
2445 return s;
2446 }
2447
2448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2449 function prototypes and stuff, but not '\xHH' hex character constants.
2450 These don't provoke an error unfortunately, instead are silently treated
2451 as 'x'. The following induces an error, until -std1 is added to get
2452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2453 array size at least. It's necessary to write '\x00'==0 to get something
2454 that's true only with -std1. */
2455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2456
2457 int test (int i, double x);
2458 struct s1 {int (*f) (int a);};
2459 struct s2 {int (*f) (double a);};
2460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2461 int argc;
2462 char **argv;
2463 int
2464 main ()
2465 {
2466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 # Don't try gcc -ansi; that turns off useful extensions and
2472 # breaks some systems' header files.
2473 # AIX -qlanglvl=ansi
2474 # Ultrix and OSF/1 -std1
2475 # HP-UX 10.20 and later -Ae
2476 # HP-UX older versions -Aa -D_HPUX_SOURCE
2477 # SVR4 -Xc -D__EXTENSIONS__
2478 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2479 do
2480 CC="$ac_save_CC $ac_arg"
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_c_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 ac_cv_prog_cc_stdc=$ac_arg
2504 break
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 fi
2510 rm -f conftest.err conftest.$ac_objext
2511 done
2512 rm -f conftest.$ac_ext conftest.$ac_objext
2513 CC=$ac_save_CC
2514
2515 fi
2516
2517 case "x$ac_cv_prog_cc_stdc" in
2518 x|xno)
2519 echo "$as_me:$LINENO: result: none needed" >&5
2520 echo "${ECHO_T}none needed" >&6 ;;
2521 *)
2522 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2523 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2524 CC="$CC $ac_cv_prog_cc_stdc" ;;
2525 esac
2526
2527 # Some people use a C++ compiler to compile C. Since we use `exit',
2528 # in C++ we need to declare it. In case someone uses the same compiler
2529 # for both compiling C and C++ we need to have the C++ compiler decide
2530 # the declaration of exit, since it's the most demanding environment.
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #ifndef __cplusplus
2533 choke me
2534 #endif
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 for ac_declaration in \
2559 '' \
2560 'extern "C" void std::exit (int) throw (); using std::exit;' \
2561 'extern "C" void std::exit (int); using std::exit;' \
2562 'extern "C" void exit (int) throw ();' \
2563 'extern "C" void exit (int);' \
2564 'void exit (int);'
2565 do
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 $ac_declaration
2573 #include <stdlib.h>
2574 int
2575 main ()
2576 {
2577 exit (42);
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 :
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 continue
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 break
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 fi
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 done
2657 rm -f conftest*
2658 if test -n "$ac_declaration"; then
2659 echo '#ifdef __cplusplus' >>confdefs.h
2660 echo $ac_declaration >>confdefs.h
2661 echo '#endif' >>confdefs.h
2662 fi
2663
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 DEPDIR="${am__leading_dot}deps"
2676
2677 ac_config_commands="$ac_config_commands depfiles"
2678
2679
2680 am_make=${MAKE-make}
2681 cat > confinc << 'END'
2682 am__doit:
2683 @echo done
2684 .PHONY: am__doit
2685 END
2686 # If we don't find an include directive, just comment out the code.
2687 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2688 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2689 am__include="#"
2690 am__quote=
2691 _am_result=none
2692 # First try GNU make style include.
2693 echo "include confinc" > confmf
2694 # We grep out `Entering directory' and `Leaving directory'
2695 # messages which can occur if `w' ends up in MAKEFLAGS.
2696 # In particular we don't look at `^make:' because GNU make might
2697 # be invoked under some other name (usually "gmake"), in which
2698 # case it prints its new name instead of `make'.
2699 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2700 am__include=include
2701 am__quote=
2702 _am_result=GNU
2703 fi
2704 # Now try BSD make style include.
2705 if test "$am__include" = "#"; then
2706 echo '.include "confinc"' > confmf
2707 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2708 am__include=.include
2709 am__quote="\""
2710 _am_result=BSD
2711 fi
2712 fi
2713
2714
2715 echo "$as_me:$LINENO: result: $_am_result" >&5
2716 echo "${ECHO_T}$_am_result" >&6
2717 rm -f confinc confmf
2718
2719 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2720 if test "${enable_dependency_tracking+set}" = set; then
2721 enableval="$enable_dependency_tracking"
2722
2723 fi;
2724 if test "x$enable_dependency_tracking" != xno; then
2725 am_depcomp="$ac_aux_dir/depcomp"
2726 AMDEPBACKSLASH='\'
2727 fi
2728
2729
2730 if test "x$enable_dependency_tracking" != xno; then
2731 AMDEP_TRUE=
2732 AMDEP_FALSE='#'
2733 else
2734 AMDEP_TRUE='#'
2735 AMDEP_FALSE=
2736 fi
2737
2738
2739
2740
2741 depcc="$CC" am_compiler_list=
2742
2743 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2744 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2745 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2749 # We make a subdir and do the tests there. Otherwise we can end up
2750 # making bogus files that we don't know about and never remove. For
2751 # instance it was reported that on HP-UX the gcc test will end up
2752 # making a dummy file named `D' -- because `-MD' means `put the output
2753 # in D'.
2754 mkdir conftest.dir
2755 # Copy depcomp to subdir because otherwise we won't find it if we're
2756 # using a relative directory.
2757 cp "$am_depcomp" conftest.dir
2758 cd conftest.dir
2759 # We will build objects and dependencies in a subdirectory because
2760 # it helps to detect inapplicable dependency modes. For instance
2761 # both Tru64's cc and ICC support -MD to output dependencies as a
2762 # side effect of compilation, but ICC will put the dependencies in
2763 # the current directory while Tru64 will put them in the object
2764 # directory.
2765 mkdir sub
2766
2767 am_cv_CC_dependencies_compiler_type=none
2768 if test "$am_compiler_list" = ""; then
2769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2770 fi
2771 for depmode in $am_compiler_list; do
2772 # Setup a source with many dependencies, because some compilers
2773 # like to wrap large dependency lists on column 80 (with \), and
2774 # we should not choose a depcomp mode which is confused by this.
2775 #
2776 # We need to recreate these files for each test, as the compiler may
2777 # overwrite some of them when testing with obscure command lines.
2778 # This happens at least with the AIX C compiler.
2779 : > sub/conftest.c
2780 for i in 1 2 3 4 5 6; do
2781 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2783 # Solaris 8's {/usr,}/bin/sh.
2784 touch sub/conftst$i.h
2785 done
2786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2787
2788 case $depmode in
2789 nosideeffect)
2790 # after this tag, mechanisms are not by side-effect, so they'll
2791 # only be used when explicitly requested
2792 if test "x$enable_dependency_tracking" = xyes; then
2793 continue
2794 else
2795 break
2796 fi
2797 ;;
2798 none) break ;;
2799 esac
2800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2801 # mode. It turns out that the SunPro C++ compiler does not properly
2802 # handle `-M -o', and we need to detect this.
2803 if depmode=$depmode \
2804 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2806 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2807 >/dev/null 2>conftest.err &&
2808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2809 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2811 # icc doesn't choke on unknown options, it will just issue warnings
2812 # or remarks (even with -Werror). So we grep stderr for any message
2813 # that says an option was ignored or not supported.
2814 # When given -MP, icc 7.0 and 7.1 complain thusly:
2815 # icc: Command line warning: ignoring option '-M'; no argument required
2816 # The diagnosis changed in icc 8.0:
2817 # icc: Command line remark: option '-MP' not supported
2818 if (grep 'ignoring option' conftest.err ||
2819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2820 am_cv_CC_dependencies_compiler_type=$depmode
2821 break
2822 fi
2823 fi
2824 done
2825
2826 cd ..
2827 rm -rf conftest.dir
2828 else
2829 am_cv_CC_dependencies_compiler_type=none
2830 fi
2831
2832 fi
2833 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2834 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2836
2837
2838
2839 if
2840 test "x$enable_dependency_tracking" != xno \
2841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2842 am__fastdepCC_TRUE=
2843 am__fastdepCC_FALSE='#'
2844 else
2845 am__fastdepCC_TRUE='#'
2846 am__fastdepCC_FALSE=
2847 fi
2848
2849
2850
2851
2852
2853
2854 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
2855 if test "${enable_compile_warnings+set}" = set; then
2856 enableval="$enable_compile_warnings"
2857
2858 else
2859 enable_compile_warnings="maximum"
2860 fi;
2861
2862 warnCFLAGS=
2863
2864 try_compiler_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables"
2865
2866 case "$enable_compile_warnings" in
2867 no)
2868 ;;
2869 minimum)
2870 try_compiler_flags="$try_compiler_flags -Wall"
2871 ;;
2872 yes)
2873 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99"
2874 ;;
2875 maximum|error)
2876 try_compiler_flags="$try_compiler_flags -Wall -Wmissing-prototypes -std=c99 -Wnested-externs -Wpointer-arith"
2877 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
2878 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
2879 if test "$enable_compile_warnings" = "error" ; then
2880 try_compiler_flags="$try_compiler_flags -Werror"
2881 fi
2882 ;;
2883 *)
2884 { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
2885 echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
2886 { (exit 1); exit 1; }; }
2887 ;;
2888 esac
2889
2890 compiler_flags=
2891 for option in $try_compiler_flags; do
2892 SAVE_CFLAGS="$CFLAGS"
2893 CFLAGS="$CFLAGS $option"
2894 echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
2895 echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -z "$ac_c_werror_flag"
2921 || test ! -s conftest.err'
2922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 (eval $ac_try) 2>&5
2924 ac_status=$?
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); }; } &&
2927 { ac_try='test -s conftest.$ac_objext'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 (eval $ac_try) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; }; then
2933 has_option=yes
2934 else
2935 echo "$as_me: failed program was:" >&5
2936 sed 's/^/| /' conftest.$ac_ext >&5
2937
2938 has_option=no
2939 fi
2940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941 CFLAGS="$SAVE_CFLAGS"
2942 echo "$as_me:$LINENO: result: $has_option" >&5
2943 echo "${ECHO_T}$has_option" >&6
2944 if test $has_option = yes; then
2945 compiler_flags="$compiler_flags $option"
2946 fi
2947 unset has_option
2948 unset SAVE_CFLAGS
2949 done
2950 unset option
2951 unset try_compiler_flags
2952
2953 # Check whether --enable-iso-c or --disable-iso-c was given.
2954 if test "${enable_iso_c+set}" = set; then
2955 enableval="$enable_iso_c"
2956
2957 else
2958 enable_iso_c=no
2959 fi;
2960
2961 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
2962 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
2963 complCFLAGS=
2964 if test "x$enable_iso_c" != "xno"; then
2965 if test "x$GCC" = "xyes"; then
2966 case " $CFLAGS " in
2967 *\ \ -ansi\ \ *) ;;
2968 *) complCFLAGS="$complCFLAGS -ansi" ;;
2969 esac
2970 case " $CFLAGS " in
2971 *\ \ -pedantic\ \ *) ;;
2972 *) complCFLAGS="$complCFLAGS -pedantic" ;;
2973 esac
2974 fi
2975 fi
2976 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
2977 echo "${ECHO_T}$complCFLAGS" >&6
2978
2979 WARN_CFLAGS="$compiler_flags $complCFLAGS"
2980
2981
2982
2983
2984
2985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2989 echo "$as_me:$LINENO: checking for $ac_word" >&5
2990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2991 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2992 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 else
2994 case $PKG_CONFIG in
2995 [\\/]* | ?:[\\/]*)
2996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2997 ;;
2998 *)
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012
3013 ;;
3014 esac
3015 fi
3016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3017
3018 if test -n "$PKG_CONFIG"; then
3019 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3020 echo "${ECHO_T}$PKG_CONFIG" >&6
3021 else
3022 echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6
3024 fi
3025
3026 fi
3027 if test -z "$ac_cv_path_PKG_CONFIG"; then
3028 ac_pt_PKG_CONFIG=$PKG_CONFIG
3029 # Extract the first word of "pkg-config", so it can be a program name with args.
3030 set dummy pkg-config; ac_word=$2
3031 echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3033 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 case $ac_pt_PKG_CONFIG in
3037 [\\/]* | ?:[\\/]*)
3038 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3039 ;;
3040 *)
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3054
3055 ;;
3056 esac
3057 fi
3058 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3059
3060 if test -n "$ac_pt_PKG_CONFIG"; then
3061 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3062 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3063 else
3064 echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6
3066 fi
3067
3068 PKG_CONFIG=$ac_pt_PKG_CONFIG
3069 else
3070 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3071 fi
3072
3073 fi
3074 if test -n "$PKG_CONFIG"; then
3075 _pkg_min_version=0.9.0
3076 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3077 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3078 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3079 echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3081 else
3082 echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6
3084 PKG_CONFIG=""
3085 fi
3086
3087 fi
3088
3089 pkg_failed=no
3090 echo "$as_me:$LINENO: checking for LIBXML2" >&5
3091 echo $ECHO_N "checking for LIBXML2... $ECHO_C" >&6
3092
3093 if test -n "$PKG_CONFIG"; then
3094 if test -n "$LIBXML2_CFLAGS"; then
3095 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
3096 else
3097 if test -n "$PKG_CONFIG" && \
3098 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\"") >&5
3099 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
3104 else
3105 pkg_failed=yes
3106 fi
3107 fi
3108 else
3109 pkg_failed=untried
3110 fi
3111 if test -n "$PKG_CONFIG"; then
3112 if test -n "$LIBXML2_LIBS"; then
3113 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
3114 else
3115 if test -n "$PKG_CONFIG" && \
3116 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\"") >&5
3117 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; then
3121 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
3122 else
3123 pkg_failed=yes
3124 fi
3125 fi
3126 else
3127 pkg_failed=untried
3128 fi
3129
3130
3131
3132 if test $pkg_failed = yes; then
3133
3134 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3135 _pkg_short_errors_supported=yes
3136 else
3137 _pkg_short_errors_supported=no
3138 fi
3139 if test $_pkg_short_errors_supported = yes; then
3140 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.0"`
3141 else
3142 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.0"`
3143 fi
3144 # Put the nasty error message in config.log where it belongs
3145 echo "$LIBXML2_PKG_ERRORS" >&5
3146
3147 { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.6.0) were not met:
3148
3149 $LIBXML2_PKG_ERRORS
3150
3151 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3152 installed software in a non-standard prefix.
3153
3154 Alternatively, you may set the environment variables LIBXML2_CFLAGS
3155 and LIBXML2_LIBS to avoid the need to call pkg-config.
3156 See the pkg-config man page for more details.
3157 " >&5
3158 echo "$as_me: error: Package requirements (libxml-2.0 >= 2.6.0) were not met:
3159
3160 $LIBXML2_PKG_ERRORS
3161
3162 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3163 installed software in a non-standard prefix.
3164
3165 Alternatively, you may set the environment variables LIBXML2_CFLAGS
3166 and LIBXML2_LIBS to avoid the need to call pkg-config.
3167 See the pkg-config man page for more details.
3168 " >&2;}
3169 { (exit 1); exit 1; }; }
3170 elif test $pkg_failed = untried; then
3171 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3172 is in your PATH or set the PKG_CONFIG environment variable to the full
3173 path to pkg-config.
3174
3175 Alternatively, you may set the environment variables LIBXML2_CFLAGS
3176 and LIBXML2_LIBS to avoid the need to call pkg-config.
3177 See the pkg-config man page for more details.
3178
3179 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3180 See \`config.log' for more details." >&5
3181 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3182 is in your PATH or set the PKG_CONFIG environment variable to the full
3183 path to pkg-config.
3184
3185 Alternatively, you may set the environment variables LIBXML2_CFLAGS
3186 and LIBXML2_LIBS to avoid the need to call pkg-config.
3187 See the pkg-config man page for more details.
3188
3189 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3192 else
3193 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
3194 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
3195 echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6
3197 :
3198 fi
3199
3200 pkg_failed=no
3201 echo "$as_me:$LINENO: checking for LIBVIRT" >&5
3202 echo $ECHO_N "checking for LIBVIRT... $ECHO_C" >&6
3203
3204 if test -n "$PKG_CONFIG"; then
3205 if test -n "$LIBVIRT_CFLAGS"; then
3206 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS"
3207 else
3208 if test -n "$PKG_CONFIG" && \
3209 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvirt >= 0.2.0\"") >&5
3210 ($PKG_CONFIG --exists --print-errors "libvirt >= 0.2.0") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= 0.2.0" 2>/dev/null`
3215 else
3216 pkg_failed=yes
3217 fi
3218 fi
3219 else
3220 pkg_failed=untried
3221 fi
3222 if test -n "$PKG_CONFIG"; then
3223 if test -n "$LIBVIRT_LIBS"; then
3224 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS"
3225 else
3226 if test -n "$PKG_CONFIG" && \
3227 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libvirt >= 0.2.0\"") >&5
3228 ($PKG_CONFIG --exists --print-errors "libvirt >= 0.2.0") 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; then
3232 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= 0.2.0" 2>/dev/null`
3233 else
3234 pkg_failed=yes
3235 fi
3236 fi
3237 else
3238 pkg_failed=untried
3239 fi
3240
3241
3242
3243 if test $pkg_failed = yes; then
3244
3245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3246 _pkg_short_errors_supported=yes
3247 else
3248 _pkg_short_errors_supported=no
3249 fi
3250 if test $_pkg_short_errors_supported = yes; then
3251 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libvirt >= 0.2.0"`
3252 else
3253 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libvirt >= 0.2.0"`
3254 fi
3255 # Put the nasty error message in config.log where it belongs
3256 echo "$LIBVIRT_PKG_ERRORS" >&5
3257
3258 { { echo "$as_me:$LINENO: error: Package requirements (libvirt >= 0.2.0) were not met:
3259
3260 $LIBVIRT_PKG_ERRORS
3261
3262 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3263 installed software in a non-standard prefix.
3264
3265 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
3266 and LIBVIRT_LIBS to avoid the need to call pkg-config.
3267 See the pkg-config man page for more details.
3268 " >&5
3269 echo "$as_me: error: Package requirements (libvirt >= 0.2.0) were not met:
3270
3271 $LIBVIRT_PKG_ERRORS
3272
3273 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3274 installed software in a non-standard prefix.
3275
3276 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
3277 and LIBVIRT_LIBS to avoid the need to call pkg-config.
3278 See the pkg-config man page for more details.
3279 " >&2;}
3280 { (exit 1); exit 1; }; }
3281 elif test $pkg_failed = untried; then
3282 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3283 is in your PATH or set the PKG_CONFIG environment variable to the full
3284 path to pkg-config.
3285
3286 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
3287 and LIBVIRT_LIBS to avoid the need to call pkg-config.
3288 See the pkg-config man page for more details.
3289
3290 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3293 is in your PATH or set the PKG_CONFIG environment variable to the full
3294 path to pkg-config.
3295
3296 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
3297 and LIBVIRT_LIBS to avoid the need to call pkg-config.
3298 See the pkg-config man page for more details.
3299
3300 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3303 else
3304 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
3305 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
3306 echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3308 :
3309 fi
3310
3311 pkg_failed=no
3312 echo "$as_me:$LINENO: checking for GTK2" >&5
3313 echo $ECHO_N "checking for GTK2... $ECHO_C" >&6
3314
3315 if test -n "$PKG_CONFIG"; then
3316 if test -n "$GTK2_CFLAGS"; then
3317 pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
3318 else
3319 if test -n "$PKG_CONFIG" && \
3320 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2.0\"") >&5
3321 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2.0") 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.2.0" 2>/dev/null`
3326 else
3327 pkg_failed=yes
3328 fi
3329 fi
3330 else
3331 pkg_failed=untried
3332 fi
3333 if test -n "$PKG_CONFIG"; then
3334 if test -n "$GTK2_LIBS"; then
3335 pkg_cv_GTK2_LIBS="$GTK2_LIBS"
3336 else
3337 if test -n "$PKG_CONFIG" && \
3338 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.2.0\"") >&5
3339 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.2.0") 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; then
3343 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.2.0" 2>/dev/null`
3344 else
3345 pkg_failed=yes
3346 fi
3347 fi
3348 else
3349 pkg_failed=untried
3350 fi
3351
3352
3353
3354 if test $pkg_failed = yes; then
3355
3356 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3357 _pkg_short_errors_supported=yes
3358 else
3359 _pkg_short_errors_supported=no
3360 fi
3361 if test $_pkg_short_errors_supported = yes; then
3362 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2.0"`
3363 else
3364 GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.2.0"`
3365 fi
3366 # Put the nasty error message in config.log where it belongs
3367 echo "$GTK2_PKG_ERRORS" >&5
3368
3369 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.2.0) were not met:
3370
3371 $GTK2_PKG_ERRORS
3372
3373 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3374 installed software in a non-standard prefix.
3375
3376 Alternatively, you may set the environment variables GTK2_CFLAGS
3377 and GTK2_LIBS to avoid the need to call pkg-config.
3378 See the pkg-config man page for more details.
3379 " >&5
3380 echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.2.0) were not met:
3381
3382 $GTK2_PKG_ERRORS
3383
3384 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3385 installed software in a non-standard prefix.
3386
3387 Alternatively, you may set the environment variables GTK2_CFLAGS
3388 and GTK2_LIBS to avoid the need to call pkg-config.
3389 See the pkg-config man page for more details.
3390 " >&2;}
3391 { (exit 1); exit 1; }; }
3392 elif test $pkg_failed = untried; then
3393 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3394 is in your PATH or set the PKG_CONFIG environment variable to the full
3395 path to pkg-config.
3396
3397 Alternatively, you may set the environment variables GTK2_CFLAGS
3398 and GTK2_LIBS to avoid the need to call pkg-config.
3399 See the pkg-config man page for more details.
3400
3401 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3402 See \`config.log' for more details." >&5
3403 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3404 is in your PATH or set the PKG_CONFIG environment variable to the full
3405 path to pkg-config.
3406
3407 Alternatively, you may set the environment variables GTK2_CFLAGS
3408 and GTK2_LIBS to avoid the need to call pkg-config.
3409 See the pkg-config man page for more details.
3410
3411 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }
3414 else
3415 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
3416 GTK2_LIBS=$pkg_cv_GTK2_LIBS
3417 echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6
3419 :
3420 fi
3421
3422 pkg_failed=no
3423 echo "$as_me:$LINENO: checking for GTKVNC" >&5
3424 echo $ECHO_N "checking for GTKVNC... $ECHO_C" >&6
3425
3426 if test -n "$PKG_CONFIG"; then
3427 if test -n "$GTKVNC_CFLAGS"; then
3428 pkg_cv_GTKVNC_CFLAGS="$GTKVNC_CFLAGS"
3429 else
3430 if test -n "$PKG_CONFIG" && \
3431 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-vnc-1.0 >= 0.0.1\"") >&5
3432 ($PKG_CONFIG --exists --print-errors "gtk-vnc-1.0 >= 0.0.1") 2>&5
3433 ac_status=$?
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; then
3436 pkg_cv_GTKVNC_CFLAGS=`$PKG_CONFIG --cflags "gtk-vnc-1.0 >= 0.0.1" 2>/dev/null`
3437 else
3438 pkg_failed=yes
3439 fi
3440 fi
3441 else
3442 pkg_failed=untried
3443 fi
3444 if test -n "$PKG_CONFIG"; then
3445 if test -n "$GTKVNC_LIBS"; then
3446 pkg_cv_GTKVNC_LIBS="$GTKVNC_LIBS"
3447 else
3448 if test -n "$PKG_CONFIG" && \
3449 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-vnc-1.0 >= 0.0.1\"") >&5
3450 ($PKG_CONFIG --exists --print-errors "gtk-vnc-1.0 >= 0.0.1") 2>&5
3451 ac_status=$?
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; then
3454 pkg_cv_GTKVNC_LIBS=`$PKG_CONFIG --libs "gtk-vnc-1.0 >= 0.0.1" 2>/dev/null`
3455 else
3456 pkg_failed=yes
3457 fi
3458 fi
3459 else
3460 pkg_failed=untried
3461 fi
3462
3463
3464
3465 if test $pkg_failed = yes; then
3466
3467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3468 _pkg_short_errors_supported=yes
3469 else
3470 _pkg_short_errors_supported=no
3471 fi
3472 if test $_pkg_short_errors_supported = yes; then
3473 GTKVNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk-vnc-1.0 >= 0.0.1"`
3474 else
3475 GTKVNC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk-vnc-1.0 >= 0.0.1"`
3476 fi
3477 # Put the nasty error message in config.log where it belongs
3478 echo "$GTKVNC_PKG_ERRORS" >&5
3479
3480 { { echo "$as_me:$LINENO: error: Package requirements (gtk-vnc-1.0 >= 0.0.1) were not met:
3481
3482 $GTKVNC_PKG_ERRORS
3483
3484 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3485 installed software in a non-standard prefix.
3486
3487 Alternatively, you may set the environment variables GTKVNC_CFLAGS
3488 and GTKVNC_LIBS to avoid the need to call pkg-config.
3489 See the pkg-config man page for more details.
3490 " >&5
3491 echo "$as_me: error: Package requirements (gtk-vnc-1.0 >= 0.0.1) were not met:
3492
3493 $GTKVNC_PKG_ERRORS
3494
3495 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3496 installed software in a non-standard prefix.
3497
3498 Alternatively, you may set the environment variables GTKVNC_CFLAGS
3499 and GTKVNC_LIBS to avoid the need to call pkg-config.
3500 See the pkg-config man page for more details.
3501 " >&2;}
3502 { (exit 1); exit 1; }; }
3503 elif test $pkg_failed = untried; then
3504 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3505 is in your PATH or set the PKG_CONFIG environment variable to the full
3506 path to pkg-config.
3507
3508 Alternatively, you may set the environment variables GTKVNC_CFLAGS
3509 and GTKVNC_LIBS to avoid the need to call pkg-config.
3510 See the pkg-config man page for more details.
3511
3512 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3513 See \`config.log' for more details." >&5
3514 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3515 is in your PATH or set the PKG_CONFIG environment variable to the full
3516 path to pkg-config.
3517
3518 Alternatively, you may set the environment variables GTKVNC_CFLAGS
3519 and GTKVNC_LIBS to avoid the need to call pkg-config.
3520 See the pkg-config man page for more details.
3521
3522 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3523 See \`config.log' for more details." >&2;}
3524 { (exit 1); exit 1; }; }
3525 else
3526 GTKVNC_CFLAGS=$pkg_cv_GTKVNC_CFLAGS
3527 GTKVNC_LIBS=$pkg_cv_GTKVNC_LIBS
3528 echo "$as_me:$LINENO: result: yes" >&5
3529 echo "${ECHO_T}yes" >&6
3530 :
3531 fi
3532
3533 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile virt-viewer.spec"
3534 cat >confcache <<\_ACEOF
3535 # This file is a shell script that caches the results of configure
3536 # tests run on this system so they can be shared between configure
3537 # scripts and configure runs, see configure's option --config-cache.
3538 # It is not useful on other systems. If it contains results you don't
3539 # want to keep, you may remove or edit it.
3540 #
3541 # config.status only pays attention to the cache file if you give it
3542 # the --recheck option to rerun configure.
3543 #
3544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3546 # following values.
3547
3548 _ACEOF
3549
3550 # The following way of writing the cache mishandles newlines in values,
3551 # but we know of no workaround that is simple, portable, and efficient.
3552 # So, don't put newlines in cache variables' values.
3553 # Ultrix sh set writes to stderr and can't be redirected directly,
3554 # and sets the high bit in the cache file unless we assign to the vars.
3555 {
3556 (set) 2>&1 |
3557 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3558 *ac_space=\ *)
3559 # `set' does not quote correctly, so add quotes (double-quote
3560 # substitution turns \\\\ into \\, and sed turns \\ into \).
3561 sed -n \
3562 "s/'/'\\\\''/g;
3563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3564 ;;
3565 *)
3566 # `set' quotes correctly as required by POSIX, so do not add quotes.
3567 sed -n \
3568 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3569 ;;
3570 esac;
3571 } |
3572 sed '
3573 t clear
3574 : clear
3575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3576 t end
3577 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3578 : end' >>confcache
3579 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3580 if test -w $cache_file; then
3581 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3582 cat confcache >$cache_file
3583 else
3584 echo "not updating unwritable cache $cache_file"
3585 fi
3586 fi
3587 rm -f confcache
3588
3589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3590 # Let make expand exec_prefix.
3591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3592
3593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3595 # trailing colons and then remove the whole line if VPATH becomes empty
3596 # (actually we leave an empty line to preserve line numbers).
3597 if test "x$srcdir" = x.; then
3598 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3599 s/:*\$(srcdir):*/:/;
3600 s/:*\${srcdir}:*/:/;
3601 s/:*@srcdir@:*/:/;
3602 s/^\([^=]*=[ ]*\):*/\1/;
3603 s/:*$//;
3604 s/^[^=]*=[ ]*$//;
3605 }'
3606 fi
3607
3608 # Transform confdefs.h into DEFS.
3609 # Protect against shell expansion while executing Makefile rules.
3610 # Protect against Makefile macro expansion.
3611 #
3612 # If the first sed substitution is executed (which looks for macros that
3613 # take arguments), then we branch to the quote section. Otherwise,
3614 # look for a macro that doesn't take arguments.
3615 cat >confdef2opt.sed <<\_ACEOF
3616 t clear
3617 : clear
3618 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3619 t quote
3620 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3621 t quote
3622 d
3623 : quote
3624 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3625 s,\[,\\&,g
3626 s,\],\\&,g
3627 s,\$,$$,g
3628 p
3629 _ACEOF
3630 # We use echo to avoid assuming a particular line-breaking character.
3631 # The extra dot is to prevent the shell from consuming trailing
3632 # line-breaks from the sub-command output. A line-break within
3633 # single-quotes doesn't work because, if this script is created in a
3634 # platform that uses two characters for line-breaks (e.g., DOS), tr
3635 # would break.
3636 ac_LF_and_DOT=`echo; echo .`
3637 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3638 rm -f confdef2opt.sed
3639
3640
3641 ac_libobjs=
3642 ac_ltlibobjs=
3643 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3644 # 1. Remove the extension, and $U if already installed.
3645 ac_i=`echo "$ac_i" |
3646 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3647 # 2. Add them.
3648 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3649 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3650 done
3651 LIBOBJS=$ac_libobjs
3652
3653 LTLIBOBJS=$ac_ltlibobjs
3654
3655
3656 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3657 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
3658 Usually this means the macro was only invoked conditionally." >&5
3659 echo "$as_me: error: conditional \"AMDEP\" was never defined.
3660 Usually this means the macro was only invoked conditionally." >&2;}
3661 { (exit 1); exit 1; }; }
3662 fi
3663 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3664 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
3665 Usually this means the macro was only invoked conditionally." >&5
3666 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
3667 Usually this means the macro was only invoked conditionally." >&2;}
3668 { (exit 1); exit 1; }; }
3669 fi
3670
3671 : ${CONFIG_STATUS=./config.status}
3672 ac_clean_files_save=$ac_clean_files
3673 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3674 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3675 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3676 cat >$CONFIG_STATUS <<_ACEOF
3677 #! $SHELL
3678 # Generated by $as_me.
3679 # Run this file to recreate the current configuration.
3680 # Compiler output produced by configure, useful for debugging
3681 # configure, is in config.log if it exists.
3682
3683 debug=false
3684 ac_cs_recheck=false
3685 ac_cs_silent=false
3686 SHELL=\${CONFIG_SHELL-$SHELL}
3687 _ACEOF
3688
3689 cat >>$CONFIG_STATUS <<\_ACEOF
3690 ## --------------------- ##
3691 ## M4sh Initialization. ##
3692 ## --------------------- ##
3693
3694 # Be Bourne compatible
3695 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3696 emulate sh
3697 NULLCMD=:
3698 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3699 # is contrary to our usage. Disable this feature.
3700 alias -g '${1+"$@"}'='"$@"'
3701 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3702 set -o posix
3703 fi
3704 DUALCASE=1; export DUALCASE # for MKS sh
3705
3706 # Support unset when possible.
3707 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3708 as_unset=unset
3709 else
3710 as_unset=false
3711 fi
3712
3713
3714 # Work around bugs in pre-3.0 UWIN ksh.
3715 $as_unset ENV MAIL MAILPATH
3716 PS1='$ '
3717 PS2='> '
3718 PS4='+ '
3719
3720 # NLS nuisances.
3721 for as_var in \
3722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3724 LC_TELEPHONE LC_TIME
3725 do
3726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3727 eval $as_var=C; export $as_var
3728 else
3729 $as_unset $as_var
3730 fi
3731 done
3732
3733 # Required to use basename.
3734 if expr a : '\(a\)' >/dev/null 2>&1; then
3735 as_expr=expr
3736 else
3737 as_expr=false
3738 fi
3739
3740 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3741 as_basename=basename
3742 else
3743 as_basename=false
3744 fi
3745
3746
3747 # Name of the executable.
3748 as_me=`$as_basename "$0" ||
3749 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3750 X"$0" : 'X\(//\)$' \| \
3751 X"$0" : 'X\(/\)$' \| \
3752 . : '\(.\)' 2>/dev/null ||
3753 echo X/"$0" |
3754 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3755 /^X\/\(\/\/\)$/{ s//\1/; q; }
3756 /^X\/\(\/\).*/{ s//\1/; q; }
3757 s/.*/./; q'`
3758
3759
3760 # PATH needs CR, and LINENO needs CR and PATH.
3761 # Avoid depending upon Character Ranges.
3762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3765 as_cr_digits='0123456789'
3766 as_cr_alnum=$as_cr_Letters$as_cr_digits
3767
3768 # The user is always right.
3769 if test "${PATH_SEPARATOR+set}" != set; then
3770 echo "#! /bin/sh" >conf$$.sh
3771 echo "exit 0" >>conf$$.sh
3772 chmod +x conf$$.sh
3773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3774 PATH_SEPARATOR=';'
3775 else
3776 PATH_SEPARATOR=:
3777 fi
3778 rm -f conf$$.sh
3779 fi
3780
3781
3782 as_lineno_1=$LINENO
3783 as_lineno_2=$LINENO
3784 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3785 test "x$as_lineno_1" != "x$as_lineno_2" &&
3786 test "x$as_lineno_3" = "x$as_lineno_2" || {
3787 # Find who we are. Look in the path if we contain no path at all
3788 # relative or not.
3789 case $0 in
3790 *[\\/]* ) as_myself=$0 ;;
3791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3793 do
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3797 done
3798
3799 ;;
3800 esac
3801 # We did not find ourselves, most probably we were run as `sh COMMAND'
3802 # in which case we are not to be found in the path.
3803 if test "x$as_myself" = x; then
3804 as_myself=$0
3805 fi
3806 if test ! -f "$as_myself"; then
3807 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3808 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3809 { (exit 1); exit 1; }; }
3810 fi
3811 case $CONFIG_SHELL in
3812 '')
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3815 do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for as_base in sh bash ksh sh5; do
3819 case $as_dir in
3820 /*)
3821 if ("$as_dir/$as_base" -c '
3822 as_lineno_1=$LINENO
3823 as_lineno_2=$LINENO
3824 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3825 test "x$as_lineno_1" != "x$as_lineno_2" &&
3826 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3827 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3828 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3829 CONFIG_SHELL=$as_dir/$as_base
3830 export CONFIG_SHELL
3831 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3832 fi;;
3833 esac
3834 done
3835 done
3836 ;;
3837 esac
3838
3839 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3840 # uniformly replaced by the line number. The first 'sed' inserts a
3841 # line-number line before each line; the second 'sed' does the real
3842 # work. The second script uses 'N' to pair each line-number line
3843 # with the numbered line, and appends trailing '-' during
3844 # substitution so that $LINENO is not a special case at line end.
3845 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3846 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3847 sed '=' <$as_myself |
3848 sed '
3849 N
3850 s,$,-,
3851 : loop
3852 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3853 t loop
3854 s,-$,,
3855 s,^['$as_cr_digits']*\n,,
3856 ' >$as_me.lineno &&
3857 chmod +x $as_me.lineno ||
3858 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3860 { (exit 1); exit 1; }; }
3861
3862 # Don't try to exec as it changes $[0], causing all sort of problems
3863 # (the dirname of $[0] is not the place where we might find the
3864 # original and so on. Autoconf is especially sensible to this).
3865 . ./$as_me.lineno
3866 # Exit status is that of the last command.
3867 exit
3868 }
3869
3870
3871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3872 *c*,-n*) ECHO_N= ECHO_C='
3873 ' ECHO_T=' ' ;;
3874 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3875 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3876 esac
3877
3878 if expr a : '\(a\)' >/dev/null 2>&1; then
3879 as_expr=expr
3880 else
3881 as_expr=false
3882 fi
3883
3884 rm -f conf$$ conf$$.exe conf$$.file
3885 echo >conf$$.file
3886 if ln -s conf$$.file conf$$ 2>/dev/null; then
3887 # We could just check for DJGPP; but this test a) works b) is more generic
3888 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3889 if test -f conf$$.exe; then
3890 # Don't use ln at all; we don't have any links
3891 as_ln_s='cp -p'
3892 else
3893 as_ln_s='ln -s'
3894 fi
3895 elif ln conf$$.file conf$$ 2>/dev/null; then
3896 as_ln_s=ln
3897 else
3898 as_ln_s='cp -p'
3899 fi
3900 rm -f conf$$ conf$$.exe conf$$.file
3901
3902 if mkdir -p . 2>/dev/null; then
3903 as_mkdir_p=:
3904 else
3905 test -d ./-p && rmdir ./-p
3906 as_mkdir_p=false
3907 fi
3908
3909 as_executable_p="test -f"
3910
3911 # Sed expression to map a string onto a valid CPP name.
3912 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3913
3914 # Sed expression to map a string onto a valid variable name.
3915 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3916
3917
3918 # IFS
3919 # We need space, tab and new line, in precisely that order.
3920 as_nl='
3921 '
3922 IFS=" $as_nl"
3923
3924 # CDPATH.
3925 $as_unset CDPATH
3926
3927 exec 6>&1
3928
3929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3930 # report actual input values of CONFIG_FILES etc. instead of their
3931 # values after options handling. Logging --version etc. is OK.
3932 exec 5>>config.log
3933 {
3934 echo
3935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3936 ## Running $as_me. ##
3937 _ASBOX
3938 } >&5
3939 cat >&5 <<_CSEOF
3940
3941 This file was extended by $as_me, which was
3942 generated by GNU Autoconf 2.59. Invocation command line was
3943
3944 CONFIG_FILES = $CONFIG_FILES
3945 CONFIG_HEADERS = $CONFIG_HEADERS
3946 CONFIG_LINKS = $CONFIG_LINKS
3947 CONFIG_COMMANDS = $CONFIG_COMMANDS
3948 $ $0 $@
3949
3950 _CSEOF
3951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3952 echo >&5
3953 _ACEOF
3954
3955 # Files that config.status was made for.
3956 if test -n "$ac_config_files"; then
3957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3958 fi
3959
3960 if test -n "$ac_config_headers"; then
3961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3962 fi
3963
3964 if test -n "$ac_config_links"; then
3965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3966 fi
3967
3968 if test -n "$ac_config_commands"; then
3969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3970 fi
3971
3972 cat >>$CONFIG_STATUS <<\_ACEOF
3973
3974 ac_cs_usage="\
3975 \`$as_me' instantiates files from templates according to the
3976 current configuration.
3977
3978 Usage: $0 [OPTIONS] [FILE]...
3979
3980 -h, --help print this help, then exit
3981 -V, --version print version number, then exit
3982 -q, --quiet do not print progress messages
3983 -d, --debug don't remove temporary files
3984 --recheck update $as_me by reconfiguring in the same conditions
3985 --file=FILE[:TEMPLATE]
3986 instantiate the configuration file FILE
3987
3988 Configuration files:
3989 $config_files
3990
3991 Configuration commands:
3992 $config_commands
3993
3994 Report bugs to <bug-autoconf@gnu.org>."
3995 _ACEOF
3996
3997 cat >>$CONFIG_STATUS <<_ACEOF
3998 ac_cs_version="\\
3999 config.status
4000 configured by $0, generated by GNU Autoconf 2.59,
4001 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4002
4003 Copyright (C) 2003 Free Software Foundation, Inc.
4004 This config.status script is free software; the Free Software Foundation
4005 gives unlimited permission to copy, distribute and modify it."
4006 srcdir=$srcdir
4007 INSTALL="$INSTALL"
4008 _ACEOF
4009
4010 cat >>$CONFIG_STATUS <<\_ACEOF
4011 # If no file are specified by the user, then we need to provide default
4012 # value. By we need to know if files were specified by the user.
4013 ac_need_defaults=:
4014 while test $# != 0
4015 do
4016 case $1 in
4017 --*=*)
4018 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4019 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4020 ac_shift=:
4021 ;;
4022 -*)
4023 ac_option=$1
4024 ac_optarg=$2
4025 ac_shift=shift
4026 ;;
4027 *) # This is not an option, so the user has probably given explicit
4028 # arguments.
4029 ac_option=$1
4030 ac_need_defaults=false;;
4031 esac
4032
4033 case $ac_option in
4034 # Handling of the options.
4035 _ACEOF
4036 cat >>$CONFIG_STATUS <<\_ACEOF
4037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4038 ac_cs_recheck=: ;;
4039 --version | --vers* | -V )
4040 echo "$ac_cs_version"; exit 0 ;;
4041 --he | --h)
4042 # Conflict between --help and --header
4043 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4044 Try \`$0 --help' for more information." >&5
4045 echo "$as_me: error: ambiguous option: $1
4046 Try \`$0 --help' for more information." >&2;}
4047 { (exit 1); exit 1; }; };;
4048 --help | --hel | -h )
4049 echo "$ac_cs_usage"; exit 0 ;;
4050 --debug | --d* | -d )
4051 debug=: ;;
4052 --file | --fil | --fi | --f )
4053 $ac_shift
4054 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4055 ac_need_defaults=false;;
4056 --header | --heade | --head | --hea )
4057 $ac_shift
4058 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4059 ac_need_defaults=false;;
4060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4061 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4062 ac_cs_silent=: ;;
4063
4064 # This is an error.
4065 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4066 Try \`$0 --help' for more information." >&5
4067 echo "$as_me: error: unrecognized option: $1
4068 Try \`$0 --help' for more information." >&2;}
4069 { (exit 1); exit 1; }; } ;;
4070
4071 *) ac_config_targets="$ac_config_targets $1" ;;
4072
4073 esac
4074 shift
4075 done
4076
4077 ac_configure_extra_args=
4078
4079 if $ac_cs_silent; then
4080 exec 6>/dev/null
4081 ac_configure_extra_args="$ac_configure_extra_args --silent"
4082 fi
4083
4084 _ACEOF
4085 cat >>$CONFIG_STATUS <<_ACEOF
4086 if \$ac_cs_recheck; then
4087 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4088 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4089 fi
4090
4091 _ACEOF
4092
4093 cat >>$CONFIG_STATUS <<_ACEOF
4094 #
4095 # INIT-COMMANDS section.
4096 #
4097
4098 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4099
4100 _ACEOF
4101
4102
4103
4104 cat >>$CONFIG_STATUS <<\_ACEOF
4105 for ac_config_target in $ac_config_targets
4106 do
4107 case "$ac_config_target" in
4108 # Handling of arguments.
4109 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4110 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4111 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
4112 "virt-viewer.spec" ) CONFIG_FILES="$CONFIG_FILES virt-viewer.spec" ;;
4113 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4114 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4115 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4116 { (exit 1); exit 1; }; };;
4117 esac
4118 done
4119
4120 # If the user did not use the arguments to specify the items to instantiate,
4121 # then the envvar interface is used. Set only those that are not.
4122 # We use the long form for the default assignment because of an extremely
4123 # bizarre bug on SunOS 4.1.3.
4124 if $ac_need_defaults; then
4125 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4126 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4127 fi
4128
4129 # Have a temporary directory for convenience. Make it in the build tree
4130 # simply because there is no reason to put it here, and in addition,
4131 # creating and moving files from /tmp can sometimes cause problems.
4132 # Create a temporary directory, and hook for its removal unless debugging.
4133 $debug ||
4134 {
4135 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4136 trap '{ (exit 1); exit 1; }' 1 2 13 15
4137 }
4138
4139 # Create a (secure) tmp directory for tmp files.
4140
4141 {
4142 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4143 test -n "$tmp" && test -d "$tmp"
4144 } ||
4145 {
4146 tmp=./confstat$$-$RANDOM
4147 (umask 077 && mkdir $tmp)
4148 } ||
4149 {
4150 echo "$me: cannot create a temporary directory in ." >&2
4151 { (exit 1); exit 1; }
4152 }
4153
4154 _ACEOF
4155
4156 cat >>$CONFIG_STATUS <<_ACEOF
4157
4158 #
4159 # CONFIG_FILES section.
4160 #
4161
4162 # No need to generate the scripts if there are no CONFIG_FILES.
4163 # This happens for instance when ./config.status config.h
4164 if test -n "\$CONFIG_FILES"; then
4165 # Protect against being on the right side of a sed subst in config.status.
4166 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4167 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4168 s,@SHELL@,$SHELL,;t t
4169 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4175 s,@exec_prefix@,$exec_prefix,;t t
4176 s,@prefix@,$prefix,;t t
4177 s,@program_transform_name@,$program_transform_name,;t t
4178 s,@bindir@,$bindir,;t t
4179 s,@sbindir@,$sbindir,;t t
4180 s,@libexecdir@,$libexecdir,;t t
4181 s,@datadir@,$datadir,;t t
4182 s,@sysconfdir@,$sysconfdir,;t t
4183 s,@sharedstatedir@,$sharedstatedir,;t t
4184 s,@localstatedir@,$localstatedir,;t t
4185 s,@libdir@,$libdir,;t t
4186 s,@includedir@,$includedir,;t t
4187 s,@oldincludedir@,$oldincludedir,;t t
4188 s,@infodir@,$infodir,;t t
4189 s,@mandir@,$mandir,;t t
4190 s,@build_alias@,$build_alias,;t t
4191 s,@host_alias@,$host_alias,;t t
4192 s,@target_alias@,$target_alias,;t t
4193 s,@DEFS@,$DEFS,;t t
4194 s,@ECHO_C@,$ECHO_C,;t t
4195 s,@ECHO_N@,$ECHO_N,;t t
4196 s,@ECHO_T@,$ECHO_T,;t t
4197 s,@LIBS@,$LIBS,;t t
4198 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4199 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4200 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4201 s,@CYGPATH_W@,$CYGPATH_W,;t t
4202 s,@PACKAGE@,$PACKAGE,;t t
4203 s,@VERSION@,$VERSION,;t t
4204 s,@ACLOCAL@,$ACLOCAL,;t t
4205 s,@AUTOCONF@,$AUTOCONF,;t t
4206 s,@AUTOMAKE@,$AUTOMAKE,;t t
4207 s,@AUTOHEADER@,$AUTOHEADER,;t t
4208 s,@MAKEINFO@,$MAKEINFO,;t t
4209 s,@install_sh@,$install_sh,;t t
4210 s,@STRIP@,$STRIP,;t t
4211 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4212 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4213 s,@mkdir_p@,$mkdir_p,;t t
4214 s,@AWK@,$AWK,;t t
4215 s,@SET_MAKE@,$SET_MAKE,;t t
4216 s,@am__leading_dot@,$am__leading_dot,;t t
4217 s,@AMTAR@,$AMTAR,;t t
4218 s,@am__tar@,$am__tar,;t t
4219 s,@am__untar@,$am__untar,;t t
4220 s,@CC@,$CC,;t t
4221 s,@CFLAGS@,$CFLAGS,;t t
4222 s,@LDFLAGS@,$LDFLAGS,;t t
4223 s,@CPPFLAGS@,$CPPFLAGS,;t t
4224 s,@ac_ct_CC@,$ac_ct_CC,;t t
4225 s,@EXEEXT@,$EXEEXT,;t t
4226 s,@OBJEXT@,$OBJEXT,;t t
4227 s,@DEPDIR@,$DEPDIR,;t t
4228 s,@am__include@,$am__include,;t t
4229 s,@am__quote@,$am__quote,;t t
4230 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4231 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4232 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4233 s,@CCDEPMODE@,$CCDEPMODE,;t t
4234 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
4235 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
4236 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
4237 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4238 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
4239 s,@LIBXML2_CFLAGS@,$LIBXML2_CFLAGS,;t t
4240 s,@LIBXML2_LIBS@,$LIBXML2_LIBS,;t t
4241 s,@LIBVIRT_CFLAGS@,$LIBVIRT_CFLAGS,;t t
4242 s,@LIBVIRT_LIBS@,$LIBVIRT_LIBS,;t t
4243 s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t
4244 s,@GTK2_LIBS@,$GTK2_LIBS,;t t
4245 s,@GTKVNC_CFLAGS@,$GTKVNC_CFLAGS,;t t
4246 s,@GTKVNC_LIBS@,$GTKVNC_LIBS,;t t
4247 s,@LIBOBJS@,$LIBOBJS,;t t
4248 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4249 CEOF
4250
4251 _ACEOF
4252
4253 cat >>$CONFIG_STATUS <<\_ACEOF
4254 # Split the substitutions into bite-sized pieces for seds with
4255 # small command number limits, like on Digital OSF/1 and HP-UX.
4256 ac_max_sed_lines=48
4257 ac_sed_frag=1 # Number of current file.
4258 ac_beg=1 # First line for current file.
4259 ac_end=$ac_max_sed_lines # Line after last line for current file.
4260 ac_more_lines=:
4261 ac_sed_cmds=
4262 while $ac_more_lines; do
4263 if test $ac_beg -gt 1; then
4264 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4265 else
4266 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4267 fi
4268 if test ! -s $tmp/subs.frag; then
4269 ac_more_lines=false
4270 else
4271 # The purpose of the label and of the branching condition is to
4272 # speed up the sed processing (if there are no `@' at all, there
4273 # is no need to browse any of the substitutions).
4274 # These are the two extra sed commands mentioned above.
4275 (echo ':t
4276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4277 if test -z "$ac_sed_cmds"; then
4278 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4279 else
4280 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4281 fi
4282 ac_sed_frag=`expr $ac_sed_frag + 1`
4283 ac_beg=$ac_end
4284 ac_end=`expr $ac_end + $ac_max_sed_lines`
4285 fi
4286 done
4287 if test -z "$ac_sed_cmds"; then
4288 ac_sed_cmds=cat
4289 fi
4290 fi # test -n "$CONFIG_FILES"
4291
4292 _ACEOF
4293 cat >>$CONFIG_STATUS <<\_ACEOF
4294 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4296 case $ac_file in
4297 - | *:- | *:-:* ) # input from stdin
4298 cat >$tmp/stdin
4299 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4300 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4301 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4302 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4303 * ) ac_file_in=$ac_file.in ;;
4304 esac
4305
4306 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4307 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4308 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4309 X"$ac_file" : 'X\(//\)[^/]' \| \
4310 X"$ac_file" : 'X\(//\)$' \| \
4311 X"$ac_file" : 'X\(/\)' \| \
4312 . : '\(.\)' 2>/dev/null ||
4313 echo X"$ac_file" |
4314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4315 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4316 /^X\(\/\/\)$/{ s//\1/; q; }
4317 /^X\(\/\).*/{ s//\1/; q; }
4318 s/.*/./; q'`
4319 { if $as_mkdir_p; then
4320 mkdir -p "$ac_dir"
4321 else
4322 as_dir="$ac_dir"
4323 as_dirs=
4324 while test ! -d "$as_dir"; do
4325 as_dirs="$as_dir $as_dirs"
4326 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4328 X"$as_dir" : 'X\(//\)[^/]' \| \
4329 X"$as_dir" : 'X\(//\)$' \| \
4330 X"$as_dir" : 'X\(/\)' \| \
4331 . : '\(.\)' 2>/dev/null ||
4332 echo X"$as_dir" |
4333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4335 /^X\(\/\/\)$/{ s//\1/; q; }
4336 /^X\(\/\).*/{ s//\1/; q; }
4337 s/.*/./; q'`
4338 done
4339 test ! -n "$as_dirs" || mkdir $as_dirs
4340 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4341 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4342 { (exit 1); exit 1; }; }; }
4343
4344 ac_builddir=.
4345
4346 if test "$ac_dir" != .; then
4347 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4348 # A "../" for each directory in $ac_dir_suffix.
4349 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4350 else
4351 ac_dir_suffix= ac_top_builddir=
4352 fi
4353
4354 case $srcdir in
4355 .) # No --srcdir option. We are building in place.
4356 ac_srcdir=.
4357 if test -z "$ac_top_builddir"; then
4358 ac_top_srcdir=.
4359 else
4360 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4361 fi ;;
4362 [\\/]* | ?:[\\/]* ) # Absolute path.
4363 ac_srcdir=$srcdir$ac_dir_suffix;
4364 ac_top_srcdir=$srcdir ;;
4365 *) # Relative path.
4366 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4367 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4368 esac
4369
4370 # Do not use `cd foo && pwd` to compute absolute paths, because
4371 # the directories may not exist.
4372 case `pwd` in
4373 .) ac_abs_builddir="$ac_dir";;
4374 *)
4375 case "$ac_dir" in
4376 .) ac_abs_builddir=`pwd`;;
4377 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4378 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4379 esac;;
4380 esac
4381 case $ac_abs_builddir in
4382 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4383 *)
4384 case ${ac_top_builddir}. in
4385 .) ac_abs_top_builddir=$ac_abs_builddir;;
4386 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4387 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4388 esac;;
4389 esac
4390 case $ac_abs_builddir in
4391 .) ac_abs_srcdir=$ac_srcdir;;
4392 *)
4393 case $ac_srcdir in
4394 .) ac_abs_srcdir=$ac_abs_builddir;;
4395 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4396 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4397 esac;;
4398 esac
4399 case $ac_abs_builddir in
4400 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4401 *)
4402 case $ac_top_srcdir in
4403 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4404 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4405 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4406 esac;;
4407 esac
4408
4409
4410 case $INSTALL in
4411 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4412 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
4413 esac
4414
4415 if test x"$ac_file" != x-; then
4416 { echo "$as_me:$LINENO: creating $ac_file" >&5
4417 echo "$as_me: creating $ac_file" >&6;}
4418 rm -f "$ac_file"
4419 fi
4420 # Let's still pretend it is `configure' which instantiates (i.e., don't
4421 # use $as_me), people would be surprised to read:
4422 # /* config.h. Generated by config.status. */
4423 if test x"$ac_file" = x-; then
4424 configure_input=
4425 else
4426 configure_input="$ac_file. "
4427 fi
4428 configure_input=$configure_input"Generated from `echo $ac_file_in |
4429 sed 's,.*/,,'` by configure."
4430
4431 # First look for the input files in the build tree, otherwise in the
4432 # src tree.
4433 ac_file_inputs=`IFS=:
4434 for f in $ac_file_in; do
4435 case $f in
4436 -) echo $tmp/stdin ;;
4437 [\\/$]*)
4438 # Absolute (can't be DOS-style, as IFS=:)
4439 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4440 echo "$as_me: error: cannot find input file: $f" >&2;}
4441 { (exit 1); exit 1; }; }
4442 echo "$f";;
4443 *) # Relative
4444 if test -f "$f"; then
4445 # Build tree
4446 echo "$f"
4447 elif test -f "$srcdir/$f"; then
4448 # Source tree
4449 echo "$srcdir/$f"
4450 else
4451 # /dev/null tree
4452 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4453 echo "$as_me: error: cannot find input file: $f" >&2;}
4454 { (exit 1); exit 1; }; }
4455 fi;;
4456 esac
4457 done` || { (exit 1); exit 1; }
4458 _ACEOF
4459 cat >>$CONFIG_STATUS <<_ACEOF
4460 sed "$ac_vpsub
4461 $extrasub
4462 _ACEOF
4463 cat >>$CONFIG_STATUS <<\_ACEOF
4464 :t
4465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4466 s,@configure_input@,$configure_input,;t t
4467 s,@srcdir@,$ac_srcdir,;t t
4468 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4469 s,@top_srcdir@,$ac_top_srcdir,;t t
4470 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4471 s,@builddir@,$ac_builddir,;t t
4472 s,@abs_builddir@,$ac_abs_builddir,;t t
4473 s,@top_builddir@,$ac_top_builddir,;t t
4474 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4475 s,@INSTALL@,$ac_INSTALL,;t t
4476 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4477 rm -f $tmp/stdin
4478 if test x"$ac_file" != x-; then
4479 mv $tmp/out $ac_file
4480 else
4481 cat $tmp/out
4482 rm -f $tmp/out
4483 fi
4484
4485 done
4486 _ACEOF
4487 cat >>$CONFIG_STATUS <<\_ACEOF
4488
4489 #
4490 # CONFIG_COMMANDS section.
4491 #
4492 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4493 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4494 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4495 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
4496 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4497 X"$ac_dest" : 'X\(//\)[^/]' \| \
4498 X"$ac_dest" : 'X\(//\)$' \| \
4499 X"$ac_dest" : 'X\(/\)' \| \
4500 . : '\(.\)' 2>/dev/null ||
4501 echo X"$ac_dest" |
4502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4503 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4504 /^X\(\/\/\)$/{ s//\1/; q; }
4505 /^X\(\/\).*/{ s//\1/; q; }
4506 s/.*/./; q'`
4507 { if $as_mkdir_p; then
4508 mkdir -p "$ac_dir"
4509 else
4510 as_dir="$ac_dir"
4511 as_dirs=
4512 while test ! -d "$as_dir"; do
4513 as_dirs="$as_dir $as_dirs"
4514 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4515 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4516 X"$as_dir" : 'X\(//\)[^/]' \| \
4517 X"$as_dir" : 'X\(//\)$' \| \
4518 X"$as_dir" : 'X\(/\)' \| \
4519 . : '\(.\)' 2>/dev/null ||
4520 echo X"$as_dir" |
4521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4522 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4523 /^X\(\/\/\)$/{ s//\1/; q; }
4524 /^X\(\/\).*/{ s//\1/; q; }
4525 s/.*/./; q'`
4526 done
4527 test ! -n "$as_dirs" || mkdir $as_dirs
4528 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4529 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4530 { (exit 1); exit 1; }; }; }
4531
4532 ac_builddir=.
4533
4534 if test "$ac_dir" != .; then
4535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4536 # A "../" for each directory in $ac_dir_suffix.
4537 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4538 else
4539 ac_dir_suffix= ac_top_builddir=
4540 fi
4541
4542 case $srcdir in
4543 .) # No --srcdir option. We are building in place.
4544 ac_srcdir=.
4545 if test -z "$ac_top_builddir"; then
4546 ac_top_srcdir=.
4547 else
4548 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4549 fi ;;
4550 [\\/]* | ?:[\\/]* ) # Absolute path.
4551 ac_srcdir=$srcdir$ac_dir_suffix;
4552 ac_top_srcdir=$srcdir ;;
4553 *) # Relative path.
4554 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4555 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4556 esac
4557
4558 # Do not use `cd foo && pwd` to compute absolute paths, because
4559 # the directories may not exist.
4560 case `pwd` in
4561 .) ac_abs_builddir="$ac_dir";;
4562 *)
4563 case "$ac_dir" in
4564 .) ac_abs_builddir=`pwd`;;
4565 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4566 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4567 esac;;
4568 esac
4569 case $ac_abs_builddir in
4570 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4571 *)
4572 case ${ac_top_builddir}. in
4573 .) ac_abs_top_builddir=$ac_abs_builddir;;
4574 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4575 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4576 esac;;
4577 esac
4578 case $ac_abs_builddir in
4579 .) ac_abs_srcdir=$ac_srcdir;;
4580 *)
4581 case $ac_srcdir in
4582 .) ac_abs_srcdir=$ac_abs_builddir;;
4583 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4584 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4585 esac;;
4586 esac
4587 case $ac_abs_builddir in
4588 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4589 *)
4590 case $ac_top_srcdir in
4591 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4592 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4593 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4594 esac;;
4595 esac
4596
4597
4598 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
4599 echo "$as_me: executing $ac_dest commands" >&6;}
4600 case $ac_dest in
4601 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
4602 # Strip MF so we end up with the name of the file.
4603 mf=`echo "$mf" | sed -e 's/:.*$//'`
4604 # Check whether this is an Automake generated Makefile or not.
4605 # We used to match only the files named `Makefile.in', but
4606 # some people rename them; so instead we look at the file content.
4607 # Grep'ing the first line is not enough: some people post-process
4608 # each Makefile.in and add a new line on top of each file to say so.
4609 # So let's grep whole file.
4610 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
4611 dirpart=`(dirname "$mf") 2>/dev/null ||
4612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4613 X"$mf" : 'X\(//\)[^/]' \| \
4614 X"$mf" : 'X\(//\)$' \| \
4615 X"$mf" : 'X\(/\)' \| \
4616 . : '\(.\)' 2>/dev/null ||
4617 echo X"$mf" |
4618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4619 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4620 /^X\(\/\/\)$/{ s//\1/; q; }
4621 /^X\(\/\).*/{ s//\1/; q; }
4622 s/.*/./; q'`
4623 else
4624 continue
4625 fi
4626 # Extract the definition of DEPDIR, am__include, and am__quote
4627 # from the Makefile without running `make'.
4628 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4629 test -z "$DEPDIR" && continue
4630 am__include=`sed -n 's/^am__include = //p' < "$mf"`
4631 test -z "am__include" && continue
4632 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4633 # When using ansi2knr, U may be empty or an underscore; expand it
4634 U=`sed -n 's/^U = //p' < "$mf"`
4635 # Find all dependency output files, they are included files with
4636 # $(DEPDIR) in their names. We invoke sed twice because it is the
4637 # simplest approach to changing $(DEPDIR) to its actual value in the
4638 # expansion.
4639 for file in `sed -n "
4640 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4641 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4642 # Make sure the directory exists.
4643 test -f "$dirpart/$file" && continue
4644 fdir=`(dirname "$file") 2>/dev/null ||
4645 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4646 X"$file" : 'X\(//\)[^/]' \| \
4647 X"$file" : 'X\(//\)$' \| \
4648 X"$file" : 'X\(/\)' \| \
4649 . : '\(.\)' 2>/dev/null ||
4650 echo X"$file" |
4651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4653 /^X\(\/\/\)$/{ s//\1/; q; }
4654 /^X\(\/\).*/{ s//\1/; q; }
4655 s/.*/./; q'`
4656 { if $as_mkdir_p; then
4657 mkdir -p $dirpart/$fdir
4658 else
4659 as_dir=$dirpart/$fdir
4660 as_dirs=
4661 while test ! -d "$as_dir"; do
4662 as_dirs="$as_dir $as_dirs"
4663 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4665 X"$as_dir" : 'X\(//\)[^/]' \| \
4666 X"$as_dir" : 'X\(//\)$' \| \
4667 X"$as_dir" : 'X\(/\)' \| \
4668 . : '\(.\)' 2>/dev/null ||
4669 echo X"$as_dir" |
4670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4671 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4672 /^X\(\/\/\)$/{ s//\1/; q; }
4673 /^X\(\/\).*/{ s//\1/; q; }
4674 s/.*/./; q'`
4675 done
4676 test ! -n "$as_dirs" || mkdir $as_dirs
4677 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
4678 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
4679 { (exit 1); exit 1; }; }; }
4680
4681 # echo "creating $dirpart/$file"
4682 echo '# dummy' > "$dirpart/$file"
4683 done
4684 done
4685 ;;
4686 esac
4687 done
4688 _ACEOF
4689
4690 cat >>$CONFIG_STATUS <<\_ACEOF
4691
4692 { (exit 0); exit 0; }
4693 _ACEOF
4694 chmod +x $CONFIG_STATUS
4695 ac_clean_files=$ac_clean_files_save
4696
4697
4698 # configure is writing to config.log, and then calls config.status.
4699 # config.status does its own redirection, appending to config.log.
4700 # Unfortunately, on DOS this fails, as config.log is still kept open
4701 # by configure, so config.status won't be able to write to it; its
4702 # output is simply discarded. So we exec the FD to /dev/null,
4703 # effectively closing config.log, so it can be properly (re)opened and
4704 # appended to by config.status. When coming back to configure, we
4705 # need to make the FD available again.
4706 if test "$no_create" != yes; then
4707 ac_cs_success=:
4708 ac_config_status_args=
4709 test "$silent" = yes &&
4710 ac_config_status_args="$ac_config_status_args --quiet"
4711 exec 5>/dev/null
4712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4713 exec 5>>config.log
4714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4715 # would make configure fail if this is the last instruction.
4716 $ac_cs_success || { (exit 1); exit 1; }
4717 fi
4718
0 AC_INIT(virt-viewer.spec.in)
1 AM_INIT_AUTOMAKE(virt-viewer, 0.0.2)
2
3 AC_PROG_CC
4
5 VIRT_VIEWER_COMPILE_WARNINGS(maximum)
6
7 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.6.0)
8 PKG_CHECK_MODULES(LIBVIRT, libvirt >= 0.2.0)
9 PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0)
10 PKG_CHECK_MODULES(GTKVNC, gtk-vnc-1.0 >= 0.0.1)
11
12 AC_OUTPUT(Makefile
13 src/Makefile
14 man/Makefile
15 virt-viewer.spec)
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 # 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
28
29 case $1 in
30 '')
31 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
32 exit 1;
33 ;;
34 -h | --h*)
35 cat <<\EOF
36 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
37
38 Run PROGRAMS ARGS to compile a file, generating dependencies
39 as side-effects.
40
41 Environment variables:
42 depmode Dependency tracking mode.
43 source Source file read by `PROGRAMS ARGS'.
44 object Object file output by `PROGRAMS ARGS'.
45 DEPDIR directory where to store dependencies.
46 depfile Dependency file to output.
47 tmpdepfile Temporary file to use when outputing dependencies.
48 libtool Whether libtool is used (yes/no).
49
50 Report bugs to <bug-automake@gnu.org>.
51 EOF
52 exit $?
53 ;;
54 -v | --v*)
55 echo "depcomp $scriptversion"
56 exit $?
57 ;;
58 esac
59
60 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
61 echo "depcomp: Variables source, object and depmode must be set" 1>&2
62 exit 1
63 fi
64
65 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66 depfile=${depfile-`echo "$object" |
67 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
68 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
69
70 rm -f "$tmpdepfile"
71
72 # Some modes work just like other modes, but use different flags. We
73 # parameterize here, but still list the modes in the big case below,
74 # to make depend.m4 easier to write. Note that we *cannot* use a case
75 # here, because this file can only contain one case statement.
76 if test "$depmode" = hp; then
77 # HP compiler uses -M and no extra arg.
78 gccflag=-M
79 depmode=gcc
80 fi
81
82 if test "$depmode" = dashXmstdout; then
83 # This is just like dashmstdout with a different argument.
84 dashmflag=-xM
85 depmode=dashmstdout
86 fi
87
88 case "$depmode" in
89 gcc3)
90 ## gcc 3 implements dependency tracking that does exactly what
91 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
92 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 stat=$?
95 if test $stat -eq 0; then :
96 else
97 rm -f "$tmpdepfile"
98 exit $stat
99 fi
100 mv "$tmpdepfile" "$depfile"
101 ;;
102
103 gcc)
104 ## There are various ways to get dependency output from gcc. Here's
105 ## why we pick this rather obscure method:
106 ## - Don't want to use -MD because we'd like the dependencies to end
107 ## up in a subdir. Having to rename by hand is ugly.
108 ## (We might end up doing this anyway to support other compilers.)
109 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
110 ## -MM, not -M (despite what the docs say).
111 ## - Using -M directly means running the compiler twice (even worse
112 ## than renaming).
113 if test -z "$gccflag"; then
114 gccflag=-MD,
115 fi
116 "$@" -Wp,"$gccflag$tmpdepfile"
117 stat=$?
118 if test $stat -eq 0; then :
119 else
120 rm -f "$tmpdepfile"
121 exit $stat
122 fi
123 rm -f "$depfile"
124 echo "$object : \\" > "$depfile"
125 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
126 ## The second -e expression handles DOS-style file names with drive letters.
127 sed -e 's/^[^:]*: / /' \
128 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
129 ## This next piece of magic avoids the `deleted header file' problem.
130 ## The problem is that when a header file which appears in a .P file
131 ## is deleted, the dependency causes make to die (because there is
132 ## typically no way to rebuild the header). We avoid this by adding
133 ## dummy dependencies for each header file. Too bad gcc doesn't do
134 ## this for us directly.
135 tr ' ' '
136 ' < "$tmpdepfile" |
137 ## Some versions of gcc put a space before the `:'. On the theory
138 ## that the space means something, we add a space to the output as
139 ## well.
140 ## Some versions of the HPUX 10.20 sed can't process this invocation
141 ## correctly. Breaking it into two sed invocations is a workaround.
142 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
143 rm -f "$tmpdepfile"
144 ;;
145
146 hp)
147 # This case exists only to let depend.m4 do its work. It works by
148 # looking at the text of this script. This case will never be run,
149 # since it is checked for above.
150 exit 1
151 ;;
152
153 sgi)
154 if test "$libtool" = yes; then
155 "$@" "-Wp,-MDupdate,$tmpdepfile"
156 else
157 "$@" -MDupdate "$tmpdepfile"
158 fi
159 stat=$?
160 if test $stat -eq 0; then :
161 else
162 rm -f "$tmpdepfile"
163 exit $stat
164 fi
165 rm -f "$depfile"
166
167 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
168 echo "$object : \\" > "$depfile"
169
170 # Clip off the initial element (the dependent). Don't try to be
171 # clever and replace this with sed code, as IRIX sed won't handle
172 # lines with more than a fixed number of characters (4096 in
173 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
174 # the IRIX cc adds comments like `#:fec' to the end of the
175 # dependency line.
176 tr ' ' '
177 ' < "$tmpdepfile" \
178 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
179 tr '
180 ' ' ' >> $depfile
181 echo >> $depfile
182
183 # The second pass generates a dummy entry for each header file.
184 tr ' ' '
185 ' < "$tmpdepfile" \
186 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
187 >> $depfile
188 else
189 # The sourcefile does not contain any dependencies, so just
190 # store a dummy comment line, to avoid errors with the Makefile
191 # "include basename.Plo" scheme.
192 echo "#dummy" > "$depfile"
193 fi
194 rm -f "$tmpdepfile"
195 ;;
196
197 aix)
198 # The C for AIX Compiler uses -M and outputs the dependencies
199 # in a .u file. In older versions, this file always lives in the
200 # current directory. Also, the AIX compiler puts `$object:' at the
201 # start of each line; $object doesn't have directory information.
202 # Version 6 uses the directory in both cases.
203 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
204 tmpdepfile="$stripped.u"
205 if test "$libtool" = yes; then
206 "$@" -Wc,-M
207 else
208 "$@" -M
209 fi
210 stat=$?
211
212 if test -f "$tmpdepfile"; then :
213 else
214 stripped=`echo "$stripped" | sed 's,^.*/,,'`
215 tmpdepfile="$stripped.u"
216 fi
217
218 if test $stat -eq 0; then :
219 else
220 rm -f "$tmpdepfile"
221 exit $stat
222 fi
223
224 if test -f "$tmpdepfile"; then
225 outname="$stripped.o"
226 # Each line is of the form `foo.o: dependent.h'.
227 # Do two passes, one to just change these to
228 # `$object: dependent.h' and one to simply `dependent.h:'.
229 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
230 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
231 else
232 # The sourcefile does not contain any dependencies, so just
233 # store a dummy comment line, to avoid errors with the Makefile
234 # "include basename.Plo" scheme.
235 echo "#dummy" > "$depfile"
236 fi
237 rm -f "$tmpdepfile"
238 ;;
239
240 icc)
241 # Intel's C compiler understands `-MD -MF file'. However on
242 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
243 # ICC 7.0 will fill foo.d with something like
244 # foo.o: sub/foo.c
245 # foo.o: sub/foo.h
246 # which is wrong. We want:
247 # sub/foo.o: sub/foo.c
248 # sub/foo.o: sub/foo.h
249 # sub/foo.c:
250 # sub/foo.h:
251 # ICC 7.1 will output
252 # foo.o: sub/foo.c sub/foo.h
253 # and will wrap long lines using \ :
254 # foo.o: sub/foo.c ... \
255 # sub/foo.h ... \
256 # ...
257
258 "$@" -MD -MF "$tmpdepfile"
259 stat=$?
260 if test $stat -eq 0; then :
261 else
262 rm -f "$tmpdepfile"
263 exit $stat
264 fi
265 rm -f "$depfile"
266 # Each line is of the form `foo.o: dependent.h',
267 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
268 # Do two passes, one to just change these to
269 # `$object: dependent.h' and one to simply `dependent.h:'.
270 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
271 # Some versions of the HPUX 10.20 sed can't process this invocation
272 # correctly. Breaking it into two sed invocations is a workaround.
273 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
274 sed -e 's/$/ :/' >> "$depfile"
275 rm -f "$tmpdepfile"
276 ;;
277
278 tru64)
279 # The Tru64 compiler uses -MD to generate dependencies as a side
280 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
281 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
282 # dependencies in `foo.d' instead, so we check for that too.
283 # Subdirectories are respected.
284 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
285 test "x$dir" = "x$object" && dir=
286 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
287
288 if test "$libtool" = yes; then
289 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
291 # handle both shared and static libraries in a single compilation.
292 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293 #
294 # With libtool 1.5 this exception was removed, and libtool now
295 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
297 # in $dir$base.o.d. We have to check for both files, because
298 # one of the two compilations can be disabled. We should prefer
299 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
300 # automatically cleaned when .libs/ is deleted, while ignoring
301 # the former would cause a distcleancheck panic.
302 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
303 tmpdepfile2=$dir$base.o.d # libtool 1.5
304 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
305 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
306 "$@" -Wc,-MD
307 else
308 tmpdepfile1=$dir$base.o.d
309 tmpdepfile2=$dir$base.d
310 tmpdepfile3=$dir$base.d
311 tmpdepfile4=$dir$base.d
312 "$@" -MD
313 fi
314
315 stat=$?
316 if test $stat -eq 0; then :
317 else
318 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
319 exit $stat
320 fi
321
322 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
323 do
324 test -f "$tmpdepfile" && break
325 done
326 if test -f "$tmpdepfile"; then
327 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
328 # That's a tab and a space in the [].
329 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
330 else
331 echo "#dummy" > "$depfile"
332 fi
333 rm -f "$tmpdepfile"
334 ;;
335
336 #nosideeffect)
337 # This comment above is used by automake to tell side-effect
338 # dependency tracking mechanisms from slower ones.
339
340 dashmstdout)
341 # Important note: in order to support this mode, a compiler *must*
342 # always write the preprocessed file to stdout, regardless of -o.
343 "$@" || exit $?
344
345 # Remove the call to Libtool.
346 if test "$libtool" = yes; then
347 while test $1 != '--mode=compile'; do
348 shift
349 done
350 shift
351 fi
352
353 # Remove `-o $object'.
354 IFS=" "
355 for arg
356 do
357 case $arg in
358 -o)
359 shift
360 ;;
361 $object)
362 shift
363 ;;
364 *)
365 set fnord "$@" "$arg"
366 shift # fnord
367 shift # $arg
368 ;;
369 esac
370 done
371
372 test -z "$dashmflag" && dashmflag=-M
373 # Require at least two characters before searching for `:'
374 # in the target name. This is to cope with DOS-style filenames:
375 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
376 "$@" $dashmflag |
377 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
378 rm -f "$depfile"
379 cat < "$tmpdepfile" > "$depfile"
380 tr ' ' '
381 ' < "$tmpdepfile" | \
382 ## Some versions of the HPUX 10.20 sed can't process this invocation
383 ## correctly. Breaking it into two sed invocations is a workaround.
384 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
385 rm -f "$tmpdepfile"
386 ;;
387
388 dashXmstdout)
389 # This case only exists to satisfy depend.m4. It is never actually
390 # run, as this mode is specially recognized in the preamble.
391 exit 1
392 ;;
393
394 makedepend)
395 "$@" || exit $?
396 # Remove any Libtool call
397 if test "$libtool" = yes; then
398 while test $1 != '--mode=compile'; do
399 shift
400 done
401 shift
402 fi
403 # X makedepend
404 shift
405 cleared=no
406 for arg in "$@"; do
407 case $cleared in
408 no)
409 set ""; shift
410 cleared=yes ;;
411 esac
412 case "$arg" in
413 -D*|-I*)
414 set fnord "$@" "$arg"; shift ;;
415 # Strip any option that makedepend may not understand. Remove
416 # the object too, otherwise makedepend will parse it as a source file.
417 -*|$object)
418 ;;
419 *)
420 set fnord "$@" "$arg"; shift ;;
421 esac
422 done
423 obj_suffix="`echo $object | sed 's/^.*\././'`"
424 touch "$tmpdepfile"
425 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
426 rm -f "$depfile"
427 cat < "$tmpdepfile" > "$depfile"
428 sed '1,2d' "$tmpdepfile" | tr ' ' '
429 ' | \
430 ## Some versions of the HPUX 10.20 sed can't process this invocation
431 ## correctly. Breaking it into two sed invocations is a workaround.
432 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
433 rm -f "$tmpdepfile" "$tmpdepfile".bak
434 ;;
435
436 cpp)
437 # Important note: in order to support this mode, a compiler *must*
438 # always write the preprocessed file to stdout.
439 "$@" || exit $?
440
441 # Remove the call to Libtool.
442 if test "$libtool" = yes; then
443 while test $1 != '--mode=compile'; do
444 shift
445 done
446 shift
447 fi
448
449 # Remove `-o $object'.
450 IFS=" "
451 for arg
452 do
453 case $arg in
454 -o)
455 shift
456 ;;
457 $object)
458 shift
459 ;;
460 *)
461 set fnord "$@" "$arg"
462 shift # fnord
463 shift # $arg
464 ;;
465 esac
466 done
467
468 "$@" -E |
469 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
470 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
471 sed '$ s: \\$::' > "$tmpdepfile"
472 rm -f "$depfile"
473 echo "$object : \\" > "$depfile"
474 cat < "$tmpdepfile" >> "$depfile"
475 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
476 rm -f "$tmpdepfile"
477 ;;
478
479 msvisualcpp)
480 # Important note: in order to support this mode, a compiler *must*
481 # always write the preprocessed file to stdout, regardless of -o,
482 # because we must use -o when running libtool.
483 "$@" || exit $?
484 IFS=" "
485 for arg
486 do
487 case "$arg" in
488 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
489 set fnord "$@"
490 shift
491 shift
492 ;;
493 *)
494 set fnord "$@" "$arg"
495 shift
496 shift
497 ;;
498 esac
499 done
500 "$@" -E |
501 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
502 rm -f "$depfile"
503 echo "$object : \\" > "$depfile"
504 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
505 echo " " >> "$depfile"
506 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
507 rm -f "$tmpdepfile"
508 ;;
509
510 none)
511 exec "$@"
512 ;;
513
514 *)
515 echo "Unknown depmode $depmode" 1>&2
516 exit 1
517 ;;
518 esac
519
520 exit 0
521
522 # Local Variables:
523 # mode: shell-script
524 # sh-indentation: 2
525 # eval: (add-hook 'write-file-hooks 'time-stamp)
526 # time-stamp-start: "scriptversion="
527 # time-stamp-format: "%:y-%02m-%02d.%02H"
528 # time-stamp-end: "$"
529 # End:
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2005-05-14.22
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
43
44 # set DOITPROG to echo to test this script
45
46 # Don't use :- since 4.3BSD and earlier shells don't like it.
47 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
50
51 mvprog="${MVPROG-mv}"
52 cpprog="${CPPROG-cp}"
53 chmodprog="${CHMODPROG-chmod}"
54 chownprog="${CHOWNPROG-chown}"
55 chgrpprog="${CHGRPPROG-chgrp}"
56 stripprog="${STRIPPROG-strip}"
57 rmprog="${RMPROG-rm}"
58 mkdirprog="${MKDIRPROG-mkdir}"
59
60 chmodcmd="$chmodprog 0755"
61 chowncmd=
62 chgrpcmd=
63 stripcmd=
64 rmcmd="$rmprog -f"
65 mvcmd="$mvprog"
66 src=
67 dst=
68 dir_arg=
69 dstarg=
70 no_target_directory=
71
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
73 or: $0 [OPTION]... SRCFILES... DIRECTORY
74 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75 or: $0 [OPTION]... -d DIRECTORIES...
76
77 In the 1st form, copy SRCFILE to DSTFILE.
78 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
79 In the 4th, create DIRECTORIES.
80
81 Options:
82 -c (ignored)
83 -d create directories instead of installing files.
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
90 --help display this help and exit.
91 --version display version info and exit.
92
93 Environment variables override the default commands:
94 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95 "
96
97 while test -n "$1"; do
98 case $1 in
99 -c) shift
100 continue;;
101
102 -d) dir_arg=true
103 shift
104 continue;;
105
106 -g) chgrpcmd="$chgrpprog $2"
107 shift
108 shift
109 continue;;
110
111 --help) echo "$usage"; exit $?;;
112
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
116 continue;;
117
118 -o) chowncmd="$chownprog $2"
119 shift
120 shift
121 continue;;
122
123 -s) stripcmd=$stripprog
124 shift
125 continue;;
126
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
135
136 --version) echo "$0 $scriptversion"; exit $?;;
137
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
152 break;;
153 esac
154 done
155
156 if test -z "$1"; then
157 if test -z "$dir_arg"; then
158 echo "$0: no input file specified." >&2
159 exit 1
160 fi
161 # It's OK to call `install-sh -d' without argument.
162 # This can happen when creating conditional directories.
163 exit 0
164 fi
165
166 for src
167 do
168 # Protect names starting with `-'.
169 case $src in
170 -*) src=./$src ;;
171 esac
172
173 if test -n "$dir_arg"; then
174 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
183 else
184 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185 # might cause directories to be created, which would be especially bad
186 # if $src (and thus $dsttmp) contains '*'.
187 if test ! -f "$src" && test ! -d "$src"; then
188 echo "$0: $src does not exist." >&2
189 exit 1
190 fi
191
192 if test -z "$dstarg"; then
193 echo "$0: no destination specified." >&2
194 exit 1
195 fi
196
197 dst=$dstarg
198 # Protect names starting with `-'.
199 case $dst in
200 -*) dst=./$dst ;;
201 esac
202
203 # If destination is a directory, append the input filename; won't work
204 # if double slashes aren't ignored.
205 if test -d "$dst"; then
206 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
208 exit 1
209 fi
210 dst=$dst/`basename "$src"`
211 fi
212 fi
213
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
236 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
243 fi
244 pathcomp=$pathcomp/
245 done
246 fi
247
248 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
255 else
256 dstfile=`basename "$dst"`
257
258 # Make a couple of temp file names in the proper directory.
259 dsttmp=$dstdir/_inst.$$_
260 rmtmp=$dstdir/_rm.$$_
261
262 # Trap to clean up those temp files at exit.
263 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265
266 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
268
269 # and set any options; do chmod last to preserve setuid bits.
270 #
271 # If any of these fail, we abort the whole thing. If we want to
272 # ignore errors from any of these, just make sure not to ignore
273 # errors from the above "$doit $cpprog $src $dsttmp" command.
274 #
275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
279
280 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
282 || {
283 # The rename failed, perhaps because mv can't rename something else
284 # to itself, or perhaps because mv is so ancient that it does not
285 # support -f.
286
287 # Now remove or move aside any old file at destination location.
288 # We try this two ways since rm can't unlink itself on some
289 # systems and the destination file might be busy for other
290 # reasons. In this case, the final cleanup might fail but the new
291 # file should still install successfully.
292 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
296 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
298 (exit 1); exit 1
299 }
300 else
301 :
302 fi
303 } &&
304
305 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
307 }
308 }
309 fi || { (exit 1); exit 1; }
310 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316
317 # Local variables:
318 # eval: (add-hook 'write-file-hooks 'time-stamp)
319 # time-stamp-start: "scriptversion="
320 # time-stamp-format: "%:y-%02m-%02d.%02H"
321 # time-stamp-end: "$"
322 # End:
0
1 man_MANS = virt-viewer.1
2
3 EXTRA_DIST = virt-viewer.pod
4
5 %.1: %.pod
6 pod2man $< > $@
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 subdir = man
36 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
39 $(top_srcdir)/configure.ac
40 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
41 $(ACLOCAL_M4)
42 mkinstalldirs = $(install_sh) -d
43 CONFIG_CLEAN_FILES =
44 SOURCES =
45 DIST_SOURCES =
46 man1dir = $(mandir)/man1
47 am__installdirs = "$(DESTDIR)$(man1dir)"
48 NROFF = nroff
49 MANS = $(man_MANS)
50 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
51 ACLOCAL = @ACLOCAL@
52 AMDEP_FALSE = @AMDEP_FALSE@
53 AMDEP_TRUE = @AMDEP_TRUE@
54 AMTAR = @AMTAR@
55 AUTOCONF = @AUTOCONF@
56 AUTOHEADER = @AUTOHEADER@
57 AUTOMAKE = @AUTOMAKE@
58 AWK = @AWK@
59 CC = @CC@
60 CCDEPMODE = @CCDEPMODE@
61 CFLAGS = @CFLAGS@
62 CPPFLAGS = @CPPFLAGS@
63 CYGPATH_W = @CYGPATH_W@
64 DEFS = @DEFS@
65 DEPDIR = @DEPDIR@
66 ECHO_C = @ECHO_C@
67 ECHO_N = @ECHO_N@
68 ECHO_T = @ECHO_T@
69 EXEEXT = @EXEEXT@
70 GTK2_CFLAGS = @GTK2_CFLAGS@
71 GTK2_LIBS = @GTK2_LIBS@
72 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
73 GTKVNC_LIBS = @GTKVNC_LIBS@
74 INSTALL_DATA = @INSTALL_DATA@
75 INSTALL_PROGRAM = @INSTALL_PROGRAM@
76 INSTALL_SCRIPT = @INSTALL_SCRIPT@
77 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
78 LDFLAGS = @LDFLAGS@
79 LIBOBJS = @LIBOBJS@
80 LIBS = @LIBS@
81 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
82 LIBVIRT_LIBS = @LIBVIRT_LIBS@
83 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
84 LIBXML2_LIBS = @LIBXML2_LIBS@
85 LTLIBOBJS = @LTLIBOBJS@
86 MAKEINFO = @MAKEINFO@
87 OBJEXT = @OBJEXT@
88 PACKAGE = @PACKAGE@
89 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
90 PACKAGE_NAME = @PACKAGE_NAME@
91 PACKAGE_STRING = @PACKAGE_STRING@
92 PACKAGE_TARNAME = @PACKAGE_TARNAME@
93 PACKAGE_VERSION = @PACKAGE_VERSION@
94 PATH_SEPARATOR = @PATH_SEPARATOR@
95 PKG_CONFIG = @PKG_CONFIG@
96 SET_MAKE = @SET_MAKE@
97 SHELL = @SHELL@
98 STRIP = @STRIP@
99 VERSION = @VERSION@
100 WARN_CFLAGS = @WARN_CFLAGS@
101 ac_ct_CC = @ac_ct_CC@
102 ac_ct_STRIP = @ac_ct_STRIP@
103 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
104 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
105 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
106 am__include = @am__include@
107 am__leading_dot = @am__leading_dot@
108 am__quote = @am__quote@
109 am__tar = @am__tar@
110 am__untar = @am__untar@
111 bindir = @bindir@
112 build_alias = @build_alias@
113 datadir = @datadir@
114 exec_prefix = @exec_prefix@
115 host_alias = @host_alias@
116 includedir = @includedir@
117 infodir = @infodir@
118 install_sh = @install_sh@
119 libdir = @libdir@
120 libexecdir = @libexecdir@
121 localstatedir = @localstatedir@
122 mandir = @mandir@
123 mkdir_p = @mkdir_p@
124 oldincludedir = @oldincludedir@
125 prefix = @prefix@
126 program_transform_name = @program_transform_name@
127 sbindir = @sbindir@
128 sharedstatedir = @sharedstatedir@
129 sysconfdir = @sysconfdir@
130 target_alias = @target_alias@
131 man_MANS = virt-viewer.1
132 EXTRA_DIST = virt-viewer.pod
133 all: all-am
134
135 .SUFFIXES:
136 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
137 @for dep in $?; do \
138 case '$(am__configure_deps)' in \
139 *$$dep*) \
140 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
141 && exit 0; \
142 exit 1;; \
143 esac; \
144 done; \
145 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
146 cd $(top_srcdir) && \
147 $(AUTOMAKE) --gnu man/Makefile
148 .PRECIOUS: Makefile
149 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
150 @case '$?' in \
151 *config.status*) \
152 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
153 *) \
154 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
155 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
156 esac;
157
158 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
159 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
160
161 $(top_srcdir)/configure: $(am__configure_deps)
162 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
163 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
164 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
165 uninstall-info-am:
166 install-man1: $(man1_MANS) $(man_MANS)
167 @$(NORMAL_INSTALL)
168 test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
169 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
170 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
171 for i in $$l2; do \
172 case "$$i" in \
173 *.1*) list="$$list $$i" ;; \
174 esac; \
175 done; \
176 for i in $$list; do \
177 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
178 else file=$$i; fi; \
179 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
180 case "$$ext" in \
181 1*) ;; \
182 *) ext='1' ;; \
183 esac; \
184 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
185 inst=`echo $$inst | sed -e 's/^.*\///'`; \
186 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
187 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
188 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
189 done
190 uninstall-man1:
191 @$(NORMAL_UNINSTALL)
192 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
193 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
194 for i in $$l2; do \
195 case "$$i" in \
196 *.1*) list="$$list $$i" ;; \
197 esac; \
198 done; \
199 for i in $$list; do \
200 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
201 case "$$ext" in \
202 1*) ;; \
203 *) ext='1' ;; \
204 esac; \
205 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
206 inst=`echo $$inst | sed -e 's/^.*\///'`; \
207 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
208 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
209 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
210 done
211 tags: TAGS
212 TAGS:
213
214 ctags: CTAGS
215 CTAGS:
216
217
218 distdir: $(DISTFILES)
219 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
220 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
221 list='$(DISTFILES)'; for file in $$list; do \
222 case $$file in \
223 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
224 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
225 esac; \
226 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
227 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
228 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
229 dir="/$$dir"; \
230 $(mkdir_p) "$(distdir)$$dir"; \
231 else \
232 dir=''; \
233 fi; \
234 if test -d $$d/$$file; then \
235 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
236 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
237 fi; \
238 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
239 else \
240 test -f $(distdir)/$$file \
241 || cp -p $$d/$$file $(distdir)/$$file \
242 || exit 1; \
243 fi; \
244 done
245 check-am: all-am
246 check: check-am
247 all-am: Makefile $(MANS)
248 installdirs:
249 for dir in "$(DESTDIR)$(man1dir)"; do \
250 test -z "$$dir" || $(mkdir_p) "$$dir"; \
251 done
252 install: install-am
253 install-exec: install-exec-am
254 install-data: install-data-am
255 uninstall: uninstall-am
256
257 install-am: all-am
258 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
259
260 installcheck: installcheck-am
261 install-strip:
262 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
263 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
264 `test -z '$(STRIP)' || \
265 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
266 mostlyclean-generic:
267
268 clean-generic:
269
270 distclean-generic:
271 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
272
273 maintainer-clean-generic:
274 @echo "This command is intended for maintainers to use"
275 @echo "it deletes files that may require special tools to rebuild."
276 clean: clean-am
277
278 clean-am: clean-generic mostlyclean-am
279
280 distclean: distclean-am
281 -rm -f Makefile
282 distclean-am: clean-am distclean-generic
283
284 dvi: dvi-am
285
286 dvi-am:
287
288 html: html-am
289
290 info: info-am
291
292 info-am:
293
294 install-data-am: install-man
295
296 install-exec-am:
297
298 install-info: install-info-am
299
300 install-man: install-man1
301
302 installcheck-am:
303
304 maintainer-clean: maintainer-clean-am
305 -rm -f Makefile
306 maintainer-clean-am: distclean-am maintainer-clean-generic
307
308 mostlyclean: mostlyclean-am
309
310 mostlyclean-am: mostlyclean-generic
311
312 pdf: pdf-am
313
314 pdf-am:
315
316 ps: ps-am
317
318 ps-am:
319
320 uninstall-am: uninstall-info-am uninstall-man
321
322 uninstall-man: uninstall-man1
323
324 .PHONY: all all-am check check-am clean clean-generic distclean \
325 distclean-generic distdir dvi dvi-am html html-am info info-am \
326 install install-am install-data install-data-am install-exec \
327 install-exec-am install-info install-info-am install-man \
328 install-man1 install-strip installcheck installcheck-am \
329 installdirs maintainer-clean maintainer-clean-generic \
330 mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
331 uninstall-am uninstall-info-am uninstall-man uninstall-man1
332
333
334 %.1: %.pod
335 pod2man $< > $@
336 # Tell versions [3.59,3.63) of GNU make to not export all variables.
337 # Otherwise a system limit (for SysV at least) may be exceeded.
338 .NOEXPORT:
0
1 =head1 NAME
2
3 virt-viewer - display the graphical console for a virtual machine
4
5 =head1 SYNOPSIS
6
7 B<virt-viewer> [OPTIONS] DOMAIN-NAME|ID|UUID
8
9 =head1 DESCRIPTION
10
11 B<virt-viewer> is a minimal tool for displaying the graphical console
12 of a virtual machine. The console is accessed using the VNC protocol.
13 The guest can be referred to based on its name, ID, or UUID. If the
14 guest is not already running, then the viewer can be told to wait
15 until is starts before attempting to connect to the console The viewer
16 can connect to remote hosts to lookup the console information and then
17 also connect to the remote console using the same network transport.
18
19 =head1 OPTIONS
20
21 The following options are accepted when running C<virt-viewer>:
22
23 =over 4
24
25 =item -h, -help
26
27 Display command line help summary
28
29 =item -V, --version
30
31 Display program version number
32
33 =item -v, --verbose
34
35 Display information about the connection
36
37 =item -c URI, --connect=URI
38
39 Specify the hypervisor connection URI
40
41 =item -w, --wait
42
43 Wait for the domain to start up before attempting to connect to the console
44
45 =item -d, --direct
46
47 Do not attempt to tunnel the console over SSH, even if the main connection URI
48 used SSH.
49
50 =back
51
52 =head1 EXAMPLES
53
54 To connect to the guest called 'demo' running under Xen
55
56 virt-viewer demo
57
58 To connect to the guest with ID 7 running under QEMU
59
60 virt-viewer --connect qemu:///system 7
61
62 To wait for the guest with UUID 66ab33c0-6919-a3f7-e659-16c82d248521 to
63 startup and then connect
64
65 virt-viewer --wait 66ab33c0-6919-a3f7-e659-16c82d248521
66
67 To connect to a remote console using TLS
68
69 virt-viewer --connect xen://example.org/ demo
70
71 To connect to a remote host using SSH, lookup the guest config and
72 then make a direct non-tunnelled connection of the console
73
74 virt-viewer --connect xen+ssh://root@example.org/ demo
75
76 =head1 AUTHOR
77
78 Writen by Daniel P. Berrange, based on the GTK-VNC example program gvncviewer.
79
80 =head1 BUGS
81
82 Report bugs to the mailing list C<http://www.redhat.com/mailman/listinfo/et-mgmt-tools>
83
84 =head1 COPYRIGHT
85
86 Copright (C) 2007 Red Hat, Inc, and various contributors.
87 This is free software. You may redistribute copies of it under the terms of the GNU General
88 Public License C<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent
89 permitted by law.
90
91 =head1 SEE ALSO
92
93 C<virsh(1)>, C<virt-manager(1)>, the project website C<http://virt-manager.org>
94
95 =cut
96
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
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 2, or (at your option)
12 # 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, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case "$1" in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 automake touch all \`Makefile.in' files
80 bison create \`y.tab.[ch]', if possible, from existing .[ch]
81 flex create \`lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create \`lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 tar try tar, gnutar, gtar, then tar without non-portable flags
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
90 ;;
91
92 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93 echo "missing $scriptversion (GNU Automake)"
94 exit $?
95 ;;
96
97 -*)
98 echo 1>&2 "$0: Unknown \`$1' option"
99 echo 1>&2 "Try \`$0 --help' for more information"
100 exit 1
101 ;;
102
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: \`$1' is $msg. You should only need it if
141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
142 to install the \`Automake' and \`Perl' packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf)
148 echo 1>&2 "\
149 WARNING: \`$1' is $msg. You should only need it if
150 you modified \`${configure_ac}'. You might want to install the
151 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader)
157 echo 1>&2 "\
158 WARNING: \`$1' is $msg. You should only need it if
159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
160 to install the \`Autoconf' and \`GNU m4' packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case "$f" in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: \`$1' is $msg. You should only need it if
178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
179 You might want to install the \`Automake' and \`Perl' packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te)
187 echo 1>&2 "\
188 WARNING: \`$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get \`$1' as part of \`Autoconf' from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison|yacc)
210 echo 1>&2 "\
211 WARNING: \`$1' $msg. You should only need it if
212 you modified a \`.y' file. You may need the \`Bison' package
213 in order for those modifications to take effect. You can get
214 \`Bison' from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
217 eval LASTARG="\${$#}"
218 case "$LASTARG" in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if [ ! -f y.tab.h ]; then
232 echo >y.tab.h
233 fi
234 if [ ! -f y.tab.c ]; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex|flex)
240 echo 1>&2 "\
241 WARNING: \`$1' is $msg. You should only need it if
242 you modified a \`.l' file. You may need the \`Flex' package
243 in order for those modifications to take effect. You can get
244 \`Flex' from any GNU archive site."
245 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
247 eval LASTARG="\${$#}"
248 case "$LASTARG" in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if [ ! -f lex.yy.c ]; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man)
263 echo 1>&2 "\
264 WARNING: \`$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 \`Help2man' package in order for those modifications to take
267 effect. You can get \`Help2man' from any GNU archive site."
268
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
274 touch $file
275 else
276 test -z "$file" || exec >$file
277 echo ".ab help2man is required to generate this page"
278 exit 1
279 fi
280 ;;
281
282 makeinfo)
283 echo 1>&2 "\
284 WARNING: \`$1' is $msg. You should only need it if
285 you modified a \`.texi' or \`.texinfo' file, or any other file
286 indirectly affecting the aspect of the manual. The spurious
287 call might also be the consequence of using a buggy \`make' (AIX,
288 DU, IRIX). You might want to install the \`Texinfo' package or
289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298 fi
299 # If the file does not exist, the user really needs makeinfo;
300 # let's fail without touching anything.
301 test -f $file || exit 1
302 touch $file
303 ;;
304
305 tar)
306 shift
307
308 # We have already tried tar in the generic part.
309 # Look for gnutar/gtar before invocation to avoid ugly error
310 # messages.
311 if (gnutar --version > /dev/null 2>&1); then
312 gnutar "$@" && exit 0
313 fi
314 if (gtar --version > /dev/null 2>&1); then
315 gtar "$@" && exit 0
316 fi
317 firstarg="$1"
318 if shift; then
319 case "$firstarg" in
320 *o*)
321 firstarg=`echo "$firstarg" | sed s/o//`
322 tar "$firstarg" "$@" && exit 0
323 ;;
324 esac
325 case "$firstarg" in
326 *h*)
327 firstarg=`echo "$firstarg" | sed s/h//`
328 tar "$firstarg" "$@" && exit 0
329 ;;
330 esac
331 fi
332
333 echo 1>&2 "\
334 WARNING: I can't seem to be able to run \`tar' with the given arguments.
335 You may want to install GNU tar or Free paxutils, or check the
336 command line arguments."
337 exit 1
338 ;;
339
340 *)
341 echo 1>&2 "\
342 WARNING: \`$1' is needed, and is $msg.
343 You might have modified some files without having the
344 proper tools for further handling them. Check the \`README' file,
345 it often tells you about the needed prerequisites for installing
346 this package. You may also peek at any GNU archive site, in case
347 some other package would contain this missing \`$1' program."
348 exit 1
349 ;;
350 esac
351
352 exit 0
353
354 # Local variables:
355 # eval: (add-hook 'write-file-hooks 'time-stamp)
356 # time-stamp-start: "scriptversion="
357 # time-stamp-format: "%:y-%02m-%02d.%02H"
358 # time-stamp-end: "$"
359 # End:
0
1 bin_PROGRAMS = virt-viewer
2
3 virt_viewer_SOURCES = main.c
4 virt_viewer_LDADD = @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@
5 virt_viewer_CFLAGS = @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ @WARN_CFLAGS@
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 bin_PROGRAMS = virt-viewer$(EXEEXT)
37 subdir = src
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
41 $(top_srcdir)/configure.ac
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_CLEAN_FILES =
46 am__installdirs = "$(DESTDIR)$(bindir)"
47 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
48 PROGRAMS = $(bin_PROGRAMS)
49 am_virt_viewer_OBJECTS = virt_viewer-main.$(OBJEXT)
50 virt_viewer_OBJECTS = $(am_virt_viewer_OBJECTS)
51 virt_viewer_DEPENDENCIES =
52 DEFAULT_INCLUDES = -I. -I$(srcdir)
53 depcomp = $(SHELL) $(top_srcdir)/depcomp
54 am__depfiles_maybe = depfiles
55 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
56 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
57 CCLD = $(CC)
58 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
59 SOURCES = $(virt_viewer_SOURCES)
60 DIST_SOURCES = $(virt_viewer_SOURCES)
61 ETAGS = etags
62 CTAGS = ctags
63 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
64 ACLOCAL = @ACLOCAL@
65 AMDEP_FALSE = @AMDEP_FALSE@
66 AMDEP_TRUE = @AMDEP_TRUE@
67 AMTAR = @AMTAR@
68 AUTOCONF = @AUTOCONF@
69 AUTOHEADER = @AUTOHEADER@
70 AUTOMAKE = @AUTOMAKE@
71 AWK = @AWK@
72 CC = @CC@
73 CCDEPMODE = @CCDEPMODE@
74 CFLAGS = @CFLAGS@
75 CPPFLAGS = @CPPFLAGS@
76 CYGPATH_W = @CYGPATH_W@
77 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO_C = @ECHO_C@
80 ECHO_N = @ECHO_N@
81 ECHO_T = @ECHO_T@
82 EXEEXT = @EXEEXT@
83 GTK2_CFLAGS = @GTK2_CFLAGS@
84 GTK2_LIBS = @GTK2_LIBS@
85 GTKVNC_CFLAGS = @GTKVNC_CFLAGS@
86 GTKVNC_LIBS = @GTKVNC_LIBS@
87 INSTALL_DATA = @INSTALL_DATA@
88 INSTALL_PROGRAM = @INSTALL_PROGRAM@
89 INSTALL_SCRIPT = @INSTALL_SCRIPT@
90 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
91 LDFLAGS = @LDFLAGS@
92 LIBOBJS = @LIBOBJS@
93 LIBS = @LIBS@
94 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
95 LIBVIRT_LIBS = @LIBVIRT_LIBS@
96 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
97 LIBXML2_LIBS = @LIBXML2_LIBS@
98 LTLIBOBJS = @LTLIBOBJS@
99 MAKEINFO = @MAKEINFO@
100 OBJEXT = @OBJEXT@
101 PACKAGE = @PACKAGE@
102 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
103 PACKAGE_NAME = @PACKAGE_NAME@
104 PACKAGE_STRING = @PACKAGE_STRING@
105 PACKAGE_TARNAME = @PACKAGE_TARNAME@
106 PACKAGE_VERSION = @PACKAGE_VERSION@
107 PATH_SEPARATOR = @PATH_SEPARATOR@
108 PKG_CONFIG = @PKG_CONFIG@
109 SET_MAKE = @SET_MAKE@
110 SHELL = @SHELL@
111 STRIP = @STRIP@
112 VERSION = @VERSION@
113 WARN_CFLAGS = @WARN_CFLAGS@
114 ac_ct_CC = @ac_ct_CC@
115 ac_ct_STRIP = @ac_ct_STRIP@
116 ac_pt_PKG_CONFIG = @ac_pt_PKG_CONFIG@
117 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
118 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
119 am__include = @am__include@
120 am__leading_dot = @am__leading_dot@
121 am__quote = @am__quote@
122 am__tar = @am__tar@
123 am__untar = @am__untar@
124 bindir = @bindir@
125 build_alias = @build_alias@
126 datadir = @datadir@
127 exec_prefix = @exec_prefix@
128 host_alias = @host_alias@
129 includedir = @includedir@
130 infodir = @infodir@
131 install_sh = @install_sh@
132 libdir = @libdir@
133 libexecdir = @libexecdir@
134 localstatedir = @localstatedir@
135 mandir = @mandir@
136 mkdir_p = @mkdir_p@
137 oldincludedir = @oldincludedir@
138 prefix = @prefix@
139 program_transform_name = @program_transform_name@
140 sbindir = @sbindir@
141 sharedstatedir = @sharedstatedir@
142 sysconfdir = @sysconfdir@
143 target_alias = @target_alias@
144 virt_viewer_SOURCES = main.c
145 virt_viewer_LDADD = @GTKVNC_LIBS@ @GTK2_LIBS@ @LIBXML2_LIBS@ @LIBVIRT_LIBS@
146 virt_viewer_CFLAGS = @GTKVNC_CFLAGS@ @GTK2_CFLAGS@ @LIBXML2_CFLAGS@ @LIBVIRT_CFLAGS@ @WARN_CFLAGS@
147 all: all-am
148
149 .SUFFIXES:
150 .SUFFIXES: .c .o .obj
151 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
152 @for dep in $?; do \
153 case '$(am__configure_deps)' in \
154 *$$dep*) \
155 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
156 && exit 0; \
157 exit 1;; \
158 esac; \
159 done; \
160 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
161 cd $(top_srcdir) && \
162 $(AUTOMAKE) --gnu src/Makefile
163 .PRECIOUS: Makefile
164 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
165 @case '$?' in \
166 *config.status*) \
167 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
168 *) \
169 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
170 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
171 esac;
172
173 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
174 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
175
176 $(top_srcdir)/configure: $(am__configure_deps)
177 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
178 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
179 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
180 install-binPROGRAMS: $(bin_PROGRAMS)
181 @$(NORMAL_INSTALL)
182 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
183 @list='$(bin_PROGRAMS)'; for p in $$list; do \
184 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
185 if test -f $$p \
186 ; then \
187 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
188 echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
189 $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
190 else :; fi; \
191 done
192
193 uninstall-binPROGRAMS:
194 @$(NORMAL_UNINSTALL)
195 @list='$(bin_PROGRAMS)'; for p in $$list; do \
196 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
197 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
198 rm -f "$(DESTDIR)$(bindir)/$$f"; \
199 done
200
201 clean-binPROGRAMS:
202 -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
203 virt-viewer$(EXEEXT): $(virt_viewer_OBJECTS) $(virt_viewer_DEPENDENCIES)
204 @rm -f virt-viewer$(EXEEXT)
205 $(LINK) $(virt_viewer_LDFLAGS) $(virt_viewer_OBJECTS) $(virt_viewer_LDADD) $(LIBS)
206
207 mostlyclean-compile:
208 -rm -f *.$(OBJEXT)
209
210 distclean-compile:
211 -rm -f *.tab.c
212
213 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virt_viewer-main.Po@am__quote@
214
215 .c.o:
216 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
217 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
218 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
219 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
220 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
221
222 .c.obj:
223 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
224 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
225 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
226 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
227 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
228
229 virt_viewer-main.o: main.c
230 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.o -MD -MP -MF "$(DEPDIR)/virt_viewer-main.Tpo" -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c; \
231 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/virt_viewer-main.Tpo" "$(DEPDIR)/virt_viewer-main.Po"; else rm -f "$(DEPDIR)/virt_viewer-main.Tpo"; exit 1; fi
232 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='virt_viewer-main.o' libtool=no @AMDEPBACKSLASH@
233 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
234 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
235
236 virt_viewer-main.obj: main.c
237 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -MT virt_viewer-main.obj -MD -MP -MF "$(DEPDIR)/virt_viewer-main.Tpo" -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`; \
238 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/virt_viewer-main.Tpo" "$(DEPDIR)/virt_viewer-main.Po"; else rm -f "$(DEPDIR)/virt_viewer-main.Tpo"; exit 1; fi
239 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='virt_viewer-main.obj' libtool=no @AMDEPBACKSLASH@
240 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
241 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(virt_viewer_CFLAGS) $(CFLAGS) -c -o virt_viewer-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
242 uninstall-info-am:
243
244 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
245 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
246 unique=`for i in $$list; do \
247 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
248 done | \
249 $(AWK) ' { files[$$0] = 1; } \
250 END { for (i in files) print i; }'`; \
251 mkid -fID $$unique
252 tags: TAGS
253
254 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
255 $(TAGS_FILES) $(LISP)
256 tags=; \
257 here=`pwd`; \
258 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
259 unique=`for i in $$list; do \
260 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
261 done | \
262 $(AWK) ' { files[$$0] = 1; } \
263 END { for (i in files) print i; }'`; \
264 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
265 test -n "$$unique" || unique=$$empty_fix; \
266 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
267 $$tags $$unique; \
268 fi
269 ctags: CTAGS
270 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
271 $(TAGS_FILES) $(LISP)
272 tags=; \
273 here=`pwd`; \
274 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
275 unique=`for i in $$list; do \
276 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
277 done | \
278 $(AWK) ' { files[$$0] = 1; } \
279 END { for (i in files) print i; }'`; \
280 test -z "$(CTAGS_ARGS)$$tags$$unique" \
281 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
282 $$tags $$unique
283
284 GTAGS:
285 here=`$(am__cd) $(top_builddir) && pwd` \
286 && cd $(top_srcdir) \
287 && gtags -i $(GTAGS_ARGS) $$here
288
289 distclean-tags:
290 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
291
292 distdir: $(DISTFILES)
293 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
294 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
295 list='$(DISTFILES)'; for file in $$list; do \
296 case $$file in \
297 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
298 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
299 esac; \
300 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
301 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
302 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
303 dir="/$$dir"; \
304 $(mkdir_p) "$(distdir)$$dir"; \
305 else \
306 dir=''; \
307 fi; \
308 if test -d $$d/$$file; then \
309 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
310 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
311 fi; \
312 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
313 else \
314 test -f $(distdir)/$$file \
315 || cp -p $$d/$$file $(distdir)/$$file \
316 || exit 1; \
317 fi; \
318 done
319 check-am: all-am
320 check: check-am
321 all-am: Makefile $(PROGRAMS)
322 installdirs:
323 for dir in "$(DESTDIR)$(bindir)"; do \
324 test -z "$$dir" || $(mkdir_p) "$$dir"; \
325 done
326 install: install-am
327 install-exec: install-exec-am
328 install-data: install-data-am
329 uninstall: uninstall-am
330
331 install-am: all-am
332 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
333
334 installcheck: installcheck-am
335 install-strip:
336 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
337 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
338 `test -z '$(STRIP)' || \
339 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
340 mostlyclean-generic:
341
342 clean-generic:
343
344 distclean-generic:
345 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
346
347 maintainer-clean-generic:
348 @echo "This command is intended for maintainers to use"
349 @echo "it deletes files that may require special tools to rebuild."
350 clean: clean-am
351
352 clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
353
354 distclean: distclean-am
355 -rm -rf ./$(DEPDIR)
356 -rm -f Makefile
357 distclean-am: clean-am distclean-compile distclean-generic \
358 distclean-tags
359
360 dvi: dvi-am
361
362 dvi-am:
363
364 html: html-am
365
366 info: info-am
367
368 info-am:
369
370 install-data-am:
371
372 install-exec-am: install-binPROGRAMS
373
374 install-info: install-info-am
375
376 install-man:
377
378 installcheck-am:
379
380 maintainer-clean: maintainer-clean-am
381 -rm -rf ./$(DEPDIR)
382 -rm -f Makefile
383 maintainer-clean-am: distclean-am maintainer-clean-generic
384
385 mostlyclean: mostlyclean-am
386
387 mostlyclean-am: mostlyclean-compile mostlyclean-generic
388
389 pdf: pdf-am
390
391 pdf-am:
392
393 ps: ps-am
394
395 ps-am:
396
397 uninstall-am: uninstall-binPROGRAMS uninstall-info-am
398
399 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
400 clean-generic ctags distclean distclean-compile \
401 distclean-generic distclean-tags distdir dvi dvi-am html \
402 html-am info info-am install install-am install-binPROGRAMS \
403 install-data install-data-am install-exec install-exec-am \
404 install-info install-info-am install-man install-strip \
405 installcheck installcheck-am installdirs maintainer-clean \
406 maintainer-clean-generic mostlyclean mostlyclean-compile \
407 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
408 uninstall-am uninstall-binPROGRAMS uninstall-info-am
409
410 # Tell versions [3.59,3.63) of GNU make to not export all variables.
411 # Otherwise a system limit (for SysV at least) may be exceeded.
412 .NOEXPORT:
0 /*
1 * Virt Viewer: A virtual machine console viewer
2 *
3 * Copyright (C) 2007 Red Hat,
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Daniel P. Berrange <berrange@redhat.com>
20 */
21
22 #define _GNU_SOURCE
23
24 #include <vncdisplay.h>
25 #include <gtk/gtk.h>
26 #include <gdk/gdkkeysyms.h>
27 #include <stdlib.h>
28 #include <string.h>
29 #include <unistd.h>
30 #include <getopt.h>
31 #include <libvirt/libvirt.h>
32 #include <libxml/xpath.h>
33 #include <libxml/uri.h>
34 #include <sys/socket.h>
35 #include <sys/un.h>
36
37 // #define DEBUG 1
38 #ifdef DEBUG
39 #define DEBUG_LOG(s, ...) fprintf(stderr, (s), ## __VA_ARGS__)
40 #else
41 #define DEBUG_LOG(s, ...) do {} while (0)
42 #endif
43
44 static int verbose = 0;
45 #define MAX_KEY_COMBO 3
46 struct keyComboDef {
47 guint keys[MAX_KEY_COMBO];
48 guint nkeys;
49 const char *label;
50 };
51
52 static const struct keyComboDef keyCombos[] = {
53 { { GDK_Control_L, GDK_Alt_L, GDK_Delete }, 3, "Ctrl+Alt+_Del"},
54 { { GDK_Control_L, GDK_Alt_L, GDK_BackSpace }, 3, "Ctrl+Alt+_Backspace"},
55 { {}, 0, "" },
56 { { GDK_Control_L, GDK_Alt_L, GDK_F1 }, 3, "Ctrl+Alt+F_1"},
57 { { GDK_Control_L, GDK_Alt_L, GDK_F2 }, 3, "Ctrl+Alt+F_2"},
58 { { GDK_Control_L, GDK_Alt_L, GDK_F3 }, 3, "Ctrl+Alt+F_3"},
59 { { GDK_Control_L, GDK_Alt_L, GDK_F4 }, 3, "Ctrl+Alt+F_4"},
60 { { GDK_Control_L, GDK_Alt_L, GDK_F5 }, 3, "Ctrl+Alt+F_5"},
61 { { GDK_Control_L, GDK_Alt_L, GDK_F6 }, 3, "Ctrl+Alt+F_6"},
62 { { GDK_Control_L, GDK_Alt_L, GDK_F7 }, 3, "Ctrl+Alt+F_7"},
63 { { GDK_Control_L, GDK_Alt_L, GDK_F8 }, 3, "Ctrl+Alt+F_8"},
64 { {}, 0, "" },
65 { { GDK_Print }, 1, "_PrintScreen"},
66 };
67
68
69 static void viewer_set_title(VncDisplay *vnc, GtkWidget *window, gboolean grabbed)
70 {
71 const char *name;
72 char title[1024];
73 const char *subtitle;
74
75 if (grabbed)
76 subtitle = "(Press Ctrl+Alt to release pointer) ";
77 else
78 subtitle = "";
79
80 name = vnc_display_get_name(VNC_DISPLAY(vnc));
81 snprintf(title, sizeof(title), "%s%s - Virt Viewer",
82 subtitle, name);
83
84 gtk_window_set_title(GTK_WINDOW(window), title);
85 }
86
87 static void viewer_grab(GtkWidget *vnc, GtkWidget *window)
88 {
89 viewer_set_title(VNC_DISPLAY(vnc), window, TRUE);
90 }
91
92 static void viewer_ungrab(GtkWidget *vnc, GtkWidget *window)
93 {
94 viewer_set_title(VNC_DISPLAY(vnc), window, FALSE);
95 }
96
97 static void viewer_shutdown(GtkWidget *src G_GNUC_UNUSED, void *dummy G_GNUC_UNUSED, GtkWidget *vnc)
98 {
99 vnc_display_close(VNC_DISPLAY(vnc));
100 gtk_main_quit();
101 }
102
103 static void viewer_quit(GtkWidget *src G_GNUC_UNUSED, GtkWidget *vnc)
104 {
105 viewer_shutdown(src, NULL, vnc);
106 }
107
108 static void viewer_connected(GtkWidget *vnc G_GNUC_UNUSED)
109 {
110 DEBUG_LOG("Connected to server\n");
111 }
112
113 static void viewer_initialized(GtkWidget *vnc, GtkWidget *window)
114 {
115 DEBUG_LOG("Connection initialized\n");
116 gtk_widget_show_all(window);
117 viewer_set_title(VNC_DISPLAY(vnc), window, FALSE);
118 }
119
120 static void viewer_disconnected(GtkWidget *vnc G_GNUC_UNUSED)
121 {
122 DEBUG_LOG("Disconnected from server\n");
123 gtk_main_quit();
124 }
125
126 static void viewer_send_key(GtkWidget *menu, GtkWidget *vnc)
127 {
128 int i;
129 GtkWidget *label = gtk_bin_get_child(GTK_BIN(menu));
130 const char *text = gtk_label_get_label(GTK_LABEL(label));
131
132 for (i = 0 ; i < (sizeof(keyCombos)/sizeof(keyCombos[0])) ; i++) {
133 if (!strcmp(text, keyCombos[i].label)) {
134 DEBUG_LOG("Sending key combo %s\n", gtk_label_get_text(GTK_LABEL(label)));
135 vnc_display_send_keys(VNC_DISPLAY(vnc),
136 keyCombos[i].keys,
137 keyCombos[i].nkeys);
138 return;
139 }
140 }
141 DEBUG_LOG("Failed to find key combo %s\n", gtk_label_get_text(GTK_LABEL(label)));
142 }
143
144
145 static void viewer_save_screenshot(GtkWidget *vnc, const char *file)
146 {
147 GdkPixbuf *pix = vnc_display_get_pixbuf(VNC_DISPLAY(vnc));
148 gdk_pixbuf_save(pix, file, "png", NULL,
149 "tEXt::Generator App", PACKAGE, NULL);
150 gdk_pixbuf_unref(pix);
151 }
152
153 static void viewer_screenshot(GtkWidget *menu G_GNUC_UNUSED, GtkWidget *vnc)
154 {
155 GtkWidget *dialog;
156
157 dialog = gtk_file_chooser_dialog_new ("Save screenshot",
158 NULL,
159 GTK_FILE_CHOOSER_ACTION_SAVE,
160 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
161 GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
162 NULL);
163 gtk_file_chooser_set_do_overwrite_confirmation (GTK_FILE_CHOOSER (dialog), TRUE);
164
165 //gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), default_folder_for_saving);
166 //gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), "Screenshot");
167
168 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT) {
169 char *filename;
170
171 filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
172 viewer_save_screenshot(vnc, filename);
173 g_free (filename);
174 }
175
176 gtk_widget_destroy (dialog);
177 }
178
179
180 static void viewer_credential(GtkWidget *vnc, GValueArray *credList)
181 {
182 GtkWidget *dialog = NULL;
183 int response;
184 unsigned int i, prompt = 0;
185 const char **data;
186
187 DEBUG_LOG("Got credential request for %d credential(s)\n", credList->n_values);
188
189 data = g_new0(const char *, credList->n_values);
190
191 for (i = 0 ; i < credList->n_values ; i++) {
192 GValue *cred = g_value_array_get_nth(credList, i);
193 switch (g_value_get_enum(cred)) {
194 case VNC_DISPLAY_CREDENTIAL_USERNAME:
195 case VNC_DISPLAY_CREDENTIAL_PASSWORD:
196 prompt++;
197 break;
198 case VNC_DISPLAY_CREDENTIAL_CLIENTNAME:
199 data[i] = "libvirt";
200 default:
201 break;
202 }
203 }
204
205 if (prompt) {
206 GtkWidget **label, **entry, *box, *vbox;
207 int row;
208 dialog = gtk_dialog_new_with_buttons("Authentication required",
209 NULL,
210 0,
211 GTK_STOCK_CANCEL,
212 GTK_RESPONSE_CANCEL,
213 GTK_STOCK_OK,
214 GTK_RESPONSE_OK,
215 NULL);
216 gtk_dialog_set_default_response(GTK_DIALOG(dialog), GTK_RESPONSE_OK);
217
218 box = gtk_table_new(credList->n_values, 2, FALSE);
219 label = g_new(GtkWidget *, prompt);
220 entry = g_new(GtkWidget *, prompt);
221
222 for (i = 0, row =0 ; i < credList->n_values ; i++) {
223 GValue *cred = g_value_array_get_nth(credList, i);
224 switch (g_value_get_enum(cred)) {
225 case VNC_DISPLAY_CREDENTIAL_USERNAME:
226 label[row] = gtk_label_new("Username:");
227 break;
228 case VNC_DISPLAY_CREDENTIAL_PASSWORD:
229 label[row] = gtk_label_new("Password:");
230 break;
231 default:
232 continue;
233 }
234 entry[row] = gtk_entry_new();
235
236 gtk_table_attach(GTK_TABLE(box), label[i], 0, 1, row, row+1, GTK_SHRINK, GTK_SHRINK, 3, 3);
237 gtk_table_attach(GTK_TABLE(box), entry[i], 1, 2, row, row+1, GTK_SHRINK, GTK_SHRINK, 3, 3);
238 row++;
239 }
240
241 vbox = gtk_bin_get_child(GTK_BIN(dialog));
242 gtk_container_add(GTK_CONTAINER(vbox), box);
243
244 gtk_widget_show_all(dialog);
245 response = gtk_dialog_run(GTK_DIALOG(dialog));
246 gtk_widget_hide(GTK_WIDGET(dialog));
247
248 if (response == GTK_RESPONSE_OK) {
249 for (i = 0, row = 0 ; i < credList->n_values ; i++) {
250 GValue *cred = g_value_array_get_nth(credList, i);
251 switch (g_value_get_enum(cred)) {
252 case VNC_DISPLAY_CREDENTIAL_USERNAME:
253 case VNC_DISPLAY_CREDENTIAL_PASSWORD:
254 data[i] = gtk_entry_get_text(GTK_ENTRY(entry[row]));
255 break;
256 }
257 }
258 }
259 }
260
261 for (i = 0 ; i < credList->n_values ; i++) {
262 GValue *cred = g_value_array_get_nth(credList, i);
263 if (data[i]) {
264 if (vnc_display_set_credential(VNC_DISPLAY(vnc),
265 g_value_get_enum(cred),
266 data[i])) {
267 DEBUG_LOG("Failed to set credential type %d\n", g_value_get_enum(cred));
268 vnc_display_close(VNC_DISPLAY(vnc));
269 }
270 } else {
271 DEBUG_LOG("Unsupported credential type %d\n", g_value_get_enum(cred));
272 vnc_display_close(VNC_DISPLAY(vnc));
273 }
274 }
275
276 g_free(data);
277 if (dialog)
278 gtk_widget_destroy(GTK_WIDGET(dialog));
279 }
280
281 static void viewer_about(GtkWidget *menu G_GNUC_UNUSED)
282 {
283 GtkWidget *about;
284 const char *authors[] = {
285 "Daniel P. Berrange <berrange@redhat.com>",
286 NULL
287 };
288
289 about = gtk_about_dialog_new();
290
291 gtk_about_dialog_set_name(GTK_ABOUT_DIALOG(about), "Virtual Machine Viewer");
292 gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(about), VERSION);
293 gtk_about_dialog_set_website(GTK_ABOUT_DIALOG(about), "http://virt-manager.org/");
294 gtk_about_dialog_set_website_label(GTK_ABOUT_DIALOG(about), "http://virt-manager.org/");
295 gtk_about_dialog_set_authors(GTK_ABOUT_DIALOG(about), authors);
296 gtk_about_dialog_set_license(GTK_ABOUT_DIALOG(about),
297 "This program is free software; you can redistribute it and/or modify\n" \
298 "it under the terms of the GNU General Public License as published by\n" \
299 "the Free Software Foundation; either version 2 of the License, or\n" \
300 "(at your option) any later version.\n" \
301 "\n" \
302 "This program is distributed in the hope that it will be useful,\n" \
303 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
304 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" \
305 "GNU General Public License for more details.\n" \
306 "\n" \
307 "You should have received a copy of the GNU General Public License\n" \
308 "along with this program; if not, write to the Free Software\n" \
309 "Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n");
310
311
312 gtk_dialog_run(GTK_DIALOG(about));
313
314 gtk_widget_destroy(about);
315 }
316
317 static GtkWidget *viewer_build_file_menu(VncDisplay *vnc)
318 {
319 GtkWidget *file;
320 GtkWidget *filemenu;
321 GtkWidget *quit;
322 GtkWidget *screenshot;
323
324 file = gtk_menu_item_new_with_mnemonic("_File");
325
326 filemenu = gtk_menu_new();
327 gtk_menu_item_set_submenu(GTK_MENU_ITEM(file), filemenu);
328
329 screenshot = gtk_menu_item_new_with_mnemonic("_Screenshot");
330 gtk_menu_append(GTK_MENU(filemenu), screenshot);
331 g_signal_connect(screenshot, "activate", GTK_SIGNAL_FUNC(viewer_screenshot), vnc);
332
333 gtk_menu_append(GTK_MENU(filemenu), gtk_separator_menu_item_new());
334
335
336 quit = gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
337 gtk_menu_append(GTK_MENU(filemenu), quit);
338 g_signal_connect(quit, "activate", GTK_SIGNAL_FUNC(viewer_quit), vnc);
339
340 return file;
341 }
342
343 static GtkWidget *viewer_build_sendkey_menu(VncDisplay *vnc)
344 {
345 GtkWidget *sendkey;
346 GtkWidget *sendkeymenu;
347 int i;
348
349 sendkey = gtk_menu_item_new_with_mnemonic("_Send Key");
350
351 sendkeymenu = gtk_menu_new();
352 gtk_menu_item_set_submenu(GTK_MENU_ITEM(sendkey), sendkeymenu);
353
354 for (i = 0 ; i < (sizeof(keyCombos)/sizeof(keyCombos[0])) ; i++) {
355 GtkWidget *key;
356
357 if (keyCombos[i].nkeys) {
358 key = gtk_menu_item_new_with_mnemonic(keyCombos[i].label);
359 gtk_menu_append(GTK_MENU(sendkeymenu), key);
360 g_signal_connect(key, "activate", GTK_SIGNAL_FUNC(viewer_send_key), vnc);
361 } else {
362 gtk_menu_append(GTK_MENU(sendkeymenu), gtk_separator_menu_item_new());
363 }
364 }
365
366 return sendkey;
367 }
368
369 static GtkWidget *viewer_build_help_menu(void)
370 {
371 GtkWidget *help;
372 GtkWidget *helpmenu;
373 GtkWidget *about;
374
375 help = gtk_menu_item_new_with_mnemonic("_Help");
376
377 helpmenu = gtk_menu_new();
378 gtk_menu_item_set_submenu(GTK_MENU_ITEM(help), helpmenu);
379
380 about = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
381 gtk_menu_append(GTK_MENU(helpmenu), about);
382 g_signal_connect(about, "activate", GTK_SIGNAL_FUNC(viewer_about), NULL);
383
384 return help;
385 }
386
387 static GtkWidget *viewer_build_menu(VncDisplay *vnc)
388 {
389 GtkWidget *menubar;
390 GtkWidget *file;
391 GtkWidget *sendkey;
392 GtkWidget *help;
393
394 menubar = gtk_menu_bar_new();
395
396 file = viewer_build_file_menu(vnc);
397 sendkey = viewer_build_sendkey_menu(vnc);
398 help = viewer_build_help_menu();
399
400 gtk_menu_bar_append(GTK_MENU_BAR(menubar), file);
401 gtk_menu_bar_append(GTK_MENU_BAR(menubar), sendkey);
402 gtk_menu_bar_append(GTK_MENU_BAR(menubar), help);
403
404
405 return menubar;
406 }
407
408 static GtkWidget *viewer_build_window(VncDisplay *vnc)
409 {
410 GtkWidget *window;
411 GtkWidget *menubar;
412 GtkWidget *layout;
413
414 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
415 layout = gtk_vbox_new(FALSE, 3);
416 menubar = viewer_build_menu(vnc);
417
418 gtk_container_add(GTK_CONTAINER(window), layout);
419 gtk_container_add(GTK_CONTAINER(layout), menubar);
420 gtk_container_add(GTK_CONTAINER(layout), GTK_WIDGET(vnc));
421 gtk_window_set_resizable(GTK_WINDOW(window), FALSE);
422
423 gtk_signal_connect(GTK_OBJECT(vnc), "vnc-pointer-grab",
424 GTK_SIGNAL_FUNC(viewer_grab), window);
425 gtk_signal_connect(GTK_OBJECT(vnc), "vnc-pointer-ungrab",
426 GTK_SIGNAL_FUNC(viewer_ungrab), window);
427
428 gtk_signal_connect(GTK_OBJECT(window), "delete-event",
429 GTK_SIGNAL_FUNC(viewer_shutdown), vnc);
430
431 gtk_signal_connect(GTK_OBJECT(vnc), "vnc-connected",
432 GTK_SIGNAL_FUNC(viewer_connected), NULL);
433 gtk_signal_connect(GTK_OBJECT(vnc), "vnc-initialized",
434 GTK_SIGNAL_FUNC(viewer_initialized), window);
435 gtk_signal_connect(GTK_OBJECT(vnc), "vnc-disconnected",
436 GTK_SIGNAL_FUNC(viewer_disconnected), NULL);
437
438 g_signal_connect(GTK_OBJECT(vnc), "vnc-auth-credential",
439 GTK_SIGNAL_FUNC(viewer_credential), NULL);
440
441 return window;
442 }
443
444
445 static void viewer_version(FILE *out)
446 {
447 fprintf(out, "%s version %s\n", PACKAGE, VERSION);
448 }
449
450 static void viewer_help(FILE *out, const char *app)
451 {
452 fprintf(out, "\n");
453 fprintf(out, "syntax: %s [OPTIONS] DOMAIN-NAME|ID|UUID\n", app);
454 fprintf(out, "\n");
455 viewer_version(out);
456 fprintf(out, "\n");
457 fprintf(out, "Options:");
458 fprintf(out, " -h, --help display command line help\n");
459 fprintf(out, " -v, --verbose display verbose information\n");
460 fprintf(out, " -V, --version display verion informaton\n");
461 fprintf(out, " -d, --direct direct connection with no automatic tunnels\n");
462 fprintf(out, " -c URI, --connect URI connect to hypervisor URI\n");
463 fprintf(out, " -w, --wait wait for domain to start\n");
464 fprintf(out, "\n");
465 }
466
467 static int viewer_parse_uuid(const char *name, unsigned char *uuid)
468 {
469 int i;
470
471 const char *cur = name;
472 for (i = 0;i < 16;) {
473 uuid[i] = 0;
474 if (*cur == 0)
475 return -1;
476 if ((*cur == '-') || (*cur == ' ')) {
477 cur++;
478 continue;
479 }
480 if ((*cur >= '0') && (*cur <= '9'))
481 uuid[i] = *cur - '0';
482 else if ((*cur >= 'a') && (*cur <= 'f'))
483 uuid[i] = *cur - 'a' + 10;
484 else if ((*cur >= 'A') && (*cur <= 'F'))
485 uuid[i] = *cur - 'A' + 10;
486 else
487 return -1;
488 uuid[i] *= 16;
489 cur++;
490 if (*cur == 0)
491 return -1;
492 if ((*cur >= '0') && (*cur <= '9'))
493 uuid[i] += *cur - '0';
494 else if ((*cur >= 'a') && (*cur <= 'f'))
495 uuid[i] += *cur - 'a' + 10;
496 else if ((*cur >= 'A') && (*cur <= 'F'))
497 uuid[i] += *cur - 'A' + 10;
498 else
499 return -1;
500 i++;
501 cur++;
502 }
503
504 return 0;
505 }
506
507
508 static virDomainPtr viewer_lookup_domain(virConnectPtr conn, const char *name)
509 {
510 char *end;
511 int id = strtol(name, &end, 10);
512 virDomainPtr dom = NULL;
513 unsigned char uuid[16];
514
515 if (id >= 0 && end && !*end) {
516 dom = virDomainLookupByID(conn, id);
517 }
518 if (!dom && viewer_parse_uuid(name, uuid) == 0) {
519 dom = virDomainLookupByUUID(conn, uuid);
520 }
521 if (!dom) {
522 dom = virDomainLookupByName(conn, name);
523 }
524 return dom;
525 }
526
527 static int viewer_extract_vnc_graphics(virDomainPtr dom, char **port)
528 {
529 char *xmldesc = virDomainGetXMLDesc(dom, 0);
530 xmlDocPtr xml = NULL;
531 xmlParserCtxtPtr pctxt = NULL;
532 xmlXPathContextPtr ctxt = NULL;
533 xmlXPathObjectPtr obj = NULL;
534 int ret = -1;
535
536 pctxt = xmlNewParserCtxt();
537 if (!pctxt || !pctxt->sax)
538 goto error;
539
540 xml = xmlCtxtReadDoc(pctxt, (const xmlChar *)xmldesc, "domain.xml", NULL,
541 XML_PARSE_NOENT | XML_PARSE_NONET |
542 XML_PARSE_NOWARNING);
543 free(xmldesc);
544 if (!xml)
545 goto error;
546
547 ctxt = xmlXPathNewContext(xml);
548 if (!ctxt)
549 goto error;
550
551 obj = xmlXPathEval((const xmlChar *)"string(/domain/devices/graphics[@type='vnc']/@port)", ctxt);
552 if (!obj || obj->type != XPATH_STRING || !obj->stringval || !obj->stringval[0])
553 goto error;
554 if (!strcmp((const char*)obj->stringval, "-1"))
555 goto missing;
556
557 *port = strdup((const char*)obj->stringval);
558 xmlXPathFreeObject(obj);
559 obj = NULL;
560
561 missing:
562 ret = 0;
563
564 error:
565 if (obj)
566 xmlXPathFreeObject(obj);
567 if (ctxt)
568 xmlXPathFreeContext(ctxt);
569 if (xml)
570 xmlFreeDoc(xml);
571 if (pctxt)
572 xmlFreeParserCtxt(pctxt);
573 return ret;
574 }
575
576 static int viewer_extract_host(const char *uristr, char **host, char **transport, char **user, int *port)
577 {
578 xmlURIPtr uri;
579 char *offset;
580
581 *host = NULL;
582 *transport = NULL;
583 *user = NULL;
584
585 if (uristr == NULL ||
586 !strcasecmp(uristr, "xen"))
587 uristr = "xen:///";
588
589 uri = xmlParseURI(uristr);
590 if (!uri || !uri->server) {
591 *host = strdup("localhost");
592 } else {
593 *host = strdup(uri->server);
594 }
595 if (!*host) {
596 xmlFreeURI(uri);
597 return -1;
598 }
599 if (uri->user) {
600 *user = strdup(uri->user);
601 if (!*user) {
602 xmlFreeURI(uri);
603 free(*host);
604 *host =NULL;
605 return -1;
606 }
607 }
608 *port = uri->port;
609
610 offset = strchr(uri->scheme, '+');
611 if (offset) {
612 *transport = strdup(offset+1);
613 if (!*transport) {
614 free(*host);
615 *host = NULL;
616 free(*user);
617 *user = NULL;
618 xmlFreeURI(uri);
619 return -1;
620 }
621 }
622 xmlFreeURI(uri);
623 return 0;
624 }
625
626 static int viewer_open_tunnel(const char **cmd)
627 {
628 int fd[2];
629 pid_t pid;
630
631 if (socketpair(PF_UNIX, SOCK_STREAM, 0, fd) < 0)
632 return -1;
633
634 pid = fork();
635 if (pid == -1) {
636 close(fd[0]);
637 close(fd[1]);
638 return -1;
639 }
640
641 if (pid == 0) { /* child */
642 close(fd[0]);
643 close(0);
644 close(1);
645 if (dup(fd[1]) < 0)
646 _exit(1);
647 if (dup(fd[1]) < 0)
648 _exit(1);
649 close(fd[1]);
650 execvp("ssh", (char *const*)cmd);
651 _exit(1);
652 }
653 close(fd[1]);
654 return fd[0];
655 }
656
657
658 static int viewer_open_tunnel_ssh(const char *sshhost, int sshport, const char *sshuser, const char *vncport)
659 {
660 const char *cmd[10];
661 char portstr[50];
662 int n = 0;
663
664 if (!sshport)
665 sshport = 22;
666
667 sprintf(portstr, "%d", sshport);
668
669 cmd[n++] = "ssh";
670 cmd[n++] = "-p";
671 cmd[n++] = portstr;
672 if (sshuser) {
673 cmd[n++] = "-l";
674 cmd[n++] = sshuser;
675 }
676 cmd[n++] = sshhost;
677 cmd[n++] = "nc";
678 cmd[n++] = "localhost";
679 cmd[n++] = vncport;
680 cmd[n++] = NULL;
681
682 return viewer_open_tunnel(cmd);
683 }
684
685
686 int main(int argc, char **argv)
687 {
688 GtkWidget *window;
689 GtkWidget *vnc;
690 char *uri = NULL;
691 int opt_ind;
692 const char *sopts = "hVc:";
693 static const struct option lopts[] = {
694 { "help", 0, 0, 'h' },
695 { "version", 0, 0, 'V' },
696 { "verbose", 0, 0, 'v' },
697 { "connect", 1, 0, 'c' },
698 { "wait", 0, 0, 'w' },
699 { "direct", 0, 0, 'd' },
700 { 0, 0, 0, 0 }
701 };
702 int ch;
703 int waitvnc = 0;
704 virConnectPtr conn = NULL;
705 virDomainPtr dom = NULL;
706 char *host = NULL;
707 char *vncport = NULL;
708 char *transport = NULL;
709 char *user = NULL;
710 int port = 0;
711 int fd = -1;
712 int direct = 0;
713
714 while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
715 switch (ch) {
716 case 'h':
717 viewer_help(stdout, argv[0]);
718 return 0;
719 case 'V':
720 viewer_version(stdout);
721 return 0;
722 case 'v':
723 verbose = 1;
724 break;
725 case 'c':
726 uri = strdup(optarg);
727 break;
728 case 'w':
729 waitvnc = 1;
730 break;
731 case 'd':
732 direct = 1;
733 break;
734 case '?':
735 viewer_help(stderr, argv[0]);
736 return 1;
737 }
738 }
739
740
741 if (argc != (optind+1)) {
742 viewer_help(stderr, argv[0]);
743 return 1;
744 }
745
746 gtk_init(&argc, &argv);
747
748 conn = virConnectOpenReadOnly(uri);
749 if (!conn) {
750 fprintf(stderr, "unable to connect to libvirt %s\n",
751 uri ? uri : "xen");
752 return 2;
753 }
754
755 do {
756 dom = viewer_lookup_domain(conn, argv[optind]);
757 if (!dom && !waitvnc) {
758 fprintf(stderr, "unable to lookup domain %s\n", argv[optind]);
759 return 3;
760 }
761 if (!dom)
762 usleep(500*1000);
763 } while (!dom);
764
765 do {
766 viewer_extract_vnc_graphics(dom, &vncport);
767 if (!vncport && !waitvnc) {
768 fprintf(stderr, "unable to find vnc graphics for %s\n", argv[optind]);
769 return 4;
770 }
771 if (!vncport)
772 usleep(300*1000);
773 } while (!vncport);
774 virDomainFree(dom);
775 virConnectClose(conn);
776
777 if (viewer_extract_host(uri, &host, &transport, &user, &port) < 0) {
778 fprintf(stderr, "unable to determine hostname for URI %s\n", uri);
779 return 5;
780 }
781 DEBUG_LOG("Remote host is %s and transport %s user %s\n", host, transport ? transport : "", user ? user : "");
782
783 if (transport && strcasecmp(transport, "ssh") == 0 && !direct)
784 fd = viewer_open_tunnel_ssh(host, port, user, vncport);
785
786 vnc = vnc_display_new();
787 window = viewer_build_window(VNC_DISPLAY(vnc));
788 gtk_widget_realize(vnc);
789
790 vnc_display_set_keyboard_grab(VNC_DISPLAY(vnc), TRUE);
791 vnc_display_set_pointer_grab(VNC_DISPLAY(vnc), TRUE);
792
793 if (fd >= 0)
794 vnc_display_open_fd(VNC_DISPLAY(vnc), fd);
795 else
796 vnc_display_open_host(VNC_DISPLAY(vnc), host, vncport);
797
798 gtk_main();
799
800 return 0;
801 }
802
803 /*
804 * Local variables:
805 * c-indent-level: 8
806 * c-basic-offset: 8
807 * tab-width: 8
808 * End:
809 */
0 # -*- rpm-spec -*-
1
2 Name: virt-viewer
3 Version: 0.0.2
4 Release: 1%{?dist}%{?extra_release}
5 Summary: Virtual Machine Viewer
6
7 Group: Applications/System
8 License: GPL
9 URL: http://virt-manager.org/
10 Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13 BuildRequires: gtk2-devel
14 BuildRequires: libvirt-devel
15 BuildRequires: libxml2-devel
16 BuildRequires: gtk-vnc-devel >= 0.1.0
17 BuildRequires: /usr/bin/pod2man
18
19 %description
20 Virtual Machine Viewer provides a graphical console client for connecting
21 to virtual machines. It uses the GTK-VNC widget to provide the display,
22 and libvirt for looking up VNC server details.
23
24 %prep
25 %setup -q
26
27 %build
28 %configure
29 make %{?_smp_mflags}
30
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 make install DESTDIR=$RPM_BUILD_ROOT
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
40 %defattr(-,root,root,-)
41 %doc README COPYING AUTHORS ChangeLog NEWS
42 %{_bindir}/%{name}
43 %{_mandir}/man1/%{name}*
44
45 %changelog
46 * Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
47 - Added support for remote console access
48
49 * Wed Aug 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
50 - First release
51
0 # -*- rpm-spec -*-
1
2 Name: @PACKAGE@
3 Version: @VERSION@
4 Release: 1%{?dist}%{?extra_release}
5 Summary: Virtual Machine Viewer
6
7 Group: Applications/System
8 License: GPL
9 URL: http://virt-manager.org/
10 Source0: http://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12
13 BuildRequires: gtk2-devel
14 BuildRequires: libvirt-devel
15 BuildRequires: libxml2-devel
16 BuildRequires: gtk-vnc-devel >= 0.1.0
17 BuildRequires: /usr/bin/pod2man
18
19 %description
20 Virtual Machine Viewer provides a graphical console client for connecting
21 to virtual machines. It uses the GTK-VNC widget to provide the display,
22 and libvirt for looking up VNC server details.
23
24 %prep
25 %setup -q
26
27 %build
28 %configure
29 make %{?_smp_mflags}
30
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 make install DESTDIR=$RPM_BUILD_ROOT
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
40 %defattr(-,root,root,-)
41 %doc README COPYING AUTHORS ChangeLog NEWS
42 %{_bindir}/%{name}
43 %{_mandir}/man1/%{name}*
44
45 %changelog
46 * Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.2-1
47 - Added support for remote console access
48
49 * Wed Aug 15 2007 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
50 - First release
51