Codebase list libvirt-glib / upstream/0.0.1
New upstream version 0.0.1 Guido Günther 12 years ago
161 changed file(s) with 55000 addition(s) and 873 deletion(s). Raw diff Collapse all Expand all
+0
-45
.gitignore less more
0 build-aux
1 gnulib
2 Makefile
3 Makefile.in
4 *.o
5 *.Po
6 *.lo
7 *.Plo
8 *.Tpo
9 *.la
10 *~
11 *.orig
12 m4
13 autom4te.cache
14 config.*
15 COPYING
16 ABOUT-NLS
17 stamp-h1
18 src/virsh
19 */.libs
20 *.cov
21 *.gcda
22 *.gcno
23 aclocal.m4
24 libtool
25 ltmain.sh
26 mkinstalldirs
27 configure
28 INSTALL
29 compile
30 depcomp
31 install-sh
32 missing
33 examples/event-test
34 examples/conn-test
35 libvirt-glib.spec
36 libvirt-glib-1.0.pc
37 libvirt-gobject-1.0.pc
38 mingw32-libvirt-glib.spec
39 python/*pyc
40 */*.gir
41 */*.typelib
42 build/
43 libvirt-gobject/libvirt-gobject-enums.h
44 libvirt-gobject/libvirt-gobject-enums.c
0 libvirt-glib Authors
1 ====================
2
3 The primary maintainers of libvirt-glib are:
4
5 Christophe Fergeau <cfergeau@redhat.com>
6 Daniel P. Berrange <berrange@redhat.com>
7 Marc-André Lureau <marcandre.lureau@redhat.com>
8 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
9
10 Patches have been received from:
11
12 Guido Günther <agx@sigxcpu.org>
13 Nirbheek Chauhan <nirbheek@gentoo.org>
14
15 ... send patches to get your name added ...
0 2011-11-16 Daniel P. Berrange <berrange@redhat.com>
1
2 Fix typo in libvirt-gobject-1.0.pc.in
3
4 Add missing deps on libxml2-devel & libtool. Don't introspect on RHEL6
5
6 Add download / mailing list links to README
7
8 2011-11-16 Nirbheek Chauhan <nirbheek@gentoo.org>
9
10 Fix parallel build with vala bindings
11
12 2011-11-16 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
13
14 Release 0.0.1
15
16 Add some basic information to README
17
18 2011-11-15 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
19
20 Also distribute private headers
21 Private headers just shouldn't be installed but still distributed as
22 they are required during the build. Fixes `make distcheck`.
23
24 2011-11-14 Marc-André Lureau <marcandre.lureau@redhat.com>
25
26 Use G_DEFINE_BOXED_TYPE for boxed types
27
28 Copy G_DEFINE_BOXED_TYPE from GObject 2.26+
29
30 Add GVirDomainDisk
31
32 Add GVirDomainInterface
33
34 Add GVirDomainDevice abstract class
35
36 2011-11-08 Christophe Fergeau <cfergeau@redhat.com>
37
38 Use new creation helpers everywhere
39 Use the new gvir_config_object_new{_from_xml} in all classes
40 inheriting from GVirConfigObject. This simplifies the code in the
41 _new methods creating empty objects. This commit also adds
42 _new_from_xml methods to all these objects.
43
44 Fix creation of empty XML document
45 It's not enough to assign xmlDocPtr::children to set the
46 document root, xmlDocSetRootElement must be used instead.
47
48 Add gvir_config_object_new{_from_xml} helpers
49 This factors the code that is repeated in the _new methods of
50 all classes deriving from GVirObject
51
52 Add GVirConfigDomain::features
53
54 Add GVirConfigDomain::memory
55
56 Validate document in parsing test
57 Add a call to gvir_config_object_validate in test-domain-parse.c
58 However at the moment this call is purely informative since none
59 of the tests is a valid domain XML description.
60
61 Add test-domain-duplicate.xml which currently fails
62 This test has 3 duplicate "name" nodes in the domain XML, I don't
63 know what the right behaviour is in this case :)
64
65 Add gvir_config_object_set_node_content
66 It's used to set the content of a node in a GVirConfigObject to
67 a given value, and will replace any existing node with the same
68 value.
69
70 Add gvir_config_object_get_node_content
71 There will be quite a few getter functions returning a string
72 contained in one of the nodes of a GVirConfigObject, so better to
73 make it a one-liner to achieve this.
74
75 Remove GVirConfigObject::doc
76 Now that the parsing is done before creating the object, this
77 member is no longer useful. Moreover, it's redundant with the ::node
78 member. Remove it and rely on always having an xmlNodePtr available
79 to represent the config object.
80
81 Remove GError argument from GVirConfigObject::node getter
82 Since this function no longer tries to do XML parsing, there is
83 no error to report.
84
85 Only do XML parsing when creating config objects
86 This commit changes gvir_config_domain_new_from_xml not to operate
87 on an existing object. This makes it possible to call it to create
88 an appropriate xmlNodePtr object which can then be used to construct
89 an object derived from GVirConfigObject. This will also makes it
90 possible to remove GVirConfigObject::doc in a subsequent commit.
91
92 Remove xml parsing from gvir_config_*_new functions
93 These functions now create empty config objects to be consistent
94 with what gvir_config_domain_new does.
95
96 Remove GVirConfigObject::docHandle
97 GVirConfigObject also contains an xmlNodePtr which is more useful
98 since it indicates the position of the current config object in
99 the source XML file. Since xmlNode has a 'doc' member, having
100 both an xmlNodePtr and an xmlDocPtr in GVirConfigObject is
101 redundant.
102
103 Add domain creation/parsing test
104
105 Use gvir_config_object_to_xml
106 s/gvir_config_object_get_doc/gvir_config_object_to_xml/
107
108 Prefer gvir_config_object_to_xml over gvir_config_object_get_doc
109 since the latter will be removed soon.
110
111 Add gvir_config_object_to_xml
112
113 Make the GVirConfigDomain::name property writable
114
115 Implement gvir_config_domain_set_name
116
117 Add gvir_config_domain_new to create an empty domain
118
119 Rename gvir_config_domain_new
120 Rename it to gvir_config_domain_new_from_xml since it takes an
121 XML string as input. gvir_config_domain_new will be used to create
122 a new empty domain.
123
124 Add GVir::Config::Domain::name property
125 For now, it's read-only, but is exposed as a gobject property too.
126
127 Add GVirConfigObject::node property
128 This property stores the XML node corresponding to the current
129 configuration object in the XML tree. When creating configuration
130 objects from a XML string, the XML file will be lazily loaded, and
131 this property will be set.
132
133 Add getters for GVirConfig xmlNode and xmlDoc
134 They will be useful in subclasses to access the parsed document,
135 and to external users needing to directly interact with the
136 generated XML.
137
138 gvir_config_object_parse: don't parse empty documents
139 Report an error when trying to parse the current XML document
140 associated with the GVirConfig object when no document has been
141 set.
142
143 Add helpers in libvirt-gconfig-helpers.[ch]
144 These helper functions will be useful later on. These functions are
145 not made available to the library user since we don't want to expose
146 too much our libxml internals.
147
148 2011-11-07 Daniel P. Berrange <berrange@redhat.com>
149
150 Add script for automatically generating the changelog during make dist
151
152 Update .gitignore rules to include docs & other misc files
153
154 Update AUTHORS file content
155
156 2011-11-07 Nirbheek Chauhan <nirbheek@gentoo.org>
157
158 Update to min libvirt 0.9.4 & fix invocation of vapigen
159 libvirt-0.9.4 is needed for at least VIR_DOMAIN_EVENT_SUSPENDED_RESTORED
160
161 $VAPIGEN from AC_PATH_PROG should be used instead of the raw binary `vapigen`
162 otherwise it's not possible to override the vapigen binary to be used.
163
164 * configure.ac: Use $VAPIGEN, and s/0.5.0/0.9.4/
165 * libvirt-glib.spec.in, mingw32-libvirt-glib.spec.in: s/0.5.0/0.9.4/
166
167 2011-11-04 Daniel P. Berrange <berrange@redhat.com>
168
169 Ensure enum header is installed
170
171 Fix typo in configure.ac
172
173 2011-11-03 Daniel P. Berrange <berrange@redhat.com>
174
175 Fix compiler / linker flags passed to gtk-doc
176
177 2011-11-03 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
178
179 Ask gtkdoc-scan to generate the sections file
180 This frees us from maintaining the sections file.
181
182 2011-11-03 Daniel P. Berrange <berrange@redhat.com>
183
184 Don't include GTK docs in mingw32 RPM
185
186 Add documentation to -devel RPMs
187
188 Fix previous broken change to install header files
189
190 Check vapigen supports --metadatadir in configure.ac
191
192 Disable gtk-doc in automated builds
193
194 Ensure libvirt-gobject-1.0.deps is included in dist
195
196 Fix passing of generated enum files to g-ir-scanner in VPATH builds
197
198 Annotation unused variables in example program
199
200 Ensure make distcheck enables gtkdoc and introspection
201
202 2011-11-01 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
203
204 Generate docs
205 This patch adds gtk-doc-based documentation. The generated docs aren't
206 very complete (or even correct) but this is a good start.
207
208 2011-10-27 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
209
210 Correct 2 signal signatures
211
212 Async API to build & start storage pools
213
214 Add API to build & start storage pools
215
216 2011-10-26 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
217
218 Add gvir_connection_create_storage_pool()
219 API to create new storage pools.
220
221 2011-10-25 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
222
223 Set GError even if libvirt error is unknown
224
225 2011-10-21 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
226
227 Add 2 forgotten functions to libvirt-gobject.sym
228
229 2011-10-21 Marc-André Lureau <marcandre.lureau@redhat.com>
230
231 Fix vapigen on uninstalled environment
232
233 2011-10-20 Marc-André Lureau <marcandre.lureau@redhat.com>
234
235 Fix GIR scanner on uninstalled environment
236
237 2011-10-19 Marc-André Lureau <marcandre.lureau@redhat.com>
238
239 Fix wrong signals arguments
240
241 Add gvir_domain_resume()
242 A binding for virDomainResume().
243
244 Remove vir_ prefix from default signal handler
245 Let's keep the signal and default signal handler name in sync.
246
247 gobject signals are generally not namespaced this way, removing
248 this prefix makes things look a bit nicer.
249
250 Add vapi bindings generation
251
252 2011-10-14 Christophe Fergeau <cfergeau@redhat.com>
253
254 Use gvir-stream as GVirStream quark name
255 The previous vir-g-stream name isn't consistent with the naming of
256 all the other quarks used in libvirt-glib
257
258 Remove vir- prefix from signals
259 gobject signals are generally not namespaced this way, removing
260 this prefix makes things look a bit nicer.
261
262 2011-10-13 Marc-André Lureau <marcandre.lureau@redhat.com>
263
264 Don't leak virStreams, take the reference
265 Without this change, after virStreamNew() and
266 g_value_dup_boxed() it will have refcnt = 2
267 and will leak when GVirStream is destroyed.
268
269 2011-10-11 Marc-André Lureau <marcandre.lureau@redhat.com>
270
271 The input stream is owned by GVirStream, don't ref it
272
273 Fail gracefully when hashtables are NULL
274 Instead of the message:
275 GLib-CRITICAL **: g_hash_table_get_values: assertion `hash_table !=
276 NULL' failed
277
278 2011-10-06 Christophe Fergeau <cfergeau@redhat.com>
279
280 Only call gvir_error_new after failed libvirt calls
281 gvir_error_new is only meant to be used right after a failed
282 libvirt function call, in other cases we should be calling
283 g_error_new directly.
284
285 Don't use empty message when building a GError
286 After testing that 'message' is NULL, gvir_xml_error_new_literal
287 is using it to build a GError. What was meant was to use
288 xerr->message.
289
290 Don't use empty message when building a GError
291 After testing that 'message' is NULL, gvir_error_new_literal
292 is using it to build a GError. What was meant was to use
293 verr->message.
294
295 2011-10-03 Marc-André Lureau <marcandre.lureau@redhat.com>
296
297 event: remove timeout and handle from arrays
298 Otherwise, it will crash next time it goes find().
299
300 ==9856== Invalid read of size 4
301 ==9856== at 0x84E4888: gvir_event_timeout_find (libvirt-glib-event.c:293)
302 ==9856== by 0x84E48E4: gvir_event_timeout_update (libvirt-glib-event.c:308)
303 ==9856== by 0x31AB04BBDB: virEventUpdateTimeout (event.c:122)
304 ==9856== by 0x31AB148758: virNetClientStreamEventTimerUpdate (virnetclientstream.c:81)
305 ==9856== by 0x31AB14991C: virNetClientStreamEventAddCallback (virnetclientstream.c:471)
306 ==9856== by 0x31AB12944F: remoteStreamEventAddCallback (remote_driver.c:3484)
307 ==9856== by 0x31AB108EAC: virStreamEventAddCallback (libvirt.c:14036)
308 ...
309 ==9856== Address 0x143be760 is 0 bytes inside a block of size 40 free'd
310 ==9856== at 0x4A06928: free (vg_replace_malloc.c:427)
311 ==9856== by 0x84E4AD6: gvir_event_timeout_remove (libvirt-glib-event.c:361)
312 ==9856== by 0x31AB04BC2C: virEventRemoveTimeout (event.c:136)
313 ==9856== by 0x31AB149B24: virNetClientStreamEventRemoveCallback (virnetclientstream.c:521)
314 ==9856== by 0x31AB129566: remoteStreamEventRemoveCallback (remote_driver.c:3525)
315 ==9856== by 0x31AB10918F: virStreamEventRemoveCallback (libvirt.c:14114)
316 ...
317
318 Turn GVirStream into a GIOStream
319 Allows to read async from a stream with GVirInputStream.
320 This is modelled after GSocket.
321
322 enums: fix incorrect prefix strip
323 GVIR_TYPE_VIR_FOO -> GVIR_TYPE_FOO
324
325 gir: fix introspection of asyncs and array delegate
326 For some weird reason, gir doesn't like "opaque" for closure data,
327 but only "user_data".
328
329 delay event handle/timeout freeing to avoid dead lock
330 Can be reproduced with the updated test.
331
332 Daniel commented:
333 "the libvirt default event loop already does a very similar
334 thing, since we need to be re-entrant safe."
335
336 build: Add missing <package> and <c:include> in gir
337 This is required for generating source-level bindings, for vala
338
339 Silence a compilation warning
340
341 Connect a bunch of domain event to signals
342
343 Make get_uuid() return a const string
344 The string is not so large, we avoid fragmentation and duplication (especially in hashtable)
345
346 Update GVirConnection signals
347
348 Add a few GVirDomain detailled signals
349
350 Plug a memleak
351
352 Add .mailmap for common aliases
353
354 Register event using GOnce to avoid multiple initializations
355
356 2011-10-03 Marc-André Lureau <marcandre.lureau@gmail.com>
357
358 doc: add some missing return value documentation
359
360 2011-10-02 Guido Günther <agx@sigxcpu.org>
361
362 Explicitly link conn-test example against libgobject
363 Otherwise the build fails with:
364
365 /usr/bin/ld: conn_test-conn-test.o: undefined reference to symbol 'g_type_check_instance_cast'
366 /usr/bin/ld: note: 'g_type_check_instance_cast' is defined in DSO /usr/lib/libgobject-2.0.so.0 so try adding it to the linker command line
367 /usr/lib/libgobject-2.0.so.0: could not read symbols: Invalid operation
368 collect2: ld returned 1 exit status
369
370 2011-09-28 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
371
372 API for storage pool volume management
373
374 Actually provide gvir_storage_vol_get_path()
375 This was only declared in header previously but not implemented.
376
377 2011-09-27 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
378
379 Refactor two very huge functions a bit
380
381 Plug a leak
382
383 Remove redundant 'Config' in GIR identifiers
384 libvirt-gconfig is in a separate namespace than libvirt-gobject so there
385 is not reason to expose 'Config' part of identifiers to high-level
386 languages.
387
388 Correct some more C&P mistakes
389
390 Correct some C&P mistakes
391
392 API to deal with storage pool(s)
393 Add API to fetch, list, retrieve & find storage pool(s) on a connection.
394
395 Ability to create new domains
396
397 2011-09-26 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
398
399 Remove redundant empty line
400
401 Fix some obvious c&p mistakes
402
403 2011-09-16 Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
404
405 GVirConfigObjct should be abstract
406
407 2011-08-10 Daniel P. Berrange <berrange@redhat.com>
408
409 Fix typo in include path s/buildir/builddir/
410
411 2011-07-14 Marc-André Lureau <marcandre.lureau@gmail.com>
412
413 Remove useless g_print debugging message
414
415 Add gvir_domain_screenshot
416
417 Add a binding for virStreamPtr as GVirStream
418
419 Fix incorrect object freeing
420 The code updating object handles incorrectly used g_object_unref
421 instead of virDomainFree or equivalent method
422
423 Expose virConnectPtr handle as a property
424 The GVirConnection object needs to have a 'handle' property
425 which exposes the virConnectPtr handle
426
427 Fix gi-scanner warnings by adding missing annotation
428 Add missing annotations, remove currently unsupported 'default 0'
429 annotation and comment out unimplemented methods
430
431 Introspection: Update to new g-i command syntax
432 Add --warn-all, use --identifier-prefix and
433 --symbol-prefix (--strip-prefix is deprecated).
434
435 2011-07-14 Daniel P. Berrange <berrange@redhat.com>
436
437 Fix error quark strings
438 Error quark strings should be of the form 'gvir-storage_pool'
439 not 'vir-g-storage_pool'
440
441 Add validation of XML documents against RNG
442 Implement the gvir_config_object_validate using libxml2's RNG
443 schema validation APIs.
444
445 Add a base set of wrapper objects for every libvirt object
446 Create a new subclass of GVirObject for every libvirt
447 managed object type. Also update the GVirConnection refresh
448 code to be threadsafe
449
450 Add basic object configuration classes
451 Every libvirt object needs to have a corresponding object for
452 managing documents in the object's XML schema. For this task
453 create a subclass of GVirConfigObject for each libvirt object.
454
455 2011-06-07 Daniel P. Berrange <berrange@redhat.com>
456
457 Add note reminding people how to run from the source tree
458
459 Split the XML config mgmt objects into a separate libvirt-gconfig library
460 The XML configuration management objects are useful even for apps
461 which don't wish to use the object management classes, eg for people
462 using the CIM/SNMP/AMQP agents to talk to libvirt, instead of the
463 native libvirt API. Split them out into a separate libvirt-gconfig
464 library, which does not link to libvirt.so
465
466 Also split the RPM up into libvirt-glib, libvirt-gconfig and
467 libvirt-gobject to match the library names
468
469 2011-02-11 Daniel P. Berrange <berrange@redhat.com>
470
471 Add missing LIBVIRT_CFLAGS for building exmaple programs
472
473 2010-09-10 Daniel P. Berrange <berrange@redhat.com>
474
475 Allow domain fetch to run async. Allow connection open cancel
476 Allow the domain fetch operation to be run asynchronously and
477 be cancelled at any time. Also allow synchronous connection
478 open to be cancelled.
479
480 * examples/conn-test.js, examples/conn-test.py: Make tests
481 mirror images of each other
482 * libvirt-gobject/libvirt-gobject-connection.c,
483 libvirt-gobject/libvirt-gobject-connection.c: Allow async
484 domain fetch & connection open cancel
485 * libvirt-gobject/libvirt-gobject-domain.c,
486 libvirt-gobject/libvirt-gobject-domain.h: Add flags params
487
488 Introduce config manager class and connection manager
489 Introduce a GVirXmlConfig class for representing an object's
490 XML configuration. Subclass it with GVirDomainConfig.
491 Introduce a GVirManager class to look after a list of
492 connection objects.
493
494 * libvirt-gobject/libvirt-gobject-connection.c: Add annotation
495 to allow null opaque param
496 * libvirt-gobject/libvirt-gobject-connection.h: Remove redundant
497 includes
498 * libvirt-gobject/libvirt-gobject-domain-config.c,
499 libvirt-gobject/libvirt-gobject-domain-config.h: New class
500 for domain configs
501 * libvirt-gobject/libvirt-gobject-domain.c,
502 libvirt-gobject/libvirt-gobject-domain.h: Return a
503 GVirDomainConfig instead of the direct char *xml string
504 * libvirt-gobject/libvirt-gobject-main.c,
505 libvirt-gobject/libvirt-gobject-main.h: Fix up includes
506 * libvirt-gobject/libvirt-gobject-manager.c,
507 libvirt-gobject/libvirt-gobject-manager.h: New class
508 for managing a list of connections
509 * libvirt-gobject/libvirt-gobject-xml-config.c,
510 libvirt-gobject/libvirt-gobject-xml-config.h: Generic
511 base class for handling XML configs
512 * libvirt-gobject/libvirt-gobject.h: Add new includes
513 * libvirt-gobject/libvirt-gobject.sym: Add new symbols
514 * libvirt-glib/Makefile.am, libvirt-gobject/Makefile.am: Make
515 g-ir-scanner run quietly
516 * examples/conn-test.py, examples/conn-test.js: More examples
517 * configure.ac: Silent build
518
519 2010-09-09 Daniel P. Berrange <berrange@redhat.com>
520
521 Fix pkgconfig files and include header locations
522 To avoid potential version clashes, the headers should be
523 installed into /usr/include/libvirt-glib-1.0/libvirt-glib
524 instead of just /usr/include/libvirt-glib-1.0. The pkgconfig
525 file should then use -I/usr/include/libvirt-glib-1.0
526
527 * Makefile.am, configure.ac: Add libvirt-gobject-1.0.pc.in
528 * libvirt-glib/Makefile.am, libvirt-gobject/Makefile.am: Fix
529 include header directory
530 * mingw32-libvirt-glib.spec.in, libvirt-glib.spec.in: Add
531 libvirt-gobject library
532 * libvirt-glib.pc.in: Rename to libvirt-glib-1.0.pc.in
533
534 2010-08-06 Daniel P. Berrange <berrange@redhat.com>
535
536 Make GIR tools less verbose
537 Remove the '-v/--verbose' flag from GIR tools & remove unused
538 include paths
539
540 Add API for accessing URI
541 Add gvir_connection_get_uri() method. Fix lookup based on URI.
542 Fix version name in symbols version file
543
544 Flesh out GVirDomain class
545 Add an API for converting a virErrorPtr into a GError *.
546
547 Flesh out the GVirDomain class with basic constructor and
548 methods.
549
550 Add APIs to GVirConnection class to allow fetching of
551 GVirDomain objects
552
553 2010-07-27 Daniel P. Berrange <berrange@redhat.com>
554
555 Change method/class prefix to gvir/GVir
556 GObject introspection doesn't do so well at generating sensible
557 method/class names if methods and classes use a different
558 prefix (vir_g vs VirG). It can only cope with changes in case.
559 Change the prefix to be 'gvir' (methods) and 'GVir' (classes)
560
561 Provide a non-async open method for simple usage
562 Not all apps require a full async open API call, so provide a
563 blocking version as well. Renaming the async version to have
564 an _async suffix
565
566 2010-07-26 Daniel P. Berrange <berrange@redhat.com>
567
568 Add example program using javascript
569
570 Register the event loop when loading libvirt gobject library
571
572 Add some gobject introspection annotations
573
574 Only initialize threading if it isn't already initialized
575
576 Add libvirt-gobject library wrapping libvirt objects
577 The libvirt-gobject-1.0.la library provides a wrapper around
578 the libvirt API that exposes all its objects as GObject classes.
579 This allows integration with the gobject signal system and gio
580 async callback APIs.
581
582 Re-arrange source to put it all under libvirt-glib/ subdir
583 Remove the src/ and include/ directories, merging them into
584 a single libvirt-glib to more closely align with standard
585 glib style layout
586
587 Add support for GObject Introspection
588 Generate GObject introspection data for libvirt-glib, also make
589 the library be versioned.
590
591 Ensure event callbacks are threadsafe
592 Take a global lock whenever changing any event callbacks to
593 ensure thread safety
594
595 Rename APIs to use lowercase + underscores to match glib style
596 The libvirt style is virEventRegister while the GLib style is
597 vir_g_event_register. This switches from the former to the
598 latter so the API looks nicer to people familiar with GLib.
599
600 2009-08-03 Daniel P. Berrange <berrange@redhat.com>
601
602 Add missing details argument to python demo (Guido Günther)
603 * examples/event-test.py: Add 'detail' argument
604
605 Fix import of gtk module in python demo (Guido Günther)
606 * examples/event-test.py: Change import pygtk to import gtk
607
608 Switch .hgignore to .gitignore
609
610 2009-05-19 Daniel P. Berrange <berrange@redhat.com>
611
612 Fix recording of timers/handles
613
614 2008-11-28 Daniel P. Berrange <berrange@redhat.com>
615
616 Add mingw32 specfile, and fix libvirt version to 0.5.0
617
618 Fix mistaken use of POLL constants
619
620 2008-11-25 Daniel P. Berrange <berrange@redhat.com>
621
622 Fix pkgconfig install path
623
624 Use g_debug for logging
625
626 Include event detail in printout
627
628 Remove bogus configure flag
629
630 Update for changes in public API to add freefunc
631
632 2008-11-04 Daniel P. Berrange <berrange@redhat.com>
633
634 Fix FD event constant usage, and implement FD remove event
635
636 Add python binding to glib & example program
637
638 2008-10-19 Daniel P. Berrange <berrange@redhat.com>
639
640 Initial checkin
+0
-9
HACKING less more
0 Tips for hacking on libvirt-glib
1 ================================
2
3 To test the GObject introspection based language bindings without
4 having to run make install, there are two environment variables
5 that need to be set:
6
7 export GI_TYPELIB_PATH=`pwd`/libvirt-glib:`pwd`/libvirt-gconfig:`pwd`/libvirt-gobject
8 export LD_LIBRARY_PATH=`pwd`/libvirt-glib/.libs:`pwd`/libvirt-gconfig/.libs:`pwd`/libvirt-gobject/.libs
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
10
11 Basic Installation
12 ==================
13
14 Briefly, the shell commands `./configure; make; make install' should
15 configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
17 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
22
23 The `configure' shell script attempts to guess correct values for
24 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
28 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
37
38 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
41 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
43 may remove or edit it.
44
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
49
50 The simplest way to compile this package is:
51
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
56 some messages telling which features it is checking for.
57
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
61 the package, generally using the just-built uninstalled binaries.
62
63 4. Type `make install' to install the programs and any data files and
64 documentation. When installing into a prefix owned by root, it is
65 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
67 privileges.
68
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
70 this time using the binaries in their final installed location.
71 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
73 root privileges, verifies that the installation completed
74 correctly.
75
76 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
81 for the package's developers. If you use it, you may have to get
82 all sorts of other programs in order to regenerate files that came
83 with the distribution.
84
85 7. Often, you can also type `make uninstall' to remove the installed
86 files again. In practice, not all packages have tested that
87 uninstallation works correctly, even though it is required by the
88 GNU Coding Standards.
89
90 8. Some packages, particularly those that use Automake, provide `make
91 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
93 This target is generally not run by end users.
94
95 Compilers and Options
96 =====================
97
98 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
100 for details on some of the pertinent environment variables.
101
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
105
106 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107
108 *Note Defining Variables::, for more details.
109
110 Compiling For Multiple Architectures
111 ====================================
112
113 You can compile the package for more than one kind of computer at the
114 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
116 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
122 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
124 reconfiguring for another architecture.
125
126 On MacOS X 10.5 and later systems, you can create libraries and
127 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
130 this:
131
132 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CPP="gcc -E" CXXCPP="g++ -E"
135
136 This is not guaranteed to produce working output in all cases, you
137 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
139
140 Installation Names
141 ==================
142
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
147 absolute file name.
148
149 You can specify separate installation prefixes for
150 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
152 PREFIX as the prefix for installing programs and libraries.
153 Documentation and other data files still use the regular prefix.
154
155 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
161 specifications that were not explicitly provided.
162
163 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
165 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
167 having to reconfigure or recompile.
168
169 The first method involves providing an override variable for each
170 affected directory. For example, `make install
171 prefix=/alternate/directory' will choose an alternate location for all
172 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
186 does not work on platforms that have drive letters. On the other hand,
187 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
190
191 Optional Features
192 =================
193
194 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
203 package recognizes.
204
205 For packages that use the X Window System, `configure' can usually
206 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
209
210 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
212 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
214 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
216
217 Particular systems
218 ==================
219
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
222 order to use an ANSI C compiler:
223
224 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225
226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227
228 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230 a workaround. If GNU CC is not installed, it is therefore recommended
231 to try
232
233 ./configure CC="cc"
234
235 and if that doesn't work, try
236
237 ./configure CC="cc -nodtk"
238
239 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
240 directory contains several dysfunctional programs; working variants of
241 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
242 in your `PATH', put it _after_ `/usr/bin'.
243
244 On Haiku, software installed for all users goes in `/boot/common',
245 not `/usr/local'. It is recommended to use the following options:
246
247 ./configure --prefix=/boot/common
248
249 Specifying the System Type
250 ==========================
251
252 There may be some features `configure' cannot figure out
253 automatically, but needs to determine by the type of machine the package
254 will run on. Usually, assuming the package is built to be run on the
255 _same_ architectures, `configure' can figure that out, but if it prints
256 a message saying it cannot guess the machine type, give it the
257 `--build=TYPE' option. TYPE can either be a short name for the system
258 type, such as `sun4', or a canonical name which has the form:
259
260 CPU-COMPANY-SYSTEM
261
262 where SYSTEM can have one of these forms:
263
264 OS
265 KERNEL-OS
266
267 See the file `config.sub' for the possible values of each field. If
268 `config.sub' isn't included in this package, then this package doesn't
269 need to know the machine type.
270
271 If you are _building_ compiler tools for cross-compiling, you should
272 use the option `--target=TYPE' to select the type of system they will
273 produce code for.
274
275 If you want to _use_ a cross compiler, that generates code for a
276 platform different from the build platform, you should specify the
277 "host" platform (i.e., that on which the generated programs will
278 eventually be run) with `--host=TYPE'.
279
280 Sharing Defaults
281 ================
282
283 If you want to set default values for `configure' scripts to share,
284 you can create a site shell script called `config.site' that gives
285 default values for variables like `CC', `cache_file', and `prefix'.
286 `configure' looks for `PREFIX/share/config.site' if it exists, then
287 `PREFIX/etc/config.site' if it exists. Or, you can set the
288 `CONFIG_SITE' environment variable to the location of the site script.
289 A warning: not all `configure' scripts look for a site script.
290
291 Defining Variables
292 ==================
293
294 Variables not defined in a site shell script can be set in the
295 environment passed to `configure'. However, some packages may run
296 configure again during the build, and the customized values of these
297 variables may be lost. In order to avoid this problem, you should set
298 them in the `configure' command line, using `VAR=value'. For example:
299
300 ./configure CC=/usr/local2/bin/gcc
301
302 causes the specified `gcc' to be used as the C compiler (unless it is
303 overridden in the site shell script).
304
305 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
306 an Autoconf bug. Until the bug is fixed you can use this workaround:
307
308 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
309
310 `configure' Invocation
311 ======================
312
313 `configure' recognizes the following options to control how it
314 operates.
315
316 `--help'
317 `-h'
318 Print a summary of all of the options to `configure', and exit.
319
320 `--help=short'
321 `--help=recursive'
322 Print a summary of the options unique to this package's
323 `configure', and exit. The `short' variant lists options used
324 only in the top level, while the `recursive' variant lists options
325 also present in any nested packages.
326
327 `--version'
328 `-V'
329 Print the version of Autoconf used to generate the `configure'
330 script, and exit.
331
332 `--cache-file=FILE'
333 Enable the cache: use and save the results of the tests in FILE,
334 traditionally `config.cache'. FILE defaults to `/dev/null' to
335 disable caching.
336
337 `--config-cache'
338 `-C'
339 Alias for `--cache-file=config.cache'.
340
341 `--quiet'
342 `--silent'
343 `-q'
344 Do not print messages saying which checks are being made. To
345 suppress all normal output, redirect it to `/dev/null' (any error
346 messages will still be shown).
347
348 `--srcdir=DIR'
349 Look for the package's source code in directory DIR. Usually
350 `configure' can determine that directory automatically.
351
352 `--prefix=DIR'
353 Use DIR as the installation prefix. *note Installation Names::
354 for more details, including other options available for fine-tuning
355 the installation locations.
356
357 `--no-create'
358 `-n'
359 Run the configure checks, but stop before creating any output
360 files.
361
362 `configure' also accepts some other, not widely useful, options. Run
363 `configure --help' for more details.
364
00
1 SUBDIRS = libvirt-glib libvirt-gconfig libvirt-gobject python examples
1 SUBDIRS = libvirt-glib libvirt-gconfig libvirt-gobject python vapi examples docs
22
33 ACLOCAL_AMFLAGS = -I m4
44
88 EXTRA_DIST = @PACKAGE@.spec $(pkgconfig_DATA:%.pc=%.pc.in)
99
1010 DISTCLEAN_FILES = @PACKAGE@.spec $(pkgconfig_DATA)
11
12 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc=yes --enable-introspection=yes
13
14 dist-hook: gen-ChangeLog
15
16 # Generate the ChangeLog file (with all entries since the switch to git)
17 # and insert it into the directory we're about to use to create a tarball.
18 .PHONY: gen-ChangeLog
19 gen-ChangeLog:
20 if test -d .git || test -d ../.git; then \
21 $(top_srcdir)/build-aux/gitlog-to-changelog \
22 > $(distdir)/cl-t; \
23 rm -f $(distdir)/ChangeLog; \
24 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
25 fi
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = .
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(srcdir)/libvirt-gconfig-1.0.pc.in \
40 $(srcdir)/libvirt-glib-1.0.pc.in \
41 $(srcdir)/libvirt-glib.spec.in \
42 $(srcdir)/libvirt-gobject-1.0.pc.in \
43 $(srcdir)/mingw32-libvirt-glib.spec.in $(top_srcdir)/configure \
44 AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \
45 build-aux/config.guess build-aux/config.sub build-aux/depcomp \
46 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
47 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
48 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
49 $(top_srcdir)/configure.ac
50 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
51 $(ACLOCAL_M4)
52 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
53 configure.lineno config.status.lineno
54 mkinstalldirs = $(install_sh) -d
55 CONFIG_HEADER = config.h
56 CONFIG_CLEAN_FILES = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc \
57 libvirt-gobject-1.0.pc libvirt-glib.spec \
58 mingw32-libvirt-glib.spec
59 CONFIG_CLEAN_VPATH_FILES =
60 AM_V_GEN = $(am__v_GEN_$(V))
61 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
62 am__v_GEN_0 = @echo " GEN " $@;
63 AM_V_at = $(am__v_at_$(V))
64 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
65 am__v_at_0 = @
66 SOURCES =
67 DIST_SOURCES =
68 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
69 html-recursive info-recursive install-data-recursive \
70 install-dvi-recursive install-exec-recursive \
71 install-html-recursive install-info-recursive \
72 install-pdf-recursive install-ps-recursive install-recursive \
73 installcheck-recursive installdirs-recursive pdf-recursive \
74 ps-recursive uninstall-recursive
75 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
76 am__vpath_adj = case $$p in \
77 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
78 *) f=$$p;; \
79 esac;
80 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
81 am__install_max = 40
82 am__nobase_strip_setup = \
83 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
84 am__nobase_strip = \
85 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
86 am__nobase_list = $(am__nobase_strip_setup); \
87 for p in $$list; do echo "$$p $$p"; done | \
88 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
89 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
90 if (++n[$$2] == $(am__install_max)) \
91 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
92 END { for (dir in files) print dir, files[dir] }'
93 am__base_list = \
94 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
95 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
96 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
97 DATA = $(pkgconfig_DATA)
98 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
99 distclean-recursive maintainer-clean-recursive
100 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
101 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
102 distdir dist dist-all distcheck
103 ETAGS = etags
104 CTAGS = ctags
105 DIST_SUBDIRS = $(SUBDIRS)
106 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
107 distdir = $(PACKAGE)-$(VERSION)
108 top_distdir = $(distdir)
109 am__remove_distdir = \
110 { test ! -d "$(distdir)" \
111 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
112 && rm -fr "$(distdir)"; }; }
113 am__relativize = \
114 dir0=`pwd`; \
115 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
116 sed_rest='s,^[^/]*/*,,'; \
117 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
118 sed_butlast='s,/*[^/]*$$,,'; \
119 while test -n "$$dir1"; do \
120 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
121 if test "$$first" != "."; then \
122 if test "$$first" = ".."; then \
123 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
124 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
125 else \
126 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
127 if test "$$first2" = "$$first"; then \
128 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
129 else \
130 dir2="../$$dir2"; \
131 fi; \
132 dir0="$$dir0"/"$$first"; \
133 fi; \
134 fi; \
135 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
136 done; \
137 reldir="$$dir2"
138 DIST_ARCHIVES = $(distdir).tar.gz
139 GZIP_ENV = --best
140 distuninstallcheck_listfiles = find . -type f -print
141 distcleancheck_listfiles = find . -type f -print
142 ACLOCAL = @ACLOCAL@
143 AMTAR = @AMTAR@
144 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
145 AR = @AR@
146 AS = @AS@
147 AUTOCONF = @AUTOCONF@
148 AUTOHEADER = @AUTOHEADER@
149 AUTOMAKE = @AUTOMAKE@
150 AWK = @AWK@
151 CC = @CC@
152 CCDEPMODE = @CCDEPMODE@
153 CFLAGS = @CFLAGS@
154 COMPILER_FLAGS = @COMPILER_FLAGS@
155 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
156 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
157 CPP = @CPP@
158 CPPFLAGS = @CPPFLAGS@
159 CYGPATH_W = @CYGPATH_W@
160 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
161 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
162 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
163 DEFS = @DEFS@
164 DEPDIR = @DEPDIR@
165 DLLTOOL = @DLLTOOL@
166 DSYMUTIL = @DSYMUTIL@
167 DUMPBIN = @DUMPBIN@
168 ECHO_C = @ECHO_C@
169 ECHO_N = @ECHO_N@
170 ECHO_T = @ECHO_T@
171 EGREP = @EGREP@
172 EXEEXT = @EXEEXT@
173 FGREP = @FGREP@
174 GIO2_CFLAGS = @GIO2_CFLAGS@
175 GIO2_LIBS = @GIO2_LIBS@
176 GLIB2_CFLAGS = @GLIB2_CFLAGS@
177 GLIB2_LIBS = @GLIB2_LIBS@
178 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
179 GOBJECT2_LIBS = @GOBJECT2_LIBS@
180 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
181 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
182 GREP = @GREP@
183 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
184 GTHREAD2_LIBS = @GTHREAD2_LIBS@
185 GTKDOC_CHECK = @GTKDOC_CHECK@
186 GTKDOC_MKPDF = @GTKDOC_MKPDF@
187 GTKDOC_REBASE = @GTKDOC_REBASE@
188 G_IR_COMPILER = @G_IR_COMPILER@
189 G_IR_SCANNER = @G_IR_SCANNER@
190 HTML_DIR = @HTML_DIR@
191 INSTALL = @INSTALL@
192 INSTALL_DATA = @INSTALL_DATA@
193 INSTALL_PROGRAM = @INSTALL_PROGRAM@
194 INSTALL_SCRIPT = @INSTALL_SCRIPT@
195 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
196 LD = @LD@
197 LDFLAGS = @LDFLAGS@
198 LIBOBJS = @LIBOBJS@
199 LIBS = @LIBS@
200 LIBTOOL = @LIBTOOL@
201 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
202 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
203 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
204 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
205 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
206 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
207 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
208 LIBVIRT_LIBS = @LIBVIRT_LIBS@
209 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
210 LIBXML2_LIBS = @LIBXML2_LIBS@
211 LIPO = @LIPO@
212 LN_S = @LN_S@
213 LTLIBOBJS = @LTLIBOBJS@
214 MAKEINFO = @MAKEINFO@
215 MANIFEST_TOOL = @MANIFEST_TOOL@
216 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
217 MKDIR_P = @MKDIR_P@
218 NM = @NM@
219 NMEDIT = @NMEDIT@
220 OBJDUMP = @OBJDUMP@
221 OBJEXT = @OBJEXT@
222 OTOOL = @OTOOL@
223 OTOOL64 = @OTOOL64@
224 PACKAGE = @PACKAGE@
225 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
226 PACKAGE_NAME = @PACKAGE_NAME@
227 PACKAGE_STRING = @PACKAGE_STRING@
228 PACKAGE_TARNAME = @PACKAGE_TARNAME@
229 PACKAGE_URL = @PACKAGE_URL@
230 PACKAGE_VERSION = @PACKAGE_VERSION@
231 PATH_SEPARATOR = @PATH_SEPARATOR@
232 PKG_CONFIG = @PKG_CONFIG@
233 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
234 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
235 PYTHON = @PYTHON@
236 PYTHON_INCLUDES = @PYTHON_INCLUDES@
237 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
238 PYTHON_VERSION = @PYTHON_VERSION@
239 RANLIB = @RANLIB@
240 SED = @SED@
241 SET_MAKE = @SET_MAKE@
242 SHELL = @SHELL@
243 STRIP = @STRIP@
244 VAPIGEN = @VAPIGEN@
245 VERSION = @VERSION@
246 WARN_CFLAGS = @WARN_CFLAGS@
247 abs_builddir = @abs_builddir@
248 abs_srcdir = @abs_srcdir@
249 abs_top_builddir = @abs_top_builddir@
250 abs_top_srcdir = @abs_top_srcdir@
251 ac_ct_AR = @ac_ct_AR@
252 ac_ct_CC = @ac_ct_CC@
253 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
254 am__include = @am__include@
255 am__leading_dot = @am__leading_dot@
256 am__quote = @am__quote@
257 am__tar = @am__tar@
258 am__untar = @am__untar@
259 bindir = @bindir@
260 build = @build@
261 build_alias = @build_alias@
262 build_cpu = @build_cpu@
263 build_os = @build_os@
264 build_vendor = @build_vendor@
265 builddir = @builddir@
266 datadir = @datadir@
267 datarootdir = @datarootdir@
268 docdir = @docdir@
269 dvidir = @dvidir@
270 exec_prefix = @exec_prefix@
271 host = @host@
272 host_alias = @host_alias@
273 host_cpu = @host_cpu@
274 host_os = @host_os@
275 host_vendor = @host_vendor@
276 htmldir = @htmldir@
277 includedir = @includedir@
278 infodir = @infodir@
279 install_sh = @install_sh@
280 libdir = @libdir@
281 libexecdir = @libexecdir@
282 localedir = @localedir@
283 localstatedir = @localstatedir@
284 mandir = @mandir@
285 mkdir_p = @mkdir_p@
286 oldincludedir = @oldincludedir@
287 pdfdir = @pdfdir@
288 prefix = @prefix@
289 program_transform_name = @program_transform_name@
290 psdir = @psdir@
291 pythondir = @pythondir@
292 sbindir = @sbindir@
293 sharedstatedir = @sharedstatedir@
294 srcdir = @srcdir@
295 sysconfdir = @sysconfdir@
296 target_alias = @target_alias@
297 top_build_prefix = @top_build_prefix@
298 top_builddir = @top_builddir@
299 top_srcdir = @top_srcdir@
300 SUBDIRS = libvirt-glib libvirt-gconfig libvirt-gobject python vapi examples docs
301 ACLOCAL_AMFLAGS = -I m4
302 pkgconfigdir = $(libdir)/pkgconfig
303 pkgconfig_DATA = libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc
304 EXTRA_DIST = @PACKAGE@.spec $(pkgconfig_DATA:%.pc=%.pc.in)
305 DISTCLEAN_FILES = @PACKAGE@.spec $(pkgconfig_DATA)
306 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc=yes --enable-introspection=yes
307 all: config.h
308 $(MAKE) $(AM_MAKEFLAGS) all-recursive
309
310 .SUFFIXES:
311 am--refresh:
312 @:
313 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
314 @for dep in $?; do \
315 case '$(am__configure_deps)' in \
316 *$$dep*) \
317 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
318 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
319 && exit 0; \
320 exit 1;; \
321 esac; \
322 done; \
323 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
324 $(am__cd) $(top_srcdir) && \
325 $(AUTOMAKE) --gnu Makefile
326 .PRECIOUS: Makefile
327 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
328 @case '$?' in \
329 *config.status*) \
330 echo ' $(SHELL) ./config.status'; \
331 $(SHELL) ./config.status;; \
332 *) \
333 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
334 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
335 esac;
336
337 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
338 $(SHELL) ./config.status --recheck
339
340 $(top_srcdir)/configure: $(am__configure_deps)
341 $(am__cd) $(srcdir) && $(AUTOCONF)
342 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
343 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
344 $(am__aclocal_m4_deps):
345
346 config.h: stamp-h1
347 @if test ! -f $@; then \
348 rm -f stamp-h1; \
349 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
350 else :; fi
351
352 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
353 @rm -f stamp-h1
354 cd $(top_builddir) && $(SHELL) ./config.status config.h
355 $(srcdir)/config.h.in: $(am__configure_deps)
356 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
357 rm -f stamp-h1
358 touch $@
359
360 distclean-hdr:
361 -rm -f config.h stamp-h1
362 libvirt-glib-1.0.pc: $(top_builddir)/config.status $(srcdir)/libvirt-glib-1.0.pc.in
363 cd $(top_builddir) && $(SHELL) ./config.status $@
364 libvirt-gconfig-1.0.pc: $(top_builddir)/config.status $(srcdir)/libvirt-gconfig-1.0.pc.in
365 cd $(top_builddir) && $(SHELL) ./config.status $@
366 libvirt-gobject-1.0.pc: $(top_builddir)/config.status $(srcdir)/libvirt-gobject-1.0.pc.in
367 cd $(top_builddir) && $(SHELL) ./config.status $@
368 libvirt-glib.spec: $(top_builddir)/config.status $(srcdir)/libvirt-glib.spec.in
369 cd $(top_builddir) && $(SHELL) ./config.status $@
370 mingw32-libvirt-glib.spec: $(top_builddir)/config.status $(srcdir)/mingw32-libvirt-glib.spec.in
371 cd $(top_builddir) && $(SHELL) ./config.status $@
372
373 mostlyclean-libtool:
374 -rm -f *.lo
375
376 clean-libtool:
377 -rm -rf .libs _libs
378
379 distclean-libtool:
380 -rm -f libtool config.lt
381 install-pkgconfigDATA: $(pkgconfig_DATA)
382 @$(NORMAL_INSTALL)
383 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
384 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
385 for p in $$list; do \
386 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
387 echo "$$d$$p"; \
388 done | $(am__base_list) | \
389 while read files; do \
390 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
391 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
392 done
393
394 uninstall-pkgconfigDATA:
395 @$(NORMAL_UNINSTALL)
396 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
397 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
398 test -n "$$files" || exit 0; \
399 echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
400 cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
401
402 # This directory's subdirectories are mostly independent; you can cd
403 # into them and run `make' without going through this Makefile.
404 # To change the values of `make' variables: instead of editing Makefiles,
405 # (1) if the variable is set in `config.status', edit `config.status'
406 # (which will cause the Makefiles to be regenerated when you run `make');
407 # (2) otherwise, pass the desired values on the `make' command line.
408 $(RECURSIVE_TARGETS):
409 @fail= failcom='exit 1'; \
410 for f in x $$MAKEFLAGS; do \
411 case $$f in \
412 *=* | --[!k]*);; \
413 *k*) failcom='fail=yes';; \
414 esac; \
415 done; \
416 dot_seen=no; \
417 target=`echo $@ | sed s/-recursive//`; \
418 list='$(SUBDIRS)'; for subdir in $$list; do \
419 echo "Making $$target in $$subdir"; \
420 if test "$$subdir" = "."; then \
421 dot_seen=yes; \
422 local_target="$$target-am"; \
423 else \
424 local_target="$$target"; \
425 fi; \
426 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
427 || eval $$failcom; \
428 done; \
429 if test "$$dot_seen" = "no"; then \
430 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
431 fi; test -z "$$fail"
432
433 $(RECURSIVE_CLEAN_TARGETS):
434 @fail= failcom='exit 1'; \
435 for f in x $$MAKEFLAGS; do \
436 case $$f in \
437 *=* | --[!k]*);; \
438 *k*) failcom='fail=yes';; \
439 esac; \
440 done; \
441 dot_seen=no; \
442 case "$@" in \
443 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
444 *) list='$(SUBDIRS)' ;; \
445 esac; \
446 rev=''; for subdir in $$list; do \
447 if test "$$subdir" = "."; then :; else \
448 rev="$$subdir $$rev"; \
449 fi; \
450 done; \
451 rev="$$rev ."; \
452 target=`echo $@ | sed s/-recursive//`; \
453 for subdir in $$rev; do \
454 echo "Making $$target in $$subdir"; \
455 if test "$$subdir" = "."; then \
456 local_target="$$target-am"; \
457 else \
458 local_target="$$target"; \
459 fi; \
460 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
461 || eval $$failcom; \
462 done && test -z "$$fail"
463 tags-recursive:
464 list='$(SUBDIRS)'; for subdir in $$list; do \
465 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
466 done
467 ctags-recursive:
468 list='$(SUBDIRS)'; for subdir in $$list; do \
469 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
470 done
471
472 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
473 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
474 unique=`for i in $$list; do \
475 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
476 done | \
477 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
478 END { if (nonempty) { for (i in files) print i; }; }'`; \
479 mkid -fID $$unique
480 tags: TAGS
481
482 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
483 $(TAGS_FILES) $(LISP)
484 set x; \
485 here=`pwd`; \
486 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
487 include_option=--etags-include; \
488 empty_fix=.; \
489 else \
490 include_option=--include; \
491 empty_fix=; \
492 fi; \
493 list='$(SUBDIRS)'; for subdir in $$list; do \
494 if test "$$subdir" = .; then :; else \
495 test ! -f $$subdir/TAGS || \
496 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
497 fi; \
498 done; \
499 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
500 unique=`for i in $$list; do \
501 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
502 done | \
503 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
504 END { if (nonempty) { for (i in files) print i; }; }'`; \
505 shift; \
506 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
507 test -n "$$unique" || unique=$$empty_fix; \
508 if test $$# -gt 0; then \
509 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
510 "$$@" $$unique; \
511 else \
512 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
513 $$unique; \
514 fi; \
515 fi
516 ctags: CTAGS
517 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
518 $(TAGS_FILES) $(LISP)
519 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
520 unique=`for i in $$list; do \
521 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
522 done | \
523 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
524 END { if (nonempty) { for (i in files) print i; }; }'`; \
525 test -z "$(CTAGS_ARGS)$$unique" \
526 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
527 $$unique
528
529 GTAGS:
530 here=`$(am__cd) $(top_builddir) && pwd` \
531 && $(am__cd) $(top_srcdir) \
532 && gtags -i $(GTAGS_ARGS) "$$here"
533
534 distclean-tags:
535 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
536
537 distdir: $(DISTFILES)
538 $(am__remove_distdir)
539 test -d "$(distdir)" || mkdir "$(distdir)"
540 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
541 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
542 list='$(DISTFILES)'; \
543 dist_files=`for file in $$list; do echo $$file; done | \
544 sed -e "s|^$$srcdirstrip/||;t" \
545 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
546 case $$dist_files in \
547 */*) $(MKDIR_P) `echo "$$dist_files" | \
548 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
549 sort -u` ;; \
550 esac; \
551 for file in $$dist_files; do \
552 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
553 if test -d $$d/$$file; then \
554 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
555 if test -d "$(distdir)/$$file"; then \
556 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
557 fi; \
558 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
559 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
560 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
561 fi; \
562 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
563 else \
564 test -f "$(distdir)/$$file" \
565 || cp -p $$d/$$file "$(distdir)/$$file" \
566 || exit 1; \
567 fi; \
568 done
569 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
570 if test "$$subdir" = .; then :; else \
571 test -d "$(distdir)/$$subdir" \
572 || $(MKDIR_P) "$(distdir)/$$subdir" \
573 || exit 1; \
574 fi; \
575 done
576 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
577 if test "$$subdir" = .; then :; else \
578 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
579 $(am__relativize); \
580 new_distdir=$$reldir; \
581 dir1=$$subdir; dir2="$(top_distdir)"; \
582 $(am__relativize); \
583 new_top_distdir=$$reldir; \
584 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
585 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
586 ($(am__cd) $$subdir && \
587 $(MAKE) $(AM_MAKEFLAGS) \
588 top_distdir="$$new_top_distdir" \
589 distdir="$$new_distdir" \
590 am__remove_distdir=: \
591 am__skip_length_check=: \
592 am__skip_mode_fix=: \
593 distdir) \
594 || exit 1; \
595 fi; \
596 done
597 $(MAKE) $(AM_MAKEFLAGS) \
598 top_distdir="$(top_distdir)" distdir="$(distdir)" \
599 dist-hook
600 -test -n "$(am__skip_mode_fix)" \
601 || find "$(distdir)" -type d ! -perm -755 \
602 -exec chmod u+rwx,go+rx {} \; -o \
603 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
604 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
605 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
606 || chmod -R a+r "$(distdir)"
607 dist-gzip: distdir
608 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
609 $(am__remove_distdir)
610
611 dist-bzip2: distdir
612 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
613 $(am__remove_distdir)
614
615 dist-lzma: distdir
616 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
617 $(am__remove_distdir)
618
619 dist-xz: distdir
620 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
621 $(am__remove_distdir)
622
623 dist-tarZ: distdir
624 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
625 $(am__remove_distdir)
626
627 dist-shar: distdir
628 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
629 $(am__remove_distdir)
630
631 dist-zip: distdir
632 -rm -f $(distdir).zip
633 zip -rq $(distdir).zip $(distdir)
634 $(am__remove_distdir)
635
636 dist dist-all: distdir
637 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
638 $(am__remove_distdir)
639
640 # This target untars the dist file and tries a VPATH configuration. Then
641 # it guarantees that the distribution is self-contained by making another
642 # tarfile.
643 distcheck: dist
644 case '$(DIST_ARCHIVES)' in \
645 *.tar.gz*) \
646 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
647 *.tar.bz2*) \
648 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
649 *.tar.lzma*) \
650 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
651 *.tar.xz*) \
652 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
653 *.tar.Z*) \
654 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
655 *.shar.gz*) \
656 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
657 *.zip*) \
658 unzip $(distdir).zip ;;\
659 esac
660 chmod -R a-w $(distdir); chmod a+w $(distdir)
661 mkdir $(distdir)/_build
662 mkdir $(distdir)/_inst
663 chmod a-w $(distdir)
664 test -d $(distdir)/_build || exit 0; \
665 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
666 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
667 && am__cwd=`pwd` \
668 && $(am__cd) $(distdir)/_build \
669 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
670 $(DISTCHECK_CONFIGURE_FLAGS) \
671 && $(MAKE) $(AM_MAKEFLAGS) \
672 && $(MAKE) $(AM_MAKEFLAGS) dvi \
673 && $(MAKE) $(AM_MAKEFLAGS) check \
674 && $(MAKE) $(AM_MAKEFLAGS) install \
675 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
676 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
677 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
678 distuninstallcheck \
679 && chmod -R a-w "$$dc_install_base" \
680 && ({ \
681 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
682 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
683 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
684 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
685 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
686 } || { rm -rf "$$dc_destdir"; exit 1; }) \
687 && rm -rf "$$dc_destdir" \
688 && $(MAKE) $(AM_MAKEFLAGS) dist \
689 && rm -rf $(DIST_ARCHIVES) \
690 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
691 && cd "$$am__cwd" \
692 || exit 1
693 $(am__remove_distdir)
694 @(echo "$(distdir) archives ready for distribution: "; \
695 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
696 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
697 distuninstallcheck:
698 @$(am__cd) '$(distuninstallcheck_dir)' \
699 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
700 || { echo "ERROR: files left after uninstall:" ; \
701 if test -n "$(DESTDIR)"; then \
702 echo " (check DESTDIR support)"; \
703 fi ; \
704 $(distuninstallcheck_listfiles) ; \
705 exit 1; } >&2
706 distcleancheck: distclean
707 @if test '$(srcdir)' = . ; then \
708 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
709 exit 1 ; \
710 fi
711 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
712 || { echo "ERROR: files left in build directory after distclean:" ; \
713 $(distcleancheck_listfiles) ; \
714 exit 1; } >&2
715 check-am: all-am
716 check: check-recursive
717 all-am: Makefile $(DATA) config.h
718 installdirs: installdirs-recursive
719 installdirs-am:
720 for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
721 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
722 done
723 install: install-recursive
724 install-exec: install-exec-recursive
725 install-data: install-data-recursive
726 uninstall: uninstall-recursive
727
728 install-am: all-am
729 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
730
731 installcheck: installcheck-recursive
732 install-strip:
733 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
734 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
735 `test -z '$(STRIP)' || \
736 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
737 mostlyclean-generic:
738
739 clean-generic:
740
741 distclean-generic:
742 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
743 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
744
745 maintainer-clean-generic:
746 @echo "This command is intended for maintainers to use"
747 @echo "it deletes files that may require special tools to rebuild."
748 clean: clean-recursive
749
750 clean-am: clean-generic clean-libtool mostlyclean-am
751
752 distclean: distclean-recursive
753 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
754 -rm -f Makefile
755 distclean-am: clean-am distclean-generic distclean-hdr \
756 distclean-libtool distclean-tags
757
758 dvi: dvi-recursive
759
760 dvi-am:
761
762 html: html-recursive
763
764 html-am:
765
766 info: info-recursive
767
768 info-am:
769
770 install-data-am: install-pkgconfigDATA
771
772 install-dvi: install-dvi-recursive
773
774 install-dvi-am:
775
776 install-exec-am:
777
778 install-html: install-html-recursive
779
780 install-html-am:
781
782 install-info: install-info-recursive
783
784 install-info-am:
785
786 install-man:
787
788 install-pdf: install-pdf-recursive
789
790 install-pdf-am:
791
792 install-ps: install-ps-recursive
793
794 install-ps-am:
795
796 installcheck-am:
797
798 maintainer-clean: maintainer-clean-recursive
799 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
800 -rm -rf $(top_srcdir)/autom4te.cache
801 -rm -f Makefile
802 maintainer-clean-am: distclean-am maintainer-clean-generic
803
804 mostlyclean: mostlyclean-recursive
805
806 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
807
808 pdf: pdf-recursive
809
810 pdf-am:
811
812 ps: ps-recursive
813
814 ps-am:
815
816 uninstall-am: uninstall-pkgconfigDATA
817
818 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
819 ctags-recursive install-am install-strip tags-recursive
820
821 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
822 all all-am am--refresh check check-am clean clean-generic \
823 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
824 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
825 dist-zip distcheck distclean distclean-generic distclean-hdr \
826 distclean-libtool distclean-tags distcleancheck distdir \
827 distuninstallcheck dvi dvi-am html html-am info info-am \
828 install install-am install-data install-data-am install-dvi \
829 install-dvi-am install-exec install-exec-am install-html \
830 install-html-am install-info install-info-am install-man \
831 install-pdf install-pdf-am install-pkgconfigDATA install-ps \
832 install-ps-am install-strip installcheck installcheck-am \
833 installdirs installdirs-am maintainer-clean \
834 maintainer-clean-generic mostlyclean mostlyclean-generic \
835 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
836 uninstall uninstall-am uninstall-pkgconfigDATA
837
838
839 dist-hook: gen-ChangeLog
840
841 # Generate the ChangeLog file (with all entries since the switch to git)
842 # and insert it into the directory we're about to use to create a tarball.
843 .PHONY: gen-ChangeLog
844 gen-ChangeLog:
845 if test -d .git || test -d ../.git; then \
846 $(top_srcdir)/build-aux/gitlog-to-changelog \
847 > $(distdir)/cl-t; \
848 rm -f $(distdir)/ChangeLog; \
849 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
850 fi
851
852 # Tell versions [3.59,3.63) of GNU make to not export all variables.
853 # Otherwise a system limit (for SysV at least) may be exceeded.
854 .NOEXPORT:
0 0.0.1 - Nov 16, 2011
1 ====================
2
3 First public release.
4
0 libvirt-glib
1 ============
2
3 libvirt is a C toolkit to interact with the virtualization capabilities
4 of recent versions of Linux (and other OSes). It is free software
5 available under the GNU Lesser General Public License. Virtualization on
6 the Linux Operating System means the ability to run multiple instances of
7 Operating Systems concurrently on a single hardware system where the basic
8 resources are driven by a Linux instance. The library aim at providing
9 long term stable C API initially for the Xen paravirtualization but
10 should be able to integrate other virtualization mechanisms if needed.
11
12 libvirt-glib wraps libvirt to provide a high-level object-oriented API better
13 suited for glib-based applications, via three libraries:
14
15 - libvirt-glib - GLib main loop integration & misc helper APIs
16 - libvirt-gconfig - GObjects for manipulating libvirt XML documents
17 - libvirt-gobject - GObjects for managing libvirt objects
18
19 libvirt-glib is Free Software and licenced under LGPLv2+.
20
21 The latest official releases can be found at:
22
23 ftp://libvirt.org/libvirt/glib/
24
25 NB: at this time, libvirt-glib is *NOT* considered API/ABI stable. Future
26 releases may still include API/ABI incompatible changes.
27
28 Dependencies
29 ============
30
31 - Required:
32 - glib-2.0
33 - gobject-2.0
34 - libxml-2.0
35 - libvirt
36
37 - Optional:
38 - gobject-introspection
39 - Vala (build-time only)
40
41 Patches sumissions
42 ==================
43
44 Patch submissions are welcomed from any interested contributor. Please
45 send them to the main libvir-list mailing list
46
47 libvir-list@redhat.com
48
49 Questions about usage / deployment can be send to the end users mailing
50 list
51
52 libvirt-users@redhat.com
53
54 For further information about mailing lists & contacting the developers,
55 please consult
56
57 http://libvirt.org/contact.html
58
59 --End
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 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 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
16 [m4_warning([this file was generated for autoconf 2.68.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
21 dnl -*- mode: autoconf -*-
22
23 # serial 1
24
25 dnl Usage:
26 dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
27 AC_DEFUN([GTK_DOC_CHECK],
28 [
29 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
30 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
31
32 dnl check for tools we added during development
33 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
34 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
35 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
36
37 dnl for overriding the documentation installation directory
38 AC_ARG_WITH([html-dir],
39 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
40 [with_html_dir='${datadir}/gtk-doc/html'])
41 HTML_DIR="$with_html_dir"
42 AC_SUBST([HTML_DIR])
43
44 dnl enable/disable documentation building
45 AC_ARG_ENABLE([gtk-doc],
46 AS_HELP_STRING([--enable-gtk-doc],
47 [use gtk-doc to build documentation [[default=no]]]),,
48 [enable_gtk_doc=no])
49
50 if test x$enable_gtk_doc = xyes; then
51 ifelse([$1],[],
52 [PKG_CHECK_EXISTS([gtk-doc],,
53 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
54 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
55 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
56 fi
57
58 AC_MSG_CHECKING([whether to build gtk-doc documentation])
59 AC_MSG_RESULT($enable_gtk_doc)
60
61 dnl enable/disable output formats
62 AC_ARG_ENABLE([gtk-doc-html],
63 AS_HELP_STRING([--enable-gtk-doc-html],
64 [build documentation in html format [[default=yes]]]),,
65 [enable_gtk_doc_html=yes])
66 AC_ARG_ENABLE([gtk-doc-pdf],
67 AS_HELP_STRING([--enable-gtk-doc-pdf],
68 [build documentation in pdf format [[default=no]]]),,
69 [enable_gtk_doc_pdf=no])
70
71 if test -z "$GTKDOC_MKPDF"; then
72 enable_gtk_doc_pdf=no
73 fi
74
75
76 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
77 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
78 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
79 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
80 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
81 ])
82
83 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
84 #
85 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
86 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
87 # Inc.
88 # Written by Gordon Matzigkeit, 1996
89 #
90 # This file is free software; the Free Software Foundation gives
91 # unlimited permission to copy and/or distribute it, with or without
92 # modifications, as long as this notice is preserved.
93
94 m4_define([_LT_COPYING], [dnl
95 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
96 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
97 # Inc.
98 # Written by Gordon Matzigkeit, 1996
99 #
100 # This file is part of GNU Libtool.
101 #
102 # GNU Libtool is free software; you can redistribute it and/or
103 # modify it under the terms of the GNU General Public License as
104 # published by the Free Software Foundation; either version 2 of
105 # the License, or (at your option) any later version.
106 #
107 # As a special exception to the GNU General Public License,
108 # if you distribute this file as part of a program or library that
109 # is built using GNU Libtool, you may include this file under the
110 # same distribution terms that you use for the rest of that program.
111 #
112 # GNU Libtool is distributed in the hope that it will be useful,
113 # but WITHOUT ANY WARRANTY; without even the implied warranty of
114 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
115 # GNU General Public License for more details.
116 #
117 # You should have received a copy of the GNU General Public License
118 # along with GNU Libtool; see the file COPYING. If not, a copy
119 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
120 # obtained by writing to the Free Software Foundation, Inc.,
121 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
122 ])
123
124 # serial 57 LT_INIT
125
126
127 # LT_PREREQ(VERSION)
128 # ------------------
129 # Complain and exit if this libtool version is less that VERSION.
130 m4_defun([LT_PREREQ],
131 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
132 [m4_default([$3],
133 [m4_fatal([Libtool version $1 or higher is required],
134 63)])],
135 [$2])])
136
137
138 # _LT_CHECK_BUILDDIR
139 # ------------------
140 # Complain if the absolute build directory name contains unusual characters
141 m4_defun([_LT_CHECK_BUILDDIR],
142 [case `pwd` in
143 *\ * | *\ *)
144 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
145 esac
146 ])
147
148
149 # LT_INIT([OPTIONS])
150 # ------------------
151 AC_DEFUN([LT_INIT],
152 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
153 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
154 AC_BEFORE([$0], [LT_LANG])dnl
155 AC_BEFORE([$0], [LT_OUTPUT])dnl
156 AC_BEFORE([$0], [LTDL_INIT])dnl
157 m4_require([_LT_CHECK_BUILDDIR])dnl
158
159 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
160 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
161 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
162 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
163 dnl unless we require an AC_DEFUNed macro:
164 AC_REQUIRE([LTOPTIONS_VERSION])dnl
165 AC_REQUIRE([LTSUGAR_VERSION])dnl
166 AC_REQUIRE([LTVERSION_VERSION])dnl
167 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
168 m4_require([_LT_PROG_LTMAIN])dnl
169
170 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
171
172 dnl Parse OPTIONS
173 _LT_SET_OPTIONS([$0], [$1])
174
175 # This can be used to rebuild libtool when needed
176 LIBTOOL_DEPS="$ltmain"
177
178 # Always use our own libtool.
179 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
180 AC_SUBST(LIBTOOL)dnl
181
182 _LT_SETUP
183
184 # Only expand once:
185 m4_define([LT_INIT])
186 ])# LT_INIT
187
188 # Old names:
189 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
190 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
191 dnl aclocal-1.4 backwards compatibility:
192 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
193 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
194
195
196 # _LT_CC_BASENAME(CC)
197 # -------------------
198 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
199 m4_defun([_LT_CC_BASENAME],
200 [for cc_temp in $1""; do
201 case $cc_temp in
202 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
203 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
204 \-*) ;;
205 *) break;;
206 esac
207 done
208 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
209 ])
210
211
212 # _LT_FILEUTILS_DEFAULTS
213 # ----------------------
214 # It is okay to use these file commands and assume they have been set
215 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
216 m4_defun([_LT_FILEUTILS_DEFAULTS],
217 [: ${CP="cp -f"}
218 : ${MV="mv -f"}
219 : ${RM="rm -f"}
220 ])# _LT_FILEUTILS_DEFAULTS
221
222
223 # _LT_SETUP
224 # ---------
225 m4_defun([_LT_SETUP],
226 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
227 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
228 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
229 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
230
231 _LT_DECL([], [host_alias], [0], [The host system])dnl
232 _LT_DECL([], [host], [0])dnl
233 _LT_DECL([], [host_os], [0])dnl
234 dnl
235 _LT_DECL([], [build_alias], [0], [The build system])dnl
236 _LT_DECL([], [build], [0])dnl
237 _LT_DECL([], [build_os], [0])dnl
238 dnl
239 AC_REQUIRE([AC_PROG_CC])dnl
240 AC_REQUIRE([LT_PATH_LD])dnl
241 AC_REQUIRE([LT_PATH_NM])dnl
242 dnl
243 AC_REQUIRE([AC_PROG_LN_S])dnl
244 test -z "$LN_S" && LN_S="ln -s"
245 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
246 dnl
247 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
248 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
249 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
250 dnl
251 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
252 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
253 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
254 m4_require([_LT_CMD_RELOAD])dnl
255 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
256 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
257 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
258 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
259 m4_require([_LT_WITH_SYSROOT])dnl
260
261 _LT_CONFIG_LIBTOOL_INIT([
262 # See if we are running on zsh, and set the options which allow our
263 # commands through without removal of \ escapes INIT.
264 if test -n "\${ZSH_VERSION+set}" ; then
265 setopt NO_GLOB_SUBST
266 fi
267 ])
268 if test -n "${ZSH_VERSION+set}" ; then
269 setopt NO_GLOB_SUBST
270 fi
271
272 _LT_CHECK_OBJDIR
273
274 m4_require([_LT_TAG_COMPILER])dnl
275
276 case $host_os in
277 aix3*)
278 # AIX sometimes has problems with the GCC collect2 program. For some
279 # reason, if we set the COLLECT_NAMES environment variable, the problems
280 # vanish in a puff of smoke.
281 if test "X${COLLECT_NAMES+set}" != Xset; then
282 COLLECT_NAMES=
283 export COLLECT_NAMES
284 fi
285 ;;
286 esac
287
288 # Global variables:
289 ofile=libtool
290 can_build_shared=yes
291
292 # All known linkers require a `.a' archive for static linking (except MSVC,
293 # which needs '.lib').
294 libext=a
295
296 with_gnu_ld="$lt_cv_prog_gnu_ld"
297
298 old_CC="$CC"
299 old_CFLAGS="$CFLAGS"
300
301 # Set sane defaults for various variables
302 test -z "$CC" && CC=cc
303 test -z "$LTCC" && LTCC=$CC
304 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
305 test -z "$LD" && LD=ld
306 test -z "$ac_objext" && ac_objext=o
307
308 _LT_CC_BASENAME([$compiler])
309
310 # Only perform the check for file, if the check method requires it
311 test -z "$MAGIC_CMD" && MAGIC_CMD=file
312 case $deplibs_check_method in
313 file_magic*)
314 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
315 _LT_PATH_MAGIC
316 fi
317 ;;
318 esac
319
320 # Use C for the default configuration in the libtool script
321 LT_SUPPORTED_TAG([CC])
322 _LT_LANG_C_CONFIG
323 _LT_LANG_DEFAULT_CONFIG
324 _LT_CONFIG_COMMANDS
325 ])# _LT_SETUP
326
327
328 # _LT_PREPARE_SED_QUOTE_VARS
329 # --------------------------
330 # Define a few sed substitution that help us do robust quoting.
331 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
332 [# Backslashify metacharacters that are still active within
333 # double-quoted strings.
334 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
335
336 # Same as above, but do not quote variable references.
337 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
338
339 # Sed substitution to delay expansion of an escaped shell variable in a
340 # double_quote_subst'ed string.
341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
342
343 # Sed substitution to delay expansion of an escaped single quote.
344 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
345
346 # Sed substitution to avoid accidental globbing in evaled expressions
347 no_glob_subst='s/\*/\\\*/g'
348 ])
349
350 # _LT_PROG_LTMAIN
351 # ---------------
352 # Note that this code is called both from `configure', and `config.status'
353 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
354 # `config.status' has no value for ac_aux_dir unless we are using Automake,
355 # so we pass a copy along to make sure it has a sensible value anyway.
356 m4_defun([_LT_PROG_LTMAIN],
357 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
358 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
359 ltmain="$ac_aux_dir/ltmain.sh"
360 ])# _LT_PROG_LTMAIN
361
362
363
364 # So that we can recreate a full libtool script including additional
365 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
366 # in macros and then make a single call at the end using the `libtool'
367 # label.
368
369
370 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
371 # ----------------------------------------
372 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
373 m4_define([_LT_CONFIG_LIBTOOL_INIT],
374 [m4_ifval([$1],
375 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
376 [$1
377 ])])])
378
379 # Initialize.
380 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
381
382
383 # _LT_CONFIG_LIBTOOL([COMMANDS])
384 # ------------------------------
385 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
386 m4_define([_LT_CONFIG_LIBTOOL],
387 [m4_ifval([$1],
388 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
389 [$1
390 ])])])
391
392 # Initialize.
393 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
394
395
396 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
397 # -----------------------------------------------------
398 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
399 [_LT_CONFIG_LIBTOOL([$1])
400 _LT_CONFIG_LIBTOOL_INIT([$2])
401 ])
402
403
404 # _LT_FORMAT_COMMENT([COMMENT])
405 # -----------------------------
406 # Add leading comment marks to the start of each line, and a trailing
407 # full-stop to the whole comment if one is not present already.
408 m4_define([_LT_FORMAT_COMMENT],
409 [m4_ifval([$1], [
410 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
411 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
412 )])
413
414
415
416
417
418 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
419 # -------------------------------------------------------------------
420 # CONFIGNAME is the name given to the value in the libtool script.
421 # VARNAME is the (base) name used in the configure script.
422 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
423 # VARNAME. Any other value will be used directly.
424 m4_define([_LT_DECL],
425 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
426 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
427 [m4_ifval([$1], [$1], [$2])])
428 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
429 m4_ifval([$4],
430 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
431 lt_dict_add_subkey([lt_decl_dict], [$2],
432 [tagged?], [m4_ifval([$5], [yes], [no])])])
433 ])
434
435
436 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
437 # --------------------------------------------------------
438 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
439
440
441 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
442 # ------------------------------------------------
443 m4_define([lt_decl_tag_varnames],
444 [_lt_decl_filter([tagged?], [yes], $@)])
445
446
447 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
448 # ---------------------------------------------------------
449 m4_define([_lt_decl_filter],
450 [m4_case([$#],
451 [0], [m4_fatal([$0: too few arguments: $#])],
452 [1], [m4_fatal([$0: too few arguments: $#: $1])],
453 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
454 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
455 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
456 ])
457
458
459 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
460 # --------------------------------------------------
461 m4_define([lt_decl_quote_varnames],
462 [_lt_decl_filter([value], [1], $@)])
463
464
465 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
466 # ---------------------------------------------------
467 m4_define([lt_decl_dquote_varnames],
468 [_lt_decl_filter([value], [2], $@)])
469
470
471 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
472 # ---------------------------------------------------
473 m4_define([lt_decl_varnames_tagged],
474 [m4_assert([$# <= 2])dnl
475 _$0(m4_quote(m4_default([$1], [[, ]])),
476 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
477 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
478 m4_define([_lt_decl_varnames_tagged],
479 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
480
481
482 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
483 # ------------------------------------------------
484 m4_define([lt_decl_all_varnames],
485 [_$0(m4_quote(m4_default([$1], [[, ]])),
486 m4_if([$2], [],
487 m4_quote(lt_decl_varnames),
488 m4_quote(m4_shift($@))))[]dnl
489 ])
490 m4_define([_lt_decl_all_varnames],
491 [lt_join($@, lt_decl_varnames_tagged([$1],
492 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
493 ])
494
495
496 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
497 # ------------------------------------
498 # Quote a variable value, and forward it to `config.status' so that its
499 # declaration there will have the same value as in `configure'. VARNAME
500 # must have a single quote delimited value for this to work.
501 m4_define([_LT_CONFIG_STATUS_DECLARE],
502 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
503
504
505 # _LT_CONFIG_STATUS_DECLARATIONS
506 # ------------------------------
507 # We delimit libtool config variables with single quotes, so when
508 # we write them to config.status, we have to be sure to quote all
509 # embedded single quotes properly. In configure, this macro expands
510 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
511 #
512 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
513 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
514 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
515 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
516
517
518 # _LT_LIBTOOL_TAGS
519 # ----------------
520 # Output comment and list of tags supported by the script
521 m4_defun([_LT_LIBTOOL_TAGS],
522 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
523 available_tags="_LT_TAGS"dnl
524 ])
525
526
527 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
528 # -----------------------------------
529 # Extract the dictionary values for VARNAME (optionally with TAG) and
530 # expand to a commented shell variable setting:
531 #
532 # # Some comment about what VAR is for.
533 # visible_name=$lt_internal_name
534 m4_define([_LT_LIBTOOL_DECLARE],
535 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
536 [description])))[]dnl
537 m4_pushdef([_libtool_name],
538 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
539 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
540 [0], [_libtool_name=[$]$1],
541 [1], [_libtool_name=$lt_[]$1],
542 [2], [_libtool_name=$lt_[]$1],
543 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
544 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
545 ])
546
547
548 # _LT_LIBTOOL_CONFIG_VARS
549 # -----------------------
550 # Produce commented declarations of non-tagged libtool config variables
551 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
552 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
553 # section) are produced by _LT_LIBTOOL_TAG_VARS.
554 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
555 [m4_foreach([_lt_var],
556 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
557 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
558
559
560 # _LT_LIBTOOL_TAG_VARS(TAG)
561 # -------------------------
562 m4_define([_LT_LIBTOOL_TAG_VARS],
563 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
564 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
565
566
567 # _LT_TAGVAR(VARNAME, [TAGNAME])
568 # ------------------------------
569 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
570
571
572 # _LT_CONFIG_COMMANDS
573 # -------------------
574 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
575 # variables for single and double quote escaping we saved from calls
576 # to _LT_DECL, we can put quote escaped variables declarations
577 # into `config.status', and then the shell code to quote escape them in
578 # for loops in `config.status'. Finally, any additional code accumulated
579 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
580 m4_defun([_LT_CONFIG_COMMANDS],
581 [AC_PROVIDE_IFELSE([LT_OUTPUT],
582 dnl If the libtool generation code has been placed in $CONFIG_LT,
583 dnl instead of duplicating it all over again into config.status,
584 dnl then we will have config.status run $CONFIG_LT later, so it
585 dnl needs to know what name is stored there:
586 [AC_CONFIG_COMMANDS([libtool],
587 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
588 dnl If the libtool generation code is destined for config.status,
589 dnl expand the accumulated commands and init code now:
590 [AC_CONFIG_COMMANDS([libtool],
591 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
592 ])#_LT_CONFIG_COMMANDS
593
594
595 # Initialize.
596 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
597 [
598
599 # The HP-UX ksh and POSIX shell print the target directory to stdout
600 # if CDPATH is set.
601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
602
603 sed_quote_subst='$sed_quote_subst'
604 double_quote_subst='$double_quote_subst'
605 delay_variable_subst='$delay_variable_subst'
606 _LT_CONFIG_STATUS_DECLARATIONS
607 LTCC='$LTCC'
608 LTCFLAGS='$LTCFLAGS'
609 compiler='$compiler_DEFAULT'
610
611 # A function that is used when there is no print builtin or printf.
612 func_fallback_echo ()
613 {
614 eval 'cat <<_LTECHO_EOF
615 \$[]1
616 _LTECHO_EOF'
617 }
618
619 # Quote evaled strings.
620 for var in lt_decl_all_varnames([[ \
621 ]], lt_decl_quote_varnames); do
622 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
623 *[[\\\\\\\`\\"\\\$]]*)
624 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
625 ;;
626 *)
627 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
628 ;;
629 esac
630 done
631
632 # Double-quote double-evaled strings.
633 for var in lt_decl_all_varnames([[ \
634 ]], lt_decl_dquote_varnames); do
635 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
636 *[[\\\\\\\`\\"\\\$]]*)
637 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
638 ;;
639 *)
640 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
641 ;;
642 esac
643 done
644
645 _LT_OUTPUT_LIBTOOL_INIT
646 ])
647
648 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
649 # ------------------------------------
650 # Generate a child script FILE with all initialization necessary to
651 # reuse the environment learned by the parent script, and make the
652 # file executable. If COMMENT is supplied, it is inserted after the
653 # `#!' sequence but before initialization text begins. After this
654 # macro, additional text can be appended to FILE to form the body of
655 # the child script. The macro ends with non-zero status if the
656 # file could not be fully written (such as if the disk is full).
657 m4_ifdef([AS_INIT_GENERATED],
658 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
659 [m4_defun([_LT_GENERATED_FILE_INIT],
660 [m4_require([AS_PREPARE])]dnl
661 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
662 [lt_write_fail=0
663 cat >$1 <<_ASEOF || lt_write_fail=1
664 #! $SHELL
665 # Generated by $as_me.
666 $2
667 SHELL=\${CONFIG_SHELL-$SHELL}
668 export SHELL
669 _ASEOF
670 cat >>$1 <<\_ASEOF || lt_write_fail=1
671 AS_SHELL_SANITIZE
672 _AS_PREPARE
673 exec AS_MESSAGE_FD>&1
674 _ASEOF
675 test $lt_write_fail = 0 && chmod +x $1[]dnl
676 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
677
678 # LT_OUTPUT
679 # ---------
680 # This macro allows early generation of the libtool script (before
681 # AC_OUTPUT is called), incase it is used in configure for compilation
682 # tests.
683 AC_DEFUN([LT_OUTPUT],
684 [: ${CONFIG_LT=./config.lt}
685 AC_MSG_NOTICE([creating $CONFIG_LT])
686 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
687 [# Run this file to recreate a libtool stub with the current configuration.])
688
689 cat >>"$CONFIG_LT" <<\_LTEOF
690 lt_cl_silent=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 {
693 echo
694 AS_BOX([Running $as_me.])
695 } >&AS_MESSAGE_LOG_FD
696
697 lt_cl_help="\
698 \`$as_me' creates a local libtool stub from the current configuration,
699 for use in further configure time tests before the real libtool is
700 generated.
701
702 Usage: $[0] [[OPTIONS]]
703
704 -h, --help print this help, then exit
705 -V, --version print version number, then exit
706 -q, --quiet do not print progress messages
707 -d, --debug don't remove temporary files
708
709 Report bugs to <bug-libtool@gnu.org>."
710
711 lt_cl_version="\
712 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
713 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
714 configured by $[0], generated by m4_PACKAGE_STRING.
715
716 Copyright (C) 2010 Free Software Foundation, Inc.
717 This config.lt script is free software; the Free Software Foundation
718 gives unlimited permision to copy, distribute and modify it."
719
720 while test $[#] != 0
721 do
722 case $[1] in
723 --version | --v* | -V )
724 echo "$lt_cl_version"; exit 0 ;;
725 --help | --h* | -h )
726 echo "$lt_cl_help"; exit 0 ;;
727 --debug | --d* | -d )
728 debug=: ;;
729 --quiet | --q* | --silent | --s* | -q )
730 lt_cl_silent=: ;;
731
732 -*) AC_MSG_ERROR([unrecognized option: $[1]
733 Try \`$[0] --help' for more information.]) ;;
734
735 *) AC_MSG_ERROR([unrecognized argument: $[1]
736 Try \`$[0] --help' for more information.]) ;;
737 esac
738 shift
739 done
740
741 if $lt_cl_silent; then
742 exec AS_MESSAGE_FD>/dev/null
743 fi
744 _LTEOF
745
746 cat >>"$CONFIG_LT" <<_LTEOF
747 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
748 _LTEOF
749
750 cat >>"$CONFIG_LT" <<\_LTEOF
751 AC_MSG_NOTICE([creating $ofile])
752 _LT_OUTPUT_LIBTOOL_COMMANDS
753 AS_EXIT(0)
754 _LTEOF
755 chmod +x "$CONFIG_LT"
756
757 # configure is writing to config.log, but config.lt does its own redirection,
758 # appending to config.log, which fails on DOS, as config.log is still kept
759 # open by configure. Here we exec the FD to /dev/null, effectively closing
760 # config.log, so it can be properly (re)opened and appended to by config.lt.
761 lt_cl_success=:
762 test "$silent" = yes &&
763 lt_config_lt_args="$lt_config_lt_args --quiet"
764 exec AS_MESSAGE_LOG_FD>/dev/null
765 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
766 exec AS_MESSAGE_LOG_FD>>config.log
767 $lt_cl_success || AS_EXIT(1)
768 ])# LT_OUTPUT
769
770
771 # _LT_CONFIG(TAG)
772 # ---------------
773 # If TAG is the built-in tag, create an initial libtool script with a
774 # default configuration from the untagged config vars. Otherwise add code
775 # to config.status for appending the configuration named by TAG from the
776 # matching tagged config vars.
777 m4_defun([_LT_CONFIG],
778 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
779 _LT_CONFIG_SAVE_COMMANDS([
780 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
781 m4_if(_LT_TAG, [C], [
782 # See if we are running on zsh, and set the options which allow our
783 # commands through without removal of \ escapes.
784 if test -n "${ZSH_VERSION+set}" ; then
785 setopt NO_GLOB_SUBST
786 fi
787
788 cfgfile="${ofile}T"
789 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
790 $RM "$cfgfile"
791
792 cat <<_LT_EOF >> "$cfgfile"
793 #! $SHELL
794
795 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
796 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
798 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
799 #
800 _LT_COPYING
801 _LT_LIBTOOL_TAGS
802
803 # ### BEGIN LIBTOOL CONFIG
804 _LT_LIBTOOL_CONFIG_VARS
805 _LT_LIBTOOL_TAG_VARS
806 # ### END LIBTOOL CONFIG
807
808 _LT_EOF
809
810 case $host_os in
811 aix3*)
812 cat <<\_LT_EOF >> "$cfgfile"
813 # AIX sometimes has problems with the GCC collect2 program. For some
814 # reason, if we set the COLLECT_NAMES environment variable, the problems
815 # vanish in a puff of smoke.
816 if test "X${COLLECT_NAMES+set}" != Xset; then
817 COLLECT_NAMES=
818 export COLLECT_NAMES
819 fi
820 _LT_EOF
821 ;;
822 esac
823
824 _LT_PROG_LTMAIN
825
826 # We use sed instead of cat because bash on DJGPP gets confused if
827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
828 # text mode, it properly converts lines to CR/LF. This bash problem
829 # is reportedly fixed, but why not run on old versions too?
830 sed '$q' "$ltmain" >> "$cfgfile" \
831 || (rm -f "$cfgfile"; exit 1)
832
833 _LT_PROG_REPLACE_SHELLFNS
834
835 mv -f "$cfgfile" "$ofile" ||
836 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
837 chmod +x "$ofile"
838 ],
839 [cat <<_LT_EOF >> "$ofile"
840
841 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
842 dnl in a comment (ie after a #).
843 # ### BEGIN LIBTOOL TAG CONFIG: $1
844 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
845 # ### END LIBTOOL TAG CONFIG: $1
846 _LT_EOF
847 ])dnl /m4_if
848 ],
849 [m4_if([$1], [], [
850 PACKAGE='$PACKAGE'
851 VERSION='$VERSION'
852 TIMESTAMP='$TIMESTAMP'
853 RM='$RM'
854 ofile='$ofile'], [])
855 ])dnl /_LT_CONFIG_SAVE_COMMANDS
856 ])# _LT_CONFIG
857
858
859 # LT_SUPPORTED_TAG(TAG)
860 # ---------------------
861 # Trace this macro to discover what tags are supported by the libtool
862 # --tag option, using:
863 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
864 AC_DEFUN([LT_SUPPORTED_TAG], [])
865
866
867 # C support is built-in for now
868 m4_define([_LT_LANG_C_enabled], [])
869 m4_define([_LT_TAGS], [])
870
871
872 # LT_LANG(LANG)
873 # -------------
874 # Enable libtool support for the given language if not already enabled.
875 AC_DEFUN([LT_LANG],
876 [AC_BEFORE([$0], [LT_OUTPUT])dnl
877 m4_case([$1],
878 [C], [_LT_LANG(C)],
879 [C++], [_LT_LANG(CXX)],
880 [Java], [_LT_LANG(GCJ)],
881 [Fortran 77], [_LT_LANG(F77)],
882 [Fortran], [_LT_LANG(FC)],
883 [Windows Resource], [_LT_LANG(RC)],
884 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
885 [_LT_LANG($1)],
886 [m4_fatal([$0: unsupported language: "$1"])])])dnl
887 ])# LT_LANG
888
889
890 # _LT_LANG(LANGNAME)
891 # ------------------
892 m4_defun([_LT_LANG],
893 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
894 [LT_SUPPORTED_TAG([$1])dnl
895 m4_append([_LT_TAGS], [$1 ])dnl
896 m4_define([_LT_LANG_]$1[_enabled], [])dnl
897 _LT_LANG_$1_CONFIG($1)])dnl
898 ])# _LT_LANG
899
900
901 # _LT_LANG_DEFAULT_CONFIG
902 # -----------------------
903 m4_defun([_LT_LANG_DEFAULT_CONFIG],
904 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
905 [LT_LANG(CXX)],
906 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
907
908 AC_PROVIDE_IFELSE([AC_PROG_F77],
909 [LT_LANG(F77)],
910 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
911
912 AC_PROVIDE_IFELSE([AC_PROG_FC],
913 [LT_LANG(FC)],
914 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
915
916 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
917 dnl pulling things in needlessly.
918 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
919 [LT_LANG(GCJ)],
920 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
921 [LT_LANG(GCJ)],
922 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
923 [LT_LANG(GCJ)],
924 [m4_ifdef([AC_PROG_GCJ],
925 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
926 m4_ifdef([A][M_PROG_GCJ],
927 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
928 m4_ifdef([LT_PROG_GCJ],
929 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
930
931 AC_PROVIDE_IFELSE([LT_PROG_RC],
932 [LT_LANG(RC)],
933 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
934 ])# _LT_LANG_DEFAULT_CONFIG
935
936 # Obsolete macros:
937 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
938 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
939 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
940 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
941 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
942 dnl aclocal-1.4 backwards compatibility:
943 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
944 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
945 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
946 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
947 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
948
949
950 # _LT_TAG_COMPILER
951 # ----------------
952 m4_defun([_LT_TAG_COMPILER],
953 [AC_REQUIRE([AC_PROG_CC])dnl
954
955 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
956 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
957 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
958 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
959
960 # If no C compiler was specified, use CC.
961 LTCC=${LTCC-"$CC"}
962
963 # If no C compiler flags were specified, use CFLAGS.
964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
965
966 # Allow CC to be a program name with arguments.
967 compiler=$CC
968 ])# _LT_TAG_COMPILER
969
970
971 # _LT_COMPILER_BOILERPLATE
972 # ------------------------
973 # Check for compiler boilerplate output or warnings with
974 # the simple compiler test code.
975 m4_defun([_LT_COMPILER_BOILERPLATE],
976 [m4_require([_LT_DECL_SED])dnl
977 ac_outfile=conftest.$ac_objext
978 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
979 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
980 _lt_compiler_boilerplate=`cat conftest.err`
981 $RM conftest*
982 ])# _LT_COMPILER_BOILERPLATE
983
984
985 # _LT_LINKER_BOILERPLATE
986 # ----------------------
987 # Check for linker boilerplate output or warnings with
988 # the simple link test code.
989 m4_defun([_LT_LINKER_BOILERPLATE],
990 [m4_require([_LT_DECL_SED])dnl
991 ac_outfile=conftest.$ac_objext
992 echo "$lt_simple_link_test_code" >conftest.$ac_ext
993 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
994 _lt_linker_boilerplate=`cat conftest.err`
995 $RM -r conftest*
996 ])# _LT_LINKER_BOILERPLATE
997
998 # _LT_REQUIRED_DARWIN_CHECKS
999 # -------------------------
1000 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1001 case $host_os in
1002 rhapsody* | darwin*)
1003 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1004 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1005 AC_CHECK_TOOL([LIPO], [lipo], [:])
1006 AC_CHECK_TOOL([OTOOL], [otool], [:])
1007 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1008 _LT_DECL([], [DSYMUTIL], [1],
1009 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1010 _LT_DECL([], [NMEDIT], [1],
1011 [Tool to change global to local symbols on Mac OS X])
1012 _LT_DECL([], [LIPO], [1],
1013 [Tool to manipulate fat objects and archives on Mac OS X])
1014 _LT_DECL([], [OTOOL], [1],
1015 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1016 _LT_DECL([], [OTOOL64], [1],
1017 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1018
1019 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1020 [lt_cv_apple_cc_single_mod=no
1021 if test -z "${LT_MULTI_MODULE}"; then
1022 # By default we will add the -single_module flag. You can override
1023 # by either setting the environment variable LT_MULTI_MODULE
1024 # non-empty at configure time, or by adding -multi_module to the
1025 # link flags.
1026 rm -rf libconftest.dylib*
1027 echo "int foo(void){return 1;}" > conftest.c
1028 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1029 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1031 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1032 _lt_result=$?
1033 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1034 lt_cv_apple_cc_single_mod=yes
1035 else
1036 cat conftest.err >&AS_MESSAGE_LOG_FD
1037 fi
1038 rm -rf libconftest.dylib*
1039 rm -f conftest.*
1040 fi])
1041 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1042 [lt_cv_ld_exported_symbols_list],
1043 [lt_cv_ld_exported_symbols_list=no
1044 save_LDFLAGS=$LDFLAGS
1045 echo "_main" > conftest.sym
1046 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1047 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1048 [lt_cv_ld_exported_symbols_list=yes],
1049 [lt_cv_ld_exported_symbols_list=no])
1050 LDFLAGS="$save_LDFLAGS"
1051 ])
1052 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1053 [lt_cv_ld_force_load=no
1054 cat > conftest.c << _LT_EOF
1055 int forced_loaded() { return 2;}
1056 _LT_EOF
1057 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1058 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1059 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1060 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1061 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1062 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1063 cat > conftest.c << _LT_EOF
1064 int main() { return 0;}
1065 _LT_EOF
1066 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1067 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1068 _lt_result=$?
1069 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1070 lt_cv_ld_force_load=yes
1071 else
1072 cat conftest.err >&AS_MESSAGE_LOG_FD
1073 fi
1074 rm -f conftest.err libconftest.a conftest conftest.c
1075 rm -rf conftest.dSYM
1076 ])
1077 case $host_os in
1078 rhapsody* | darwin1.[[012]])
1079 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1080 darwin1.*)
1081 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1082 darwin*) # darwin 5.x on
1083 # if running on 10.5 or later, the deployment target defaults
1084 # to the OS version, if on x86, and 10.4, the deployment
1085 # target defaults to 10.4. Don't you love it?
1086 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1087 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1088 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1089 10.[[012]]*)
1090 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1091 10.*)
1092 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1093 esac
1094 ;;
1095 esac
1096 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1097 _lt_dar_single_mod='$single_module'
1098 fi
1099 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1100 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1101 else
1102 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1103 fi
1104 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1105 _lt_dsymutil='~$DSYMUTIL $lib || :'
1106 else
1107 _lt_dsymutil=
1108 fi
1109 ;;
1110 esac
1111 ])
1112
1113
1114 # _LT_DARWIN_LINKER_FEATURES
1115 # --------------------------
1116 # Checks for linker and compiler features on darwin
1117 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1118 [
1119 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1120 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1121 _LT_TAGVAR(hardcode_direct, $1)=no
1122 _LT_TAGVAR(hardcode_automatic, $1)=yes
1123 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1124 if test "$lt_cv_ld_force_load" = "yes"; then
1125 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1126 else
1127 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1128 fi
1129 _LT_TAGVAR(link_all_deplibs, $1)=yes
1130 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1131 case $cc_basename in
1132 ifort*) _lt_dar_can_shared=yes ;;
1133 *) _lt_dar_can_shared=$GCC ;;
1134 esac
1135 if test "$_lt_dar_can_shared" = "yes"; then
1136 output_verbose_link_cmd=func_echo_all
1137 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1138 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1139 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1140 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1141 m4_if([$1], [CXX],
1142 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1143 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1144 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1145 fi
1146 ],[])
1147 else
1148 _LT_TAGVAR(ld_shlibs, $1)=no
1149 fi
1150 ])
1151
1152 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1153 # ----------------------------------
1154 # Links a minimal program and checks the executable
1155 # for the system default hardcoded library path. In most cases,
1156 # this is /usr/lib:/lib, but when the MPI compilers are used
1157 # the location of the communication and MPI libs are included too.
1158 # If we don't find anything, use the default library path according
1159 # to the aix ld manual.
1160 # Store the results from the different compilers for each TAGNAME.
1161 # Allow to override them for all tags through lt_cv_aix_libpath.
1162 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1163 [m4_require([_LT_DECL_SED])dnl
1164 if test "${lt_cv_aix_libpath+set}" = set; then
1165 aix_libpath=$lt_cv_aix_libpath
1166 else
1167 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1168 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1169 lt_aix_libpath_sed='[
1170 /Import File Strings/,/^$/ {
1171 /^0/ {
1172 s/^0 *\([^ ]*\) *$/\1/
1173 p
1174 }
1175 }]'
1176 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1177 # Check for a 64-bit object if we didn't find anything.
1178 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1179 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1180 fi],[])
1181 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1182 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1183 fi
1184 ])
1185 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1186 fi
1187 ])# _LT_SYS_MODULE_PATH_AIX
1188
1189
1190 # _LT_SHELL_INIT(ARG)
1191 # -------------------
1192 m4_define([_LT_SHELL_INIT],
1193 [m4_divert_text([M4SH-INIT], [$1
1194 ])])# _LT_SHELL_INIT
1195
1196
1197
1198 # _LT_PROG_ECHO_BACKSLASH
1199 # -----------------------
1200 # Find how we can fake an echo command that does not interpret backslash.
1201 # In particular, with Autoconf 2.60 or later we add some code to the start
1202 # of the generated configure script which will find a shell with a builtin
1203 # printf (which we can use as an echo command).
1204 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1205 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1206 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1207 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1208
1209 AC_MSG_CHECKING([how to print strings])
1210 # Test print first, because it will be a builtin if present.
1211 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1212 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1213 ECHO='print -r --'
1214 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1215 ECHO='printf %s\n'
1216 else
1217 # Use this function as a fallback that always works.
1218 func_fallback_echo ()
1219 {
1220 eval 'cat <<_LTECHO_EOF
1221 $[]1
1222 _LTECHO_EOF'
1223 }
1224 ECHO='func_fallback_echo'
1225 fi
1226
1227 # func_echo_all arg...
1228 # Invoke $ECHO with all args, space-separated.
1229 func_echo_all ()
1230 {
1231 $ECHO "$*"
1232 }
1233
1234 case "$ECHO" in
1235 printf*) AC_MSG_RESULT([printf]) ;;
1236 print*) AC_MSG_RESULT([print -r]) ;;
1237 *) AC_MSG_RESULT([cat]) ;;
1238 esac
1239
1240 m4_ifdef([_AS_DETECT_SUGGESTED],
1241 [_AS_DETECT_SUGGESTED([
1242 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1243 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1244 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1245 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1246 PATH=/empty FPATH=/empty; export PATH FPATH
1247 test "X`printf %s $ECHO`" = "X$ECHO" \
1248 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1249
1250 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1251 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1252 ])# _LT_PROG_ECHO_BACKSLASH
1253
1254
1255 # _LT_WITH_SYSROOT
1256 # ----------------
1257 AC_DEFUN([_LT_WITH_SYSROOT],
1258 [AC_MSG_CHECKING([for sysroot])
1259 AC_ARG_WITH([sysroot],
1260 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1261 (or the compiler's sysroot if not specified).],
1262 [], [with_sysroot=no])
1263
1264 dnl lt_sysroot will always be passed unquoted. We quote it here
1265 dnl in case the user passed a directory name.
1266 lt_sysroot=
1267 case ${with_sysroot} in #(
1268 yes)
1269 if test "$GCC" = yes; then
1270 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1271 fi
1272 ;; #(
1273 /*)
1274 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1275 ;; #(
1276 no|'')
1277 ;; #(
1278 *)
1279 AC_MSG_RESULT([${with_sysroot}])
1280 AC_MSG_ERROR([The sysroot must be an absolute path.])
1281 ;;
1282 esac
1283
1284 AC_MSG_RESULT([${lt_sysroot:-no}])
1285 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1286 [dependent libraries, and in which our libraries should be installed.])])
1287
1288 # _LT_ENABLE_LOCK
1289 # ---------------
1290 m4_defun([_LT_ENABLE_LOCK],
1291 [AC_ARG_ENABLE([libtool-lock],
1292 [AS_HELP_STRING([--disable-libtool-lock],
1293 [avoid locking (might break parallel builds)])])
1294 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1295
1296 # Some flags need to be propagated to the compiler or linker for good
1297 # libtool support.
1298 case $host in
1299 ia64-*-hpux*)
1300 # Find out which ABI we are using.
1301 echo 'int i;' > conftest.$ac_ext
1302 if AC_TRY_EVAL(ac_compile); then
1303 case `/usr/bin/file conftest.$ac_objext` in
1304 *ELF-32*)
1305 HPUX_IA64_MODE="32"
1306 ;;
1307 *ELF-64*)
1308 HPUX_IA64_MODE="64"
1309 ;;
1310 esac
1311 fi
1312 rm -rf conftest*
1313 ;;
1314 *-*-irix6*)
1315 # Find out which ABI we are using.
1316 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1317 if AC_TRY_EVAL(ac_compile); then
1318 if test "$lt_cv_prog_gnu_ld" = yes; then
1319 case `/usr/bin/file conftest.$ac_objext` in
1320 *32-bit*)
1321 LD="${LD-ld} -melf32bsmip"
1322 ;;
1323 *N32*)
1324 LD="${LD-ld} -melf32bmipn32"
1325 ;;
1326 *64-bit*)
1327 LD="${LD-ld} -melf64bmip"
1328 ;;
1329 esac
1330 else
1331 case `/usr/bin/file conftest.$ac_objext` in
1332 *32-bit*)
1333 LD="${LD-ld} -32"
1334 ;;
1335 *N32*)
1336 LD="${LD-ld} -n32"
1337 ;;
1338 *64-bit*)
1339 LD="${LD-ld} -64"
1340 ;;
1341 esac
1342 fi
1343 fi
1344 rm -rf conftest*
1345 ;;
1346
1347 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1348 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1349 # Find out which ABI we are using.
1350 echo 'int i;' > conftest.$ac_ext
1351 if AC_TRY_EVAL(ac_compile); then
1352 case `/usr/bin/file conftest.o` in
1353 *32-bit*)
1354 case $host in
1355 x86_64-*kfreebsd*-gnu)
1356 LD="${LD-ld} -m elf_i386_fbsd"
1357 ;;
1358 x86_64-*linux*)
1359 LD="${LD-ld} -m elf_i386"
1360 ;;
1361 ppc64-*linux*|powerpc64-*linux*)
1362 LD="${LD-ld} -m elf32ppclinux"
1363 ;;
1364 s390x-*linux*)
1365 LD="${LD-ld} -m elf_s390"
1366 ;;
1367 sparc64-*linux*)
1368 LD="${LD-ld} -m elf32_sparc"
1369 ;;
1370 esac
1371 ;;
1372 *64-bit*)
1373 case $host in
1374 x86_64-*kfreebsd*-gnu)
1375 LD="${LD-ld} -m elf_x86_64_fbsd"
1376 ;;
1377 x86_64-*linux*)
1378 LD="${LD-ld} -m elf_x86_64"
1379 ;;
1380 ppc*-*linux*|powerpc*-*linux*)
1381 LD="${LD-ld} -m elf64ppc"
1382 ;;
1383 s390*-*linux*|s390*-*tpf*)
1384 LD="${LD-ld} -m elf64_s390"
1385 ;;
1386 sparc*-*linux*)
1387 LD="${LD-ld} -m elf64_sparc"
1388 ;;
1389 esac
1390 ;;
1391 esac
1392 fi
1393 rm -rf conftest*
1394 ;;
1395
1396 *-*-sco3.2v5*)
1397 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1398 SAVE_CFLAGS="$CFLAGS"
1399 CFLAGS="$CFLAGS -belf"
1400 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1401 [AC_LANG_PUSH(C)
1402 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1403 AC_LANG_POP])
1404 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1405 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1406 CFLAGS="$SAVE_CFLAGS"
1407 fi
1408 ;;
1409 sparc*-*solaris*)
1410 # Find out which ABI we are using.
1411 echo 'int i;' > conftest.$ac_ext
1412 if AC_TRY_EVAL(ac_compile); then
1413 case `/usr/bin/file conftest.o` in
1414 *64-bit*)
1415 case $lt_cv_prog_gnu_ld in
1416 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1417 *)
1418 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1419 LD="${LD-ld} -64"
1420 fi
1421 ;;
1422 esac
1423 ;;
1424 esac
1425 fi
1426 rm -rf conftest*
1427 ;;
1428 esac
1429
1430 need_locks="$enable_libtool_lock"
1431 ])# _LT_ENABLE_LOCK
1432
1433
1434 # _LT_PROG_AR
1435 # -----------
1436 m4_defun([_LT_PROG_AR],
1437 [AC_CHECK_TOOLS(AR, [ar], false)
1438 : ${AR=ar}
1439 : ${AR_FLAGS=cru}
1440 _LT_DECL([], [AR], [1], [The archiver])
1441 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1442
1443 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1444 [lt_cv_ar_at_file=no
1445 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1446 [echo conftest.$ac_objext > conftest.lst
1447 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1448 AC_TRY_EVAL([lt_ar_try])
1449 if test "$ac_status" -eq 0; then
1450 # Ensure the archiver fails upon bogus file names.
1451 rm -f conftest.$ac_objext libconftest.a
1452 AC_TRY_EVAL([lt_ar_try])
1453 if test "$ac_status" -ne 0; then
1454 lt_cv_ar_at_file=@
1455 fi
1456 fi
1457 rm -f conftest.* libconftest.a
1458 ])
1459 ])
1460
1461 if test "x$lt_cv_ar_at_file" = xno; then
1462 archiver_list_spec=
1463 else
1464 archiver_list_spec=$lt_cv_ar_at_file
1465 fi
1466 _LT_DECL([], [archiver_list_spec], [1],
1467 [How to feed a file listing to the archiver])
1468 ])# _LT_PROG_AR
1469
1470
1471 # _LT_CMD_OLD_ARCHIVE
1472 # -------------------
1473 m4_defun([_LT_CMD_OLD_ARCHIVE],
1474 [_LT_PROG_AR
1475
1476 AC_CHECK_TOOL(STRIP, strip, :)
1477 test -z "$STRIP" && STRIP=:
1478 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1479
1480 AC_CHECK_TOOL(RANLIB, ranlib, :)
1481 test -z "$RANLIB" && RANLIB=:
1482 _LT_DECL([], [RANLIB], [1],
1483 [Commands used to install an old-style archive])
1484
1485 # Determine commands to create old-style static archives.
1486 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1487 old_postinstall_cmds='chmod 644 $oldlib'
1488 old_postuninstall_cmds=
1489
1490 if test -n "$RANLIB"; then
1491 case $host_os in
1492 openbsd*)
1493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1494 ;;
1495 *)
1496 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1497 ;;
1498 esac
1499 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1500 fi
1501
1502 case $host_os in
1503 darwin*)
1504 lock_old_archive_extraction=yes ;;
1505 *)
1506 lock_old_archive_extraction=no ;;
1507 esac
1508 _LT_DECL([], [old_postinstall_cmds], [2])
1509 _LT_DECL([], [old_postuninstall_cmds], [2])
1510 _LT_TAGDECL([], [old_archive_cmds], [2],
1511 [Commands used to build an old-style archive])
1512 _LT_DECL([], [lock_old_archive_extraction], [0],
1513 [Whether to use a lock for old archive extraction])
1514 ])# _LT_CMD_OLD_ARCHIVE
1515
1516
1517 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1518 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1519 # ----------------------------------------------------------------
1520 # Check whether the given compiler option works
1521 AC_DEFUN([_LT_COMPILER_OPTION],
1522 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1523 m4_require([_LT_DECL_SED])dnl
1524 AC_CACHE_CHECK([$1], [$2],
1525 [$2=no
1526 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1528 lt_compiler_flag="$3"
1529 # Insert the option either (1) after the last *FLAGS variable, or
1530 # (2) before a word containing "conftest.", or (3) at the end.
1531 # Note that $ac_compile itself does not contain backslashes and begins
1532 # with a dollar sign (not a hyphen), so the echo should work correctly.
1533 # The option is referenced via a variable to avoid confusing sed.
1534 lt_compile=`echo "$ac_compile" | $SED \
1535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1536 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1537 -e 's:$: $lt_compiler_flag:'`
1538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1539 (eval "$lt_compile" 2>conftest.err)
1540 ac_status=$?
1541 cat conftest.err >&AS_MESSAGE_LOG_FD
1542 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1543 if (exit $ac_status) && test -s "$ac_outfile"; then
1544 # The compiler can only warn and ignore the option if not recognized
1545 # So say no if there are warnings other than the usual output.
1546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1548 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1549 $2=yes
1550 fi
1551 fi
1552 $RM conftest*
1553 ])
1554
1555 if test x"[$]$2" = xyes; then
1556 m4_if([$5], , :, [$5])
1557 else
1558 m4_if([$6], , :, [$6])
1559 fi
1560 ])# _LT_COMPILER_OPTION
1561
1562 # Old name:
1563 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1564 dnl aclocal-1.4 backwards compatibility:
1565 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1566
1567
1568 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1569 # [ACTION-SUCCESS], [ACTION-FAILURE])
1570 # ----------------------------------------------------
1571 # Check whether the given linker option works
1572 AC_DEFUN([_LT_LINKER_OPTION],
1573 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1574 m4_require([_LT_DECL_SED])dnl
1575 AC_CACHE_CHECK([$1], [$2],
1576 [$2=no
1577 save_LDFLAGS="$LDFLAGS"
1578 LDFLAGS="$LDFLAGS $3"
1579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1581 # The linker can only warn and ignore the option if not recognized
1582 # So say no if there are warnings
1583 if test -s conftest.err; then
1584 # Append any errors to the config.log.
1585 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1586 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1588 if diff conftest.exp conftest.er2 >/dev/null; then
1589 $2=yes
1590 fi
1591 else
1592 $2=yes
1593 fi
1594 fi
1595 $RM -r conftest*
1596 LDFLAGS="$save_LDFLAGS"
1597 ])
1598
1599 if test x"[$]$2" = xyes; then
1600 m4_if([$4], , :, [$4])
1601 else
1602 m4_if([$5], , :, [$5])
1603 fi
1604 ])# _LT_LINKER_OPTION
1605
1606 # Old name:
1607 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1608 dnl aclocal-1.4 backwards compatibility:
1609 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1610
1611
1612 # LT_CMD_MAX_LEN
1613 #---------------
1614 AC_DEFUN([LT_CMD_MAX_LEN],
1615 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1616 # find the maximum length of command line arguments
1617 AC_MSG_CHECKING([the maximum length of command line arguments])
1618 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1619 i=0
1620 teststring="ABCD"
1621
1622 case $build_os in
1623 msdosdjgpp*)
1624 # On DJGPP, this test can blow up pretty badly due to problems in libc
1625 # (any single argument exceeding 2000 bytes causes a buffer overrun
1626 # during glob expansion). Even if it were fixed, the result of this
1627 # check would be larger than it should be.
1628 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1629 ;;
1630
1631 gnu*)
1632 # Under GNU Hurd, this test is not required because there is
1633 # no limit to the length of command line arguments.
1634 # Libtool will interpret -1 as no limit whatsoever
1635 lt_cv_sys_max_cmd_len=-1;
1636 ;;
1637
1638 cygwin* | mingw* | cegcc*)
1639 # On Win9x/ME, this test blows up -- it succeeds, but takes
1640 # about 5 minutes as the teststring grows exponentially.
1641 # Worse, since 9x/ME are not pre-emptively multitasking,
1642 # you end up with a "frozen" computer, even though with patience
1643 # the test eventually succeeds (with a max line length of 256k).
1644 # Instead, let's just punt: use the minimum linelength reported by
1645 # all of the supported platforms: 8192 (on NT/2K/XP).
1646 lt_cv_sys_max_cmd_len=8192;
1647 ;;
1648
1649 mint*)
1650 # On MiNT this can take a long time and run out of memory.
1651 lt_cv_sys_max_cmd_len=8192;
1652 ;;
1653
1654 amigaos*)
1655 # On AmigaOS with pdksh, this test takes hours, literally.
1656 # So we just punt and use a minimum line length of 8192.
1657 lt_cv_sys_max_cmd_len=8192;
1658 ;;
1659
1660 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1661 # This has been around since 386BSD, at least. Likely further.
1662 if test -x /sbin/sysctl; then
1663 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1664 elif test -x /usr/sbin/sysctl; then
1665 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1666 else
1667 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1668 fi
1669 # And add a safety zone
1670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1672 ;;
1673
1674 interix*)
1675 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1676 lt_cv_sys_max_cmd_len=196608
1677 ;;
1678
1679 osf*)
1680 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1681 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1682 # nice to cause kernel panics so lets avoid the loop below.
1683 # First set a reasonable default.
1684 lt_cv_sys_max_cmd_len=16384
1685 #
1686 if test -x /sbin/sysconfig; then
1687 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1688 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1689 esac
1690 fi
1691 ;;
1692 sco3.2v5*)
1693 lt_cv_sys_max_cmd_len=102400
1694 ;;
1695 sysv5* | sco5v6* | sysv4.2uw2*)
1696 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1697 if test -n "$kargmax"; then
1698 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1699 else
1700 lt_cv_sys_max_cmd_len=32768
1701 fi
1702 ;;
1703 *)
1704 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1705 if test -n "$lt_cv_sys_max_cmd_len"; then
1706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1707 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1708 else
1709 # Make teststring a little bigger before we do anything with it.
1710 # a 1K string should be a reasonable start.
1711 for i in 1 2 3 4 5 6 7 8 ; do
1712 teststring=$teststring$teststring
1713 done
1714 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1715 # If test is not a shell built-in, we'll probably end up computing a
1716 # maximum length that is only half of the actual maximum length, but
1717 # we can't tell.
1718 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1719 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1720 test $i != 17 # 1/2 MB should be enough
1721 do
1722 i=`expr $i + 1`
1723 teststring=$teststring$teststring
1724 done
1725 # Only check the string length outside the loop.
1726 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1727 teststring=
1728 # Add a significant safety factor because C++ compilers can tack on
1729 # massive amounts of additional arguments before passing them to the
1730 # linker. It appears as though 1/2 is a usable value.
1731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1732 fi
1733 ;;
1734 esac
1735 ])
1736 if test -n $lt_cv_sys_max_cmd_len ; then
1737 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1738 else
1739 AC_MSG_RESULT(none)
1740 fi
1741 max_cmd_len=$lt_cv_sys_max_cmd_len
1742 _LT_DECL([], [max_cmd_len], [0],
1743 [What is the maximum length of a command?])
1744 ])# LT_CMD_MAX_LEN
1745
1746 # Old name:
1747 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1748 dnl aclocal-1.4 backwards compatibility:
1749 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1750
1751
1752 # _LT_HEADER_DLFCN
1753 # ----------------
1754 m4_defun([_LT_HEADER_DLFCN],
1755 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1756 ])# _LT_HEADER_DLFCN
1757
1758
1759 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1760 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1761 # ----------------------------------------------------------------
1762 m4_defun([_LT_TRY_DLOPEN_SELF],
1763 [m4_require([_LT_HEADER_DLFCN])dnl
1764 if test "$cross_compiling" = yes; then :
1765 [$4]
1766 else
1767 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1768 lt_status=$lt_dlunknown
1769 cat > conftest.$ac_ext <<_LT_EOF
1770 [#line $LINENO "configure"
1771 #include "confdefs.h"
1772
1773 #if HAVE_DLFCN_H
1774 #include <dlfcn.h>
1775 #endif
1776
1777 #include <stdio.h>
1778
1779 #ifdef RTLD_GLOBAL
1780 # define LT_DLGLOBAL RTLD_GLOBAL
1781 #else
1782 # ifdef DL_GLOBAL
1783 # define LT_DLGLOBAL DL_GLOBAL
1784 # else
1785 # define LT_DLGLOBAL 0
1786 # endif
1787 #endif
1788
1789 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1790 find out it does not work in some platform. */
1791 #ifndef LT_DLLAZY_OR_NOW
1792 # ifdef RTLD_LAZY
1793 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1794 # else
1795 # ifdef DL_LAZY
1796 # define LT_DLLAZY_OR_NOW DL_LAZY
1797 # else
1798 # ifdef RTLD_NOW
1799 # define LT_DLLAZY_OR_NOW RTLD_NOW
1800 # else
1801 # ifdef DL_NOW
1802 # define LT_DLLAZY_OR_NOW DL_NOW
1803 # else
1804 # define LT_DLLAZY_OR_NOW 0
1805 # endif
1806 # endif
1807 # endif
1808 # endif
1809 #endif
1810
1811 /* When -fvisbility=hidden is used, assume the code has been annotated
1812 correspondingly for the symbols needed. */
1813 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1814 int fnord () __attribute__((visibility("default")));
1815 #endif
1816
1817 int fnord () { return 42; }
1818 int main ()
1819 {
1820 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1821 int status = $lt_dlunknown;
1822
1823 if (self)
1824 {
1825 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1826 else
1827 {
1828 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1829 else puts (dlerror ());
1830 }
1831 /* dlclose (self); */
1832 }
1833 else
1834 puts (dlerror ());
1835
1836 return status;
1837 }]
1838 _LT_EOF
1839 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1840 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1841 lt_status=$?
1842 case x$lt_status in
1843 x$lt_dlno_uscore) $1 ;;
1844 x$lt_dlneed_uscore) $2 ;;
1845 x$lt_dlunknown|x*) $3 ;;
1846 esac
1847 else :
1848 # compilation failed
1849 $3
1850 fi
1851 fi
1852 rm -fr conftest*
1853 ])# _LT_TRY_DLOPEN_SELF
1854
1855
1856 # LT_SYS_DLOPEN_SELF
1857 # ------------------
1858 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1859 [m4_require([_LT_HEADER_DLFCN])dnl
1860 if test "x$enable_dlopen" != xyes; then
1861 enable_dlopen=unknown
1862 enable_dlopen_self=unknown
1863 enable_dlopen_self_static=unknown
1864 else
1865 lt_cv_dlopen=no
1866 lt_cv_dlopen_libs=
1867
1868 case $host_os in
1869 beos*)
1870 lt_cv_dlopen="load_add_on"
1871 lt_cv_dlopen_libs=
1872 lt_cv_dlopen_self=yes
1873 ;;
1874
1875 mingw* | pw32* | cegcc*)
1876 lt_cv_dlopen="LoadLibrary"
1877 lt_cv_dlopen_libs=
1878 ;;
1879
1880 cygwin*)
1881 lt_cv_dlopen="dlopen"
1882 lt_cv_dlopen_libs=
1883 ;;
1884
1885 darwin*)
1886 # if libdl is installed we need to link against it
1887 AC_CHECK_LIB([dl], [dlopen],
1888 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1889 lt_cv_dlopen="dyld"
1890 lt_cv_dlopen_libs=
1891 lt_cv_dlopen_self=yes
1892 ])
1893 ;;
1894
1895 *)
1896 AC_CHECK_FUNC([shl_load],
1897 [lt_cv_dlopen="shl_load"],
1898 [AC_CHECK_LIB([dld], [shl_load],
1899 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1900 [AC_CHECK_FUNC([dlopen],
1901 [lt_cv_dlopen="dlopen"],
1902 [AC_CHECK_LIB([dl], [dlopen],
1903 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1904 [AC_CHECK_LIB([svld], [dlopen],
1905 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1906 [AC_CHECK_LIB([dld], [dld_link],
1907 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1908 ])
1909 ])
1910 ])
1911 ])
1912 ])
1913 ;;
1914 esac
1915
1916 if test "x$lt_cv_dlopen" != xno; then
1917 enable_dlopen=yes
1918 else
1919 enable_dlopen=no
1920 fi
1921
1922 case $lt_cv_dlopen in
1923 dlopen)
1924 save_CPPFLAGS="$CPPFLAGS"
1925 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1926
1927 save_LDFLAGS="$LDFLAGS"
1928 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1929
1930 save_LIBS="$LIBS"
1931 LIBS="$lt_cv_dlopen_libs $LIBS"
1932
1933 AC_CACHE_CHECK([whether a program can dlopen itself],
1934 lt_cv_dlopen_self, [dnl
1935 _LT_TRY_DLOPEN_SELF(
1936 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1937 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1938 ])
1939
1940 if test "x$lt_cv_dlopen_self" = xyes; then
1941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1942 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1943 lt_cv_dlopen_self_static, [dnl
1944 _LT_TRY_DLOPEN_SELF(
1945 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1946 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1947 ])
1948 fi
1949
1950 CPPFLAGS="$save_CPPFLAGS"
1951 LDFLAGS="$save_LDFLAGS"
1952 LIBS="$save_LIBS"
1953 ;;
1954 esac
1955
1956 case $lt_cv_dlopen_self in
1957 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1958 *) enable_dlopen_self=unknown ;;
1959 esac
1960
1961 case $lt_cv_dlopen_self_static in
1962 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1963 *) enable_dlopen_self_static=unknown ;;
1964 esac
1965 fi
1966 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1967 [Whether dlopen is supported])
1968 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1969 [Whether dlopen of programs is supported])
1970 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1971 [Whether dlopen of statically linked programs is supported])
1972 ])# LT_SYS_DLOPEN_SELF
1973
1974 # Old name:
1975 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1976 dnl aclocal-1.4 backwards compatibility:
1977 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1978
1979
1980 # _LT_COMPILER_C_O([TAGNAME])
1981 # ---------------------------
1982 # Check to see if options -c and -o are simultaneously supported by compiler.
1983 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1984 m4_defun([_LT_COMPILER_C_O],
1985 [m4_require([_LT_DECL_SED])dnl
1986 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1987 m4_require([_LT_TAG_COMPILER])dnl
1988 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1989 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1990 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1991 $RM -r conftest 2>/dev/null
1992 mkdir conftest
1993 cd conftest
1994 mkdir out
1995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1996
1997 lt_compiler_flag="-o out/conftest2.$ac_objext"
1998 # Insert the option either (1) after the last *FLAGS variable, or
1999 # (2) before a word containing "conftest.", or (3) at the end.
2000 # Note that $ac_compile itself does not contain backslashes and begins
2001 # with a dollar sign (not a hyphen), so the echo should work correctly.
2002 lt_compile=`echo "$ac_compile" | $SED \
2003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2004 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2005 -e 's:$: $lt_compiler_flag:'`
2006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2007 (eval "$lt_compile" 2>out/conftest.err)
2008 ac_status=$?
2009 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2011 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2012 then
2013 # The compiler can only warn and ignore the option if not recognized
2014 # So say no if there are warnings
2015 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2016 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2017 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2018 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2019 fi
2020 fi
2021 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2022 $RM conftest*
2023 # SGI C++ compiler will create directory out/ii_files/ for
2024 # template instantiation
2025 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2026 $RM out/* && rmdir out
2027 cd ..
2028 $RM -r conftest
2029 $RM conftest*
2030 ])
2031 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2032 [Does compiler simultaneously support -c and -o options?])
2033 ])# _LT_COMPILER_C_O
2034
2035
2036 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2037 # ----------------------------------
2038 # Check to see if we can do hard links to lock some files if needed
2039 m4_defun([_LT_COMPILER_FILE_LOCKS],
2040 [m4_require([_LT_ENABLE_LOCK])dnl
2041 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2042 _LT_COMPILER_C_O([$1])
2043
2044 hard_links="nottested"
2045 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2046 # do not overwrite the value of need_locks provided by the user
2047 AC_MSG_CHECKING([if we can lock with hard links])
2048 hard_links=yes
2049 $RM conftest*
2050 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2051 touch conftest.a
2052 ln conftest.a conftest.b 2>&5 || hard_links=no
2053 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2054 AC_MSG_RESULT([$hard_links])
2055 if test "$hard_links" = no; then
2056 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2057 need_locks=warn
2058 fi
2059 else
2060 need_locks=no
2061 fi
2062 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2063 ])# _LT_COMPILER_FILE_LOCKS
2064
2065
2066 # _LT_CHECK_OBJDIR
2067 # ----------------
2068 m4_defun([_LT_CHECK_OBJDIR],
2069 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2070 [rm -f .libs 2>/dev/null
2071 mkdir .libs 2>/dev/null
2072 if test -d .libs; then
2073 lt_cv_objdir=.libs
2074 else
2075 # MS-DOS does not allow filenames that begin with a dot.
2076 lt_cv_objdir=_libs
2077 fi
2078 rmdir .libs 2>/dev/null])
2079 objdir=$lt_cv_objdir
2080 _LT_DECL([], [objdir], [0],
2081 [The name of the directory that contains temporary libtool files])dnl
2082 m4_pattern_allow([LT_OBJDIR])dnl
2083 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2084 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2085 ])# _LT_CHECK_OBJDIR
2086
2087
2088 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2089 # --------------------------------------
2090 # Check hardcoding attributes.
2091 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2092 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2093 _LT_TAGVAR(hardcode_action, $1)=
2094 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2095 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2096 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2097
2098 # We can hardcode non-existent directories.
2099 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2100 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2101 # have to relink, otherwise we might link with an installed library
2102 # when we should be linking with a yet-to-be-installed one
2103 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2104 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2105 # Linking always hardcodes the temporary library directory.
2106 _LT_TAGVAR(hardcode_action, $1)=relink
2107 else
2108 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2109 _LT_TAGVAR(hardcode_action, $1)=immediate
2110 fi
2111 else
2112 # We cannot hardcode anything, or else we can only hardcode existing
2113 # directories.
2114 _LT_TAGVAR(hardcode_action, $1)=unsupported
2115 fi
2116 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2117
2118 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2119 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2120 # Fast installation is not supported
2121 enable_fast_install=no
2122 elif test "$shlibpath_overrides_runpath" = yes ||
2123 test "$enable_shared" = no; then
2124 # Fast installation is not necessary
2125 enable_fast_install=needless
2126 fi
2127 _LT_TAGDECL([], [hardcode_action], [0],
2128 [How to hardcode a shared library path into an executable])
2129 ])# _LT_LINKER_HARDCODE_LIBPATH
2130
2131
2132 # _LT_CMD_STRIPLIB
2133 # ----------------
2134 m4_defun([_LT_CMD_STRIPLIB],
2135 [m4_require([_LT_DECL_EGREP])
2136 striplib=
2137 old_striplib=
2138 AC_MSG_CHECKING([whether stripping libraries is possible])
2139 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2142 AC_MSG_RESULT([yes])
2143 else
2144 # FIXME - insert some real tests, host_os isn't really good enough
2145 case $host_os in
2146 darwin*)
2147 if test -n "$STRIP" ; then
2148 striplib="$STRIP -x"
2149 old_striplib="$STRIP -S"
2150 AC_MSG_RESULT([yes])
2151 else
2152 AC_MSG_RESULT([no])
2153 fi
2154 ;;
2155 *)
2156 AC_MSG_RESULT([no])
2157 ;;
2158 esac
2159 fi
2160 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2161 _LT_DECL([], [striplib], [1])
2162 ])# _LT_CMD_STRIPLIB
2163
2164
2165 # _LT_SYS_DYNAMIC_LINKER([TAG])
2166 # -----------------------------
2167 # PORTME Fill in your ld.so characteristics
2168 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2169 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2170 m4_require([_LT_DECL_EGREP])dnl
2171 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2172 m4_require([_LT_DECL_OBJDUMP])dnl
2173 m4_require([_LT_DECL_SED])dnl
2174 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2175 AC_MSG_CHECKING([dynamic linker characteristics])
2176 m4_if([$1],
2177 [], [
2178 if test "$GCC" = yes; then
2179 case $host_os in
2180 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2181 *) lt_awk_arg="/^libraries:/" ;;
2182 esac
2183 case $host_os in
2184 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2185 *) lt_sed_strip_eq="s,=/,/,g" ;;
2186 esac
2187 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2188 case $lt_search_path_spec in
2189 *\;*)
2190 # if the path contains ";" then we assume it to be the separator
2191 # otherwise default to the standard path separator (i.e. ":") - it is
2192 # assumed that no part of a normal pathname contains ";" but that should
2193 # okay in the real world where ";" in dirpaths is itself problematic.
2194 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2195 ;;
2196 *)
2197 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2198 ;;
2199 esac
2200 # Ok, now we have the path, separated by spaces, we can step through it
2201 # and add multilib dir if necessary.
2202 lt_tmp_lt_search_path_spec=
2203 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2204 for lt_sys_path in $lt_search_path_spec; do
2205 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2207 else
2208 test -d "$lt_sys_path" && \
2209 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2210 fi
2211 done
2212 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2213 BEGIN {RS=" "; FS="/|\n";} {
2214 lt_foo="";
2215 lt_count=0;
2216 for (lt_i = NF; lt_i > 0; lt_i--) {
2217 if ($lt_i != "" && $lt_i != ".") {
2218 if ($lt_i == "..") {
2219 lt_count++;
2220 } else {
2221 if (lt_count == 0) {
2222 lt_foo="/" $lt_i lt_foo;
2223 } else {
2224 lt_count--;
2225 }
2226 }
2227 }
2228 }
2229 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2230 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2231 }'`
2232 # AWK program above erroneously prepends '/' to C:/dos/paths
2233 # for these hosts.
2234 case $host_os in
2235 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2236 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2237 esac
2238 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2239 else
2240 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2241 fi])
2242 library_names_spec=
2243 libname_spec='lib$name'
2244 soname_spec=
2245 shrext_cmds=".so"
2246 postinstall_cmds=
2247 postuninstall_cmds=
2248 finish_cmds=
2249 finish_eval=
2250 shlibpath_var=
2251 shlibpath_overrides_runpath=unknown
2252 version_type=none
2253 dynamic_linker="$host_os ld.so"
2254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2255 need_lib_prefix=unknown
2256 hardcode_into_libs=no
2257
2258 # when you set need_version to no, make sure it does not cause -set_version
2259 # flags to be left without arguments
2260 need_version=unknown
2261
2262 case $host_os in
2263 aix3*)
2264 version_type=linux
2265 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2266 shlibpath_var=LIBPATH
2267
2268 # AIX 3 has no versioning support, so we append a major version to the name.
2269 soname_spec='${libname}${release}${shared_ext}$major'
2270 ;;
2271
2272 aix[[4-9]]*)
2273 version_type=linux
2274 need_lib_prefix=no
2275 need_version=no
2276 hardcode_into_libs=yes
2277 if test "$host_cpu" = ia64; then
2278 # AIX 5 supports IA64
2279 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2280 shlibpath_var=LD_LIBRARY_PATH
2281 else
2282 # With GCC up to 2.95.x, collect2 would create an import file
2283 # for dependence libraries. The import file would start with
2284 # the line `#! .'. This would cause the generated library to
2285 # depend on `.', always an invalid library. This was fixed in
2286 # development snapshots of GCC prior to 3.0.
2287 case $host_os in
2288 aix4 | aix4.[[01]] | aix4.[[01]].*)
2289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2290 echo ' yes '
2291 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2292 :
2293 else
2294 can_build_shared=no
2295 fi
2296 ;;
2297 esac
2298 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2299 # soname into executable. Probably we can add versioning support to
2300 # collect2, so additional links can be useful in future.
2301 if test "$aix_use_runtimelinking" = yes; then
2302 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2303 # instead of lib<name>.a to let people know that these are not
2304 # typical AIX shared libraries.
2305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2306 else
2307 # We preserve .a as extension for shared libraries through AIX4.2
2308 # and later when we are not doing run time linking.
2309 library_names_spec='${libname}${release}.a $libname.a'
2310 soname_spec='${libname}${release}${shared_ext}$major'
2311 fi
2312 shlibpath_var=LIBPATH
2313 fi
2314 ;;
2315
2316 amigaos*)
2317 case $host_cpu in
2318 powerpc)
2319 # Since July 2007 AmigaOS4 officially supports .so libraries.
2320 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2322 ;;
2323 m68k)
2324 library_names_spec='$libname.ixlibrary $libname.a'
2325 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2326 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2327 ;;
2328 esac
2329 ;;
2330
2331 beos*)
2332 library_names_spec='${libname}${shared_ext}'
2333 dynamic_linker="$host_os ld.so"
2334 shlibpath_var=LIBRARY_PATH
2335 ;;
2336
2337 bsdi[[45]]*)
2338 version_type=linux
2339 need_version=no
2340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2341 soname_spec='${libname}${release}${shared_ext}$major'
2342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2343 shlibpath_var=LD_LIBRARY_PATH
2344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2346 # the default ld.so.conf also contains /usr/contrib/lib and
2347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2348 # libtool to hard-code these into programs
2349 ;;
2350
2351 cygwin* | mingw* | pw32* | cegcc*)
2352 version_type=windows
2353 shrext_cmds=".dll"
2354 need_version=no
2355 need_lib_prefix=no
2356
2357 case $GCC,$cc_basename in
2358 yes,*)
2359 # gcc
2360 library_names_spec='$libname.dll.a'
2361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2362 postinstall_cmds='base_file=`basename \${file}`~
2363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2364 dldir=$destdir/`dirname \$dlpath`~
2365 test -d \$dldir || mkdir -p \$dldir~
2366 $install_prog $dir/$dlname \$dldir/$dlname~
2367 chmod a+x \$dldir/$dlname~
2368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2370 fi'
2371 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2372 dlpath=$dir/\$dldll~
2373 $RM \$dlpath'
2374 shlibpath_overrides_runpath=yes
2375
2376 case $host_os in
2377 cygwin*)
2378 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2379 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2380 m4_if([$1], [],[
2381 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2382 ;;
2383 mingw* | cegcc*)
2384 # MinGW DLLs use traditional 'lib' prefix
2385 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2386 ;;
2387 pw32*)
2388 # pw32 DLLs use 'pw' prefix rather than 'lib'
2389 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2390 ;;
2391 esac
2392 dynamic_linker='Win32 ld.exe'
2393 ;;
2394
2395 *,cl*)
2396 # Native MSVC
2397 libname_spec='$name'
2398 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2399 library_names_spec='${libname}.dll.lib'
2400
2401 case $build_os in
2402 mingw*)
2403 sys_lib_search_path_spec=
2404 lt_save_ifs=$IFS
2405 IFS=';'
2406 for lt_path in $LIB
2407 do
2408 IFS=$lt_save_ifs
2409 # Let DOS variable expansion print the short 8.3 style file name.
2410 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2411 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2412 done
2413 IFS=$lt_save_ifs
2414 # Convert to MSYS style.
2415 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2416 ;;
2417 cygwin*)
2418 # Convert to unix form, then to dos form, then back to unix form
2419 # but this time dos style (no spaces!) so that the unix form looks
2420 # like /cygdrive/c/PROGRA~1:/cygdr...
2421 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2422 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2423 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2424 ;;
2425 *)
2426 sys_lib_search_path_spec="$LIB"
2427 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2428 # It is most probably a Windows format PATH.
2429 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2430 else
2431 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2432 fi
2433 # FIXME: find the short name or the path components, as spaces are
2434 # common. (e.g. "Program Files" -> "PROGRA~1")
2435 ;;
2436 esac
2437
2438 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2439 postinstall_cmds='base_file=`basename \${file}`~
2440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2441 dldir=$destdir/`dirname \$dlpath`~
2442 test -d \$dldir || mkdir -p \$dldir~
2443 $install_prog $dir/$dlname \$dldir/$dlname'
2444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2445 dlpath=$dir/\$dldll~
2446 $RM \$dlpath'
2447 shlibpath_overrides_runpath=yes
2448 dynamic_linker='Win32 link.exe'
2449 ;;
2450
2451 *)
2452 # Assume MSVC wrapper
2453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2454 dynamic_linker='Win32 ld.exe'
2455 ;;
2456 esac
2457 # FIXME: first we should search . and the directory the executable is in
2458 shlibpath_var=PATH
2459 ;;
2460
2461 darwin* | rhapsody*)
2462 dynamic_linker="$host_os dyld"
2463 version_type=darwin
2464 need_lib_prefix=no
2465 need_version=no
2466 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2467 soname_spec='${libname}${release}${major}$shared_ext'
2468 shlibpath_overrides_runpath=yes
2469 shlibpath_var=DYLD_LIBRARY_PATH
2470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2471 m4_if([$1], [],[
2472 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2473 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2474 ;;
2475
2476 dgux*)
2477 version_type=linux
2478 need_lib_prefix=no
2479 need_version=no
2480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2481 soname_spec='${libname}${release}${shared_ext}$major'
2482 shlibpath_var=LD_LIBRARY_PATH
2483 ;;
2484
2485 freebsd1*)
2486 dynamic_linker=no
2487 ;;
2488
2489 freebsd* | dragonfly*)
2490 # DragonFly does not have aout. When/if they implement a new
2491 # versioning mechanism, adjust this.
2492 if test -x /usr/bin/objformat; then
2493 objformat=`/usr/bin/objformat`
2494 else
2495 case $host_os in
2496 freebsd[[123]]*) objformat=aout ;;
2497 *) objformat=elf ;;
2498 esac
2499 fi
2500 version_type=freebsd-$objformat
2501 case $version_type in
2502 freebsd-elf*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2504 need_version=no
2505 need_lib_prefix=no
2506 ;;
2507 freebsd-*)
2508 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2509 need_version=yes
2510 ;;
2511 esac
2512 shlibpath_var=LD_LIBRARY_PATH
2513 case $host_os in
2514 freebsd2*)
2515 shlibpath_overrides_runpath=yes
2516 ;;
2517 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2518 shlibpath_overrides_runpath=yes
2519 hardcode_into_libs=yes
2520 ;;
2521 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2522 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2523 shlibpath_overrides_runpath=no
2524 hardcode_into_libs=yes
2525 ;;
2526 *) # from 4.6 on, and DragonFly
2527 shlibpath_overrides_runpath=yes
2528 hardcode_into_libs=yes
2529 ;;
2530 esac
2531 ;;
2532
2533 gnu*)
2534 version_type=linux
2535 need_lib_prefix=no
2536 need_version=no
2537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2538 soname_spec='${libname}${release}${shared_ext}$major'
2539 shlibpath_var=LD_LIBRARY_PATH
2540 hardcode_into_libs=yes
2541 ;;
2542
2543 haiku*)
2544 version_type=linux
2545 need_lib_prefix=no
2546 need_version=no
2547 dynamic_linker="$host_os runtime_loader"
2548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2549 soname_spec='${libname}${release}${shared_ext}$major'
2550 shlibpath_var=LIBRARY_PATH
2551 shlibpath_overrides_runpath=yes
2552 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2553 hardcode_into_libs=yes
2554 ;;
2555
2556 hpux9* | hpux10* | hpux11*)
2557 # Give a soname corresponding to the major version so that dld.sl refuses to
2558 # link against other versions.
2559 version_type=sunos
2560 need_lib_prefix=no
2561 need_version=no
2562 case $host_cpu in
2563 ia64*)
2564 shrext_cmds='.so'
2565 hardcode_into_libs=yes
2566 dynamic_linker="$host_os dld.so"
2567 shlibpath_var=LD_LIBRARY_PATH
2568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2570 soname_spec='${libname}${release}${shared_ext}$major'
2571 if test "X$HPUX_IA64_MODE" = X32; then
2572 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2573 else
2574 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2575 fi
2576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2577 ;;
2578 hppa*64*)
2579 shrext_cmds='.sl'
2580 hardcode_into_libs=yes
2581 dynamic_linker="$host_os dld.sl"
2582 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2583 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2585 soname_spec='${libname}${release}${shared_ext}$major'
2586 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2588 ;;
2589 *)
2590 shrext_cmds='.sl'
2591 dynamic_linker="$host_os dld.sl"
2592 shlibpath_var=SHLIB_PATH
2593 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2595 soname_spec='${libname}${release}${shared_ext}$major'
2596 ;;
2597 esac
2598 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2599 postinstall_cmds='chmod 555 $lib'
2600 # or fails outright, so override atomically:
2601 install_override_mode=555
2602 ;;
2603
2604 interix[[3-9]]*)
2605 version_type=linux
2606 need_lib_prefix=no
2607 need_version=no
2608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2609 soname_spec='${libname}${release}${shared_ext}$major'
2610 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2611 shlibpath_var=LD_LIBRARY_PATH
2612 shlibpath_overrides_runpath=no
2613 hardcode_into_libs=yes
2614 ;;
2615
2616 irix5* | irix6* | nonstopux*)
2617 case $host_os in
2618 nonstopux*) version_type=nonstopux ;;
2619 *)
2620 if test "$lt_cv_prog_gnu_ld" = yes; then
2621 version_type=linux
2622 else
2623 version_type=irix
2624 fi ;;
2625 esac
2626 need_lib_prefix=no
2627 need_version=no
2628 soname_spec='${libname}${release}${shared_ext}$major'
2629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2630 case $host_os in
2631 irix5* | nonstopux*)
2632 libsuff= shlibsuff=
2633 ;;
2634 *)
2635 case $LD in # libtool.m4 will add one of these switches to LD
2636 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2637 libsuff= shlibsuff= libmagic=32-bit;;
2638 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2639 libsuff=32 shlibsuff=N32 libmagic=N32;;
2640 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2641 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2642 *) libsuff= shlibsuff= libmagic=never-match;;
2643 esac
2644 ;;
2645 esac
2646 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2647 shlibpath_overrides_runpath=no
2648 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2649 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2650 hardcode_into_libs=yes
2651 ;;
2652
2653 # No shared lib support for Linux oldld, aout, or coff.
2654 linux*oldld* | linux*aout* | linux*coff*)
2655 dynamic_linker=no
2656 ;;
2657
2658 # This must be Linux ELF.
2659 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2660 version_type=linux
2661 need_lib_prefix=no
2662 need_version=no
2663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2664 soname_spec='${libname}${release}${shared_ext}$major'
2665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2666 shlibpath_var=LD_LIBRARY_PATH
2667 shlibpath_overrides_runpath=no
2668
2669 # Some binutils ld are patched to set DT_RUNPATH
2670 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2671 [lt_cv_shlibpath_overrides_runpath=no
2672 save_LDFLAGS=$LDFLAGS
2673 save_libdir=$libdir
2674 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2675 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2676 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2677 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2678 [lt_cv_shlibpath_overrides_runpath=yes])])
2679 LDFLAGS=$save_LDFLAGS
2680 libdir=$save_libdir
2681 ])
2682 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2683
2684 # This implies no fast_install, which is unacceptable.
2685 # Some rework will be needed to allow for fast_install
2686 # before this can be enabled.
2687 hardcode_into_libs=yes
2688
2689 # Add ABI-specific directories to the system library path.
2690 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2691
2692 # Append ld.so.conf contents to the search path
2693 if test -f /etc/ld.so.conf; then
2694 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2695 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2696
2697 fi
2698
2699 # We used to test for /lib/ld.so.1 and disable shared libraries on
2700 # powerpc, because MkLinux only supported shared libraries with the
2701 # GNU dynamic linker. Since this was broken with cross compilers,
2702 # most powerpc-linux boxes support dynamic linking these days and
2703 # people can always --disable-shared, the test was removed, and we
2704 # assume the GNU/Linux dynamic linker is in use.
2705 dynamic_linker='GNU/Linux ld.so'
2706 ;;
2707
2708 netbsd*)
2709 version_type=sunos
2710 need_lib_prefix=no
2711 need_version=no
2712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2714 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2715 dynamic_linker='NetBSD (a.out) ld.so'
2716 else
2717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2718 soname_spec='${libname}${release}${shared_ext}$major'
2719 dynamic_linker='NetBSD ld.elf_so'
2720 fi
2721 shlibpath_var=LD_LIBRARY_PATH
2722 shlibpath_overrides_runpath=yes
2723 hardcode_into_libs=yes
2724 ;;
2725
2726 newsos6)
2727 version_type=linux
2728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2729 shlibpath_var=LD_LIBRARY_PATH
2730 shlibpath_overrides_runpath=yes
2731 ;;
2732
2733 *nto* | *qnx*)
2734 version_type=qnx
2735 need_lib_prefix=no
2736 need_version=no
2737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2738 soname_spec='${libname}${release}${shared_ext}$major'
2739 shlibpath_var=LD_LIBRARY_PATH
2740 shlibpath_overrides_runpath=no
2741 hardcode_into_libs=yes
2742 dynamic_linker='ldqnx.so'
2743 ;;
2744
2745 openbsd*)
2746 version_type=sunos
2747 sys_lib_dlsearch_path_spec="/usr/lib"
2748 need_lib_prefix=no
2749 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2750 case $host_os in
2751 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2752 *) need_version=no ;;
2753 esac
2754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2756 shlibpath_var=LD_LIBRARY_PATH
2757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2758 case $host_os in
2759 openbsd2.[[89]] | openbsd2.[[89]].*)
2760 shlibpath_overrides_runpath=no
2761 ;;
2762 *)
2763 shlibpath_overrides_runpath=yes
2764 ;;
2765 esac
2766 else
2767 shlibpath_overrides_runpath=yes
2768 fi
2769 ;;
2770
2771 os2*)
2772 libname_spec='$name'
2773 shrext_cmds=".dll"
2774 need_lib_prefix=no
2775 library_names_spec='$libname${shared_ext} $libname.a'
2776 dynamic_linker='OS/2 ld.exe'
2777 shlibpath_var=LIBPATH
2778 ;;
2779
2780 osf3* | osf4* | osf5*)
2781 version_type=osf
2782 need_lib_prefix=no
2783 need_version=no
2784 soname_spec='${libname}${release}${shared_ext}$major'
2785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2786 shlibpath_var=LD_LIBRARY_PATH
2787 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2788 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2789 ;;
2790
2791 rdos*)
2792 dynamic_linker=no
2793 ;;
2794
2795 solaris*)
2796 version_type=linux
2797 need_lib_prefix=no
2798 need_version=no
2799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2800 soname_spec='${libname}${release}${shared_ext}$major'
2801 shlibpath_var=LD_LIBRARY_PATH
2802 shlibpath_overrides_runpath=yes
2803 hardcode_into_libs=yes
2804 # ldd complains unless libraries are executable
2805 postinstall_cmds='chmod +x $lib'
2806 ;;
2807
2808 sunos4*)
2809 version_type=sunos
2810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2811 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2812 shlibpath_var=LD_LIBRARY_PATH
2813 shlibpath_overrides_runpath=yes
2814 if test "$with_gnu_ld" = yes; then
2815 need_lib_prefix=no
2816 fi
2817 need_version=yes
2818 ;;
2819
2820 sysv4 | sysv4.3*)
2821 version_type=linux
2822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2823 soname_spec='${libname}${release}${shared_ext}$major'
2824 shlibpath_var=LD_LIBRARY_PATH
2825 case $host_vendor in
2826 sni)
2827 shlibpath_overrides_runpath=no
2828 need_lib_prefix=no
2829 runpath_var=LD_RUN_PATH
2830 ;;
2831 siemens)
2832 need_lib_prefix=no
2833 ;;
2834 motorola)
2835 need_lib_prefix=no
2836 need_version=no
2837 shlibpath_overrides_runpath=no
2838 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2839 ;;
2840 esac
2841 ;;
2842
2843 sysv4*MP*)
2844 if test -d /usr/nec ;then
2845 version_type=linux
2846 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2847 soname_spec='$libname${shared_ext}.$major'
2848 shlibpath_var=LD_LIBRARY_PATH
2849 fi
2850 ;;
2851
2852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2853 version_type=freebsd-elf
2854 need_lib_prefix=no
2855 need_version=no
2856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2857 soname_spec='${libname}${release}${shared_ext}$major'
2858 shlibpath_var=LD_LIBRARY_PATH
2859 shlibpath_overrides_runpath=yes
2860 hardcode_into_libs=yes
2861 if test "$with_gnu_ld" = yes; then
2862 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2863 else
2864 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2865 case $host_os in
2866 sco3.2v5*)
2867 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2868 ;;
2869 esac
2870 fi
2871 sys_lib_dlsearch_path_spec='/usr/lib'
2872 ;;
2873
2874 tpf*)
2875 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2876 version_type=linux
2877 need_lib_prefix=no
2878 need_version=no
2879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2880 shlibpath_var=LD_LIBRARY_PATH
2881 shlibpath_overrides_runpath=no
2882 hardcode_into_libs=yes
2883 ;;
2884
2885 uts4*)
2886 version_type=linux
2887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2888 soname_spec='${libname}${release}${shared_ext}$major'
2889 shlibpath_var=LD_LIBRARY_PATH
2890 ;;
2891
2892 *)
2893 dynamic_linker=no
2894 ;;
2895 esac
2896 AC_MSG_RESULT([$dynamic_linker])
2897 test "$dynamic_linker" = no && can_build_shared=no
2898
2899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2900 if test "$GCC" = yes; then
2901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2902 fi
2903
2904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2906 fi
2907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2908 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2909 fi
2910
2911 _LT_DECL([], [variables_saved_for_relink], [1],
2912 [Variables whose values should be saved in libtool wrapper scripts and
2913 restored at link time])
2914 _LT_DECL([], [need_lib_prefix], [0],
2915 [Do we need the "lib" prefix for modules?])
2916 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2917 _LT_DECL([], [version_type], [0], [Library versioning type])
2918 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2919 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2920 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2921 [Is shlibpath searched before the hard-coded library search path?])
2922 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2923 _LT_DECL([], [library_names_spec], [1],
2924 [[List of archive names. First name is the real one, the rest are links.
2925 The last name is the one that the linker finds with -lNAME]])
2926 _LT_DECL([], [soname_spec], [1],
2927 [[The coded name of the library, if different from the real name]])
2928 _LT_DECL([], [install_override_mode], [1],
2929 [Permission mode override for installation of shared libraries])
2930 _LT_DECL([], [postinstall_cmds], [2],
2931 [Command to use after installation of a shared archive])
2932 _LT_DECL([], [postuninstall_cmds], [2],
2933 [Command to use after uninstallation of a shared archive])
2934 _LT_DECL([], [finish_cmds], [2],
2935 [Commands used to finish a libtool library installation in a directory])
2936 _LT_DECL([], [finish_eval], [1],
2937 [[As "finish_cmds", except a single script fragment to be evaled but
2938 not shown]])
2939 _LT_DECL([], [hardcode_into_libs], [0],
2940 [Whether we should hardcode library paths into libraries])
2941 _LT_DECL([], [sys_lib_search_path_spec], [2],
2942 [Compile-time system search path for libraries])
2943 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2944 [Run-time system search path for libraries])
2945 ])# _LT_SYS_DYNAMIC_LINKER
2946
2947
2948 # _LT_PATH_TOOL_PREFIX(TOOL)
2949 # --------------------------
2950 # find a file program which can recognize shared library
2951 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2952 [m4_require([_LT_DECL_EGREP])dnl
2953 AC_MSG_CHECKING([for $1])
2954 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2955 [case $MAGIC_CMD in
2956 [[\\/*] | ?:[\\/]*])
2957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2958 ;;
2959 *)
2960 lt_save_MAGIC_CMD="$MAGIC_CMD"
2961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2962 dnl $ac_dummy forces splitting on constant user-supplied paths.
2963 dnl POSIX.2 word splitting is done only on the output of word expansions,
2964 dnl not every word. This closes a longstanding sh security hole.
2965 ac_dummy="m4_if([$2], , $PATH, [$2])"
2966 for ac_dir in $ac_dummy; do
2967 IFS="$lt_save_ifs"
2968 test -z "$ac_dir" && ac_dir=.
2969 if test -f $ac_dir/$1; then
2970 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2971 if test -n "$file_magic_test_file"; then
2972 case $deplibs_check_method in
2973 "file_magic "*)
2974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2977 $EGREP "$file_magic_regex" > /dev/null; then
2978 :
2979 else
2980 cat <<_LT_EOF 1>&2
2981
2982 *** Warning: the command libtool uses to detect shared libraries,
2983 *** $file_magic_cmd, produces output that libtool cannot recognize.
2984 *** The result is that libtool may fail to recognize shared libraries
2985 *** as such. This will affect the creation of libtool libraries that
2986 *** depend on shared libraries, but programs linked with such libtool
2987 *** libraries will work regardless of this problem. Nevertheless, you
2988 *** may want to report the problem to your system manager and/or to
2989 *** bug-libtool@gnu.org
2990
2991 _LT_EOF
2992 fi ;;
2993 esac
2994 fi
2995 break
2996 fi
2997 done
2998 IFS="$lt_save_ifs"
2999 MAGIC_CMD="$lt_save_MAGIC_CMD"
3000 ;;
3001 esac])
3002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3003 if test -n "$MAGIC_CMD"; then
3004 AC_MSG_RESULT($MAGIC_CMD)
3005 else
3006 AC_MSG_RESULT(no)
3007 fi
3008 _LT_DECL([], [MAGIC_CMD], [0],
3009 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3010 ])# _LT_PATH_TOOL_PREFIX
3011
3012 # Old name:
3013 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3014 dnl aclocal-1.4 backwards compatibility:
3015 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3016
3017
3018 # _LT_PATH_MAGIC
3019 # --------------
3020 # find a file program which can recognize a shared library
3021 m4_defun([_LT_PATH_MAGIC],
3022 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3023 if test -z "$lt_cv_path_MAGIC_CMD"; then
3024 if test -n "$ac_tool_prefix"; then
3025 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3026 else
3027 MAGIC_CMD=:
3028 fi
3029 fi
3030 ])# _LT_PATH_MAGIC
3031
3032
3033 # LT_PATH_LD
3034 # ----------
3035 # find the pathname to the GNU or non-GNU linker
3036 AC_DEFUN([LT_PATH_LD],
3037 [AC_REQUIRE([AC_PROG_CC])dnl
3038 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3039 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3040 m4_require([_LT_DECL_SED])dnl
3041 m4_require([_LT_DECL_EGREP])dnl
3042 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3043
3044 AC_ARG_WITH([gnu-ld],
3045 [AS_HELP_STRING([--with-gnu-ld],
3046 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3047 [test "$withval" = no || with_gnu_ld=yes],
3048 [with_gnu_ld=no])dnl
3049
3050 ac_prog=ld
3051 if test "$GCC" = yes; then
3052 # Check if gcc -print-prog-name=ld gives a path.
3053 AC_MSG_CHECKING([for ld used by $CC])
3054 case $host in
3055 *-*-mingw*)
3056 # gcc leaves a trailing carriage return which upsets mingw
3057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3058 *)
3059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3060 esac
3061 case $ac_prog in
3062 # Accept absolute paths.
3063 [[\\/]]* | ?:[[\\/]]*)
3064 re_direlt='/[[^/]][[^/]]*/\.\./'
3065 # Canonicalize the pathname of ld
3066 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3067 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3068 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3069 done
3070 test -z "$LD" && LD="$ac_prog"
3071 ;;
3072 "")
3073 # If it fails, then pretend we aren't using GCC.
3074 ac_prog=ld
3075 ;;
3076 *)
3077 # If it is relative, then search for the first ld in PATH.
3078 with_gnu_ld=unknown
3079 ;;
3080 esac
3081 elif test "$with_gnu_ld" = yes; then
3082 AC_MSG_CHECKING([for GNU ld])
3083 else
3084 AC_MSG_CHECKING([for non-GNU ld])
3085 fi
3086 AC_CACHE_VAL(lt_cv_path_LD,
3087 [if test -z "$LD"; then
3088 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3089 for ac_dir in $PATH; do
3090 IFS="$lt_save_ifs"
3091 test -z "$ac_dir" && ac_dir=.
3092 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3093 lt_cv_path_LD="$ac_dir/$ac_prog"
3094 # Check to see if the program is GNU ld. I'd rather use --version,
3095 # but apparently some variants of GNU ld only accept -v.
3096 # Break only if it was the GNU/non-GNU ld that we prefer.
3097 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3098 *GNU* | *'with BFD'*)
3099 test "$with_gnu_ld" != no && break
3100 ;;
3101 *)
3102 test "$with_gnu_ld" != yes && break
3103 ;;
3104 esac
3105 fi
3106 done
3107 IFS="$lt_save_ifs"
3108 else
3109 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3110 fi])
3111 LD="$lt_cv_path_LD"
3112 if test -n "$LD"; then
3113 AC_MSG_RESULT($LD)
3114 else
3115 AC_MSG_RESULT(no)
3116 fi
3117 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3118 _LT_PATH_LD_GNU
3119 AC_SUBST([LD])
3120
3121 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3122 ])# LT_PATH_LD
3123
3124 # Old names:
3125 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3126 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3127 dnl aclocal-1.4 backwards compatibility:
3128 dnl AC_DEFUN([AM_PROG_LD], [])
3129 dnl AC_DEFUN([AC_PROG_LD], [])
3130
3131
3132 # _LT_PATH_LD_GNU
3133 #- --------------
3134 m4_defun([_LT_PATH_LD_GNU],
3135 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3136 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3137 case `$LD -v 2>&1 </dev/null` in
3138 *GNU* | *'with BFD'*)
3139 lt_cv_prog_gnu_ld=yes
3140 ;;
3141 *)
3142 lt_cv_prog_gnu_ld=no
3143 ;;
3144 esac])
3145 with_gnu_ld=$lt_cv_prog_gnu_ld
3146 ])# _LT_PATH_LD_GNU
3147
3148
3149 # _LT_CMD_RELOAD
3150 # --------------
3151 # find reload flag for linker
3152 # -- PORTME Some linkers may need a different reload flag.
3153 m4_defun([_LT_CMD_RELOAD],
3154 [AC_CACHE_CHECK([for $LD option to reload object files],
3155 lt_cv_ld_reload_flag,
3156 [lt_cv_ld_reload_flag='-r'])
3157 reload_flag=$lt_cv_ld_reload_flag
3158 case $reload_flag in
3159 "" | " "*) ;;
3160 *) reload_flag=" $reload_flag" ;;
3161 esac
3162 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3163 case $host_os in
3164 cygwin* | mingw* | pw32* | cegcc*)
3165 if test "$GCC" != yes; then
3166 reload_cmds=false
3167 fi
3168 ;;
3169 darwin*)
3170 if test "$GCC" = yes; then
3171 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3172 else
3173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3174 fi
3175 ;;
3176 esac
3177 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3178 _LT_TAGDECL([], [reload_cmds], [2])dnl
3179 ])# _LT_CMD_RELOAD
3180
3181
3182 # _LT_CHECK_MAGIC_METHOD
3183 # ----------------------
3184 # how to check for library dependencies
3185 # -- PORTME fill in with the dynamic library characteristics
3186 m4_defun([_LT_CHECK_MAGIC_METHOD],
3187 [m4_require([_LT_DECL_EGREP])
3188 m4_require([_LT_DECL_OBJDUMP])
3189 AC_CACHE_CHECK([how to recognize dependent libraries],
3190 lt_cv_deplibs_check_method,
3191 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3192 lt_cv_file_magic_test_file=
3193 lt_cv_deplibs_check_method='unknown'
3194 # Need to set the preceding variable on all platforms that support
3195 # interlibrary dependencies.
3196 # 'none' -- dependencies not supported.
3197 # `unknown' -- same as none, but documents that we really don't know.
3198 # 'pass_all' -- all dependencies passed with no checks.
3199 # 'test_compile' -- check by making test program.
3200 # 'file_magic [[regex]]' -- check by looking for files in library path
3201 # which responds to the $file_magic_cmd with a given extended regex.
3202 # If you have `file' or equivalent on your system and you're not sure
3203 # whether `pass_all' will *always* work, you probably want this one.
3204
3205 case $host_os in
3206 aix[[4-9]]*)
3207 lt_cv_deplibs_check_method=pass_all
3208 ;;
3209
3210 beos*)
3211 lt_cv_deplibs_check_method=pass_all
3212 ;;
3213
3214 bsdi[[45]]*)
3215 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3216 lt_cv_file_magic_cmd='/usr/bin/file -L'
3217 lt_cv_file_magic_test_file=/shlib/libc.so
3218 ;;
3219
3220 cygwin*)
3221 # func_win32_libid is a shell function defined in ltmain.sh
3222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3223 lt_cv_file_magic_cmd='func_win32_libid'
3224 ;;
3225
3226 mingw* | pw32*)
3227 # Base MSYS/MinGW do not provide the 'file' command needed by
3228 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3229 # unless we find 'file', for example because we are cross-compiling.
3230 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3231 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3233 lt_cv_file_magic_cmd='func_win32_libid'
3234 else
3235 # Keep this pattern in sync with the one in func_win32_libid.
3236 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3237 lt_cv_file_magic_cmd='$OBJDUMP -f'
3238 fi
3239 ;;
3240
3241 cegcc*)
3242 # use the weaker test based on 'objdump'. See mingw*.
3243 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3244 lt_cv_file_magic_cmd='$OBJDUMP -f'
3245 ;;
3246
3247 darwin* | rhapsody*)
3248 lt_cv_deplibs_check_method=pass_all
3249 ;;
3250
3251 freebsd* | dragonfly*)
3252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3253 case $host_cpu in
3254 i*86 )
3255 # Not sure whether the presence of OpenBSD here was a mistake.
3256 # Let's accept both of them until this is cleared up.
3257 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3258 lt_cv_file_magic_cmd=/usr/bin/file
3259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3260 ;;
3261 esac
3262 else
3263 lt_cv_deplibs_check_method=pass_all
3264 fi
3265 ;;
3266
3267 gnu*)
3268 lt_cv_deplibs_check_method=pass_all
3269 ;;
3270
3271 haiku*)
3272 lt_cv_deplibs_check_method=pass_all
3273 ;;
3274
3275 hpux10.20* | hpux11*)
3276 lt_cv_file_magic_cmd=/usr/bin/file
3277 case $host_cpu in
3278 ia64*)
3279 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3281 ;;
3282 hppa*64*)
3283 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3285 ;;
3286 *)
3287 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3289 ;;
3290 esac
3291 ;;
3292
3293 interix[[3-9]]*)
3294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3295 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3296 ;;
3297
3298 irix5* | irix6* | nonstopux*)
3299 case $LD in
3300 *-32|*"-32 ") libmagic=32-bit;;
3301 *-n32|*"-n32 ") libmagic=N32;;
3302 *-64|*"-64 ") libmagic=64-bit;;
3303 *) libmagic=never-match;;
3304 esac
3305 lt_cv_deplibs_check_method=pass_all
3306 ;;
3307
3308 # This must be Linux ELF.
3309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3310 lt_cv_deplibs_check_method=pass_all
3311 ;;
3312
3313 netbsd*)
3314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3315 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3316 else
3317 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3318 fi
3319 ;;
3320
3321 newos6*)
3322 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3323 lt_cv_file_magic_cmd=/usr/bin/file
3324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3325 ;;
3326
3327 *nto* | *qnx*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331 openbsd*)
3332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3333 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3334 else
3335 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3336 fi
3337 ;;
3338
3339 osf3* | osf4* | osf5*)
3340 lt_cv_deplibs_check_method=pass_all
3341 ;;
3342
3343 rdos*)
3344 lt_cv_deplibs_check_method=pass_all
3345 ;;
3346
3347 solaris*)
3348 lt_cv_deplibs_check_method=pass_all
3349 ;;
3350
3351 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3352 lt_cv_deplibs_check_method=pass_all
3353 ;;
3354
3355 sysv4 | sysv4.3*)
3356 case $host_vendor in
3357 motorola)
3358 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3360 ;;
3361 ncr)
3362 lt_cv_deplibs_check_method=pass_all
3363 ;;
3364 sequent)
3365 lt_cv_file_magic_cmd='/bin/file'
3366 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3367 ;;
3368 sni)
3369 lt_cv_file_magic_cmd='/bin/file'
3370 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3371 lt_cv_file_magic_test_file=/lib/libc.so
3372 ;;
3373 siemens)
3374 lt_cv_deplibs_check_method=pass_all
3375 ;;
3376 pc)
3377 lt_cv_deplibs_check_method=pass_all
3378 ;;
3379 esac
3380 ;;
3381
3382 tpf*)
3383 lt_cv_deplibs_check_method=pass_all
3384 ;;
3385 esac
3386 ])
3387
3388 file_magic_glob=
3389 want_nocaseglob=no
3390 if test "$build" = "$host"; then
3391 case $host_os in
3392 mingw* | pw32*)
3393 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3394 want_nocaseglob=yes
3395 else
3396 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3397 fi
3398 ;;
3399 esac
3400 fi
3401
3402 file_magic_cmd=$lt_cv_file_magic_cmd
3403 deplibs_check_method=$lt_cv_deplibs_check_method
3404 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3405
3406 _LT_DECL([], [deplibs_check_method], [1],
3407 [Method to check whether dependent libraries are shared objects])
3408 _LT_DECL([], [file_magic_cmd], [1],
3409 [Command to use when deplibs_check_method = "file_magic"])
3410 _LT_DECL([], [file_magic_glob], [1],
3411 [How to find potential files when deplibs_check_method = "file_magic"])
3412 _LT_DECL([], [want_nocaseglob], [1],
3413 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3414 ])# _LT_CHECK_MAGIC_METHOD
3415
3416
3417 # LT_PATH_NM
3418 # ----------
3419 # find the pathname to a BSD- or MS-compatible name lister
3420 AC_DEFUN([LT_PATH_NM],
3421 [AC_REQUIRE([AC_PROG_CC])dnl
3422 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3423 [if test -n "$NM"; then
3424 # Let the user override the test.
3425 lt_cv_path_NM="$NM"
3426 else
3427 lt_nm_to_check="${ac_tool_prefix}nm"
3428 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3429 lt_nm_to_check="$lt_nm_to_check nm"
3430 fi
3431 for lt_tmp_nm in $lt_nm_to_check; do
3432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3433 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3434 IFS="$lt_save_ifs"
3435 test -z "$ac_dir" && ac_dir=.
3436 tmp_nm="$ac_dir/$lt_tmp_nm"
3437 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3438 # Check to see if the nm accepts a BSD-compat flag.
3439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3440 # nm: unknown option "B" ignored
3441 # Tru64's nm complains that /dev/null is an invalid object file
3442 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3443 */dev/null* | *'Invalid file or object type'*)
3444 lt_cv_path_NM="$tmp_nm -B"
3445 break
3446 ;;
3447 *)
3448 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3449 */dev/null*)
3450 lt_cv_path_NM="$tmp_nm -p"
3451 break
3452 ;;
3453 *)
3454 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3455 continue # so that we can try to find one that supports BSD flags
3456 ;;
3457 esac
3458 ;;
3459 esac
3460 fi
3461 done
3462 IFS="$lt_save_ifs"
3463 done
3464 : ${lt_cv_path_NM=no}
3465 fi])
3466 if test "$lt_cv_path_NM" != "no"; then
3467 NM="$lt_cv_path_NM"
3468 else
3469 # Didn't find any BSD compatible name lister, look for dumpbin.
3470 if test -n "$DUMPBIN"; then :
3471 # Let the user override the test.
3472 else
3473 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3474 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3475 *COFF*)
3476 DUMPBIN="$DUMPBIN -symbols"
3477 ;;
3478 *)
3479 DUMPBIN=:
3480 ;;
3481 esac
3482 fi
3483 AC_SUBST([DUMPBIN])
3484 if test "$DUMPBIN" != ":"; then
3485 NM="$DUMPBIN"
3486 fi
3487 fi
3488 test -z "$NM" && NM=nm
3489 AC_SUBST([NM])
3490 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3491
3492 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3493 [lt_cv_nm_interface="BSD nm"
3494 echo "int some_variable = 0;" > conftest.$ac_ext
3495 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3496 (eval "$ac_compile" 2>conftest.err)
3497 cat conftest.err >&AS_MESSAGE_LOG_FD
3498 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3499 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3500 cat conftest.err >&AS_MESSAGE_LOG_FD
3501 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3502 cat conftest.out >&AS_MESSAGE_LOG_FD
3503 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3504 lt_cv_nm_interface="MS dumpbin"
3505 fi
3506 rm -f conftest*])
3507 ])# LT_PATH_NM
3508
3509 # Old names:
3510 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3511 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3512 dnl aclocal-1.4 backwards compatibility:
3513 dnl AC_DEFUN([AM_PROG_NM], [])
3514 dnl AC_DEFUN([AC_PROG_NM], [])
3515
3516 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3517 # --------------------------------
3518 # how to determine the name of the shared library
3519 # associated with a specific link library.
3520 # -- PORTME fill in with the dynamic library characteristics
3521 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3522 [m4_require([_LT_DECL_EGREP])
3523 m4_require([_LT_DECL_OBJDUMP])
3524 m4_require([_LT_DECL_DLLTOOL])
3525 AC_CACHE_CHECK([how to associate runtime and link libraries],
3526 lt_cv_sharedlib_from_linklib_cmd,
3527 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3528
3529 case $host_os in
3530 cygwin* | mingw* | pw32* | cegcc*)
3531 # two different shell functions defined in ltmain.sh
3532 # decide which to use based on capabilities of $DLLTOOL
3533 case `$DLLTOOL --help 2>&1` in
3534 *--identify-strict*)
3535 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3536 ;;
3537 *)
3538 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3539 ;;
3540 esac
3541 ;;
3542 *)
3543 # fallback: assume linklib IS sharedlib
3544 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3545 ;;
3546 esac
3547 ])
3548 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3549 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3550
3551 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3552 [Command to associate shared and link libraries])
3553 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3554
3555
3556 # _LT_PATH_MANIFEST_TOOL
3557 # ----------------------
3558 # locate the manifest tool
3559 m4_defun([_LT_PATH_MANIFEST_TOOL],
3560 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3561 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3562 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3563 [lt_cv_path_mainfest_tool=no
3564 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3565 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3566 cat conftest.err >&AS_MESSAGE_LOG_FD
3567 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3568 lt_cv_path_mainfest_tool=yes
3569 fi
3570 rm -f conftest*])
3571 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3572 MANIFEST_TOOL=:
3573 fi
3574 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3575 ])# _LT_PATH_MANIFEST_TOOL
3576
3577
3578 # LT_LIB_M
3579 # --------
3580 # check for math library
3581 AC_DEFUN([LT_LIB_M],
3582 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3583 LIBM=
3584 case $host in
3585 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3586 # These system don't have libm, or don't need it
3587 ;;
3588 *-ncr-sysv4.3*)
3589 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3590 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3591 ;;
3592 *)
3593 AC_CHECK_LIB(m, cos, LIBM="-lm")
3594 ;;
3595 esac
3596 AC_SUBST([LIBM])
3597 ])# LT_LIB_M
3598
3599 # Old name:
3600 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3601 dnl aclocal-1.4 backwards compatibility:
3602 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3603
3604
3605 # _LT_COMPILER_NO_RTTI([TAGNAME])
3606 # -------------------------------
3607 m4_defun([_LT_COMPILER_NO_RTTI],
3608 [m4_require([_LT_TAG_COMPILER])dnl
3609
3610 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3611
3612 if test "$GCC" = yes; then
3613 case $cc_basename in
3614 nvcc*)
3615 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3616 *)
3617 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3618 esac
3619
3620 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3621 lt_cv_prog_compiler_rtti_exceptions,
3622 [-fno-rtti -fno-exceptions], [],
3623 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3624 fi
3625 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3626 [Compiler flag to turn off builtin functions])
3627 ])# _LT_COMPILER_NO_RTTI
3628
3629
3630 # _LT_CMD_GLOBAL_SYMBOLS
3631 # ----------------------
3632 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3633 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3634 AC_REQUIRE([AC_PROG_CC])dnl
3635 AC_REQUIRE([AC_PROG_AWK])dnl
3636 AC_REQUIRE([LT_PATH_NM])dnl
3637 AC_REQUIRE([LT_PATH_LD])dnl
3638 m4_require([_LT_DECL_SED])dnl
3639 m4_require([_LT_DECL_EGREP])dnl
3640 m4_require([_LT_TAG_COMPILER])dnl
3641
3642 # Check for command to grab the raw symbol name followed by C symbol from nm.
3643 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3644 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3645 [
3646 # These are sane defaults that work on at least a few old systems.
3647 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3648
3649 # Character class describing NM global symbol codes.
3650 symcode='[[BCDEGRST]]'
3651
3652 # Regexp to match symbols that can be accessed directly from C.
3653 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3654
3655 # Define system-specific variables.
3656 case $host_os in
3657 aix*)
3658 symcode='[[BCDT]]'
3659 ;;
3660 cygwin* | mingw* | pw32* | cegcc*)
3661 symcode='[[ABCDGISTW]]'
3662 ;;
3663 hpux*)
3664 if test "$host_cpu" = ia64; then
3665 symcode='[[ABCDEGRST]]'
3666 fi
3667 ;;
3668 irix* | nonstopux*)
3669 symcode='[[BCDEGRST]]'
3670 ;;
3671 osf*)
3672 symcode='[[BCDEGQRST]]'
3673 ;;
3674 solaris*)
3675 symcode='[[BDRT]]'
3676 ;;
3677 sco3.2v5*)
3678 symcode='[[DT]]'
3679 ;;
3680 sysv4.2uw2*)
3681 symcode='[[DT]]'
3682 ;;
3683 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3684 symcode='[[ABDT]]'
3685 ;;
3686 sysv4)
3687 symcode='[[DFNSTU]]'
3688 ;;
3689 esac
3690
3691 # If we're using GNU nm, then use its standard symbol codes.
3692 case `$NM -V 2>&1` in
3693 *GNU* | *'with BFD'*)
3694 symcode='[[ABCDGIRSTW]]' ;;
3695 esac
3696
3697 # Transform an extracted symbol line into a proper C declaration.
3698 # Some systems (esp. on ia64) link data and code symbols differently,
3699 # so use this general approach.
3700 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3701
3702 # Transform an extracted symbol line into symbol name and symbol address
3703 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3704 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3705
3706 # Handle CRLF in mingw tool chain
3707 opt_cr=
3708 case $build_os in
3709 mingw*)
3710 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3711 ;;
3712 esac
3713
3714 # Try without a prefix underscore, then with it.
3715 for ac_symprfx in "" "_"; do
3716
3717 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3718 symxfrm="\\1 $ac_symprfx\\2 \\2"
3719
3720 # Write the raw and C identifiers.
3721 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3722 # Fake it for dumpbin and say T for any non-static function
3723 # and D for any global variable.
3724 # Also find C++ and __fastcall symbols from MSVC++,
3725 # which start with @ or ?.
3726 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3727 " {last_section=section; section=\$ 3};"\
3728 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3729 " \$ 0!~/External *\|/{next};"\
3730 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3731 " {if(hide[section]) next};"\
3732 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3733 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3734 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3735 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3736 " ' prfx=^$ac_symprfx]"
3737 else
3738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3739 fi
3740 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3741
3742 # Check to see that the pipe works correctly.
3743 pipe_works=no
3744
3745 rm -f conftest*
3746 cat > conftest.$ac_ext <<_LT_EOF
3747 #ifdef __cplusplus
3748 extern "C" {
3749 #endif
3750 char nm_test_var;
3751 void nm_test_func(void);
3752 void nm_test_func(void){}
3753 #ifdef __cplusplus
3754 }
3755 #endif
3756 int main(){nm_test_var='a';nm_test_func();return(0);}
3757 _LT_EOF
3758
3759 if AC_TRY_EVAL(ac_compile); then
3760 # Now try to grab the symbols.
3761 nlist=conftest.nm
3762 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3763 # Try sorting and uniquifying the output.
3764 if sort "$nlist" | uniq > "$nlist"T; then
3765 mv -f "$nlist"T "$nlist"
3766 else
3767 rm -f "$nlist"T
3768 fi
3769
3770 # Make sure that we snagged all the symbols we need.
3771 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3772 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3773 cat <<_LT_EOF > conftest.$ac_ext
3774 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3775 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3776 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3777 relocations are performed -- see ld's documentation on pseudo-relocs. */
3778 # define LT@&t@_DLSYM_CONST
3779 #elif defined(__osf__)
3780 /* This system does not cope well with relocations in const data. */
3781 # define LT@&t@_DLSYM_CONST
3782 #else
3783 # define LT@&t@_DLSYM_CONST const
3784 #endif
3785
3786 #ifdef __cplusplus
3787 extern "C" {
3788 #endif
3789
3790 _LT_EOF
3791 # Now generate the symbol file.
3792 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3793
3794 cat <<_LT_EOF >> conftest.$ac_ext
3795
3796 /* The mapping between symbol names and symbols. */
3797 LT@&t@_DLSYM_CONST struct {
3798 const char *name;
3799 void *address;
3800 }
3801 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3802 {
3803 { "@PROGRAM@", (void *) 0 },
3804 _LT_EOF
3805 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3806 cat <<\_LT_EOF >> conftest.$ac_ext
3807 {0, (void *) 0}
3808 };
3809
3810 /* This works around a problem in FreeBSD linker */
3811 #ifdef FREEBSD_WORKAROUND
3812 static const void *lt_preloaded_setup() {
3813 return lt__PROGRAM__LTX_preloaded_symbols;
3814 }
3815 #endif
3816
3817 #ifdef __cplusplus
3818 }
3819 #endif
3820 _LT_EOF
3821 # Now try linking the two files.
3822 mv conftest.$ac_objext conftstm.$ac_objext
3823 lt_globsym_save_LIBS=$LIBS
3824 lt_globsym_save_CFLAGS=$CFLAGS
3825 LIBS="conftstm.$ac_objext"
3826 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3827 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3828 pipe_works=yes
3829 fi
3830 LIBS=$lt_globsym_save_LIBS
3831 CFLAGS=$lt_globsym_save_CFLAGS
3832 else
3833 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3834 fi
3835 else
3836 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3837 fi
3838 else
3839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3840 fi
3841 else
3842 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3843 cat conftest.$ac_ext >&5
3844 fi
3845 rm -rf conftest* conftst*
3846
3847 # Do not use the global_symbol_pipe unless it works.
3848 if test "$pipe_works" = yes; then
3849 break
3850 else
3851 lt_cv_sys_global_symbol_pipe=
3852 fi
3853 done
3854 ])
3855 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3856 lt_cv_sys_global_symbol_to_cdecl=
3857 fi
3858 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3859 AC_MSG_RESULT(failed)
3860 else
3861 AC_MSG_RESULT(ok)
3862 fi
3863
3864 # Response file support.
3865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3866 nm_file_list_spec='@'
3867 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3868 nm_file_list_spec='@'
3869 fi
3870
3871 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3872 [Take the output of nm and produce a listing of raw symbols and C names])
3873 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3874 [Transform the output of nm in a proper C declaration])
3875 _LT_DECL([global_symbol_to_c_name_address],
3876 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3877 [Transform the output of nm in a C name address pair])
3878 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3879 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3880 [Transform the output of nm in a C name address pair when lib prefix is needed])
3881 _LT_DECL([], [nm_file_list_spec], [1],
3882 [Specify filename containing input files for $NM])
3883 ]) # _LT_CMD_GLOBAL_SYMBOLS
3884
3885
3886 # _LT_COMPILER_PIC([TAGNAME])
3887 # ---------------------------
3888 m4_defun([_LT_COMPILER_PIC],
3889 [m4_require([_LT_TAG_COMPILER])dnl
3890 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3891 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3892 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3893
3894 m4_if([$1], [CXX], [
3895 # C++ specific cases for pic, static, wl, etc.
3896 if test "$GXX" = yes; then
3897 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3898 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3899
3900 case $host_os in
3901 aix*)
3902 # All AIX code is PIC.
3903 if test "$host_cpu" = ia64; then
3904 # AIX 5 now supports IA64 processor
3905 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3906 fi
3907 ;;
3908
3909 amigaos*)
3910 case $host_cpu in
3911 powerpc)
3912 # see comment about AmigaOS4 .so support
3913 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3914 ;;
3915 m68k)
3916 # FIXME: we need at least 68020 code to build shared libraries, but
3917 # adding the `-m68020' flag to GCC prevents building anything better,
3918 # like `-m68040'.
3919 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3920 ;;
3921 esac
3922 ;;
3923
3924 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3925 # PIC is the default for these OSes.
3926 ;;
3927 mingw* | cygwin* | os2* | pw32* | cegcc*)
3928 # This hack is so that the source file can tell whether it is being
3929 # built for inclusion in a dll (and should export symbols for example).
3930 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3931 # (--disable-auto-import) libraries
3932 m4_if([$1], [GCJ], [],
3933 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3934 ;;
3935 darwin* | rhapsody*)
3936 # PIC is the default on this platform
3937 # Common symbols not allowed in MH_DYLIB files
3938 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3939 ;;
3940 *djgpp*)
3941 # DJGPP does not support shared libraries at all
3942 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3943 ;;
3944 haiku*)
3945 # PIC is the default for Haiku.
3946 # The "-static" flag exists, but is broken.
3947 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3948 ;;
3949 interix[[3-9]]*)
3950 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3951 # Instead, we relocate shared libraries at runtime.
3952 ;;
3953 sysv4*MP*)
3954 if test -d /usr/nec; then
3955 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3956 fi
3957 ;;
3958 hpux*)
3959 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3960 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3961 # sets the default TLS model and affects inlining.
3962 case $host_cpu in
3963 hppa*64*)
3964 ;;
3965 *)
3966 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3967 ;;
3968 esac
3969 ;;
3970 *qnx* | *nto*)
3971 # QNX uses GNU C++, but need to define -shared option too, otherwise
3972 # it will coredump.
3973 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3974 ;;
3975 *)
3976 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3977 ;;
3978 esac
3979 else
3980 case $host_os in
3981 aix[[4-9]]*)
3982 # All AIX code is PIC.
3983 if test "$host_cpu" = ia64; then
3984 # AIX 5 now supports IA64 processor
3985 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3986 else
3987 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3988 fi
3989 ;;
3990 chorus*)
3991 case $cc_basename in
3992 cxch68*)
3993 # Green Hills C++ Compiler
3994 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3995 ;;
3996 esac
3997 ;;
3998 mingw* | cygwin* | os2* | pw32* | cegcc*)
3999 # This hack is so that the source file can tell whether it is being
4000 # built for inclusion in a dll (and should export symbols for example).
4001 m4_if([$1], [GCJ], [],
4002 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4003 ;;
4004 dgux*)
4005 case $cc_basename in
4006 ec++*)
4007 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4008 ;;
4009 ghcx*)
4010 # Green Hills C++ Compiler
4011 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4012 ;;
4013 *)
4014 ;;
4015 esac
4016 ;;
4017 freebsd* | dragonfly*)
4018 # FreeBSD uses GNU C++
4019 ;;
4020 hpux9* | hpux10* | hpux11*)
4021 case $cc_basename in
4022 CC*)
4023 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4024 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4025 if test "$host_cpu" != ia64; then
4026 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4027 fi
4028 ;;
4029 aCC*)
4030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4031 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4032 case $host_cpu in
4033 hppa*64*|ia64*)
4034 # +Z the default
4035 ;;
4036 *)
4037 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4038 ;;
4039 esac
4040 ;;
4041 *)
4042 ;;
4043 esac
4044 ;;
4045 interix*)
4046 # This is c89, which is MS Visual C++ (no shared libs)
4047 # Anyone wants to do a port?
4048 ;;
4049 irix5* | irix6* | nonstopux*)
4050 case $cc_basename in
4051 CC*)
4052 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4053 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4054 # CC pic flag -KPIC is the default.
4055 ;;
4056 *)
4057 ;;
4058 esac
4059 ;;
4060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4061 case $cc_basename in
4062 KCC*)
4063 # KAI C++ Compiler
4064 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4066 ;;
4067 ecpc* )
4068 # old Intel C++ for x86_64 which still supported -KPIC.
4069 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4070 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4071 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4072 ;;
4073 icpc* )
4074 # Intel C++, used to be incompatible with GCC.
4075 # ICC 10 doesn't accept -KPIC any more.
4076 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4077 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4078 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4079 ;;
4080 pgCC* | pgcpp*)
4081 # Portland Group C++ compiler
4082 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4083 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4084 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4085 ;;
4086 cxx*)
4087 # Compaq C++
4088 # Make sure the PIC flag is empty. It appears that all Alpha
4089 # Linux and Compaq Tru64 Unix objects are PIC.
4090 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4091 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4092 ;;
4093 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4094 # IBM XL 8.0, 9.0 on PPC and BlueGene
4095 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4097 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4098 ;;
4099 *)
4100 case `$CC -V 2>&1 | sed 5q` in
4101 *Sun\ C*)
4102 # Sun C++ 5.9
4103 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4104 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4105 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4106 ;;
4107 esac
4108 ;;
4109 esac
4110 ;;
4111 lynxos*)
4112 ;;
4113 m88k*)
4114 ;;
4115 mvs*)
4116 case $cc_basename in
4117 cxx*)
4118 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4119 ;;
4120 *)
4121 ;;
4122 esac
4123 ;;
4124 netbsd*)
4125 ;;
4126 *qnx* | *nto*)
4127 # QNX uses GNU C++, but need to define -shared option too, otherwise
4128 # it will coredump.
4129 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4130 ;;
4131 osf3* | osf4* | osf5*)
4132 case $cc_basename in
4133 KCC*)
4134 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4135 ;;
4136 RCC*)
4137 # Rational C++ 2.4.1
4138 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4139 ;;
4140 cxx*)
4141 # Digital/Compaq C++
4142 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4143 # Make sure the PIC flag is empty. It appears that all Alpha
4144 # Linux and Compaq Tru64 Unix objects are PIC.
4145 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4146 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4147 ;;
4148 *)
4149 ;;
4150 esac
4151 ;;
4152 psos*)
4153 ;;
4154 solaris*)
4155 case $cc_basename in
4156 CC* | sunCC*)
4157 # Sun C++ 4.2, 5.x and Centerline C++
4158 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4159 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4160 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4161 ;;
4162 gcx*)
4163 # Green Hills C++ Compiler
4164 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4165 ;;
4166 *)
4167 ;;
4168 esac
4169 ;;
4170 sunos4*)
4171 case $cc_basename in
4172 CC*)
4173 # Sun C++ 4.x
4174 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4175 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4176 ;;
4177 lcc*)
4178 # Lucid
4179 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4180 ;;
4181 *)
4182 ;;
4183 esac
4184 ;;
4185 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4186 case $cc_basename in
4187 CC*)
4188 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4189 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4190 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4191 ;;
4192 esac
4193 ;;
4194 tandem*)
4195 case $cc_basename in
4196 NCC*)
4197 # NonStop-UX NCC 3.20
4198 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4199 ;;
4200 *)
4201 ;;
4202 esac
4203 ;;
4204 vxworks*)
4205 ;;
4206 *)
4207 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4208 ;;
4209 esac
4210 fi
4211 ],
4212 [
4213 if test "$GCC" = yes; then
4214 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4215 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4216
4217 case $host_os in
4218 aix*)
4219 # All AIX code is PIC.
4220 if test "$host_cpu" = ia64; then
4221 # AIX 5 now supports IA64 processor
4222 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4223 fi
4224 ;;
4225
4226 amigaos*)
4227 case $host_cpu in
4228 powerpc)
4229 # see comment about AmigaOS4 .so support
4230 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4231 ;;
4232 m68k)
4233 # FIXME: we need at least 68020 code to build shared libraries, but
4234 # adding the `-m68020' flag to GCC prevents building anything better,
4235 # like `-m68040'.
4236 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4237 ;;
4238 esac
4239 ;;
4240
4241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4242 # PIC is the default for these OSes.
4243 ;;
4244
4245 mingw* | cygwin* | pw32* | os2* | cegcc*)
4246 # This hack is so that the source file can tell whether it is being
4247 # built for inclusion in a dll (and should export symbols for example).
4248 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4249 # (--disable-auto-import) libraries
4250 m4_if([$1], [GCJ], [],
4251 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4252 ;;
4253
4254 darwin* | rhapsody*)
4255 # PIC is the default on this platform
4256 # Common symbols not allowed in MH_DYLIB files
4257 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4258 ;;
4259
4260 haiku*)
4261 # PIC is the default for Haiku.
4262 # The "-static" flag exists, but is broken.
4263 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4264 ;;
4265
4266 hpux*)
4267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4269 # sets the default TLS model and affects inlining.
4270 case $host_cpu in
4271 hppa*64*)
4272 # +Z the default
4273 ;;
4274 *)
4275 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4276 ;;
4277 esac
4278 ;;
4279
4280 interix[[3-9]]*)
4281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4282 # Instead, we relocate shared libraries at runtime.
4283 ;;
4284
4285 msdosdjgpp*)
4286 # Just because we use GCC doesn't mean we suddenly get shared libraries
4287 # on systems that don't support them.
4288 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4289 enable_shared=no
4290 ;;
4291
4292 *nto* | *qnx*)
4293 # QNX uses GNU C++, but need to define -shared option too, otherwise
4294 # it will coredump.
4295 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4296 ;;
4297
4298 sysv4*MP*)
4299 if test -d /usr/nec; then
4300 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4301 fi
4302 ;;
4303
4304 *)
4305 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4306 ;;
4307 esac
4308
4309 case $cc_basename in
4310 nvcc*) # Cuda Compiler Driver 2.2
4311 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4312 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4313 ;;
4314 esac
4315 else
4316 # PORTME Check for flag to pass linker flags through the system compiler.
4317 case $host_os in
4318 aix*)
4319 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4320 if test "$host_cpu" = ia64; then
4321 # AIX 5 now supports IA64 processor
4322 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4323 else
4324 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4325 fi
4326 ;;
4327
4328 mingw* | cygwin* | pw32* | os2* | cegcc*)
4329 # This hack is so that the source file can tell whether it is being
4330 # built for inclusion in a dll (and should export symbols for example).
4331 m4_if([$1], [GCJ], [],
4332 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4333 ;;
4334
4335 hpux9* | hpux10* | hpux11*)
4336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4338 # not for PA HP-UX.
4339 case $host_cpu in
4340 hppa*64*|ia64*)
4341 # +Z the default
4342 ;;
4343 *)
4344 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4345 ;;
4346 esac
4347 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4348 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4349 ;;
4350
4351 irix5* | irix6* | nonstopux*)
4352 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4353 # PIC (with -KPIC) is the default.
4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4355 ;;
4356
4357 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4358 case $cc_basename in
4359 # old Intel for x86_64 which still supported -KPIC.
4360 ecc*)
4361 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4362 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4363 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4364 ;;
4365 # icc used to be incompatible with GCC.
4366 # ICC 10 doesn't accept -KPIC any more.
4367 icc* | ifort*)
4368 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4369 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4370 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4371 ;;
4372 # Lahey Fortran 8.1.
4373 lf95*)
4374 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4375 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4376 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4377 ;;
4378 nagfor*)
4379 # NAG Fortran compiler
4380 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4381 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4382 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4383 ;;
4384 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4385 # Portland Group compilers (*not* the Pentium gcc compiler,
4386 # which looks to be a dead project)
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4388 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4389 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4390 ;;
4391 ccc*)
4392 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4393 # All Alpha code is PIC.
4394 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4395 ;;
4396 xl* | bgxl* | bgf* | mpixl*)
4397 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4398 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4399 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4400 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4401 ;;
4402 *)
4403 case `$CC -V 2>&1 | sed 5q` in
4404 *Sun\ F* | *Sun*Fortran*)
4405 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4406 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4407 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4409 ;;
4410 *Sun\ C*)
4411 # Sun C 5.9
4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4414 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4415 ;;
4416 esac
4417 ;;
4418 esac
4419 ;;
4420
4421 newsos6)
4422 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4423 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4424 ;;
4425
4426 *nto* | *qnx*)
4427 # QNX uses GNU C++, but need to define -shared option too, otherwise
4428 # it will coredump.
4429 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4430 ;;
4431
4432 osf3* | osf4* | osf5*)
4433 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4434 # All OSF/1 code is PIC.
4435 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4436 ;;
4437
4438 rdos*)
4439 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4440 ;;
4441
4442 solaris*)
4443 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4444 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4445 case $cc_basename in
4446 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4447 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4448 *)
4449 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4450 esac
4451 ;;
4452
4453 sunos4*)
4454 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4455 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4456 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4457 ;;
4458
4459 sysv4 | sysv4.2uw2* | sysv4.3*)
4460 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4462 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4463 ;;
4464
4465 sysv4*MP*)
4466 if test -d /usr/nec ;then
4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4469 fi
4470 ;;
4471
4472 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4473 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4474 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4475 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4476 ;;
4477
4478 unicos*)
4479 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4480 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4481 ;;
4482
4483 uts4*)
4484 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4485 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4486 ;;
4487
4488 *)
4489 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4490 ;;
4491 esac
4492 fi
4493 ])
4494 case $host_os in
4495 # For platforms which do not support PIC, -DPIC is meaningless:
4496 *djgpp*)
4497 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4498 ;;
4499 *)
4500 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4501 ;;
4502 esac
4503
4504 AC_CACHE_CHECK([for $compiler option to produce PIC],
4505 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4506 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4507 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4508
4509 #
4510 # Check to make sure the PIC flag actually works.
4511 #
4512 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4513 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4514 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4515 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4516 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4517 "" | " "*) ;;
4518 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4519 esac],
4520 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4521 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4522 fi
4523 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4524 [Additional compiler flags for building library objects])
4525
4526 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4527 [How to pass a linker flag through the compiler])
4528 #
4529 # Check to make sure the static flag actually works.
4530 #
4531 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4532 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4533 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4534 $lt_tmp_static_flag,
4535 [],
4536 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4537 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4538 [Compiler flag to prevent dynamic linking])
4539 ])# _LT_COMPILER_PIC
4540
4541
4542 # _LT_LINKER_SHLIBS([TAGNAME])
4543 # ----------------------------
4544 # See if the linker supports building shared libraries.
4545 m4_defun([_LT_LINKER_SHLIBS],
4546 [AC_REQUIRE([LT_PATH_LD])dnl
4547 AC_REQUIRE([LT_PATH_NM])dnl
4548 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4549 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4550 m4_require([_LT_DECL_EGREP])dnl
4551 m4_require([_LT_DECL_SED])dnl
4552 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4553 m4_require([_LT_TAG_COMPILER])dnl
4554 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4555 m4_if([$1], [CXX], [
4556 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4557 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4558 case $host_os in
4559 aix[[4-9]]*)
4560 # If we're using GNU nm, then we don't want the "-C" option.
4561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4562 # Also, AIX nm treats weak defined symbols like other global defined
4563 # symbols, whereas GNU nm marks them as "W".
4564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4565 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4566 else
4567 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4568 fi
4569 ;;
4570 pw32*)
4571 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4572 ;;
4573 cygwin* | mingw* | cegcc*)
4574 case $cc_basename in
4575 cl*) ;;
4576 *)
4577 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4578 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4579 ;;
4580 esac
4581 ;;
4582 *)
4583 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4584 ;;
4585 esac
4586 ], [
4587 runpath_var=
4588 _LT_TAGVAR(allow_undefined_flag, $1)=
4589 _LT_TAGVAR(always_export_symbols, $1)=no
4590 _LT_TAGVAR(archive_cmds, $1)=
4591 _LT_TAGVAR(archive_expsym_cmds, $1)=
4592 _LT_TAGVAR(compiler_needs_object, $1)=no
4593 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4594 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4595 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4596 _LT_TAGVAR(hardcode_automatic, $1)=no
4597 _LT_TAGVAR(hardcode_direct, $1)=no
4598 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4600 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4601 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4602 _LT_TAGVAR(hardcode_minus_L, $1)=no
4603 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4604 _LT_TAGVAR(inherit_rpath, $1)=no
4605 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4606 _LT_TAGVAR(module_cmds, $1)=
4607 _LT_TAGVAR(module_expsym_cmds, $1)=
4608 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4609 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4610 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4611 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4612 # include_expsyms should be a list of space-separated symbols to be *always*
4613 # included in the symbol list
4614 _LT_TAGVAR(include_expsyms, $1)=
4615 # exclude_expsyms can be an extended regexp of symbols to exclude
4616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4618 # as well as any symbol that contains `d'.
4619 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4621 # platforms (ab)use it in PIC code, but their linkers get confused if
4622 # the symbol is explicitly referenced. Since portable code cannot
4623 # rely on this symbol name, it's probably fine to never include it in
4624 # preloaded symbol tables.
4625 # Exclude shared library initialization/finalization symbols.
4626 dnl Note also adjust exclude_expsyms for C++ above.
4627 extract_expsyms_cmds=
4628
4629 case $host_os in
4630 cygwin* | mingw* | pw32* | cegcc*)
4631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4632 # When not using gcc, we currently assume that we are using
4633 # Microsoft Visual C++.
4634 if test "$GCC" != yes; then
4635 with_gnu_ld=no
4636 fi
4637 ;;
4638 interix*)
4639 # we just hope/assume this is gcc and not c89 (= MSVC++)
4640 with_gnu_ld=yes
4641 ;;
4642 openbsd*)
4643 with_gnu_ld=no
4644 ;;
4645 esac
4646
4647 _LT_TAGVAR(ld_shlibs, $1)=yes
4648
4649 # On some targets, GNU ld is compatible enough with the native linker
4650 # that we're better off using the native interface for both.
4651 lt_use_gnu_ld_interface=no
4652 if test "$with_gnu_ld" = yes; then
4653 case $host_os in
4654 aix*)
4655 # The AIX port of GNU ld has always aspired to compatibility
4656 # with the native linker. However, as the warning in the GNU ld
4657 # block says, versions before 2.19.5* couldn't really create working
4658 # shared libraries, regardless of the interface used.
4659 case `$LD -v 2>&1` in
4660 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4661 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4662 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4663 *)
4664 lt_use_gnu_ld_interface=yes
4665 ;;
4666 esac
4667 ;;
4668 *)
4669 lt_use_gnu_ld_interface=yes
4670 ;;
4671 esac
4672 fi
4673
4674 if test "$lt_use_gnu_ld_interface" = yes; then
4675 # If archive_cmds runs LD, not CC, wlarc should be empty
4676 wlarc='${wl}'
4677
4678 # Set some defaults for GNU ld with shared library support. These
4679 # are reset later if shared libraries are not supported. Putting them
4680 # here allows them to be overridden if necessary.
4681 runpath_var=LD_RUN_PATH
4682 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4683 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4684 # ancient GNU ld didn't support --whole-archive et. al.
4685 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4686 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4687 else
4688 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4689 fi
4690 supports_anon_versioning=no
4691 case `$LD -v 2>&1` in
4692 *GNU\ gold*) supports_anon_versioning=yes ;;
4693 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4696 *\ 2.11.*) ;; # other 2.11 versions
4697 *) supports_anon_versioning=yes ;;
4698 esac
4699
4700 # See if GNU ld supports shared libraries.
4701 case $host_os in
4702 aix[[3-9]]*)
4703 # On AIX/PPC, the GNU linker is very broken
4704 if test "$host_cpu" != ia64; then
4705 _LT_TAGVAR(ld_shlibs, $1)=no
4706 cat <<_LT_EOF 1>&2
4707
4708 *** Warning: the GNU linker, at least up to release 2.19, is reported
4709 *** to be unable to reliably create shared libraries on AIX.
4710 *** Therefore, libtool is disabling shared libraries support. If you
4711 *** really care for shared libraries, you may want to install binutils
4712 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4713 *** You will then need to restart the configuration process.
4714
4715 _LT_EOF
4716 fi
4717 ;;
4718
4719 amigaos*)
4720 case $host_cpu in
4721 powerpc)
4722 # see comment about AmigaOS4 .so support
4723 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4724 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4725 ;;
4726 m68k)
4727 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4729 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4730 ;;
4731 esac
4732 ;;
4733
4734 beos*)
4735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4736 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4738 # support --undefined. This deserves some investigation. FIXME
4739 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4740 else
4741 _LT_TAGVAR(ld_shlibs, $1)=no
4742 fi
4743 ;;
4744
4745 cygwin* | mingw* | pw32* | cegcc*)
4746 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4747 # as there is no search path for DLLs.
4748 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4749 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4750 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4751 _LT_TAGVAR(always_export_symbols, $1)=no
4752 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4753 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4754 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4755
4756 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4757 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4758 # If the export-symbols file already is a .def file (1st line
4759 # is EXPORTS), use it as is; otherwise, prepend...
4760 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4761 cp $export_symbols $output_objdir/$soname.def;
4762 else
4763 echo EXPORTS > $output_objdir/$soname.def;
4764 cat $export_symbols >> $output_objdir/$soname.def;
4765 fi~
4766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4767 else
4768 _LT_TAGVAR(ld_shlibs, $1)=no
4769 fi
4770 ;;
4771
4772 haiku*)
4773 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4774 _LT_TAGVAR(link_all_deplibs, $1)=yes
4775 ;;
4776
4777 interix[[3-9]]*)
4778 _LT_TAGVAR(hardcode_direct, $1)=no
4779 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4780 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4781 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4783 # Instead, shared libraries are loaded at an image base (0x10000000 by
4784 # default) and relocated if they conflict, which is a slow very memory
4785 # consuming and fragmenting process. To avoid this, we pick a random,
4786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4789 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4790 ;;
4791
4792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4793 tmp_diet=no
4794 if test "$host_os" = linux-dietlibc; then
4795 case $cc_basename in
4796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4797 esac
4798 fi
4799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4800 && test "$tmp_diet" = no
4801 then
4802 tmp_addflag=' $pic_flag'
4803 tmp_sharedflag='-shared'
4804 case $cc_basename,$host_cpu in
4805 pgcc*) # Portland Group C compiler
4806 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4807 tmp_addflag=' $pic_flag'
4808 ;;
4809 pgf77* | pgf90* | pgf95* | pgfortran*)
4810 # Portland Group f77 and f90 compilers
4811 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4812 tmp_addflag=' $pic_flag -Mnomain' ;;
4813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4814 tmp_addflag=' -i_dynamic' ;;
4815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4816 tmp_addflag=' -i_dynamic -nofor_main' ;;
4817 ifc* | ifort*) # Intel Fortran compiler
4818 tmp_addflag=' -nofor_main' ;;
4819 lf95*) # Lahey Fortran 8.1
4820 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4821 tmp_sharedflag='--shared' ;;
4822 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4823 tmp_sharedflag='-qmkshrobj'
4824 tmp_addflag= ;;
4825 nvcc*) # Cuda Compiler Driver 2.2
4826 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4827 _LT_TAGVAR(compiler_needs_object, $1)=yes
4828 ;;
4829 esac
4830 case `$CC -V 2>&1 | sed 5q` in
4831 *Sun\ C*) # Sun C 5.9
4832 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4833 _LT_TAGVAR(compiler_needs_object, $1)=yes
4834 tmp_sharedflag='-G' ;;
4835 *Sun\ F*) # Sun Fortran 8.3
4836 tmp_sharedflag='-G' ;;
4837 esac
4838 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4839
4840 if test "x$supports_anon_versioning" = xyes; then
4841 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4843 echo "local: *; };" >> $output_objdir/$libname.ver~
4844 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4845 fi
4846
4847 case $cc_basename in
4848 xlf* | bgf* | bgxlf* | mpixlf*)
4849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4850 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4851 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4852 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4853 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4854 if test "x$supports_anon_versioning" = xyes; then
4855 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4857 echo "local: *; };" >> $output_objdir/$libname.ver~
4858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4859 fi
4860 ;;
4861 esac
4862 else
4863 _LT_TAGVAR(ld_shlibs, $1)=no
4864 fi
4865 ;;
4866
4867 netbsd*)
4868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4869 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4870 wlarc=
4871 else
4872 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4873 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4874 fi
4875 ;;
4876
4877 solaris*)
4878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4879 _LT_TAGVAR(ld_shlibs, $1)=no
4880 cat <<_LT_EOF 1>&2
4881
4882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4883 *** create shared libraries on Solaris systems. Therefore, libtool
4884 *** is disabling shared libraries support. We urge you to upgrade GNU
4885 *** binutils to release 2.9.1 or newer. Another option is to modify
4886 *** your PATH or compiler configuration so that the native linker is
4887 *** used, and then restart.
4888
4889 _LT_EOF
4890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4892 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4893 else
4894 _LT_TAGVAR(ld_shlibs, $1)=no
4895 fi
4896 ;;
4897
4898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4899 case `$LD -v 2>&1` in
4900 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4901 _LT_TAGVAR(ld_shlibs, $1)=no
4902 cat <<_LT_EOF 1>&2
4903
4904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4905 *** reliably create shared libraries on SCO systems. Therefore, libtool
4906 *** is disabling shared libraries support. We urge you to upgrade GNU
4907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4908 *** your PATH or compiler configuration so that the native linker is
4909 *** used, and then restart.
4910
4911 _LT_EOF
4912 ;;
4913 *)
4914 # For security reasons, it is highly recommended that you always
4915 # use absolute paths for naming shared libraries, and exclude the
4916 # DT_RUNPATH tag from executables and libraries. But doing so
4917 # requires that you compile everything twice, which is a pain.
4918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4921 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4922 else
4923 _LT_TAGVAR(ld_shlibs, $1)=no
4924 fi
4925 ;;
4926 esac
4927 ;;
4928
4929 sunos4*)
4930 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4931 wlarc=
4932 _LT_TAGVAR(hardcode_direct, $1)=yes
4933 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4934 ;;
4935
4936 *)
4937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4938 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4939 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4940 else
4941 _LT_TAGVAR(ld_shlibs, $1)=no
4942 fi
4943 ;;
4944 esac
4945
4946 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4947 runpath_var=
4948 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4949 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4950 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4951 fi
4952 else
4953 # PORTME fill in a description of your system's linker (not GNU ld)
4954 case $host_os in
4955 aix3*)
4956 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4957 _LT_TAGVAR(always_export_symbols, $1)=yes
4958 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4959 # Note: this linker hardcodes the directories in LIBPATH if there
4960 # are no directories specified by -L.
4961 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4963 # Neither direct hardcoding nor static linking is supported with a
4964 # broken collect2.
4965 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4966 fi
4967 ;;
4968
4969 aix[[4-9]]*)
4970 if test "$host_cpu" = ia64; then
4971 # On IA64, the linker does run time linking by default, so we don't
4972 # have to do anything special.
4973 aix_use_runtimelinking=no
4974 exp_sym_flag='-Bexport'
4975 no_entry_flag=""
4976 else
4977 # If we're using GNU nm, then we don't want the "-C" option.
4978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4979 # Also, AIX nm treats weak defined symbols like other global
4980 # defined symbols, whereas GNU nm marks them as "W".
4981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4982 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4983 else
4984 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4985 fi
4986 aix_use_runtimelinking=no
4987
4988 # Test if we are trying to use run time linking or normal
4989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4990 # need to do runtime linking.
4991 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4992 for ld_flag in $LDFLAGS; do
4993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4994 aix_use_runtimelinking=yes
4995 break
4996 fi
4997 done
4998 ;;
4999 esac
5000
5001 exp_sym_flag='-bexport'
5002 no_entry_flag='-bnoentry'
5003 fi
5004
5005 # When large executables or shared objects are built, AIX ld can
5006 # have problems creating the table of contents. If linking a library
5007 # or program results in "error TOC overflow" add -mminimal-toc to
5008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5010
5011 _LT_TAGVAR(archive_cmds, $1)=''
5012 _LT_TAGVAR(hardcode_direct, $1)=yes
5013 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5014 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5015 _LT_TAGVAR(link_all_deplibs, $1)=yes
5016 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5017
5018 if test "$GCC" = yes; then
5019 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5020 # We only want to do this on AIX 4.2 and lower, the check
5021 # below for broken collect2 doesn't work under 4.3+
5022 collect2name=`${CC} -print-prog-name=collect2`
5023 if test -f "$collect2name" &&
5024 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5025 then
5026 # We have reworked collect2
5027 :
5028 else
5029 # We have old collect2
5030 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5031 # It fails to find uninstalled libraries when the uninstalled
5032 # path is not listed in the libpath. Setting hardcode_minus_L
5033 # to unsupported forces relinking
5034 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5036 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5037 fi
5038 ;;
5039 esac
5040 shared_flag='-shared'
5041 if test "$aix_use_runtimelinking" = yes; then
5042 shared_flag="$shared_flag "'${wl}-G'
5043 fi
5044 else
5045 # not using gcc
5046 if test "$host_cpu" = ia64; then
5047 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5048 # chokes on -Wl,-G. The following line is correct:
5049 shared_flag='-G'
5050 else
5051 if test "$aix_use_runtimelinking" = yes; then
5052 shared_flag='${wl}-G'
5053 else
5054 shared_flag='${wl}-bM:SRE'
5055 fi
5056 fi
5057 fi
5058
5059 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5060 # It seems that -bexpall does not export symbols beginning with
5061 # underscore (_), so it is better to generate a list of symbols to export.
5062 _LT_TAGVAR(always_export_symbols, $1)=yes
5063 if test "$aix_use_runtimelinking" = yes; then
5064 # Warning - without using the other runtime loading flags (-brtl),
5065 # -berok will link without error, but may produce a broken library.
5066 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5067 # Determine the default libpath from the value encoded in an
5068 # empty executable.
5069 _LT_SYS_MODULE_PATH_AIX([$1])
5070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5071 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5072 else
5073 if test "$host_cpu" = ia64; then
5074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5075 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5076 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5077 else
5078 # Determine the default libpath from the value encoded in an
5079 # empty executable.
5080 _LT_SYS_MODULE_PATH_AIX([$1])
5081 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5082 # Warning - without using the other run time loading flags,
5083 # -berok will link without error, but may produce a broken library.
5084 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5085 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5086 if test "$with_gnu_ld" = yes; then
5087 # We only use this code for GNU lds that support --whole-archive.
5088 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5089 else
5090 # Exported symbols can be pulled into shared objects from archives
5091 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5092 fi
5093 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5094 # This is similar to how AIX traditionally builds its shared libraries.
5095 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5096 fi
5097 fi
5098 ;;
5099
5100 amigaos*)
5101 case $host_cpu in
5102 powerpc)
5103 # see comment about AmigaOS4 .so support
5104 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5105 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5106 ;;
5107 m68k)
5108 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5110 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5111 ;;
5112 esac
5113 ;;
5114
5115 bsdi[[45]]*)
5116 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5117 ;;
5118
5119 cygwin* | mingw* | pw32* | cegcc*)
5120 # When not using gcc, we currently assume that we are using
5121 # Microsoft Visual C++.
5122 # hardcode_libdir_flag_spec is actually meaningless, as there is
5123 # no search path for DLLs.
5124 case $cc_basename in
5125 cl*)
5126 # Native MSVC
5127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5128 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5129 _LT_TAGVAR(always_export_symbols, $1)=yes
5130 _LT_TAGVAR(file_list_spec, $1)='@'
5131 # Tell ltmain to make .lib files, not .a files.
5132 libext=lib
5133 # Tell ltmain to make .dll files, not .so files.
5134 shrext_cmds=".dll"
5135 # FIXME: Setting linknames here is a bad hack.
5136 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5137 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5138 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5139 else
5140 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5141 fi~
5142 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5143 linknames='
5144 # The linker will not automatically build a static lib if we build a DLL.
5145 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5146 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5147 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5148 # Don't use ranlib
5149 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5150 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5151 lt_tool_outputfile="@TOOL_OUTPUT@"~
5152 case $lt_outputfile in
5153 *.exe|*.EXE) ;;
5154 *)
5155 lt_outputfile="$lt_outputfile.exe"
5156 lt_tool_outputfile="$lt_tool_outputfile.exe"
5157 ;;
5158 esac~
5159 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5160 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5161 $RM "$lt_outputfile.manifest";
5162 fi'
5163 ;;
5164 *)
5165 # Assume MSVC wrapper
5166 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5167 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5168 # Tell ltmain to make .lib files, not .a files.
5169 libext=lib
5170 # Tell ltmain to make .dll files, not .so files.
5171 shrext_cmds=".dll"
5172 # FIXME: Setting linknames here is a bad hack.
5173 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5174 # The linker will automatically build a .lib file if we build a DLL.
5175 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5176 # FIXME: Should let the user specify the lib program.
5177 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5178 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5179 ;;
5180 esac
5181 ;;
5182
5183 darwin* | rhapsody*)
5184 _LT_DARWIN_LINKER_FEATURES($1)
5185 ;;
5186
5187 dgux*)
5188 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5190 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5191 ;;
5192
5193 freebsd1*)
5194 _LT_TAGVAR(ld_shlibs, $1)=no
5195 ;;
5196
5197 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5198 # support. Future versions do this automatically, but an explicit c++rt0.o
5199 # does not break anything, and helps significantly (at the cost of a little
5200 # extra space).
5201 freebsd2.2*)
5202 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5203 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5204 _LT_TAGVAR(hardcode_direct, $1)=yes
5205 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5206 ;;
5207
5208 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5209 freebsd2*)
5210 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5211 _LT_TAGVAR(hardcode_direct, $1)=yes
5212 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5213 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5214 ;;
5215
5216 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5217 freebsd* | dragonfly*)
5218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5219 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5220 _LT_TAGVAR(hardcode_direct, $1)=yes
5221 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5222 ;;
5223
5224 hpux9*)
5225 if test "$GCC" = yes; then
5226 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5227 else
5228 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5229 fi
5230 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5231 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5232 _LT_TAGVAR(hardcode_direct, $1)=yes
5233
5234 # hardcode_minus_L: Not really in the search PATH,
5235 # but as the default location of the library.
5236 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5237 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5238 ;;
5239
5240 hpux10*)
5241 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5242 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5243 else
5244 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5245 fi
5246 if test "$with_gnu_ld" = no; then
5247 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5248 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5249 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5250 _LT_TAGVAR(hardcode_direct, $1)=yes
5251 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5252 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5253 # hardcode_minus_L: Not really in the search PATH,
5254 # but as the default location of the library.
5255 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5256 fi
5257 ;;
5258
5259 hpux11*)
5260 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5261 case $host_cpu in
5262 hppa*64*)
5263 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5264 ;;
5265 ia64*)
5266 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5267 ;;
5268 *)
5269 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5270 ;;
5271 esac
5272 else
5273 case $host_cpu in
5274 hppa*64*)
5275 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5276 ;;
5277 ia64*)
5278 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5279 ;;
5280 *)
5281 m4_if($1, [], [
5282 # Older versions of the 11.00 compiler do not understand -b yet
5283 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5284 _LT_LINKER_OPTION([if $CC understands -b],
5285 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5286 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5287 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5288 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5289 ;;
5290 esac
5291 fi
5292 if test "$with_gnu_ld" = no; then
5293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5294 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5295
5296 case $host_cpu in
5297 hppa*64*|ia64*)
5298 _LT_TAGVAR(hardcode_direct, $1)=no
5299 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5300 ;;
5301 *)
5302 _LT_TAGVAR(hardcode_direct, $1)=yes
5303 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5304 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5305
5306 # hardcode_minus_L: Not really in the search PATH,
5307 # but as the default location of the library.
5308 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5309 ;;
5310 esac
5311 fi
5312 ;;
5313
5314 irix5* | irix6* | nonstopux*)
5315 if test "$GCC" = yes; then
5316 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5317 # Try to use the -exported_symbol ld option, if it does not
5318 # work, assume that -exports_file does not work either and
5319 # implicitly export all symbols.
5320 # This should be the same for all languages, so no per-tag cache variable.
5321 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5322 [lt_cv_irix_exported_symbol],
5323 [save_LDFLAGS="$LDFLAGS"
5324 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5325 AC_LINK_IFELSE(
5326 [AC_LANG_SOURCE(
5327 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5328 [C++], [[int foo (void) { return 0; }]],
5329 [Fortran 77], [[
5330 subroutine foo
5331 end]],
5332 [Fortran], [[
5333 subroutine foo
5334 end]])])],
5335 [lt_cv_irix_exported_symbol=yes],
5336 [lt_cv_irix_exported_symbol=no])
5337 LDFLAGS="$save_LDFLAGS"])
5338 if test "$lt_cv_irix_exported_symbol" = yes; then
5339 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5340 fi
5341 else
5342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5343 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5344 fi
5345 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5346 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5347 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5348 _LT_TAGVAR(inherit_rpath, $1)=yes
5349 _LT_TAGVAR(link_all_deplibs, $1)=yes
5350 ;;
5351
5352 netbsd*)
5353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5354 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5355 else
5356 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5357 fi
5358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5359 _LT_TAGVAR(hardcode_direct, $1)=yes
5360 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5361 ;;
5362
5363 newsos6)
5364 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5365 _LT_TAGVAR(hardcode_direct, $1)=yes
5366 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5367 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5368 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5369 ;;
5370
5371 *nto* | *qnx*)
5372 ;;
5373
5374 openbsd*)
5375 if test -f /usr/libexec/ld.so; then
5376 _LT_TAGVAR(hardcode_direct, $1)=yes
5377 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5378 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5379 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5380 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5381 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5382 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5383 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5384 else
5385 case $host_os in
5386 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5387 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5389 ;;
5390 *)
5391 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5393 ;;
5394 esac
5395 fi
5396 else
5397 _LT_TAGVAR(ld_shlibs, $1)=no
5398 fi
5399 ;;
5400
5401 os2*)
5402 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5403 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5404 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5405 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5406 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5407 ;;
5408
5409 osf3*)
5410 if test "$GCC" = yes; then
5411 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5412 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5413 else
5414 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5415 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5416 fi
5417 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5419 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5420 ;;
5421
5422 osf4* | osf5*) # as osf3* with the addition of -msym flag
5423 if test "$GCC" = yes; then
5424 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5425 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5426 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5427 else
5428 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5429 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5430 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5431 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5432
5433 # Both c and cxx compiler support -rpath directly
5434 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5435 fi
5436 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5437 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5438 ;;
5439
5440 solaris*)
5441 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5442 if test "$GCC" = yes; then
5443 wlarc='${wl}'
5444 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5445 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5446 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5447 else
5448 case `$CC -V 2>&1` in
5449 *"Compilers 5.0"*)
5450 wlarc=''
5451 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5452 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5453 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5454 ;;
5455 *)
5456 wlarc='${wl}'
5457 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5458 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5459 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5460 ;;
5461 esac
5462 fi
5463 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5464 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5465 case $host_os in
5466 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5467 *)
5468 # The compiler driver will combine and reorder linker options,
5469 # but understands `-z linker_flag'. GCC discards it without `$wl',
5470 # but is careful enough not to reorder.
5471 # Supported since Solaris 2.6 (maybe 2.5.1?)
5472 if test "$GCC" = yes; then
5473 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5474 else
5475 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5476 fi
5477 ;;
5478 esac
5479 _LT_TAGVAR(link_all_deplibs, $1)=yes
5480 ;;
5481
5482 sunos4*)
5483 if test "x$host_vendor" = xsequent; then
5484 # Use $CC to link under sequent, because it throws in some extra .o
5485 # files that make .init and .fini sections work.
5486 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5487 else
5488 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5489 fi
5490 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5491 _LT_TAGVAR(hardcode_direct, $1)=yes
5492 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5493 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5494 ;;
5495
5496 sysv4)
5497 case $host_vendor in
5498 sni)
5499 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5500 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5501 ;;
5502 siemens)
5503 ## LD is ld it makes a PLAMLIB
5504 ## CC just makes a GrossModule.
5505 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5506 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5507 _LT_TAGVAR(hardcode_direct, $1)=no
5508 ;;
5509 motorola)
5510 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5511 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5512 ;;
5513 esac
5514 runpath_var='LD_RUN_PATH'
5515 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5516 ;;
5517
5518 sysv4.3*)
5519 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5520 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5521 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5522 ;;
5523
5524 sysv4*MP*)
5525 if test -d /usr/nec; then
5526 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5527 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5528 runpath_var=LD_RUN_PATH
5529 hardcode_runpath_var=yes
5530 _LT_TAGVAR(ld_shlibs, $1)=yes
5531 fi
5532 ;;
5533
5534 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5535 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5536 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5537 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5538 runpath_var='LD_RUN_PATH'
5539
5540 if test "$GCC" = yes; then
5541 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5542 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5543 else
5544 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5545 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5546 fi
5547 ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6*)
5550 # Note: We can NOT use -z defs as we might desire, because we do not
5551 # link with -lc, and that would cause any symbols used from libc to
5552 # always be unresolved, which means just about no library would
5553 # ever link correctly. If we're not using GNU ld we use -z text
5554 # though, which does catch some bad symbols but isn't as heavy-handed
5555 # as -z defs.
5556 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5557 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5558 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5559 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5560 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5561 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5562 _LT_TAGVAR(link_all_deplibs, $1)=yes
5563 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5564 runpath_var='LD_RUN_PATH'
5565
5566 if test "$GCC" = yes; then
5567 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5568 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5569 else
5570 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5571 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5572 fi
5573 ;;
5574
5575 uts4*)
5576 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5577 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5578 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5579 ;;
5580
5581 *)
5582 _LT_TAGVAR(ld_shlibs, $1)=no
5583 ;;
5584 esac
5585
5586 if test x$host_vendor = xsni; then
5587 case $host in
5588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5589 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5590 ;;
5591 esac
5592 fi
5593 fi
5594 ])
5595 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5596 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5597
5598 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5599
5600 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5601 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5602 _LT_DECL([], [extract_expsyms_cmds], [2],
5603 [The commands to extract the exported symbol list from a shared archive])
5604
5605 #
5606 # Do we need to explicitly link libc?
5607 #
5608 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5609 x|xyes)
5610 # Assume -lc should be added
5611 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5612
5613 if test "$enable_shared" = yes && test "$GCC" = yes; then
5614 case $_LT_TAGVAR(archive_cmds, $1) in
5615 *'~'*)
5616 # FIXME: we may have to deal with multi-command sequences.
5617 ;;
5618 '$CC '*)
5619 # Test whether the compiler implicitly links with -lc since on some
5620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5621 # to ld, don't add -lc before -lgcc.
5622 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5623 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5624 [$RM conftest*
5625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5626
5627 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5628 soname=conftest
5629 lib=conftest
5630 libobjs=conftest.$ac_objext
5631 deplibs=
5632 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5633 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5634 compiler_flags=-v
5635 linker_flags=-v
5636 verstring=
5637 output_objdir=.
5638 libname=conftest
5639 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5640 _LT_TAGVAR(allow_undefined_flag, $1)=
5641 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5642 then
5643 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5644 else
5645 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5646 fi
5647 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5648 else
5649 cat conftest.err 1>&5
5650 fi
5651 $RM conftest*
5652 ])
5653 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5654 ;;
5655 esac
5656 fi
5657 ;;
5658 esac
5659
5660 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5661 [Whether or not to add -lc for building shared libraries])
5662 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5663 [enable_shared_with_static_runtimes], [0],
5664 [Whether or not to disallow shared libs when runtime libs are static])
5665 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5666 [Compiler flag to allow reflexive dlopens])
5667 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5668 [Compiler flag to generate shared objects directly from archives])
5669 _LT_TAGDECL([], [compiler_needs_object], [1],
5670 [Whether the compiler copes with passing no objects directly])
5671 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5672 [Create an old-style archive from a shared archive])
5673 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5674 [Create a temporary old-style archive to link instead of a shared archive])
5675 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5676 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5677 _LT_TAGDECL([], [module_cmds], [2],
5678 [Commands used to build a loadable module if different from building
5679 a shared archive.])
5680 _LT_TAGDECL([], [module_expsym_cmds], [2])
5681 _LT_TAGDECL([], [with_gnu_ld], [1],
5682 [Whether we are building with GNU ld or not])
5683 _LT_TAGDECL([], [allow_undefined_flag], [1],
5684 [Flag that allows shared libraries with undefined symbols to be built])
5685 _LT_TAGDECL([], [no_undefined_flag], [1],
5686 [Flag that enforces no undefined symbols])
5687 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5688 [Flag to hardcode $libdir into a binary during linking.
5689 This must work even if $libdir does not exist])
5690 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5691 [[If ld is used when linking, flag to hardcode $libdir into a binary
5692 during linking. This must work even if $libdir does not exist]])
5693 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5694 [Whether we need a single "-rpath" flag with a separated argument])
5695 _LT_TAGDECL([], [hardcode_direct], [0],
5696 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5697 DIR into the resulting binary])
5698 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5699 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5700 DIR into the resulting binary and the resulting library dependency is
5701 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5702 library is relocated])
5703 _LT_TAGDECL([], [hardcode_minus_L], [0],
5704 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5705 into the resulting binary])
5706 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5707 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5708 into the resulting binary])
5709 _LT_TAGDECL([], [hardcode_automatic], [0],
5710 [Set to "yes" if building a shared library automatically hardcodes DIR
5711 into the library and all subsequent libraries and executables linked
5712 against it])
5713 _LT_TAGDECL([], [inherit_rpath], [0],
5714 [Set to yes if linker adds runtime paths of dependent libraries
5715 to runtime path list])
5716 _LT_TAGDECL([], [link_all_deplibs], [0],
5717 [Whether libtool must link a program against all its dependency libraries])
5718 _LT_TAGDECL([], [always_export_symbols], [0],
5719 [Set to "yes" if exported symbols are required])
5720 _LT_TAGDECL([], [export_symbols_cmds], [2],
5721 [The commands to list exported symbols])
5722 _LT_TAGDECL([], [exclude_expsyms], [1],
5723 [Symbols that should not be listed in the preloaded symbols])
5724 _LT_TAGDECL([], [include_expsyms], [1],
5725 [Symbols that must always be exported])
5726 _LT_TAGDECL([], [prelink_cmds], [2],
5727 [Commands necessary for linking programs (against libraries) with templates])
5728 _LT_TAGDECL([], [postlink_cmds], [2],
5729 [Commands necessary for finishing linking programs])
5730 _LT_TAGDECL([], [file_list_spec], [1],
5731 [Specify filename containing input files])
5732 dnl FIXME: Not yet implemented
5733 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5734 dnl [Compiler flag to generate thread safe objects])
5735 ])# _LT_LINKER_SHLIBS
5736
5737
5738 # _LT_LANG_C_CONFIG([TAG])
5739 # ------------------------
5740 # Ensure that the configuration variables for a C compiler are suitably
5741 # defined. These variables are subsequently used by _LT_CONFIG to write
5742 # the compiler configuration to `libtool'.
5743 m4_defun([_LT_LANG_C_CONFIG],
5744 [m4_require([_LT_DECL_EGREP])dnl
5745 lt_save_CC="$CC"
5746 AC_LANG_PUSH(C)
5747
5748 # Source file extension for C test sources.
5749 ac_ext=c
5750
5751 # Object file extension for compiled C test sources.
5752 objext=o
5753 _LT_TAGVAR(objext, $1)=$objext
5754
5755 # Code to be used in simple compile tests
5756 lt_simple_compile_test_code="int some_variable = 0;"
5757
5758 # Code to be used in simple link tests
5759 lt_simple_link_test_code='int main(){return(0);}'
5760
5761 _LT_TAG_COMPILER
5762 # Save the default compiler, since it gets overwritten when the other
5763 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5764 compiler_DEFAULT=$CC
5765
5766 # save warnings/boilerplate of simple test code
5767 _LT_COMPILER_BOILERPLATE
5768 _LT_LINKER_BOILERPLATE
5769
5770 if test -n "$compiler"; then
5771 _LT_COMPILER_NO_RTTI($1)
5772 _LT_COMPILER_PIC($1)
5773 _LT_COMPILER_C_O($1)
5774 _LT_COMPILER_FILE_LOCKS($1)
5775 _LT_LINKER_SHLIBS($1)
5776 _LT_SYS_DYNAMIC_LINKER($1)
5777 _LT_LINKER_HARDCODE_LIBPATH($1)
5778 LT_SYS_DLOPEN_SELF
5779 _LT_CMD_STRIPLIB
5780
5781 # Report which library types will actually be built
5782 AC_MSG_CHECKING([if libtool supports shared libraries])
5783 AC_MSG_RESULT([$can_build_shared])
5784
5785 AC_MSG_CHECKING([whether to build shared libraries])
5786 test "$can_build_shared" = "no" && enable_shared=no
5787
5788 # On AIX, shared libraries and static libraries use the same namespace, and
5789 # are all built from PIC.
5790 case $host_os in
5791 aix3*)
5792 test "$enable_shared" = yes && enable_static=no
5793 if test -n "$RANLIB"; then
5794 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5795 postinstall_cmds='$RANLIB $lib'
5796 fi
5797 ;;
5798
5799 aix[[4-9]]*)
5800 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5801 test "$enable_shared" = yes && enable_static=no
5802 fi
5803 ;;
5804 esac
5805 AC_MSG_RESULT([$enable_shared])
5806
5807 AC_MSG_CHECKING([whether to build static libraries])
5808 # Make sure either enable_shared or enable_static is yes.
5809 test "$enable_shared" = yes || enable_static=yes
5810 AC_MSG_RESULT([$enable_static])
5811
5812 _LT_CONFIG($1)
5813 fi
5814 AC_LANG_POP
5815 CC="$lt_save_CC"
5816 ])# _LT_LANG_C_CONFIG
5817
5818
5819 # _LT_LANG_CXX_CONFIG([TAG])
5820 # --------------------------
5821 # Ensure that the configuration variables for a C++ compiler are suitably
5822 # defined. These variables are subsequently used by _LT_CONFIG to write
5823 # the compiler configuration to `libtool'.
5824 m4_defun([_LT_LANG_CXX_CONFIG],
5825 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5826 m4_require([_LT_DECL_EGREP])dnl
5827 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5828 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5829 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5830 (test "X$CXX" != "Xg++"))) ; then
5831 AC_PROG_CXXCPP
5832 else
5833 _lt_caught_CXX_error=yes
5834 fi
5835
5836 AC_LANG_PUSH(C++)
5837 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5838 _LT_TAGVAR(allow_undefined_flag, $1)=
5839 _LT_TAGVAR(always_export_symbols, $1)=no
5840 _LT_TAGVAR(archive_expsym_cmds, $1)=
5841 _LT_TAGVAR(compiler_needs_object, $1)=no
5842 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5843 _LT_TAGVAR(hardcode_direct, $1)=no
5844 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5846 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5847 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5848 _LT_TAGVAR(hardcode_minus_L, $1)=no
5849 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5850 _LT_TAGVAR(hardcode_automatic, $1)=no
5851 _LT_TAGVAR(inherit_rpath, $1)=no
5852 _LT_TAGVAR(module_cmds, $1)=
5853 _LT_TAGVAR(module_expsym_cmds, $1)=
5854 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5855 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5856 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5857 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5858 _LT_TAGVAR(no_undefined_flag, $1)=
5859 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5860 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5861
5862 # Source file extension for C++ test sources.
5863 ac_ext=cpp
5864
5865 # Object file extension for compiled C++ test sources.
5866 objext=o
5867 _LT_TAGVAR(objext, $1)=$objext
5868
5869 # No sense in running all these tests if we already determined that
5870 # the CXX compiler isn't working. Some variables (like enable_shared)
5871 # are currently assumed to apply to all compilers on this platform,
5872 # and will be corrupted by setting them based on a non-working compiler.
5873 if test "$_lt_caught_CXX_error" != yes; then
5874 # Code to be used in simple compile tests
5875 lt_simple_compile_test_code="int some_variable = 0;"
5876
5877 # Code to be used in simple link tests
5878 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5879
5880 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5881 _LT_TAG_COMPILER
5882
5883 # save warnings/boilerplate of simple test code
5884 _LT_COMPILER_BOILERPLATE
5885 _LT_LINKER_BOILERPLATE
5886
5887 # Allow CC to be a program name with arguments.
5888 lt_save_CC=$CC
5889 lt_save_CFLAGS=$CFLAGS
5890 lt_save_LD=$LD
5891 lt_save_GCC=$GCC
5892 GCC=$GXX
5893 lt_save_with_gnu_ld=$with_gnu_ld
5894 lt_save_path_LD=$lt_cv_path_LD
5895 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5896 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5897 else
5898 $as_unset lt_cv_prog_gnu_ld
5899 fi
5900 if test -n "${lt_cv_path_LDCXX+set}"; then
5901 lt_cv_path_LD=$lt_cv_path_LDCXX
5902 else
5903 $as_unset lt_cv_path_LD
5904 fi
5905 test -z "${LDCXX+set}" || LD=$LDCXX
5906 CC=${CXX-"c++"}
5907 CFLAGS=$CXXFLAGS
5908 compiler=$CC
5909 _LT_TAGVAR(compiler, $1)=$CC
5910 _LT_CC_BASENAME([$compiler])
5911
5912 if test -n "$compiler"; then
5913 # We don't want -fno-exception when compiling C++ code, so set the
5914 # no_builtin_flag separately
5915 if test "$GXX" = yes; then
5916 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5917 else
5918 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5919 fi
5920
5921 if test "$GXX" = yes; then
5922 # Set up default GNU C++ configuration
5923
5924 LT_PATH_LD
5925
5926 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5927 # archiving commands below assume that GNU ld is being used.
5928 if test "$with_gnu_ld" = yes; then
5929 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5930 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5931
5932 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5933 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5934
5935 # If archive_cmds runs LD, not CC, wlarc should be empty
5936 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5937 # investigate it a little bit more. (MM)
5938 wlarc='${wl}'
5939
5940 # ancient GNU ld didn't support --whole-archive et. al.
5941 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5942 $GREP 'no-whole-archive' > /dev/null; then
5943 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5944 else
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5946 fi
5947 else
5948 with_gnu_ld=no
5949 wlarc=
5950
5951 # A generic and very simple default shared library creation
5952 # command for GNU C++ for the case where it uses the native
5953 # linker, instead of GNU ld. If possible, this setting should
5954 # overridden to take advantage of the native linker features on
5955 # the platform it is being used on.
5956 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5957 fi
5958
5959 # Commands to make compiler produce verbose output that lists
5960 # what "hidden" libraries, object files and flags are used when
5961 # linking a shared library.
5962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5963
5964 else
5965 GXX=no
5966 with_gnu_ld=no
5967 wlarc=
5968 fi
5969
5970 # PORTME: fill in a description of your system's C++ link characteristics
5971 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5972 _LT_TAGVAR(ld_shlibs, $1)=yes
5973 case $host_os in
5974 aix3*)
5975 # FIXME: insert proper C++ library support
5976 _LT_TAGVAR(ld_shlibs, $1)=no
5977 ;;
5978 aix[[4-9]]*)
5979 if test "$host_cpu" = ia64; then
5980 # On IA64, the linker does run time linking by default, so we don't
5981 # have to do anything special.
5982 aix_use_runtimelinking=no
5983 exp_sym_flag='-Bexport'
5984 no_entry_flag=""
5985 else
5986 aix_use_runtimelinking=no
5987
5988 # Test if we are trying to use run time linking or normal
5989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5990 # need to do runtime linking.
5991 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5992 for ld_flag in $LDFLAGS; do
5993 case $ld_flag in
5994 *-brtl*)
5995 aix_use_runtimelinking=yes
5996 break
5997 ;;
5998 esac
5999 done
6000 ;;
6001 esac
6002
6003 exp_sym_flag='-bexport'
6004 no_entry_flag='-bnoentry'
6005 fi
6006
6007 # When large executables or shared objects are built, AIX ld can
6008 # have problems creating the table of contents. If linking a library
6009 # or program results in "error TOC overflow" add -mminimal-toc to
6010 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6011 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6012
6013 _LT_TAGVAR(archive_cmds, $1)=''
6014 _LT_TAGVAR(hardcode_direct, $1)=yes
6015 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6016 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6017 _LT_TAGVAR(link_all_deplibs, $1)=yes
6018 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6019
6020 if test "$GXX" = yes; then
6021 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6022 # We only want to do this on AIX 4.2 and lower, the check
6023 # below for broken collect2 doesn't work under 4.3+
6024 collect2name=`${CC} -print-prog-name=collect2`
6025 if test -f "$collect2name" &&
6026 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6027 then
6028 # We have reworked collect2
6029 :
6030 else
6031 # We have old collect2
6032 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6033 # It fails to find uninstalled libraries when the uninstalled
6034 # path is not listed in the libpath. Setting hardcode_minus_L
6035 # to unsupported forces relinking
6036 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6038 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6039 fi
6040 esac
6041 shared_flag='-shared'
6042 if test "$aix_use_runtimelinking" = yes; then
6043 shared_flag="$shared_flag "'${wl}-G'
6044 fi
6045 else
6046 # not using gcc
6047 if test "$host_cpu" = ia64; then
6048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6049 # chokes on -Wl,-G. The following line is correct:
6050 shared_flag='-G'
6051 else
6052 if test "$aix_use_runtimelinking" = yes; then
6053 shared_flag='${wl}-G'
6054 else
6055 shared_flag='${wl}-bM:SRE'
6056 fi
6057 fi
6058 fi
6059
6060 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6061 # It seems that -bexpall does not export symbols beginning with
6062 # underscore (_), so it is better to generate a list of symbols to
6063 # export.
6064 _LT_TAGVAR(always_export_symbols, $1)=yes
6065 if test "$aix_use_runtimelinking" = yes; then
6066 # Warning - without using the other runtime loading flags (-brtl),
6067 # -berok will link without error, but may produce a broken library.
6068 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6069 # Determine the default libpath from the value encoded in an empty
6070 # executable.
6071 _LT_SYS_MODULE_PATH_AIX([$1])
6072 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6073
6074 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6075 else
6076 if test "$host_cpu" = ia64; then
6077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6078 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6079 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6080 else
6081 # Determine the default libpath from the value encoded in an
6082 # empty executable.
6083 _LT_SYS_MODULE_PATH_AIX([$1])
6084 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6085 # Warning - without using the other run time loading flags,
6086 # -berok will link without error, but may produce a broken library.
6087 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6088 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6089 if test "$with_gnu_ld" = yes; then
6090 # We only use this code for GNU lds that support --whole-archive.
6091 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6092 else
6093 # Exported symbols can be pulled into shared objects from archives
6094 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6095 fi
6096 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6097 # This is similar to how AIX traditionally builds its shared
6098 # libraries.
6099 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6100 fi
6101 fi
6102 ;;
6103
6104 beos*)
6105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6106 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6108 # support --undefined. This deserves some investigation. FIXME
6109 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6110 else
6111 _LT_TAGVAR(ld_shlibs, $1)=no
6112 fi
6113 ;;
6114
6115 chorus*)
6116 case $cc_basename in
6117 *)
6118 # FIXME: insert proper C++ library support
6119 _LT_TAGVAR(ld_shlibs, $1)=no
6120 ;;
6121 esac
6122 ;;
6123
6124 cygwin* | mingw* | pw32* | cegcc*)
6125 case $GXX,$cc_basename in
6126 ,cl* | no,cl*)
6127 # Native MSVC
6128 # hardcode_libdir_flag_spec is actually meaningless, as there is
6129 # no search path for DLLs.
6130 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6131 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6132 _LT_TAGVAR(always_export_symbols, $1)=yes
6133 _LT_TAGVAR(file_list_spec, $1)='@'
6134 # Tell ltmain to make .lib files, not .a files.
6135 libext=lib
6136 # Tell ltmain to make .dll files, not .so files.
6137 shrext_cmds=".dll"
6138 # FIXME: Setting linknames here is a bad hack.
6139 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6140 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6141 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6142 else
6143 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6144 fi~
6145 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6146 linknames='
6147 # The linker will not automatically build a static lib if we build a DLL.
6148 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6149 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6150 # Don't use ranlib
6151 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6152 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6153 lt_tool_outputfile="@TOOL_OUTPUT@"~
6154 case $lt_outputfile in
6155 *.exe|*.EXE) ;;
6156 *)
6157 lt_outputfile="$lt_outputfile.exe"
6158 lt_tool_outputfile="$lt_tool_outputfile.exe"
6159 ;;
6160 esac~
6161 func_to_tool_file "$lt_outputfile"~
6162 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6163 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6164 $RM "$lt_outputfile.manifest";
6165 fi'
6166 ;;
6167 *)
6168 # g++
6169 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6170 # as there is no search path for DLLs.
6171 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6172 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6173 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6174 _LT_TAGVAR(always_export_symbols, $1)=no
6175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6176
6177 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6178 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6179 # If the export-symbols file already is a .def file (1st line
6180 # is EXPORTS), use it as is; otherwise, prepend...
6181 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6182 cp $export_symbols $output_objdir/$soname.def;
6183 else
6184 echo EXPORTS > $output_objdir/$soname.def;
6185 cat $export_symbols >> $output_objdir/$soname.def;
6186 fi~
6187 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6188 else
6189 _LT_TAGVAR(ld_shlibs, $1)=no
6190 fi
6191 ;;
6192 esac
6193 ;;
6194 darwin* | rhapsody*)
6195 _LT_DARWIN_LINKER_FEATURES($1)
6196 ;;
6197
6198 dgux*)
6199 case $cc_basename in
6200 ec++*)
6201 # FIXME: insert proper C++ library support
6202 _LT_TAGVAR(ld_shlibs, $1)=no
6203 ;;
6204 ghcx*)
6205 # Green Hills C++ Compiler
6206 # FIXME: insert proper C++ library support
6207 _LT_TAGVAR(ld_shlibs, $1)=no
6208 ;;
6209 *)
6210 # FIXME: insert proper C++ library support
6211 _LT_TAGVAR(ld_shlibs, $1)=no
6212 ;;
6213 esac
6214 ;;
6215
6216 freebsd[[12]]*)
6217 # C++ shared libraries reported to be fairly broken before
6218 # switch to ELF
6219 _LT_TAGVAR(ld_shlibs, $1)=no
6220 ;;
6221
6222 freebsd-elf*)
6223 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6224 ;;
6225
6226 freebsd* | dragonfly*)
6227 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6228 # conventions
6229 _LT_TAGVAR(ld_shlibs, $1)=yes
6230 ;;
6231
6232 gnu*)
6233 ;;
6234
6235 haiku*)
6236 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6237 _LT_TAGVAR(link_all_deplibs, $1)=yes
6238 ;;
6239
6240 hpux9*)
6241 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6242 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6243 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6244 _LT_TAGVAR(hardcode_direct, $1)=yes
6245 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6246 # but as the default
6247 # location of the library.
6248
6249 case $cc_basename in
6250 CC*)
6251 # FIXME: insert proper C++ library support
6252 _LT_TAGVAR(ld_shlibs, $1)=no
6253 ;;
6254 aCC*)
6255 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6256 # Commands to make compiler produce verbose output that lists
6257 # what "hidden" libraries, object files and flags are used when
6258 # linking a shared library.
6259 #
6260 # There doesn't appear to be a way to prevent this compiler from
6261 # explicitly linking system object files so we need to strip them
6262 # from the output so that they don't get included in the library
6263 # dependencies.
6264 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6265 ;;
6266 *)
6267 if test "$GXX" = yes; then
6268 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6269 else
6270 # FIXME: insert proper C++ library support
6271 _LT_TAGVAR(ld_shlibs, $1)=no
6272 fi
6273 ;;
6274 esac
6275 ;;
6276
6277 hpux10*|hpux11*)
6278 if test $with_gnu_ld = no; then
6279 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6280 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6281
6282 case $host_cpu in
6283 hppa*64*|ia64*)
6284 ;;
6285 *)
6286 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6287 ;;
6288 esac
6289 fi
6290 case $host_cpu in
6291 hppa*64*|ia64*)
6292 _LT_TAGVAR(hardcode_direct, $1)=no
6293 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6294 ;;
6295 *)
6296 _LT_TAGVAR(hardcode_direct, $1)=yes
6297 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6298 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6299 # but as the default
6300 # location of the library.
6301 ;;
6302 esac
6303
6304 case $cc_basename in
6305 CC*)
6306 # FIXME: insert proper C++ library support
6307 _LT_TAGVAR(ld_shlibs, $1)=no
6308 ;;
6309 aCC*)
6310 case $host_cpu in
6311 hppa*64*)
6312 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6313 ;;
6314 ia64*)
6315 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6316 ;;
6317 *)
6318 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6319 ;;
6320 esac
6321 # Commands to make compiler produce verbose output that lists
6322 # what "hidden" libraries, object files and flags are used when
6323 # linking a shared library.
6324 #
6325 # There doesn't appear to be a way to prevent this compiler from
6326 # explicitly linking system object files so we need to strip them
6327 # from the output so that they don't get included in the library
6328 # dependencies.
6329 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6330 ;;
6331 *)
6332 if test "$GXX" = yes; then
6333 if test $with_gnu_ld = no; then
6334 case $host_cpu in
6335 hppa*64*)
6336 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6337 ;;
6338 ia64*)
6339 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6340 ;;
6341 *)
6342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6343 ;;
6344 esac
6345 fi
6346 else
6347 # FIXME: insert proper C++ library support
6348 _LT_TAGVAR(ld_shlibs, $1)=no
6349 fi
6350 ;;
6351 esac
6352 ;;
6353
6354 interix[[3-9]]*)
6355 _LT_TAGVAR(hardcode_direct, $1)=no
6356 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6358 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6360 # Instead, shared libraries are loaded at an image base (0x10000000 by
6361 # default) and relocated if they conflict, which is a slow very memory
6362 # consuming and fragmenting process. To avoid this, we pick a random,
6363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6364 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6365 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6366 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6367 ;;
6368 irix5* | irix6*)
6369 case $cc_basename in
6370 CC*)
6371 # SGI C++
6372 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6373
6374 # Archives containing C++ object files must be created using
6375 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6376 # necessary to make sure instantiated templates are included
6377 # in the archive.
6378 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6379 ;;
6380 *)
6381 if test "$GXX" = yes; then
6382 if test "$with_gnu_ld" = no; then
6383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6384 else
6385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6386 fi
6387 fi
6388 _LT_TAGVAR(link_all_deplibs, $1)=yes
6389 ;;
6390 esac
6391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6392 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6393 _LT_TAGVAR(inherit_rpath, $1)=yes
6394 ;;
6395
6396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6397 case $cc_basename in
6398 KCC*)
6399 # Kuck and Associates, Inc. (KAI) C++ Compiler
6400
6401 # KCC will only create a shared library if the output file
6402 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6403 # to its proper name (with version) after linking.
6404 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6405 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6406 # Commands to make compiler produce verbose output that lists
6407 # what "hidden" libraries, object files and flags are used when
6408 # linking a shared library.
6409 #
6410 # There doesn't appear to be a way to prevent this compiler from
6411 # explicitly linking system object files so we need to strip them
6412 # from the output so that they don't get included in the library
6413 # dependencies.
6414 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6415
6416 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6417 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6418
6419 # Archives containing C++ object files must be created using
6420 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6421 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6422 ;;
6423 icpc* | ecpc* )
6424 # Intel C++
6425 with_gnu_ld=yes
6426 # version 8.0 and above of icpc choke on multiply defined symbols
6427 # if we add $predep_objects and $postdep_objects, however 7.1 and
6428 # earlier do not add the objects themselves.
6429 case `$CC -V 2>&1` in
6430 *"Version 7."*)
6431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6432 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6433 ;;
6434 *) # Version 8.0 or newer
6435 tmp_idyn=
6436 case $host_cpu in
6437 ia64*) tmp_idyn=' -i_dynamic';;
6438 esac
6439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6440 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6441 ;;
6442 esac
6443 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6444 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6445 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6446 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6447 ;;
6448 pgCC* | pgcpp*)
6449 # Portland Group C++ compiler
6450 case `$CC -V` in
6451 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6452 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6453 rm -rf $tpldir~
6454 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6455 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6456 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6457 rm -rf $tpldir~
6458 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6459 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6460 $RANLIB $oldlib'
6461 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6462 rm -rf $tpldir~
6463 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6464 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6465 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6466 rm -rf $tpldir~
6467 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6468 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6469 ;;
6470 *) # Version 6 and above use weak symbols
6471 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6472 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6473 ;;
6474 esac
6475
6476 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6477 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6478 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6479 ;;
6480 cxx*)
6481 # Compaq C++
6482 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6483 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6484
6485 runpath_var=LD_RUN_PATH
6486 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6487 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6488
6489 # Commands to make compiler produce verbose output that lists
6490 # what "hidden" libraries, object files and flags are used when
6491 # linking a shared library.
6492 #
6493 # There doesn't appear to be a way to prevent this compiler from
6494 # explicitly linking system object files so we need to strip them
6495 # from the output so that they don't get included in the library
6496 # dependencies.
6497 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
6498 ;;
6499 xl* | mpixl* | bgxl*)
6500 # IBM XL 8.0 on PPC, with GNU ld
6501 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6502 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6503 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6504 if test "x$supports_anon_versioning" = xyes; then
6505 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6506 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6507 echo "local: *; };" >> $output_objdir/$libname.ver~
6508 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6509 fi
6510 ;;
6511 *)
6512 case `$CC -V 2>&1 | sed 5q` in
6513 *Sun\ C*)
6514 # Sun C++ 5.9
6515 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6516 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6517 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6518 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6519 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
6520 _LT_TAGVAR(compiler_needs_object, $1)=yes
6521
6522 # Not sure whether something based on
6523 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6524 # would be better.
6525 output_verbose_link_cmd='func_echo_all'
6526
6527 # Archives containing C++ object files must be created using
6528 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6529 # necessary to make sure instantiated templates are included
6530 # in the archive.
6531 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6532 ;;
6533 esac
6534 ;;
6535 esac
6536 ;;
6537
6538 lynxos*)
6539 # FIXME: insert proper C++ library support
6540 _LT_TAGVAR(ld_shlibs, $1)=no
6541 ;;
6542
6543 m88k*)
6544 # FIXME: insert proper C++ library support
6545 _LT_TAGVAR(ld_shlibs, $1)=no
6546 ;;
6547
6548 mvs*)
6549 case $cc_basename in
6550 cxx*)
6551 # FIXME: insert proper C++ library support
6552 _LT_TAGVAR(ld_shlibs, $1)=no
6553 ;;
6554 *)
6555 # FIXME: insert proper C++ library support
6556 _LT_TAGVAR(ld_shlibs, $1)=no
6557 ;;
6558 esac
6559 ;;
6560
6561 netbsd*)
6562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6563 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6564 wlarc=
6565 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6566 _LT_TAGVAR(hardcode_direct, $1)=yes
6567 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6568 fi
6569 # Workaround some broken pre-1.5 toolchains
6570 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6571 ;;
6572
6573 *nto* | *qnx*)
6574 _LT_TAGVAR(ld_shlibs, $1)=yes
6575 ;;
6576
6577 openbsd2*)
6578 # C++ shared libraries are fairly broken
6579 _LT_TAGVAR(ld_shlibs, $1)=no
6580 ;;
6581
6582 openbsd*)
6583 if test -f /usr/libexec/ld.so; then
6584 _LT_TAGVAR(hardcode_direct, $1)=yes
6585 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6586 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6587 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6588 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6589 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6590 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6591 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6592 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6593 fi
6594 output_verbose_link_cmd=func_echo_all
6595 else
6596 _LT_TAGVAR(ld_shlibs, $1)=no
6597 fi
6598 ;;
6599
6600 osf3* | osf4* | osf5*)
6601 case $cc_basename in
6602 KCC*)
6603 # Kuck and Associates, Inc. (KAI) C++ Compiler
6604
6605 # KCC will only create a shared library if the output file
6606 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6607 # to its proper name (with version) after linking.
6608 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6609
6610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6611 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6612
6613 # Archives containing C++ object files must be created using
6614 # the KAI C++ compiler.
6615 case $host in
6616 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6617 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6618 esac
6619 ;;
6620 RCC*)
6621 # Rational C++ 2.4.1
6622 # FIXME: insert proper C++ library support
6623 _LT_TAGVAR(ld_shlibs, $1)=no
6624 ;;
6625 cxx*)
6626 case $host in
6627 osf3*)
6628 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6629 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6630 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6631 ;;
6632 *)
6633 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6634 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6635 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6636 echo "-hidden">> $lib.exp~
6637 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6638 $RM $lib.exp'
6639 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6640 ;;
6641 esac
6642
6643 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6644
6645 # Commands to make compiler produce verbose output that lists
6646 # what "hidden" libraries, object files and flags are used when
6647 # linking a shared library.
6648 #
6649 # There doesn't appear to be a way to prevent this compiler from
6650 # explicitly linking system object files so we need to strip them
6651 # from the output so that they don't get included in the library
6652 # dependencies.
6653 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6654 ;;
6655 *)
6656 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6657 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6658 case $host in
6659 osf3*)
6660 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6661 ;;
6662 *)
6663 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6664 ;;
6665 esac
6666
6667 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6668 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6669
6670 # Commands to make compiler produce verbose output that lists
6671 # what "hidden" libraries, object files and flags are used when
6672 # linking a shared library.
6673 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6674
6675 else
6676 # FIXME: insert proper C++ library support
6677 _LT_TAGVAR(ld_shlibs, $1)=no
6678 fi
6679 ;;
6680 esac
6681 ;;
6682
6683 psos*)
6684 # FIXME: insert proper C++ library support
6685 _LT_TAGVAR(ld_shlibs, $1)=no
6686 ;;
6687
6688 sunos4*)
6689 case $cc_basename in
6690 CC*)
6691 # Sun C++ 4.x
6692 # FIXME: insert proper C++ library support
6693 _LT_TAGVAR(ld_shlibs, $1)=no
6694 ;;
6695 lcc*)
6696 # Lucid
6697 # FIXME: insert proper C++ library support
6698 _LT_TAGVAR(ld_shlibs, $1)=no
6699 ;;
6700 *)
6701 # FIXME: insert proper C++ library support
6702 _LT_TAGVAR(ld_shlibs, $1)=no
6703 ;;
6704 esac
6705 ;;
6706
6707 solaris*)
6708 case $cc_basename in
6709 CC* | sunCC*)
6710 # Sun C++ 4.2, 5.x and Centerline C++
6711 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6712 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6713 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6714 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6715 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6716
6717 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6718 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6719 case $host_os in
6720 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6721 *)
6722 # The compiler driver will combine and reorder linker options,
6723 # but understands `-z linker_flag'.
6724 # Supported since Solaris 2.6 (maybe 2.5.1?)
6725 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6726 ;;
6727 esac
6728 _LT_TAGVAR(link_all_deplibs, $1)=yes
6729
6730 output_verbose_link_cmd='func_echo_all'
6731
6732 # Archives containing C++ object files must be created using
6733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6734 # necessary to make sure instantiated templates are included
6735 # in the archive.
6736 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6737 ;;
6738 gcx*)
6739 # Green Hills C++ Compiler
6740 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6741
6742 # The C++ compiler must be used to create the archive.
6743 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6744 ;;
6745 *)
6746 # GNU C++ compiler with Solaris linker
6747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6748 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6749 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6750 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6751 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6752 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6753
6754 # Commands to make compiler produce verbose output that lists
6755 # what "hidden" libraries, object files and flags are used when
6756 # linking a shared library.
6757 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6758 else
6759 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6760 # platform.
6761 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6762 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6764
6765 # Commands to make compiler produce verbose output that lists
6766 # what "hidden" libraries, object files and flags are used when
6767 # linking a shared library.
6768 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6769 fi
6770
6771 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6772 case $host_os in
6773 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6774 *)
6775 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6776 ;;
6777 esac
6778 fi
6779 ;;
6780 esac
6781 ;;
6782
6783 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6784 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6785 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6787 runpath_var='LD_RUN_PATH'
6788
6789 case $cc_basename in
6790 CC*)
6791 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6792 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6793 ;;
6794 *)
6795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6796 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6797 ;;
6798 esac
6799 ;;
6800
6801 sysv5* | sco3.2v5* | sco5v6*)
6802 # Note: We can NOT use -z defs as we might desire, because we do not
6803 # link with -lc, and that would cause any symbols used from libc to
6804 # always be unresolved, which means just about no library would
6805 # ever link correctly. If we're not using GNU ld we use -z text
6806 # though, which does catch some bad symbols but isn't as heavy-handed
6807 # as -z defs.
6808 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6809 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6810 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6811 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6812 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6813 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6814 _LT_TAGVAR(link_all_deplibs, $1)=yes
6815 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6816 runpath_var='LD_RUN_PATH'
6817
6818 case $cc_basename in
6819 CC*)
6820 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6821 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6822 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6823 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6824 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6825 '"$_LT_TAGVAR(reload_cmds, $1)"
6826 ;;
6827 *)
6828 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6829 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6830 ;;
6831 esac
6832 ;;
6833
6834 tandem*)
6835 case $cc_basename in
6836 NCC*)
6837 # NonStop-UX NCC 3.20
6838 # FIXME: insert proper C++ library support
6839 _LT_TAGVAR(ld_shlibs, $1)=no
6840 ;;
6841 *)
6842 # FIXME: insert proper C++ library support
6843 _LT_TAGVAR(ld_shlibs, $1)=no
6844 ;;
6845 esac
6846 ;;
6847
6848 vxworks*)
6849 # FIXME: insert proper C++ library support
6850 _LT_TAGVAR(ld_shlibs, $1)=no
6851 ;;
6852
6853 *)
6854 # FIXME: insert proper C++ library support
6855 _LT_TAGVAR(ld_shlibs, $1)=no
6856 ;;
6857 esac
6858
6859 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6860 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6861
6862 _LT_TAGVAR(GCC, $1)="$GXX"
6863 _LT_TAGVAR(LD, $1)="$LD"
6864
6865 ## CAVEAT EMPTOR:
6866 ## There is no encapsulation within the following macros, do not change
6867 ## the running order or otherwise move them around unless you know exactly
6868 ## what you are doing...
6869 _LT_SYS_HIDDEN_LIBDEPS($1)
6870 _LT_COMPILER_PIC($1)
6871 _LT_COMPILER_C_O($1)
6872 _LT_COMPILER_FILE_LOCKS($1)
6873 _LT_LINKER_SHLIBS($1)
6874 _LT_SYS_DYNAMIC_LINKER($1)
6875 _LT_LINKER_HARDCODE_LIBPATH($1)
6876
6877 _LT_CONFIG($1)
6878 fi # test -n "$compiler"
6879
6880 CC=$lt_save_CC
6881 CFLAGS=$lt_save_CFLAGS
6882 LDCXX=$LD
6883 LD=$lt_save_LD
6884 GCC=$lt_save_GCC
6885 with_gnu_ld=$lt_save_with_gnu_ld
6886 lt_cv_path_LDCXX=$lt_cv_path_LD
6887 lt_cv_path_LD=$lt_save_path_LD
6888 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6889 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6890 fi # test "$_lt_caught_CXX_error" != yes
6891
6892 AC_LANG_POP
6893 ])# _LT_LANG_CXX_CONFIG
6894
6895
6896 # _LT_FUNC_STRIPNAME_CNF
6897 # ----------------------
6898 # func_stripname_cnf prefix suffix name
6899 # strip PREFIX and SUFFIX off of NAME.
6900 # PREFIX and SUFFIX must not contain globbing or regex special
6901 # characters, hashes, percent signs, but SUFFIX may contain a leading
6902 # dot (in which case that matches only a dot).
6903 #
6904 # This function is identical to the (non-XSI) version of func_stripname,
6905 # except this one can be used by m4 code that may be executed by configure,
6906 # rather than the libtool script.
6907 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6908 AC_REQUIRE([_LT_DECL_SED])
6909 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6910 func_stripname_cnf ()
6911 {
6912 case ${2} in
6913 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6914 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6915 esac
6916 } # func_stripname_cnf
6917 ])# _LT_FUNC_STRIPNAME_CNF
6918
6919 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6920 # ---------------------------------
6921 # Figure out "hidden" library dependencies from verbose
6922 # compiler output when linking a shared library.
6923 # Parse the compiler output and extract the necessary
6924 # objects, libraries and library flags.
6925 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6926 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6927 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6928 # Dependencies to place before and after the object being linked:
6929 _LT_TAGVAR(predep_objects, $1)=
6930 _LT_TAGVAR(postdep_objects, $1)=
6931 _LT_TAGVAR(predeps, $1)=
6932 _LT_TAGVAR(postdeps, $1)=
6933 _LT_TAGVAR(compiler_lib_search_path, $1)=
6934
6935 dnl we can't use the lt_simple_compile_test_code here,
6936 dnl because it contains code intended for an executable,
6937 dnl not a library. It's possible we should let each
6938 dnl tag define a new lt_????_link_test_code variable,
6939 dnl but it's only used here...
6940 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6941 int a;
6942 void foo (void) { a = 0; }
6943 _LT_EOF
6944 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6945 class Foo
6946 {
6947 public:
6948 Foo (void) { a = 0; }
6949 private:
6950 int a;
6951 };
6952 _LT_EOF
6953 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6954 subroutine foo
6955 implicit none
6956 integer*4 a
6957 a=0
6958 return
6959 end
6960 _LT_EOF
6961 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6962 subroutine foo
6963 implicit none
6964 integer a
6965 a=0
6966 return
6967 end
6968 _LT_EOF
6969 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6970 public class foo {
6971 private int a;
6972 public void bar (void) {
6973 a = 0;
6974 }
6975 };
6976 _LT_EOF
6977 ])
6978
6979 _lt_libdeps_save_CFLAGS=$CFLAGS
6980 case "$CC $CFLAGS " in #(
6981 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6982 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6983 esac
6984
6985 dnl Parse the compiler output and extract the necessary
6986 dnl objects, libraries and library flags.
6987 if AC_TRY_EVAL(ac_compile); then
6988 # Parse the compiler output and extract the necessary
6989 # objects, libraries and library flags.
6990
6991 # Sentinel used to keep track of whether or not we are before
6992 # the conftest object file.
6993 pre_test_object_deps_done=no
6994
6995 for p in `eval "$output_verbose_link_cmd"`; do
6996 case ${prev}${p} in
6997
6998 -L* | -R* | -l*)
6999 # Some compilers place space between "-{L,R}" and the path.
7000 # Remove the space.
7001 if test $p = "-L" ||
7002 test $p = "-R"; then
7003 prev=$p
7004 continue
7005 fi
7006
7007 # Expand the sysroot to ease extracting the directories later.
7008 if test -z "$prev"; then
7009 case $p in
7010 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7011 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7012 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7013 esac
7014 fi
7015 case $p in
7016 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7017 esac
7018 if test "$pre_test_object_deps_done" = no; then
7019 case ${prev} in
7020 -L | -R)
7021 # Internal compiler library paths should come after those
7022 # provided the user. The postdeps already come after the
7023 # user supplied libs so there is no need to process them.
7024 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7025 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7026 else
7027 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7028 fi
7029 ;;
7030 # The "-l" case would never come before the object being
7031 # linked, so don't bother handling this case.
7032 esac
7033 else
7034 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7035 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7036 else
7037 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7038 fi
7039 fi
7040 prev=
7041 ;;
7042
7043 *.lto.$objext) ;; # Ignore GCC LTO objects
7044 *.$objext)
7045 # This assumes that the test object file only shows up
7046 # once in the compiler output.
7047 if test "$p" = "conftest.$objext"; then
7048 pre_test_object_deps_done=yes
7049 continue
7050 fi
7051
7052 if test "$pre_test_object_deps_done" = no; then
7053 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7054 _LT_TAGVAR(predep_objects, $1)="$p"
7055 else
7056 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7057 fi
7058 else
7059 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7060 _LT_TAGVAR(postdep_objects, $1)="$p"
7061 else
7062 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7063 fi
7064 fi
7065 ;;
7066
7067 *) ;; # Ignore the rest.
7068
7069 esac
7070 done
7071
7072 # Clean up.
7073 rm -f a.out a.exe
7074 else
7075 echo "libtool.m4: error: problem compiling $1 test program"
7076 fi
7077
7078 $RM -f confest.$objext
7079 CFLAGS=$_lt_libdeps_save_CFLAGS
7080
7081 # PORTME: override above test on systems where it is broken
7082 m4_if([$1], [CXX],
7083 [case $host_os in
7084 interix[[3-9]]*)
7085 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7086 # hack all around it, let's just trust "g++" to DTRT.
7087 _LT_TAGVAR(predep_objects,$1)=
7088 _LT_TAGVAR(postdep_objects,$1)=
7089 _LT_TAGVAR(postdeps,$1)=
7090 ;;
7091
7092 linux*)
7093 case `$CC -V 2>&1 | sed 5q` in
7094 *Sun\ C*)
7095 # Sun C++ 5.9
7096
7097 # The more standards-conforming stlport4 library is
7098 # incompatible with the Cstd library. Avoid specifying
7099 # it if it's in CXXFLAGS. Ignore libCrun as
7100 # -library=stlport4 depends on it.
7101 case " $CXX $CXXFLAGS " in
7102 *" -library=stlport4 "*)
7103 solaris_use_stlport4=yes
7104 ;;
7105 esac
7106
7107 if test "$solaris_use_stlport4" != yes; then
7108 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7109 fi
7110 ;;
7111 esac
7112 ;;
7113
7114 solaris*)
7115 case $cc_basename in
7116 CC* | sunCC*)
7117 # The more standards-conforming stlport4 library is
7118 # incompatible with the Cstd library. Avoid specifying
7119 # it if it's in CXXFLAGS. Ignore libCrun as
7120 # -library=stlport4 depends on it.
7121 case " $CXX $CXXFLAGS " in
7122 *" -library=stlport4 "*)
7123 solaris_use_stlport4=yes
7124 ;;
7125 esac
7126
7127 # Adding this requires a known-good setup of shared libraries for
7128 # Sun compiler versions before 5.6, else PIC objects from an old
7129 # archive will be linked into the output, leading to subtle bugs.
7130 if test "$solaris_use_stlport4" != yes; then
7131 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7132 fi
7133 ;;
7134 esac
7135 ;;
7136 esac
7137 ])
7138
7139 case " $_LT_TAGVAR(postdeps, $1) " in
7140 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7141 esac
7142 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7143 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7144 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7145 fi
7146 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7147 [The directories searched by this compiler when creating a shared library])
7148 _LT_TAGDECL([], [predep_objects], [1],
7149 [Dependencies to place before and after the objects being linked to
7150 create a shared library])
7151 _LT_TAGDECL([], [postdep_objects], [1])
7152 _LT_TAGDECL([], [predeps], [1])
7153 _LT_TAGDECL([], [postdeps], [1])
7154 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7155 [The library search path used internally by the compiler when linking
7156 a shared library])
7157 ])# _LT_SYS_HIDDEN_LIBDEPS
7158
7159
7160 # _LT_LANG_F77_CONFIG([TAG])
7161 # --------------------------
7162 # Ensure that the configuration variables for a Fortran 77 compiler are
7163 # suitably defined. These variables are subsequently used by _LT_CONFIG
7164 # to write the compiler configuration to `libtool'.
7165 m4_defun([_LT_LANG_F77_CONFIG],
7166 [AC_LANG_PUSH(Fortran 77)
7167 if test -z "$F77" || test "X$F77" = "Xno"; then
7168 _lt_disable_F77=yes
7169 fi
7170
7171 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7172 _LT_TAGVAR(allow_undefined_flag, $1)=
7173 _LT_TAGVAR(always_export_symbols, $1)=no
7174 _LT_TAGVAR(archive_expsym_cmds, $1)=
7175 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7176 _LT_TAGVAR(hardcode_direct, $1)=no
7177 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7178 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7179 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7180 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7181 _LT_TAGVAR(hardcode_minus_L, $1)=no
7182 _LT_TAGVAR(hardcode_automatic, $1)=no
7183 _LT_TAGVAR(inherit_rpath, $1)=no
7184 _LT_TAGVAR(module_cmds, $1)=
7185 _LT_TAGVAR(module_expsym_cmds, $1)=
7186 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7187 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7188 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7189 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7190 _LT_TAGVAR(no_undefined_flag, $1)=
7191 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7192 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7193
7194 # Source file extension for f77 test sources.
7195 ac_ext=f
7196
7197 # Object file extension for compiled f77 test sources.
7198 objext=o
7199 _LT_TAGVAR(objext, $1)=$objext
7200
7201 # No sense in running all these tests if we already determined that
7202 # the F77 compiler isn't working. Some variables (like enable_shared)
7203 # are currently assumed to apply to all compilers on this platform,
7204 # and will be corrupted by setting them based on a non-working compiler.
7205 if test "$_lt_disable_F77" != yes; then
7206 # Code to be used in simple compile tests
7207 lt_simple_compile_test_code="\
7208 subroutine t
7209 return
7210 end
7211 "
7212
7213 # Code to be used in simple link tests
7214 lt_simple_link_test_code="\
7215 program t
7216 end
7217 "
7218
7219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7220 _LT_TAG_COMPILER
7221
7222 # save warnings/boilerplate of simple test code
7223 _LT_COMPILER_BOILERPLATE
7224 _LT_LINKER_BOILERPLATE
7225
7226 # Allow CC to be a program name with arguments.
7227 lt_save_CC="$CC"
7228 lt_save_GCC=$GCC
7229 lt_save_CFLAGS=$CFLAGS
7230 CC=${F77-"f77"}
7231 CFLAGS=$FFLAGS
7232 compiler=$CC
7233 _LT_TAGVAR(compiler, $1)=$CC
7234 _LT_CC_BASENAME([$compiler])
7235 GCC=$G77
7236 if test -n "$compiler"; then
7237 AC_MSG_CHECKING([if libtool supports shared libraries])
7238 AC_MSG_RESULT([$can_build_shared])
7239
7240 AC_MSG_CHECKING([whether to build shared libraries])
7241 test "$can_build_shared" = "no" && enable_shared=no
7242
7243 # On AIX, shared libraries and static libraries use the same namespace, and
7244 # are all built from PIC.
7245 case $host_os in
7246 aix3*)
7247 test "$enable_shared" = yes && enable_static=no
7248 if test -n "$RANLIB"; then
7249 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7250 postinstall_cmds='$RANLIB $lib'
7251 fi
7252 ;;
7253 aix[[4-9]]*)
7254 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7255 test "$enable_shared" = yes && enable_static=no
7256 fi
7257 ;;
7258 esac
7259 AC_MSG_RESULT([$enable_shared])
7260
7261 AC_MSG_CHECKING([whether to build static libraries])
7262 # Make sure either enable_shared or enable_static is yes.
7263 test "$enable_shared" = yes || enable_static=yes
7264 AC_MSG_RESULT([$enable_static])
7265
7266 _LT_TAGVAR(GCC, $1)="$G77"
7267 _LT_TAGVAR(LD, $1)="$LD"
7268
7269 ## CAVEAT EMPTOR:
7270 ## There is no encapsulation within the following macros, do not change
7271 ## the running order or otherwise move them around unless you know exactly
7272 ## what you are doing...
7273 _LT_COMPILER_PIC($1)
7274 _LT_COMPILER_C_O($1)
7275 _LT_COMPILER_FILE_LOCKS($1)
7276 _LT_LINKER_SHLIBS($1)
7277 _LT_SYS_DYNAMIC_LINKER($1)
7278 _LT_LINKER_HARDCODE_LIBPATH($1)
7279
7280 _LT_CONFIG($1)
7281 fi # test -n "$compiler"
7282
7283 GCC=$lt_save_GCC
7284 CC="$lt_save_CC"
7285 CFLAGS="$lt_save_CFLAGS"
7286 fi # test "$_lt_disable_F77" != yes
7287
7288 AC_LANG_POP
7289 ])# _LT_LANG_F77_CONFIG
7290
7291
7292 # _LT_LANG_FC_CONFIG([TAG])
7293 # -------------------------
7294 # Ensure that the configuration variables for a Fortran compiler are
7295 # suitably defined. These variables are subsequently used by _LT_CONFIG
7296 # to write the compiler configuration to `libtool'.
7297 m4_defun([_LT_LANG_FC_CONFIG],
7298 [AC_LANG_PUSH(Fortran)
7299
7300 if test -z "$FC" || test "X$FC" = "Xno"; then
7301 _lt_disable_FC=yes
7302 fi
7303
7304 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7305 _LT_TAGVAR(allow_undefined_flag, $1)=
7306 _LT_TAGVAR(always_export_symbols, $1)=no
7307 _LT_TAGVAR(archive_expsym_cmds, $1)=
7308 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7309 _LT_TAGVAR(hardcode_direct, $1)=no
7310 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7311 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7312 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7313 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7314 _LT_TAGVAR(hardcode_minus_L, $1)=no
7315 _LT_TAGVAR(hardcode_automatic, $1)=no
7316 _LT_TAGVAR(inherit_rpath, $1)=no
7317 _LT_TAGVAR(module_cmds, $1)=
7318 _LT_TAGVAR(module_expsym_cmds, $1)=
7319 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7320 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7321 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7322 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7323 _LT_TAGVAR(no_undefined_flag, $1)=
7324 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7325 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7326
7327 # Source file extension for fc test sources.
7328 ac_ext=${ac_fc_srcext-f}
7329
7330 # Object file extension for compiled fc test sources.
7331 objext=o
7332 _LT_TAGVAR(objext, $1)=$objext
7333
7334 # No sense in running all these tests if we already determined that
7335 # the FC compiler isn't working. Some variables (like enable_shared)
7336 # are currently assumed to apply to all compilers on this platform,
7337 # and will be corrupted by setting them based on a non-working compiler.
7338 if test "$_lt_disable_FC" != yes; then
7339 # Code to be used in simple compile tests
7340 lt_simple_compile_test_code="\
7341 subroutine t
7342 return
7343 end
7344 "
7345
7346 # Code to be used in simple link tests
7347 lt_simple_link_test_code="\
7348 program t
7349 end
7350 "
7351
7352 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7353 _LT_TAG_COMPILER
7354
7355 # save warnings/boilerplate of simple test code
7356 _LT_COMPILER_BOILERPLATE
7357 _LT_LINKER_BOILERPLATE
7358
7359 # Allow CC to be a program name with arguments.
7360 lt_save_CC="$CC"
7361 lt_save_GCC=$GCC
7362 lt_save_CFLAGS=$CFLAGS
7363 CC=${FC-"f95"}
7364 CFLAGS=$FCFLAGS
7365 compiler=$CC
7366 GCC=$ac_cv_fc_compiler_gnu
7367
7368 _LT_TAGVAR(compiler, $1)=$CC
7369 _LT_CC_BASENAME([$compiler])
7370
7371 if test -n "$compiler"; then
7372 AC_MSG_CHECKING([if libtool supports shared libraries])
7373 AC_MSG_RESULT([$can_build_shared])
7374
7375 AC_MSG_CHECKING([whether to build shared libraries])
7376 test "$can_build_shared" = "no" && enable_shared=no
7377
7378 # On AIX, shared libraries and static libraries use the same namespace, and
7379 # are all built from PIC.
7380 case $host_os in
7381 aix3*)
7382 test "$enable_shared" = yes && enable_static=no
7383 if test -n "$RANLIB"; then
7384 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7385 postinstall_cmds='$RANLIB $lib'
7386 fi
7387 ;;
7388 aix[[4-9]]*)
7389 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7390 test "$enable_shared" = yes && enable_static=no
7391 fi
7392 ;;
7393 esac
7394 AC_MSG_RESULT([$enable_shared])
7395
7396 AC_MSG_CHECKING([whether to build static libraries])
7397 # Make sure either enable_shared or enable_static is yes.
7398 test "$enable_shared" = yes || enable_static=yes
7399 AC_MSG_RESULT([$enable_static])
7400
7401 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7402 _LT_TAGVAR(LD, $1)="$LD"
7403
7404 ## CAVEAT EMPTOR:
7405 ## There is no encapsulation within the following macros, do not change
7406 ## the running order or otherwise move them around unless you know exactly
7407 ## what you are doing...
7408 _LT_SYS_HIDDEN_LIBDEPS($1)
7409 _LT_COMPILER_PIC($1)
7410 _LT_COMPILER_C_O($1)
7411 _LT_COMPILER_FILE_LOCKS($1)
7412 _LT_LINKER_SHLIBS($1)
7413 _LT_SYS_DYNAMIC_LINKER($1)
7414 _LT_LINKER_HARDCODE_LIBPATH($1)
7415
7416 _LT_CONFIG($1)
7417 fi # test -n "$compiler"
7418
7419 GCC=$lt_save_GCC
7420 CC=$lt_save_CC
7421 CFLAGS=$lt_save_CFLAGS
7422 fi # test "$_lt_disable_FC" != yes
7423
7424 AC_LANG_POP
7425 ])# _LT_LANG_FC_CONFIG
7426
7427
7428 # _LT_LANG_GCJ_CONFIG([TAG])
7429 # --------------------------
7430 # Ensure that the configuration variables for the GNU Java Compiler compiler
7431 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7432 # to write the compiler configuration to `libtool'.
7433 m4_defun([_LT_LANG_GCJ_CONFIG],
7434 [AC_REQUIRE([LT_PROG_GCJ])dnl
7435 AC_LANG_SAVE
7436
7437 # Source file extension for Java test sources.
7438 ac_ext=java
7439
7440 # Object file extension for compiled Java test sources.
7441 objext=o
7442 _LT_TAGVAR(objext, $1)=$objext
7443
7444 # Code to be used in simple compile tests
7445 lt_simple_compile_test_code="class foo {}"
7446
7447 # Code to be used in simple link tests
7448 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7449
7450 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7451 _LT_TAG_COMPILER
7452
7453 # save warnings/boilerplate of simple test code
7454 _LT_COMPILER_BOILERPLATE
7455 _LT_LINKER_BOILERPLATE
7456
7457 # Allow CC to be a program name with arguments.
7458 lt_save_CC=$CC
7459 lt_save_CFLAGS=$CFLAGS
7460 lt_save_GCC=$GCC
7461 GCC=yes
7462 CC=${GCJ-"gcj"}
7463 CFLAGS=$GCJFLAGS
7464 compiler=$CC
7465 _LT_TAGVAR(compiler, $1)=$CC
7466 _LT_TAGVAR(LD, $1)="$LD"
7467 _LT_CC_BASENAME([$compiler])
7468
7469 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7470 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7471
7472 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7473 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7474 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7475
7476 if test -n "$compiler"; then
7477 _LT_COMPILER_NO_RTTI($1)
7478 _LT_COMPILER_PIC($1)
7479 _LT_COMPILER_C_O($1)
7480 _LT_COMPILER_FILE_LOCKS($1)
7481 _LT_LINKER_SHLIBS($1)
7482 _LT_LINKER_HARDCODE_LIBPATH($1)
7483
7484 _LT_CONFIG($1)
7485 fi
7486
7487 AC_LANG_RESTORE
7488
7489 GCC=$lt_save_GCC
7490 CC=$lt_save_CC
7491 CFLAGS=$lt_save_CFLAGS
7492 ])# _LT_LANG_GCJ_CONFIG
7493
7494
7495 # _LT_LANG_RC_CONFIG([TAG])
7496 # -------------------------
7497 # Ensure that the configuration variables for the Windows resource compiler
7498 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7499 # to write the compiler configuration to `libtool'.
7500 m4_defun([_LT_LANG_RC_CONFIG],
7501 [AC_REQUIRE([LT_PROG_RC])dnl
7502 AC_LANG_SAVE
7503
7504 # Source file extension for RC test sources.
7505 ac_ext=rc
7506
7507 # Object file extension for compiled RC test sources.
7508 objext=o
7509 _LT_TAGVAR(objext, $1)=$objext
7510
7511 # Code to be used in simple compile tests
7512 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7513
7514 # Code to be used in simple link tests
7515 lt_simple_link_test_code="$lt_simple_compile_test_code"
7516
7517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7518 _LT_TAG_COMPILER
7519
7520 # save warnings/boilerplate of simple test code
7521 _LT_COMPILER_BOILERPLATE
7522 _LT_LINKER_BOILERPLATE
7523
7524 # Allow CC to be a program name with arguments.
7525 lt_save_CC="$CC"
7526 lt_save_CFLAGS=$CFLAGS
7527 lt_save_GCC=$GCC
7528 GCC=
7529 CC=${RC-"windres"}
7530 CFLAGS=
7531 compiler=$CC
7532 _LT_TAGVAR(compiler, $1)=$CC
7533 _LT_CC_BASENAME([$compiler])
7534 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7535
7536 if test -n "$compiler"; then
7537 :
7538 _LT_CONFIG($1)
7539 fi
7540
7541 GCC=$lt_save_GCC
7542 AC_LANG_RESTORE
7543 CC=$lt_save_CC
7544 CFLAGS=$lt_save_CFLAGS
7545 ])# _LT_LANG_RC_CONFIG
7546
7547
7548 # LT_PROG_GCJ
7549 # -----------
7550 AC_DEFUN([LT_PROG_GCJ],
7551 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7552 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7553 [AC_CHECK_TOOL(GCJ, gcj,)
7554 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7555 AC_SUBST(GCJFLAGS)])])[]dnl
7556 ])
7557
7558 # Old name:
7559 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7560 dnl aclocal-1.4 backwards compatibility:
7561 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7562
7563
7564 # LT_PROG_RC
7565 # ----------
7566 AC_DEFUN([LT_PROG_RC],
7567 [AC_CHECK_TOOL(RC, windres,)
7568 ])
7569
7570 # Old name:
7571 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7572 dnl aclocal-1.4 backwards compatibility:
7573 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7574
7575
7576 # _LT_DECL_EGREP
7577 # --------------
7578 # If we don't have a new enough Autoconf to choose the best grep
7579 # available, choose the one first in the user's PATH.
7580 m4_defun([_LT_DECL_EGREP],
7581 [AC_REQUIRE([AC_PROG_EGREP])dnl
7582 AC_REQUIRE([AC_PROG_FGREP])dnl
7583 test -z "$GREP" && GREP=grep
7584 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7585 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7586 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7587 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7588 AC_SUBST([GREP])
7589 ])
7590
7591
7592 # _LT_DECL_OBJDUMP
7593 # --------------
7594 # If we don't have a new enough Autoconf to choose the best objdump
7595 # available, choose the one first in the user's PATH.
7596 m4_defun([_LT_DECL_OBJDUMP],
7597 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7598 test -z "$OBJDUMP" && OBJDUMP=objdump
7599 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7600 AC_SUBST([OBJDUMP])
7601 ])
7602
7603 # _LT_DECL_DLLTOOL
7604 # ----------------
7605 # Ensure DLLTOOL variable is set.
7606 m4_defun([_LT_DECL_DLLTOOL],
7607 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7608 test -z "$DLLTOOL" && DLLTOOL=dlltool
7609 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7610 AC_SUBST([DLLTOOL])
7611 ])
7612
7613 # _LT_DECL_SED
7614 # ------------
7615 # Check for a fully-functional sed program, that truncates
7616 # as few characters as possible. Prefer GNU sed if found.
7617 m4_defun([_LT_DECL_SED],
7618 [AC_PROG_SED
7619 test -z "$SED" && SED=sed
7620 Xsed="$SED -e 1s/^X//"
7621 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7622 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7623 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7624 ])# _LT_DECL_SED
7625
7626 m4_ifndef([AC_PROG_SED], [
7627 # NOTE: This macro has been submitted for inclusion into #
7628 # GNU Autoconf as AC_PROG_SED. When it is available in #
7629 # a released version of Autoconf we should remove this #
7630 # macro and use it instead. #
7631
7632 m4_defun([AC_PROG_SED],
7633 [AC_MSG_CHECKING([for a sed that does not truncate output])
7634 AC_CACHE_VAL(lt_cv_path_SED,
7635 [# Loop through the user's path and test for sed and gsed.
7636 # Then use that list of sed's as ones to test for truncation.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for lt_ac_prog in sed gsed; do
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7645 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7646 fi
7647 done
7648 done
7649 done
7650 IFS=$as_save_IFS
7651 lt_ac_max=0
7652 lt_ac_count=0
7653 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7654 # along with /bin/sed that truncates output.
7655 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7656 test ! -f $lt_ac_sed && continue
7657 cat /dev/null > conftest.in
7658 lt_ac_count=0
7659 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7660 # Check for GNU sed and select it if it is found.
7661 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7662 lt_cv_path_SED=$lt_ac_sed
7663 break
7664 fi
7665 while true; do
7666 cat conftest.in conftest.in >conftest.tmp
7667 mv conftest.tmp conftest.in
7668 cp conftest.in conftest.nl
7669 echo >>conftest.nl
7670 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7671 cmp -s conftest.out conftest.nl || break
7672 # 10000 chars as input seems more than enough
7673 test $lt_ac_count -gt 10 && break
7674 lt_ac_count=`expr $lt_ac_count + 1`
7675 if test $lt_ac_count -gt $lt_ac_max; then
7676 lt_ac_max=$lt_ac_count
7677 lt_cv_path_SED=$lt_ac_sed
7678 fi
7679 done
7680 done
7681 ])
7682 SED=$lt_cv_path_SED
7683 AC_SUBST([SED])
7684 AC_MSG_RESULT([$SED])
7685 ])#AC_PROG_SED
7686 ])#m4_ifndef
7687
7688 # Old name:
7689 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7690 dnl aclocal-1.4 backwards compatibility:
7691 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7692
7693
7694 # _LT_CHECK_SHELL_FEATURES
7695 # ------------------------
7696 # Find out whether the shell is Bourne or XSI compatible,
7697 # or has some other useful features.
7698 m4_defun([_LT_CHECK_SHELL_FEATURES],
7699 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7700 # Try some XSI features
7701 xsi_shell=no
7702 ( _lt_dummy="a/b/c"
7703 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7704 = c,a/b,b/c, \
7705 && eval 'test $(( 1 + 1 )) -eq 2 \
7706 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7707 && xsi_shell=yes
7708 AC_MSG_RESULT([$xsi_shell])
7709 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7710
7711 AC_MSG_CHECKING([whether the shell understands "+="])
7712 lt_shell_append=no
7713 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7714 >/dev/null 2>&1 \
7715 && lt_shell_append=yes
7716 AC_MSG_RESULT([$lt_shell_append])
7717 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7718
7719 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7720 lt_unset=unset
7721 else
7722 lt_unset=false
7723 fi
7724 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7725
7726 # test EBCDIC or ASCII
7727 case `echo X|tr X '\101'` in
7728 A) # ASCII based system
7729 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7730 lt_SP2NL='tr \040 \012'
7731 lt_NL2SP='tr \015\012 \040\040'
7732 ;;
7733 *) # EBCDIC based system
7734 lt_SP2NL='tr \100 \n'
7735 lt_NL2SP='tr \r\n \100\100'
7736 ;;
7737 esac
7738 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7739 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7740 ])# _LT_CHECK_SHELL_FEATURES
7741
7742
7743 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7744 # ------------------------------------------------------
7745 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7746 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7747 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7748 [dnl {
7749 sed -e '/^$1 ()$/,/^} # $1 /c\
7750 $1 ()\
7751 {\
7752 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7753 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7754 && mv -f "$cfgfile.tmp" "$cfgfile" \
7755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7756 test 0 -eq $? || _lt_function_replace_fail=:
7757 ])
7758
7759
7760 # _LT_PROG_REPLACE_SHELLFNS
7761 # -------------------------
7762 # Replace existing portable implementations of several shell functions with
7763 # equivalent extended shell implementations where those features are available..
7764 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7765 [if test x"$xsi_shell" = xyes; then
7766 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7767 case ${1} in
7768 */*) func_dirname_result="${1%/*}${2}" ;;
7769 * ) func_dirname_result="${3}" ;;
7770 esac])
7771
7772 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7773 func_basename_result="${1##*/}"])
7774
7775 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7776 case ${1} in
7777 */*) func_dirname_result="${1%/*}${2}" ;;
7778 * ) func_dirname_result="${3}" ;;
7779 esac
7780 func_basename_result="${1##*/}"])
7781
7782 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7783 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7784 # positional parameters, so assign one to ordinary parameter first.
7785 func_stripname_result=${3}
7786 func_stripname_result=${func_stripname_result#"${1}"}
7787 func_stripname_result=${func_stripname_result%"${2}"}])
7788
7789 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7790 func_split_long_opt_name=${1%%=*}
7791 func_split_long_opt_arg=${1#*=}])
7792
7793 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7794 func_split_short_opt_arg=${1#??}
7795 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7796
7797 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7798 case ${1} in
7799 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7800 *) func_lo2o_result=${1} ;;
7801 esac])
7802
7803 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7804
7805 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7806
7807 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7808 fi
7809
7810 if test x"$lt_shell_append" = xyes; then
7811 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7812
7813 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7814 func_quote_for_eval "${2}"
7815 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7816 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7817
7818 # Save a `func_append' function call where possible by direct use of '+='
7819 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7820 && mv -f "$cfgfile.tmp" "$cfgfile" \
7821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7822 test 0 -eq $? || _lt_function_replace_fail=:
7823 else
7824 # Save a `func_append' function call even when '+=' is not available
7825 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7826 && mv -f "$cfgfile.tmp" "$cfgfile" \
7827 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7828 test 0 -eq $? || _lt_function_replace_fail=:
7829 fi
7830
7831 if test x"$_lt_function_replace_fail" = x":"; then
7832 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7833 fi
7834 ])
7835
7836 # _LT_PATH_CONVERSION_FUNCTIONS
7837 # -----------------------------
7838 # Determine which file name conversion functions should be used by
7839 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7840 # for certain cross-compile configurations and native mingw.
7841 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7842 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7843 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7844 AC_MSG_CHECKING([how to convert $build file names to $host format])
7845 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7846 [case $host in
7847 *-*-mingw* )
7848 case $build in
7849 *-*-mingw* ) # actually msys
7850 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7851 ;;
7852 *-*-cygwin* )
7853 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7854 ;;
7855 * ) # otherwise, assume *nix
7856 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7857 ;;
7858 esac
7859 ;;
7860 *-*-cygwin* )
7861 case $build in
7862 *-*-mingw* ) # actually msys
7863 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7864 ;;
7865 *-*-cygwin* )
7866 lt_cv_to_host_file_cmd=func_convert_file_noop
7867 ;;
7868 * ) # otherwise, assume *nix
7869 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7870 ;;
7871 esac
7872 ;;
7873 * ) # unhandled hosts (and "normal" native builds)
7874 lt_cv_to_host_file_cmd=func_convert_file_noop
7875 ;;
7876 esac
7877 ])
7878 to_host_file_cmd=$lt_cv_to_host_file_cmd
7879 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7880 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7881 [0], [convert $build file names to $host format])dnl
7882
7883 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7884 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7885 [#assume ordinary cross tools, or native build.
7886 lt_cv_to_tool_file_cmd=func_convert_file_noop
7887 case $host in
7888 *-*-mingw* )
7889 case $build in
7890 *-*-mingw* ) # actually msys
7891 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7892 ;;
7893 esac
7894 ;;
7895 esac
7896 ])
7897 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7898 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7899 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7900 [0], [convert $build files to toolchain format])dnl
7901 ])# _LT_PATH_CONVERSION_FUNCTIONS
7902
7903 # Helper functions for option handling. -*- Autoconf -*-
7904 #
7905 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7906 # Inc.
7907 # Written by Gary V. Vaughan, 2004
7908 #
7909 # This file is free software; the Free Software Foundation gives
7910 # unlimited permission to copy and/or distribute it, with or without
7911 # modifications, as long as this notice is preserved.
7912
7913 # serial 7 ltoptions.m4
7914
7915 # This is to help aclocal find these macros, as it can't see m4_define.
7916 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7917
7918
7919 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7920 # ------------------------------------------
7921 m4_define([_LT_MANGLE_OPTION],
7922 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7923
7924
7925 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7926 # ---------------------------------------
7927 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7928 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7929 # saved as a flag.
7930 m4_define([_LT_SET_OPTION],
7931 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7932 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7933 _LT_MANGLE_DEFUN([$1], [$2]),
7934 [m4_warning([Unknown $1 option `$2'])])[]dnl
7935 ])
7936
7937
7938 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7939 # ------------------------------------------------------------
7940 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7941 m4_define([_LT_IF_OPTION],
7942 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7943
7944
7945 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7946 # -------------------------------------------------------
7947 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7948 # are set.
7949 m4_define([_LT_UNLESS_OPTIONS],
7950 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7951 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7952 [m4_define([$0_found])])])[]dnl
7953 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7954 ])[]dnl
7955 ])
7956
7957
7958 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7959 # ----------------------------------------
7960 # OPTION-LIST is a space-separated list of Libtool options associated
7961 # with MACRO-NAME. If any OPTION has a matching handler declared with
7962 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7963 # the unknown option and exit.
7964 m4_defun([_LT_SET_OPTIONS],
7965 [# Set options
7966 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7967 [_LT_SET_OPTION([$1], _LT_Option)])
7968
7969 m4_if([$1],[LT_INIT],[
7970 dnl
7971 dnl Simply set some default values (i.e off) if boolean options were not
7972 dnl specified:
7973 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7974 ])
7975 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7976 ])
7977 dnl
7978 dnl If no reference was made to various pairs of opposing options, then
7979 dnl we run the default mode handler for the pair. For example, if neither
7980 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7981 dnl archives by default:
7982 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7983 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7984 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7985 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7986 [_LT_ENABLE_FAST_INSTALL])
7987 ])
7988 ])# _LT_SET_OPTIONS
7989
7990
7991
7992 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7993 # -----------------------------------------
7994 m4_define([_LT_MANGLE_DEFUN],
7995 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7996
7997
7998 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7999 # -----------------------------------------------
8000 m4_define([LT_OPTION_DEFINE],
8001 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8002 ])# LT_OPTION_DEFINE
8003
8004
8005 # dlopen
8006 # ------
8007 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8008 ])
8009
8010 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8011 [_LT_SET_OPTION([LT_INIT], [dlopen])
8012 AC_DIAGNOSE([obsolete],
8013 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8014 put the `dlopen' option into LT_INIT's first parameter.])
8015 ])
8016
8017 dnl aclocal-1.4 backwards compatibility:
8018 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8019
8020
8021 # win32-dll
8022 # ---------
8023 # Declare package support for building win32 dll's.
8024 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8025 [enable_win32_dll=yes
8026
8027 case $host in
8028 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8029 AC_CHECK_TOOL(AS, as, false)
8030 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8031 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8032 ;;
8033 esac
8034
8035 test -z "$AS" && AS=as
8036 _LT_DECL([], [AS], [1], [Assembler program])dnl
8037
8038 test -z "$DLLTOOL" && DLLTOOL=dlltool
8039 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8040
8041 test -z "$OBJDUMP" && OBJDUMP=objdump
8042 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8043 ])# win32-dll
8044
8045 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8046 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8047 _LT_SET_OPTION([LT_INIT], [win32-dll])
8048 AC_DIAGNOSE([obsolete],
8049 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8050 put the `win32-dll' option into LT_INIT's first parameter.])
8051 ])
8052
8053 dnl aclocal-1.4 backwards compatibility:
8054 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8055
8056
8057 # _LT_ENABLE_SHARED([DEFAULT])
8058 # ----------------------------
8059 # implement the --enable-shared flag, and supports the `shared' and
8060 # `disable-shared' LT_INIT options.
8061 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8062 m4_define([_LT_ENABLE_SHARED],
8063 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8064 AC_ARG_ENABLE([shared],
8065 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8066 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8067 [p=${PACKAGE-default}
8068 case $enableval in
8069 yes) enable_shared=yes ;;
8070 no) enable_shared=no ;;
8071 *)
8072 enable_shared=no
8073 # Look at the argument we got. We use all the common list separators.
8074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8075 for pkg in $enableval; do
8076 IFS="$lt_save_ifs"
8077 if test "X$pkg" = "X$p"; then
8078 enable_shared=yes
8079 fi
8080 done
8081 IFS="$lt_save_ifs"
8082 ;;
8083 esac],
8084 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8085
8086 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8087 [Whether or not to build shared libraries])
8088 ])# _LT_ENABLE_SHARED
8089
8090 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8091 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8092
8093 # Old names:
8094 AC_DEFUN([AC_ENABLE_SHARED],
8095 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8096 ])
8097
8098 AC_DEFUN([AC_DISABLE_SHARED],
8099 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8100 ])
8101
8102 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8103 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8104
8105 dnl aclocal-1.4 backwards compatibility:
8106 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8107 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8108
8109
8110
8111 # _LT_ENABLE_STATIC([DEFAULT])
8112 # ----------------------------
8113 # implement the --enable-static flag, and support the `static' and
8114 # `disable-static' LT_INIT options.
8115 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8116 m4_define([_LT_ENABLE_STATIC],
8117 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8118 AC_ARG_ENABLE([static],
8119 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8120 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8121 [p=${PACKAGE-default}
8122 case $enableval in
8123 yes) enable_static=yes ;;
8124 no) enable_static=no ;;
8125 *)
8126 enable_static=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 for pkg in $enableval; do
8130 IFS="$lt_save_ifs"
8131 if test "X$pkg" = "X$p"; then
8132 enable_static=yes
8133 fi
8134 done
8135 IFS="$lt_save_ifs"
8136 ;;
8137 esac],
8138 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8139
8140 _LT_DECL([build_old_libs], [enable_static], [0],
8141 [Whether or not to build static libraries])
8142 ])# _LT_ENABLE_STATIC
8143
8144 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8145 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8146
8147 # Old names:
8148 AC_DEFUN([AC_ENABLE_STATIC],
8149 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8150 ])
8151
8152 AC_DEFUN([AC_DISABLE_STATIC],
8153 [_LT_SET_OPTION([LT_INIT], [disable-static])
8154 ])
8155
8156 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8157 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8158
8159 dnl aclocal-1.4 backwards compatibility:
8160 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8161 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8162
8163
8164
8165 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8166 # ----------------------------------
8167 # implement the --enable-fast-install flag, and support the `fast-install'
8168 # and `disable-fast-install' LT_INIT options.
8169 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8170 m4_define([_LT_ENABLE_FAST_INSTALL],
8171 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8172 AC_ARG_ENABLE([fast-install],
8173 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8174 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8175 [p=${PACKAGE-default}
8176 case $enableval in
8177 yes) enable_fast_install=yes ;;
8178 no) enable_fast_install=no ;;
8179 *)
8180 enable_fast_install=no
8181 # Look at the argument we got. We use all the common list separators.
8182 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8183 for pkg in $enableval; do
8184 IFS="$lt_save_ifs"
8185 if test "X$pkg" = "X$p"; then
8186 enable_fast_install=yes
8187 fi
8188 done
8189 IFS="$lt_save_ifs"
8190 ;;
8191 esac],
8192 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8193
8194 _LT_DECL([fast_install], [enable_fast_install], [0],
8195 [Whether or not to optimize for fast installation])dnl
8196 ])# _LT_ENABLE_FAST_INSTALL
8197
8198 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8199 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8200
8201 # Old names:
8202 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8203 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8204 AC_DIAGNOSE([obsolete],
8205 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8206 the `fast-install' option into LT_INIT's first parameter.])
8207 ])
8208
8209 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8210 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8211 AC_DIAGNOSE([obsolete],
8212 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8213 the `disable-fast-install' option into LT_INIT's first parameter.])
8214 ])
8215
8216 dnl aclocal-1.4 backwards compatibility:
8217 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8218 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8219
8220
8221 # _LT_WITH_PIC([MODE])
8222 # --------------------
8223 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8224 # LT_INIT options.
8225 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8226 m4_define([_LT_WITH_PIC],
8227 [AC_ARG_WITH([pic],
8228 [AS_HELP_STRING([--with-pic],
8229 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8230 [pic_mode="$withval"],
8231 [pic_mode=default])
8232
8233 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8234
8235 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8236 ])# _LT_WITH_PIC
8237
8238 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8239 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8240
8241 # Old name:
8242 AU_DEFUN([AC_LIBTOOL_PICMODE],
8243 [_LT_SET_OPTION([LT_INIT], [pic-only])
8244 AC_DIAGNOSE([obsolete],
8245 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8246 put the `pic-only' option into LT_INIT's first parameter.])
8247 ])
8248
8249 dnl aclocal-1.4 backwards compatibility:
8250 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8251
8252
8253 m4_define([_LTDL_MODE], [])
8254 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8255 [m4_define([_LTDL_MODE], [nonrecursive])])
8256 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8257 [m4_define([_LTDL_MODE], [recursive])])
8258 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8259 [m4_define([_LTDL_MODE], [subproject])])
8260
8261 m4_define([_LTDL_TYPE], [])
8262 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8263 [m4_define([_LTDL_TYPE], [installable])])
8264 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8265 [m4_define([_LTDL_TYPE], [convenience])])
8266
8267 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8268 #
8269 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8270 # Written by Gary V. Vaughan, 2004
8271 #
8272 # This file is free software; the Free Software Foundation gives
8273 # unlimited permission to copy and/or distribute it, with or without
8274 # modifications, as long as this notice is preserved.
8275
8276 # serial 6 ltsugar.m4
8277
8278 # This is to help aclocal find these macros, as it can't see m4_define.
8279 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8280
8281
8282 # lt_join(SEP, ARG1, [ARG2...])
8283 # -----------------------------
8284 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8285 # associated separator.
8286 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8287 # versions in m4sugar had bugs.
8288 m4_define([lt_join],
8289 [m4_if([$#], [1], [],
8290 [$#], [2], [[$2]],
8291 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8292 m4_define([_lt_join],
8293 [m4_if([$#$2], [2], [],
8294 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8295
8296
8297 # lt_car(LIST)
8298 # lt_cdr(LIST)
8299 # ------------
8300 # Manipulate m4 lists.
8301 # These macros are necessary as long as will still need to support
8302 # Autoconf-2.59 which quotes differently.
8303 m4_define([lt_car], [[$1]])
8304 m4_define([lt_cdr],
8305 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8306 [$#], 1, [],
8307 [m4_dquote(m4_shift($@))])])
8308 m4_define([lt_unquote], $1)
8309
8310
8311 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8312 # ------------------------------------------
8313 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8314 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8315 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8316 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8317 # than defined and empty).
8318 #
8319 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8320 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8321 m4_define([lt_append],
8322 [m4_define([$1],
8323 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8324
8325
8326
8327 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8328 # ----------------------------------------------------------
8329 # Produce a SEP delimited list of all paired combinations of elements of
8330 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8331 # has the form PREFIXmINFIXSUFFIXn.
8332 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8333 m4_define([lt_combine],
8334 [m4_if(m4_eval([$# > 3]), [1],
8335 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8336 [[m4_foreach([_Lt_prefix], [$2],
8337 [m4_foreach([_Lt_suffix],
8338 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8339 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8340
8341
8342 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8343 # -----------------------------------------------------------------------
8344 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8345 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8346 m4_define([lt_if_append_uniq],
8347 [m4_ifdef([$1],
8348 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8349 [lt_append([$1], [$2], [$3])$4],
8350 [$5])],
8351 [lt_append([$1], [$2], [$3])$4])])
8352
8353
8354 # lt_dict_add(DICT, KEY, VALUE)
8355 # -----------------------------
8356 m4_define([lt_dict_add],
8357 [m4_define([$1($2)], [$3])])
8358
8359
8360 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8361 # --------------------------------------------
8362 m4_define([lt_dict_add_subkey],
8363 [m4_define([$1($2:$3)], [$4])])
8364
8365
8366 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8367 # ----------------------------------
8368 m4_define([lt_dict_fetch],
8369 [m4_ifval([$3],
8370 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8371 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8372
8373
8374 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8375 # -----------------------------------------------------------------
8376 m4_define([lt_if_dict_fetch],
8377 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8378 [$5],
8379 [$6])])
8380
8381
8382 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8383 # --------------------------------------------------------------
8384 m4_define([lt_dict_filter],
8385 [m4_if([$5], [], [],
8386 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8387 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8388 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8389 ])
8390
8391 # ltversion.m4 -- version numbers -*- Autoconf -*-
8392 #
8393 # Copyright (C) 2004 Free Software Foundation, Inc.
8394 # Written by Scott James Remnant, 2004
8395 #
8396 # This file is free software; the Free Software Foundation gives
8397 # unlimited permission to copy and/or distribute it, with or without
8398 # modifications, as long as this notice is preserved.
8399
8400 # @configure_input@
8401
8402 # serial 3293 ltversion.m4
8403 # This file is part of GNU Libtool
8404
8405 m4_define([LT_PACKAGE_VERSION], [2.4])
8406 m4_define([LT_PACKAGE_REVISION], [1.3293])
8407
8408 AC_DEFUN([LTVERSION_VERSION],
8409 [macro_version='2.4'
8410 macro_revision='1.3293'
8411 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8412 _LT_DECL(, macro_revision, 0)
8413 ])
8414
8415 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8416 #
8417 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8418 # Written by Scott James Remnant, 2004.
8419 #
8420 # This file is free software; the Free Software Foundation gives
8421 # unlimited permission to copy and/or distribute it, with or without
8422 # modifications, as long as this notice is preserved.
8423
8424 # serial 5 lt~obsolete.m4
8425
8426 # These exist entirely to fool aclocal when bootstrapping libtool.
8427 #
8428 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8429 # which have later been changed to m4_define as they aren't part of the
8430 # exported API, or moved to Autoconf or Automake where they belong.
8431 #
8432 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8433 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8434 # using a macro with the same name in our local m4/libtool.m4 it'll
8435 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8436 # and doesn't know about Autoconf macros at all.)
8437 #
8438 # So we provide this file, which has a silly filename so it's always
8439 # included after everything else. This provides aclocal with the
8440 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8441 # because those macros already exist, or will be overwritten later.
8442 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8443 #
8444 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8445 # Yes, that means every name once taken will need to remain here until
8446 # we give up compatibility with versions before 1.7, at which point
8447 # we need to keep only those names which we still refer to.
8448
8449 # This is to help aclocal find these macros, as it can't see m4_define.
8450 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8451
8452 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8453 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8454 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8455 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8456 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8457 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8458 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8459 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8460 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8461 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8462 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8463 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8464 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8465 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8466 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8467 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8468 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8469 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8470 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8471 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8472 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8473 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8474 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8475 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8476 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8477 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8478 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8479 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8480 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8481 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8482 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8483 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8484 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8485 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8486 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8487 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8488 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8489 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8490 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8491 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8492 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8493 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8494 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8495 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8496 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8497 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8498 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8499 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8500 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8501 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8502 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8503 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8504 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8505 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8506 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8507 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8508 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8509 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8510 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8511 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8512 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8513
8514 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8515 # serial 1 (pkg-config-0.24)
8516 #
8517 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8518 #
8519 # This program is free software; you can redistribute it and/or modify
8520 # it under the terms of the GNU General Public License as published by
8521 # the Free Software Foundation; either version 2 of the License, or
8522 # (at your option) any later version.
8523 #
8524 # This program is distributed in the hope that it will be useful, but
8525 # WITHOUT ANY WARRANTY; without even the implied warranty of
8526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8527 # General Public License for more details.
8528 #
8529 # You should have received a copy of the GNU General Public License
8530 # along with this program; if not, write to the Free Software
8531 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8532 #
8533 # As a special exception to the GNU General Public License, if you
8534 # distribute this file as part of a program that contains a
8535 # configuration script generated by Autoconf, you may include it under
8536 # the same distribution terms that you use for the rest of that program.
8537
8538 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
8539 # ----------------------------------
8540 AC_DEFUN([PKG_PROG_PKG_CONFIG],
8541 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8542 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8543 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8544 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8545 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
8546
8547 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8548 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8549 fi
8550 if test -n "$PKG_CONFIG"; then
8551 _pkg_min_version=m4_default([$1], [0.9.0])
8552 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8553 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8554 AC_MSG_RESULT([yes])
8555 else
8556 AC_MSG_RESULT([no])
8557 PKG_CONFIG=""
8558 fi
8559 fi[]dnl
8560 ])# PKG_PROG_PKG_CONFIG
8561
8562 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8563 #
8564 # Check to see whether a particular set of modules exists. Similar
8565 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
8566 #
8567 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8568 # only at the first occurence in configure.ac, so if the first place
8569 # it's called might be skipped (such as if it is within an "if", you
8570 # have to call PKG_CHECK_EXISTS manually
8571 # --------------------------------------------------------------
8572 AC_DEFUN([PKG_CHECK_EXISTS],
8573 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8574 if test -n "$PKG_CONFIG" && \
8575 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8576 m4_default([$2], [:])
8577 m4_ifvaln([$3], [else
8578 $3])dnl
8579 fi])
8580
8581 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8582 # ---------------------------------------------
8583 m4_define([_PKG_CONFIG],
8584 [if test -n "$$1"; then
8585 pkg_cv_[]$1="$$1"
8586 elif test -n "$PKG_CONFIG"; then
8587 PKG_CHECK_EXISTS([$3],
8588 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8589 [pkg_failed=yes])
8590 else
8591 pkg_failed=untried
8592 fi[]dnl
8593 ])# _PKG_CONFIG
8594
8595 # _PKG_SHORT_ERRORS_SUPPORTED
8596 # -----------------------------
8597 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8598 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8600 _pkg_short_errors_supported=yes
8601 else
8602 _pkg_short_errors_supported=no
8603 fi[]dnl
8604 ])# _PKG_SHORT_ERRORS_SUPPORTED
8605
8606
8607 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8608 # [ACTION-IF-NOT-FOUND])
8609 #
8610 #
8611 # Note that if there is a possibility the first call to
8612 # PKG_CHECK_MODULES might not happen, you should be sure to include an
8613 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8614 #
8615 #
8616 # --------------------------------------------------------------
8617 AC_DEFUN([PKG_CHECK_MODULES],
8618 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8619 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8620 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8621
8622 pkg_failed=no
8623 AC_MSG_CHECKING([for $1])
8624
8625 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8626 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
8627
8628 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8629 and $1[]_LIBS to avoid the need to call pkg-config.
8630 See the pkg-config man page for more details.])
8631
8632 if test $pkg_failed = yes; then
8633 AC_MSG_RESULT([no])
8634 _PKG_SHORT_ERRORS_SUPPORTED
8635 if test $_pkg_short_errors_supported = yes; then
8636 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
8637 else
8638 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
8639 fi
8640 # Put the nasty error message in config.log where it belongs
8641 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8642
8643 m4_default([$4], [AC_MSG_ERROR(
8644 [Package requirements ($2) were not met:
8645
8646 $$1_PKG_ERRORS
8647
8648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8649 installed software in a non-standard prefix.
8650
8651 _PKG_TEXT])
8652 ])
8653 elif test $pkg_failed = untried; then
8654 AC_MSG_RESULT([no])
8655 m4_default([$4], [AC_MSG_FAILURE(
8656 [The pkg-config script could not be found or is too old. Make sure it
8657 is in your PATH or set the PKG_CONFIG environment variable to the full
8658 path to pkg-config.
8659
8660 _PKG_TEXT
8661
8662 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
8663 ])
8664 else
8665 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8666 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8667 AC_MSG_RESULT([yes])
8668 $3
8669 fi[]dnl
8670 ])# PKG_CHECK_MODULES
8671
8672 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8673 #
8674 # This file is free software; the Free Software Foundation
8675 # gives unlimited permission to copy and/or distribute it,
8676 # with or without modifications, as long as this notice is preserved.
8677
8678 # AM_AUTOMAKE_VERSION(VERSION)
8679 # ----------------------------
8680 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8681 # generated from the m4 files accompanying Automake X.Y.
8682 # (This private macro should not be called outside this file.)
8683 AC_DEFUN([AM_AUTOMAKE_VERSION],
8684 [am__api_version='1.11'
8685 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8686 dnl require some minimum version. Point them to the right macro.
8687 m4_if([$1], [1.11.1], [],
8688 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8689 ])
8690
8691 # _AM_AUTOCONF_VERSION(VERSION)
8692 # -----------------------------
8693 # aclocal traces this macro to find the Autoconf version.
8694 # This is a private macro too. Using m4_define simplifies
8695 # the logic in aclocal, which can simply ignore this definition.
8696 m4_define([_AM_AUTOCONF_VERSION], [])
8697
8698 # AM_SET_CURRENT_AUTOMAKE_VERSION
8699 # -------------------------------
8700 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8701 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8702 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8703 [AM_AUTOMAKE_VERSION([1.11.1])dnl
8704 m4_ifndef([AC_AUTOCONF_VERSION],
8705 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8706 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8707
8708 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8709
8710 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8711 #
8712 # This file is free software; the Free Software Foundation
8713 # gives unlimited permission to copy and/or distribute it,
8714 # with or without modifications, as long as this notice is preserved.
8715
8716 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8717 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8718 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8719 #
8720 # Of course, Automake must honor this variable whenever it calls a
8721 # tool from the auxiliary directory. The problem is that $srcdir (and
8722 # therefore $ac_aux_dir as well) can be either absolute or relative,
8723 # depending on how configure is run. This is pretty annoying, since
8724 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8725 # source directory, any form will work fine, but in subdirectories a
8726 # relative path needs to be adjusted first.
8727 #
8728 # $ac_aux_dir/missing
8729 # fails when called from a subdirectory if $ac_aux_dir is relative
8730 # $top_srcdir/$ac_aux_dir/missing
8731 # fails if $ac_aux_dir is absolute,
8732 # fails when called from a subdirectory in a VPATH build with
8733 # a relative $ac_aux_dir
8734 #
8735 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8736 # are both prefixed by $srcdir. In an in-source build this is usually
8737 # harmless because $srcdir is `.', but things will broke when you
8738 # start a VPATH build or use an absolute $srcdir.
8739 #
8740 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8741 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8742 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8743 # and then we would define $MISSING as
8744 # MISSING="\${SHELL} $am_aux_dir/missing"
8745 # This will work as long as MISSING is not called from configure, because
8746 # unfortunately $(top_srcdir) has no meaning in configure.
8747 # However there are other variables, like CC, which are often used in
8748 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8749 #
8750 # Another solution, used here, is to always expand $ac_aux_dir to an
8751 # absolute PATH. The drawback is that using absolute paths prevent a
8752 # configured tree to be moved without reconfiguration.
8753
8754 AC_DEFUN([AM_AUX_DIR_EXPAND],
8755 [dnl Rely on autoconf to set up CDPATH properly.
8756 AC_PREREQ([2.50])dnl
8757 # expand $ac_aux_dir to an absolute path
8758 am_aux_dir=`cd $ac_aux_dir && pwd`
8759 ])
8760
8761 # AM_CONDITIONAL -*- Autoconf -*-
8762
8763 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8764 # Free Software Foundation, Inc.
8765 #
8766 # This file is free software; the Free Software Foundation
8767 # gives unlimited permission to copy and/or distribute it,
8768 # with or without modifications, as long as this notice is preserved.
8769
8770 # serial 9
8771
8772 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8773 # -------------------------------------
8774 # Define a conditional.
8775 AC_DEFUN([AM_CONDITIONAL],
8776 [AC_PREREQ(2.52)dnl
8777 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8778 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8779 AC_SUBST([$1_TRUE])dnl
8780 AC_SUBST([$1_FALSE])dnl
8781 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8782 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8783 m4_define([_AM_COND_VALUE_$1], [$2])dnl
8784 if $2; then
8785 $1_TRUE=
8786 $1_FALSE='#'
8787 else
8788 $1_TRUE='#'
8789 $1_FALSE=
8790 fi
8791 AC_CONFIG_COMMANDS_PRE(
8792 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8793 AC_MSG_ERROR([[conditional "$1" was never defined.
8794 Usually this means the macro was only invoked conditionally.]])
8795 fi])])
8796
8797 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8798 # Free Software Foundation, Inc.
8799 #
8800 # This file is free software; the Free Software Foundation
8801 # gives unlimited permission to copy and/or distribute it,
8802 # with or without modifications, as long as this notice is preserved.
8803
8804 # serial 10
8805
8806 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8807 # written in clear, in which case automake, when reading aclocal.m4,
8808 # will think it sees a *use*, and therefore will trigger all it's
8809 # C support machinery. Also note that it means that autoscan, seeing
8810 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8811
8812
8813 # _AM_DEPENDENCIES(NAME)
8814 # ----------------------
8815 # See how the compiler implements dependency checking.
8816 # NAME is "CC", "CXX", "GCJ", or "OBJC".
8817 # We try a few techniques and use that to set a single cache variable.
8818 #
8819 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8820 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8821 # dependency, and given that the user is not expected to run this macro,
8822 # just rely on AC_PROG_CC.
8823 AC_DEFUN([_AM_DEPENDENCIES],
8824 [AC_REQUIRE([AM_SET_DEPDIR])dnl
8825 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8826 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8827 AC_REQUIRE([AM_DEP_TRACK])dnl
8828
8829 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8830 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8831 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8832 [$1], UPC, [depcc="$UPC" am_compiler_list=],
8833 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8834 [depcc="$$1" am_compiler_list=])
8835
8836 AC_CACHE_CHECK([dependency style of $depcc],
8837 [am_cv_$1_dependencies_compiler_type],
8838 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8839 # We make a subdir and do the tests there. Otherwise we can end up
8840 # making bogus files that we don't know about and never remove. For
8841 # instance it was reported that on HP-UX the gcc test will end up
8842 # making a dummy file named `D' -- because `-MD' means `put the output
8843 # in D'.
8844 mkdir conftest.dir
8845 # Copy depcomp to subdir because otherwise we won't find it if we're
8846 # using a relative directory.
8847 cp "$am_depcomp" conftest.dir
8848 cd conftest.dir
8849 # We will build objects and dependencies in a subdirectory because
8850 # it helps to detect inapplicable dependency modes. For instance
8851 # both Tru64's cc and ICC support -MD to output dependencies as a
8852 # side effect of compilation, but ICC will put the dependencies in
8853 # the current directory while Tru64 will put them in the object
8854 # directory.
8855 mkdir sub
8856
8857 am_cv_$1_dependencies_compiler_type=none
8858 if test "$am_compiler_list" = ""; then
8859 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8860 fi
8861 am__universal=false
8862 m4_case([$1], [CC],
8863 [case " $depcc " in #(
8864 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8865 esac],
8866 [CXX],
8867 [case " $depcc " in #(
8868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8869 esac])
8870
8871 for depmode in $am_compiler_list; do
8872 # Setup a source with many dependencies, because some compilers
8873 # like to wrap large dependency lists on column 80 (with \), and
8874 # we should not choose a depcomp mode which is confused by this.
8875 #
8876 # We need to recreate these files for each test, as the compiler may
8877 # overwrite some of them when testing with obscure command lines.
8878 # This happens at least with the AIX C compiler.
8879 : > sub/conftest.c
8880 for i in 1 2 3 4 5 6; do
8881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8882 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8883 # Solaris 8's {/usr,}/bin/sh.
8884 touch sub/conftst$i.h
8885 done
8886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8887
8888 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8889 # mode. It turns out that the SunPro C++ compiler does not properly
8890 # handle `-M -o', and we need to detect this. Also, some Intel
8891 # versions had trouble with output in subdirs
8892 am__obj=sub/conftest.${OBJEXT-o}
8893 am__minus_obj="-o $am__obj"
8894 case $depmode in
8895 gcc)
8896 # This depmode causes a compiler race in universal mode.
8897 test "$am__universal" = false || continue
8898 ;;
8899 nosideeffect)
8900 # after this tag, mechanisms are not by side-effect, so they'll
8901 # only be used when explicitly requested
8902 if test "x$enable_dependency_tracking" = xyes; then
8903 continue
8904 else
8905 break
8906 fi
8907 ;;
8908 msvisualcpp | msvcmsys)
8909 # This compiler won't grok `-c -o', but also, the minuso test has
8910 # not run yet. These depmodes are late enough in the game, and
8911 # so weak that their functioning should not be impacted.
8912 am__obj=conftest.${OBJEXT-o}
8913 am__minus_obj=
8914 ;;
8915 none) break ;;
8916 esac
8917 if depmode=$depmode \
8918 source=sub/conftest.c object=$am__obj \
8919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8921 >/dev/null 2>conftest.err &&
8922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8926 # icc doesn't choke on unknown options, it will just issue warnings
8927 # or remarks (even with -Werror). So we grep stderr for any message
8928 # that says an option was ignored or not supported.
8929 # When given -MP, icc 7.0 and 7.1 complain thusly:
8930 # icc: Command line warning: ignoring option '-M'; no argument required
8931 # The diagnosis changed in icc 8.0:
8932 # icc: Command line remark: option '-MP' not supported
8933 if (grep 'ignoring option' conftest.err ||
8934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8935 am_cv_$1_dependencies_compiler_type=$depmode
8936 break
8937 fi
8938 fi
8939 done
8940
8941 cd ..
8942 rm -rf conftest.dir
8943 else
8944 am_cv_$1_dependencies_compiler_type=none
8945 fi
8946 ])
8947 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8948 AM_CONDITIONAL([am__fastdep$1], [
8949 test "x$enable_dependency_tracking" != xno \
8950 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8951 ])
8952
8953
8954 # AM_SET_DEPDIR
8955 # -------------
8956 # Choose a directory name for dependency files.
8957 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
8958 AC_DEFUN([AM_SET_DEPDIR],
8959 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8960 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8961 ])
8962
8963
8964 # AM_DEP_TRACK
8965 # ------------
8966 AC_DEFUN([AM_DEP_TRACK],
8967 [AC_ARG_ENABLE(dependency-tracking,
8968 [ --disable-dependency-tracking speeds up one-time build
8969 --enable-dependency-tracking do not reject slow dependency extractors])
8970 if test "x$enable_dependency_tracking" != xno; then
8971 am_depcomp="$ac_aux_dir/depcomp"
8972 AMDEPBACKSLASH='\'
8973 fi
8974 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8975 AC_SUBST([AMDEPBACKSLASH])dnl
8976 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
8977 ])
8978
8979 # Generate code to set up dependency tracking. -*- Autoconf -*-
8980
8981 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8982 # Free Software Foundation, Inc.
8983 #
8984 # This file is free software; the Free Software Foundation
8985 # gives unlimited permission to copy and/or distribute it,
8986 # with or without modifications, as long as this notice is preserved.
8987
8988 #serial 5
8989
8990 # _AM_OUTPUT_DEPENDENCY_COMMANDS
8991 # ------------------------------
8992 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8993 [{
8994 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8995 # are listed without --file. Let's play safe and only enable the eval
8996 # if we detect the quoting.
8997 case $CONFIG_FILES in
8998 *\'*) eval set x "$CONFIG_FILES" ;;
8999 *) set x $CONFIG_FILES ;;
9000 esac
9001 shift
9002 for mf
9003 do
9004 # Strip MF so we end up with the name of the file.
9005 mf=`echo "$mf" | sed -e 's/:.*$//'`
9006 # Check whether this is an Automake generated Makefile or not.
9007 # We used to match only the files named `Makefile.in', but
9008 # some people rename them; so instead we look at the file content.
9009 # Grep'ing the first line is not enough: some people post-process
9010 # each Makefile.in and add a new line on top of each file to say so.
9011 # Grep'ing the whole file is not good either: AIX grep has a line
9012 # limit of 2048, but all sed's we know have understand at least 4000.
9013 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9014 dirpart=`AS_DIRNAME("$mf")`
9015 else
9016 continue
9017 fi
9018 # Extract the definition of DEPDIR, am__include, and am__quote
9019 # from the Makefile without running `make'.
9020 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9021 test -z "$DEPDIR" && continue
9022 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9023 test -z "am__include" && continue
9024 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9025 # When using ansi2knr, U may be empty or an underscore; expand it
9026 U=`sed -n 's/^U = //p' < "$mf"`
9027 # Find all dependency output files, they are included files with
9028 # $(DEPDIR) in their names. We invoke sed twice because it is the
9029 # simplest approach to changing $(DEPDIR) to its actual value in the
9030 # expansion.
9031 for file in `sed -n "
9032 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9033 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9034 # Make sure the directory exists.
9035 test -f "$dirpart/$file" && continue
9036 fdir=`AS_DIRNAME(["$file"])`
9037 AS_MKDIR_P([$dirpart/$fdir])
9038 # echo "creating $dirpart/$file"
9039 echo '# dummy' > "$dirpart/$file"
9040 done
9041 done
9042 }
9043 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9044
9045
9046 # AM_OUTPUT_DEPENDENCY_COMMANDS
9047 # -----------------------------
9048 # This macro should only be invoked once -- use via AC_REQUIRE.
9049 #
9050 # This code is only required when automatic dependency tracking
9051 # is enabled. FIXME. This creates each `.P' file that we will
9052 # need in order to bootstrap the dependency handling code.
9053 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9054 [AC_CONFIG_COMMANDS([depfiles],
9055 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9056 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9057 ])
9058
9059 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9060 # Free Software Foundation, Inc.
9061 #
9062 # This file is free software; the Free Software Foundation
9063 # gives unlimited permission to copy and/or distribute it,
9064 # with or without modifications, as long as this notice is preserved.
9065
9066 # serial 8
9067
9068 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9069 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9070
9071 # Do all the work for Automake. -*- Autoconf -*-
9072
9073 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9074 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9075 #
9076 # This file is free software; the Free Software Foundation
9077 # gives unlimited permission to copy and/or distribute it,
9078 # with or without modifications, as long as this notice is preserved.
9079
9080 # serial 16
9081
9082 # This macro actually does too much. Some checks are only needed if
9083 # your package does certain things. But this isn't really a big deal.
9084
9085 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9086 # AM_INIT_AUTOMAKE([OPTIONS])
9087 # -----------------------------------------------
9088 # The call with PACKAGE and VERSION arguments is the old style
9089 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9090 # and VERSION should now be passed to AC_INIT and removed from
9091 # the call to AM_INIT_AUTOMAKE.
9092 # We support both call styles for the transition. After
9093 # the next Automake release, Autoconf can make the AC_INIT
9094 # arguments mandatory, and then we can depend on a new Autoconf
9095 # release and drop the old call support.
9096 AC_DEFUN([AM_INIT_AUTOMAKE],
9097 [AC_PREREQ([2.62])dnl
9098 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9099 dnl the ones we care about.
9100 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9101 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9102 AC_REQUIRE([AC_PROG_INSTALL])dnl
9103 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9104 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9105 # is not polluted with repeated "-I."
9106 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9107 # test to see if srcdir already configured
9108 if test -f $srcdir/config.status; then
9109 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9110 fi
9111 fi
9112
9113 # test whether we have cygpath
9114 if test -z "$CYGPATH_W"; then
9115 if (cygpath --version) >/dev/null 2>/dev/null; then
9116 CYGPATH_W='cygpath -w'
9117 else
9118 CYGPATH_W=echo
9119 fi
9120 fi
9121 AC_SUBST([CYGPATH_W])
9122
9123 # Define the identity of the package.
9124 dnl Distinguish between old-style and new-style calls.
9125 m4_ifval([$2],
9126 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9127 AC_SUBST([PACKAGE], [$1])dnl
9128 AC_SUBST([VERSION], [$2])],
9129 [_AM_SET_OPTIONS([$1])dnl
9130 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9131 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9132 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9133 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9134 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9135
9136 _AM_IF_OPTION([no-define],,
9137 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9138 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9139
9140 # Some tools Automake needs.
9141 AC_REQUIRE([AM_SANITY_CHECK])dnl
9142 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9143 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9144 AM_MISSING_PROG(AUTOCONF, autoconf)
9145 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9146 AM_MISSING_PROG(AUTOHEADER, autoheader)
9147 AM_MISSING_PROG(MAKEINFO, makeinfo)
9148 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9149 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9150 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9151 # We need awk for the "check" target. The system "awk" is bad on
9152 # some platforms.
9153 AC_REQUIRE([AC_PROG_AWK])dnl
9154 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9155 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9156 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9157 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9158 [_AM_PROG_TAR([v7])])])
9159 _AM_IF_OPTION([no-dependencies],,
9160 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9161 [_AM_DEPENDENCIES(CC)],
9162 [define([AC_PROG_CC],
9163 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9164 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9165 [_AM_DEPENDENCIES(CXX)],
9166 [define([AC_PROG_CXX],
9167 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9168 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9169 [_AM_DEPENDENCIES(OBJC)],
9170 [define([AC_PROG_OBJC],
9171 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9172 ])
9173 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9174 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9175 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9176 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9177 AC_CONFIG_COMMANDS_PRE(dnl
9178 [m4_provide_if([_AM_COMPILER_EXEEXT],
9179 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9180 ])
9181
9182 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9183 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9184 dnl mangled by Autoconf and run in a shell conditional statement.
9185 m4_define([_AC_COMPILER_EXEEXT],
9186 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9187
9188
9189 # When config.status generates a header, we must update the stamp-h file.
9190 # This file resides in the same directory as the config header
9191 # that is generated. The stamp files are numbered to have different names.
9192
9193 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9194 # loop where config.status creates the headers, so we can generate
9195 # our stamp files there.
9196 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9197 [# Compute $1's index in $config_headers.
9198 _am_arg=$1
9199 _am_stamp_count=1
9200 for _am_header in $config_headers :; do
9201 case $_am_header in
9202 $_am_arg | $_am_arg:* )
9203 break ;;
9204 * )
9205 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9206 esac
9207 done
9208 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9209
9210 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9211 #
9212 # This file is free software; the Free Software Foundation
9213 # gives unlimited permission to copy and/or distribute it,
9214 # with or without modifications, as long as this notice is preserved.
9215
9216 # AM_PROG_INSTALL_SH
9217 # ------------------
9218 # Define $install_sh.
9219 AC_DEFUN([AM_PROG_INSTALL_SH],
9220 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9221 if test x"${install_sh}" != xset; then
9222 case $am_aux_dir in
9223 *\ * | *\ *)
9224 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9225 *)
9226 install_sh="\${SHELL} $am_aux_dir/install-sh"
9227 esac
9228 fi
9229 AC_SUBST(install_sh)])
9230
9231 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9232 #
9233 # This file is free software; the Free Software Foundation
9234 # gives unlimited permission to copy and/or distribute it,
9235 # with or without modifications, as long as this notice is preserved.
9236
9237 # serial 2
9238
9239 # Check whether the underlying file-system supports filenames
9240 # with a leading dot. For instance MS-DOS doesn't.
9241 AC_DEFUN([AM_SET_LEADING_DOT],
9242 [rm -rf .tst 2>/dev/null
9243 mkdir .tst 2>/dev/null
9244 if test -d .tst; then
9245 am__leading_dot=.
9246 else
9247 am__leading_dot=_
9248 fi
9249 rmdir .tst 2>/dev/null
9250 AC_SUBST([am__leading_dot])])
9251
9252 # Check to see how 'make' treats includes. -*- Autoconf -*-
9253
9254 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9255 #
9256 # This file is free software; the Free Software Foundation
9257 # gives unlimited permission to copy and/or distribute it,
9258 # with or without modifications, as long as this notice is preserved.
9259
9260 # serial 4
9261
9262 # AM_MAKE_INCLUDE()
9263 # -----------------
9264 # Check to see how make treats includes.
9265 AC_DEFUN([AM_MAKE_INCLUDE],
9266 [am_make=${MAKE-make}
9267 cat > confinc << 'END'
9268 am__doit:
9269 @echo this is the am__doit target
9270 .PHONY: am__doit
9271 END
9272 # If we don't find an include directive, just comment out the code.
9273 AC_MSG_CHECKING([for style of include used by $am_make])
9274 am__include="#"
9275 am__quote=
9276 _am_result=none
9277 # First try GNU make style include.
9278 echo "include confinc" > confmf
9279 # Ignore all kinds of additional output from `make'.
9280 case `$am_make -s -f confmf 2> /dev/null` in #(
9281 *the\ am__doit\ target*)
9282 am__include=include
9283 am__quote=
9284 _am_result=GNU
9285 ;;
9286 esac
9287 # Now try BSD make style include.
9288 if test "$am__include" = "#"; then
9289 echo '.include "confinc"' > confmf
9290 case `$am_make -s -f confmf 2> /dev/null` in #(
9291 *the\ am__doit\ target*)
9292 am__include=.include
9293 am__quote="\""
9294 _am_result=BSD
9295 ;;
9296 esac
9297 fi
9298 AC_SUBST([am__include])
9299 AC_SUBST([am__quote])
9300 AC_MSG_RESULT([$_am_result])
9301 rm -f confinc confmf
9302 ])
9303
9304 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9305 # Free Software Foundation, Inc.
9306 #
9307 # This file is free software; the Free Software Foundation
9308 # gives unlimited permission to copy and/or distribute it,
9309 # with or without modifications, as long as this notice is preserved.
9310
9311 # serial 6
9312
9313 # AM_PROG_CC_C_O
9314 # --------------
9315 # Like AC_PROG_CC_C_O, but changed for automake.
9316 AC_DEFUN([AM_PROG_CC_C_O],
9317 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
9318 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9319 AC_REQUIRE_AUX_FILE([compile])dnl
9320 # FIXME: we rely on the cache variable name because
9321 # there is no other way.
9322 set dummy $CC
9323 am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9324 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9325 if test "$am_t" != yes; then
9326 # Losing compiler, so override with the script.
9327 # FIXME: It is wrong to rewrite CC.
9328 # But if we don't then we get into trouble of one sort or another.
9329 # A longer-term fix would be to have automake use am__CC in this case,
9330 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9331 CC="$am_aux_dir/compile $CC"
9332 fi
9333 dnl Make sure AC_PROG_CC is never called again, or it will override our
9334 dnl setting of CC.
9335 m4_define([AC_PROG_CC],
9336 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9337 ])
9338
9339 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9340
9341 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9342 # Free Software Foundation, Inc.
9343 #
9344 # This file is free software; the Free Software Foundation
9345 # gives unlimited permission to copy and/or distribute it,
9346 # with or without modifications, as long as this notice is preserved.
9347
9348 # serial 6
9349
9350 # AM_MISSING_PROG(NAME, PROGRAM)
9351 # ------------------------------
9352 AC_DEFUN([AM_MISSING_PROG],
9353 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9354 $1=${$1-"${am_missing_run}$2"}
9355 AC_SUBST($1)])
9356
9357
9358 # AM_MISSING_HAS_RUN
9359 # ------------------
9360 # Define MISSING if not defined so far and test if it supports --run.
9361 # If it does, set am_missing_run to use it, otherwise, to nothing.
9362 AC_DEFUN([AM_MISSING_HAS_RUN],
9363 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9364 AC_REQUIRE_AUX_FILE([missing])dnl
9365 if test x"${MISSING+set}" != xset; then
9366 case $am_aux_dir in
9367 *\ * | *\ *)
9368 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9369 *)
9370 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9371 esac
9372 fi
9373 # Use eval to expand $SHELL
9374 if eval "$MISSING --run true"; then
9375 am_missing_run="$MISSING --run "
9376 else
9377 am_missing_run=
9378 AC_MSG_WARN([`missing' script is too old or missing])
9379 fi
9380 ])
9381
9382 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9383 #
9384 # This file is free software; the Free Software Foundation
9385 # gives unlimited permission to copy and/or distribute it,
9386 # with or without modifications, as long as this notice is preserved.
9387
9388 # AM_PROG_MKDIR_P
9389 # ---------------
9390 # Check for `mkdir -p'.
9391 AC_DEFUN([AM_PROG_MKDIR_P],
9392 [AC_PREREQ([2.60])dnl
9393 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9394 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9395 dnl while keeping a definition of mkdir_p for backward compatibility.
9396 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9397 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9398 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9399 dnl adjustment using top_builddir (which is defined more often than
9400 dnl MKDIR_P).
9401 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9402 case $mkdir_p in
9403 [[\\/$]]* | ?:[[\\/]]*) ;;
9404 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9405 esac
9406 ])
9407
9408 # Helper functions for option handling. -*- Autoconf -*-
9409
9410 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9411 #
9412 # This file is free software; the Free Software Foundation
9413 # gives unlimited permission to copy and/or distribute it,
9414 # with or without modifications, as long as this notice is preserved.
9415
9416 # serial 4
9417
9418 # _AM_MANGLE_OPTION(NAME)
9419 # -----------------------
9420 AC_DEFUN([_AM_MANGLE_OPTION],
9421 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9422
9423 # _AM_SET_OPTION(NAME)
9424 # ------------------------------
9425 # Set option NAME. Presently that only means defining a flag for this option.
9426 AC_DEFUN([_AM_SET_OPTION],
9427 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9428
9429 # _AM_SET_OPTIONS(OPTIONS)
9430 # ----------------------------------
9431 # OPTIONS is a space-separated list of Automake options.
9432 AC_DEFUN([_AM_SET_OPTIONS],
9433 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9434
9435 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9436 # -------------------------------------------
9437 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9438 AC_DEFUN([_AM_IF_OPTION],
9439 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9440
9441 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9442
9443 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9444 # Free Software Foundation, Inc.
9445 #
9446 # This file is free software; the Free Software Foundation
9447 # gives unlimited permission to copy and/or distribute it,
9448 # with or without modifications, as long as this notice is preserved.
9449
9450 # serial 5
9451
9452 # AM_SANITY_CHECK
9453 # ---------------
9454 AC_DEFUN([AM_SANITY_CHECK],
9455 [AC_MSG_CHECKING([whether build environment is sane])
9456 # Just in case
9457 sleep 1
9458 echo timestamp > conftest.file
9459 # Reject unsafe characters in $srcdir or the absolute working directory
9460 # name. Accept space and tab only in the latter.
9461 am_lf='
9462 '
9463 case `pwd` in
9464 *[[\\\"\#\$\&\'\`$am_lf]]*)
9465 AC_MSG_ERROR([unsafe absolute working directory name]);;
9466 esac
9467 case $srcdir in
9468 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9469 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9470 esac
9471
9472 # Do `set' in a subshell so we don't clobber the current shell's
9473 # arguments. Must try -L first in case configure is actually a
9474 # symlink; some systems play weird games with the mod time of symlinks
9475 # (eg FreeBSD returns the mod time of the symlink's containing
9476 # directory).
9477 if (
9478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9479 if test "$[*]" = "X"; then
9480 # -L didn't work.
9481 set X `ls -t "$srcdir/configure" conftest.file`
9482 fi
9483 rm -f conftest.file
9484 if test "$[*]" != "X $srcdir/configure conftest.file" \
9485 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9486
9487 # If neither matched, then we have a broken ls. This can happen
9488 # if, for instance, CONFIG_SHELL is bash and it inherits a
9489 # broken ls alias from the environment. This has actually
9490 # happened. Such a system could not be considered "sane".
9491 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9492 alias in your environment])
9493 fi
9494
9495 test "$[2]" = conftest.file
9496 )
9497 then
9498 # Ok.
9499 :
9500 else
9501 AC_MSG_ERROR([newly created file is older than distributed files!
9502 Check your system clock])
9503 fi
9504 AC_MSG_RESULT(yes)])
9505
9506 # Copyright (C) 2009 Free Software Foundation, Inc.
9507 #
9508 # This file is free software; the Free Software Foundation
9509 # gives unlimited permission to copy and/or distribute it,
9510 # with or without modifications, as long as this notice is preserved.
9511
9512 # serial 1
9513
9514 # AM_SILENT_RULES([DEFAULT])
9515 # --------------------------
9516 # Enable less verbose build rules; with the default set to DEFAULT
9517 # (`yes' being less verbose, `no' or empty being verbose).
9518 AC_DEFUN([AM_SILENT_RULES],
9519 [AC_ARG_ENABLE([silent-rules],
9520 [ --enable-silent-rules less verbose build output (undo: `make V=1')
9521 --disable-silent-rules verbose build output (undo: `make V=0')])
9522 case $enable_silent_rules in
9523 yes) AM_DEFAULT_VERBOSITY=0;;
9524 no) AM_DEFAULT_VERBOSITY=1;;
9525 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
9526 esac
9527 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
9528 AM_BACKSLASH='\'
9529 AC_SUBST([AM_BACKSLASH])dnl
9530 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
9531 ])
9532
9533 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9534 #
9535 # This file is free software; the Free Software Foundation
9536 # gives unlimited permission to copy and/or distribute it,
9537 # with or without modifications, as long as this notice is preserved.
9538
9539 # AM_PROG_INSTALL_STRIP
9540 # ---------------------
9541 # One issue with vendor `install' (even GNU) is that you can't
9542 # specify the program used to strip binaries. This is especially
9543 # annoying in cross-compiling environments, where the build's strip
9544 # is unlikely to handle the host's binaries.
9545 # Fortunately install-sh will honor a STRIPPROG variable, so we
9546 # always use install-sh in `make install-strip', and initialize
9547 # STRIPPROG with the value of the STRIP variable (set by the user).
9548 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9549 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9550 # Installed binaries are usually stripped using `strip' when the user
9551 # run `make install-strip'. However `strip' might not be the right
9552 # tool to use in cross-compilation environments, therefore Automake
9553 # will honor the `STRIP' environment variable to overrule this program.
9554 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9555 if test "$cross_compiling" != no; then
9556 AC_CHECK_TOOL([STRIP], [strip], :)
9557 fi
9558 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9559 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9560
9561 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9562 #
9563 # This file is free software; the Free Software Foundation
9564 # gives unlimited permission to copy and/or distribute it,
9565 # with or without modifications, as long as this notice is preserved.
9566
9567 # serial 2
9568
9569 # _AM_SUBST_NOTMAKE(VARIABLE)
9570 # ---------------------------
9571 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9572 # This macro is traced by Automake.
9573 AC_DEFUN([_AM_SUBST_NOTMAKE])
9574
9575 # AM_SUBST_NOTMAKE(VARIABLE)
9576 # ---------------------------
9577 # Public sister of _AM_SUBST_NOTMAKE.
9578 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9579
9580 # Check how to create a tarball. -*- Autoconf -*-
9581
9582 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9583 #
9584 # This file is free software; the Free Software Foundation
9585 # gives unlimited permission to copy and/or distribute it,
9586 # with or without modifications, as long as this notice is preserved.
9587
9588 # serial 2
9589
9590 # _AM_PROG_TAR(FORMAT)
9591 # --------------------
9592 # Check how to create a tarball in format FORMAT.
9593 # FORMAT should be one of `v7', `ustar', or `pax'.
9594 #
9595 # Substitute a variable $(am__tar) that is a command
9596 # writing to stdout a FORMAT-tarball containing the directory
9597 # $tardir.
9598 # tardir=directory && $(am__tar) > result.tar
9599 #
9600 # Substitute a variable $(am__untar) that extract such
9601 # a tarball read from stdin.
9602 # $(am__untar) < result.tar
9603 AC_DEFUN([_AM_PROG_TAR],
9604 [# Always define AMTAR for backward compatibility.
9605 AM_MISSING_PROG([AMTAR], [tar])
9606 m4_if([$1], [v7],
9607 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9608 [m4_case([$1], [ustar],, [pax],,
9609 [m4_fatal([Unknown tar format])])
9610 AC_MSG_CHECKING([how to create a $1 tar archive])
9611 # Loop over all known methods to create a tar archive until one works.
9612 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9613 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9614 # Do not fold the above two line into one, because Tru64 sh and
9615 # Solaris sh will not grok spaces in the rhs of `-'.
9616 for _am_tool in $_am_tools
9617 do
9618 case $_am_tool in
9619 gnutar)
9620 for _am_tar in tar gnutar gtar;
9621 do
9622 AM_RUN_LOG([$_am_tar --version]) && break
9623 done
9624 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9625 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9626 am__untar="$_am_tar -xf -"
9627 ;;
9628 plaintar)
9629 # Must skip GNU tar: if it does not support --format= it doesn't create
9630 # ustar tarball either.
9631 (tar --version) >/dev/null 2>&1 && continue
9632 am__tar='tar chf - "$$tardir"'
9633 am__tar_='tar chf - "$tardir"'
9634 am__untar='tar xf -'
9635 ;;
9636 pax)
9637 am__tar='pax -L -x $1 -w "$$tardir"'
9638 am__tar_='pax -L -x $1 -w "$tardir"'
9639 am__untar='pax -r'
9640 ;;
9641 cpio)
9642 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9643 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9644 am__untar='cpio -i -H $1 -d'
9645 ;;
9646 none)
9647 am__tar=false
9648 am__tar_=false
9649 am__untar=false
9650 ;;
9651 esac
9652
9653 # If the value was cached, stop now. We just wanted to have am__tar
9654 # and am__untar set.
9655 test -n "${am_cv_prog_tar_$1}" && break
9656
9657 # tar/untar a dummy directory, and stop if the command works
9658 rm -rf conftest.dir
9659 mkdir conftest.dir
9660 echo GrepMe > conftest.dir/file
9661 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9662 rm -rf conftest.dir
9663 if test -s conftest.tar; then
9664 AM_RUN_LOG([$am__untar <conftest.tar])
9665 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9666 fi
9667 done
9668 rm -rf conftest.dir
9669
9670 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9671 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9672 AC_SUBST([am__tar])
9673 AC_SUBST([am__untar])
9674 ]) # _AM_PROG_TAR
9675
9676 m4_include([acinclude.m4])
+0
-59
autobuild.sh less more
0 #!/bin/sh
1
2 set -e
3 set -v
4
5 # Make things clean.
6 test -f Makefile && make -k distclean || :
7
8 rm -rf build
9 mkdir build
10 cd build
11
12 ../autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT \
13 --enable-compile-warnings=error
14
15 make
16 make install
17
18 rm -f *.tar.gz
19 make dist
20
21 if [ -n "$AUTOBUILD_COUNTER" ]; then
22 EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER"
23 else
24 NOW=`date +"%s"`
25 EXTRA_RELEASE=".$USER$NOW"
26 fi
27
28 if [ -f /usr/bin/rpmbuild ]; then
29 rpmbuild --nodeps \
30 --define "extra_release $EXTRA_RELEASE" \
31 --define "_sourcedir `pwd`" \
32 -ba --clean libvirt-glib.spec
33 fi
34
35 if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then
36 make distclean
37
38 PKG_CONFIG_PATH="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig" \
39 CC="i686-pc-mingw32-gcc" \
40 ../configure \
41 --build=$(uname -m)-pc-linux \
42 --host=i686-pc-mingw32 \
43 --prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \
44 --without-python
45
46 make
47 make install
48
49 #set -o pipefail
50 #make check 2>&1 | tee "$RESULTS"
51
52 if [ -f /usr/bin/rpmbuild ]; then
53 rpmbuild --nodeps \
54 --define "extra_release $EXTRA_RELEASE" \
55 --define "_sourcedir `pwd`" \
56 -ba --clean mingw32-libvirt-glib.spec
57 fi
58 fi
+0
-63
autogen.sh less more
0 #!/bin/sh
1 # Run this to generate all the initial makefiles, etc.
2
3 set -e
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 THEDIR=`pwd`
8 cd $srcdir
9
10 DIE=0
11
12 (autoconf --version) < /dev/null > /dev/null 2>&1 || {
13 echo
14 echo "You must have autoconf installed to compile virt-viewer."
15 echo "Download the appropriate package for your distribution,"
16 echo "or see http://www.gnu.org/software/autoconf"
17 DIE=1
18 }
19
20 (automake --version) < /dev/null > /dev/null 2>&1 || {
21 echo
22 DIE=1
23 echo "You must have automake installed to compile virt-viewer."
24 echo "Download the appropriate package for your distribution,"
25 echo "or see http://www.gnu.org/software/automake"
26 }
27
28 if test "$DIE" -eq 1; then
29 exit 1
30 fi
31
32 if test -z "$*"; then
33 echo "I am going to run ./configure with --enable-warnings - if you "
34 echo "wish to pass any extra arguments to it, please specify them on "
35 echo "the $0 command line."
36 fi
37
38 mkdir -p build-aux
39 libtoolize --copy --force
40 aclocal
41 autoheader
42 automake --add-missing
43 autoconf
44
45 cd $THEDIR
46
47 if test "x$1" = "x--system"; then
48 shift
49 prefix=/usr
50 libdir=$prefix/lib
51 sysconfdir=/etc
52 localstatedir=/var
53 if [ -d /usr/lib64 ]; then
54 libdir=$prefix/lib64
55 fi
56 EXTRA_ARGS="--prefix=$prefix --sysconfdir=$sysconfdir --localstatedir=$localstatedir --libdir=$libdir"
57 fi
58
59 $srcdir/configure --enable-compile-warnings=maximum $EXTRA_ARGS "$@" && {
60 echo
61 echo "Now type 'make' to compile libvirt-glib."
62 }
0 #! /bin/sh
1 # Wrapper for compilers which do not understand `-c -o'.
2
3 scriptversion=2009-10-06.20; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
6 # Foundation, Inc.
7 # Written by Tom Tromey <tromey@cygnus.com>.
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, see <http://www.gnu.org/licenses/>.
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 's|^.*[\\/]||; s|^[a-zA-Z]:||; 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 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
127 elif test -f "${cofile}bj"; then
128 test "${cofile}bj" = "$ofile" || 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-time-zone: "UTC"
141 # time-stamp-end: "; # UTC"
142 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
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
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # You can get the latest version of this script from:
38 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 sh5el) machine=sh5le-unknown ;;
164 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
165 esac
166 # The Operating System including object format, if it has switched
167 # to ELF recently, or will in the future.
168 case "${UNAME_MACHINE_ARCH}" in
169 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
170 eval $set_cc_for_build
171 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
172 | grep -q __ELF__
173 then
174 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
175 # Return netbsd for either. FIX?
176 os=netbsd
177 else
178 os=netbsdelf
179 fi
180 ;;
181 *)
182 os=netbsd
183 ;;
184 esac
185 # The OS release
186 # Debian GNU/NetBSD machines have a different userland, and
187 # thus, need a distinct triplet. However, they do not need
188 # kernel version information, so it can be replaced with a
189 # suitable tag, in the style of linux-gnu.
190 case "${UNAME_VERSION}" in
191 Debian*)
192 release='-gnu'
193 ;;
194 *)
195 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
196 ;;
197 esac
198 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
199 # contains redundant information, the shorter form:
200 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201 echo "${machine}-${os}${release}"
202 exit ;;
203 *:OpenBSD:*:*)
204 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
206 exit ;;
207 *:ekkoBSD:*:*)
208 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
209 exit ;;
210 *:SolidBSD:*:*)
211 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
212 exit ;;
213 macppc:MirBSD:*:*)
214 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
215 exit ;;
216 *:MirBSD:*:*)
217 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
218 exit ;;
219 alpha:OSF1:*:*)
220 case $UNAME_RELEASE in
221 *4.0)
222 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223 ;;
224 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 ;;
227 esac
228 # According to Compaq, /usr/sbin/psrinfo has been available on
229 # OSF/1 and Tru64 systems produced since 1995. I hope that
230 # covers most systems running today. This code pipes the CPU
231 # types through head -n 1, so we only detect the type of CPU 0.
232 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
233 case "$ALPHA_CPU_TYPE" in
234 "EV4 (21064)")
235 UNAME_MACHINE="alpha" ;;
236 "EV4.5 (21064)")
237 UNAME_MACHINE="alpha" ;;
238 "LCA4 (21066/21068)")
239 UNAME_MACHINE="alpha" ;;
240 "EV5 (21164)")
241 UNAME_MACHINE="alphaev5" ;;
242 "EV5.6 (21164A)")
243 UNAME_MACHINE="alphaev56" ;;
244 "EV5.6 (21164PC)")
245 UNAME_MACHINE="alphapca56" ;;
246 "EV5.7 (21164PC)")
247 UNAME_MACHINE="alphapca57" ;;
248 "EV6 (21264)")
249 UNAME_MACHINE="alphaev6" ;;
250 "EV6.7 (21264A)")
251 UNAME_MACHINE="alphaev67" ;;
252 "EV6.8CB (21264C)")
253 UNAME_MACHINE="alphaev68" ;;
254 "EV6.8AL (21264B)")
255 UNAME_MACHINE="alphaev68" ;;
256 "EV6.8CX (21264D)")
257 UNAME_MACHINE="alphaev68" ;;
258 "EV6.9A (21264/EV69A)")
259 UNAME_MACHINE="alphaev69" ;;
260 "EV7 (21364)")
261 UNAME_MACHINE="alphaev7" ;;
262 "EV7.9 (21364A)")
263 UNAME_MACHINE="alphaev79" ;;
264 esac
265 # A Pn.n version is a patched version.
266 # A Vn.n version is a released version.
267 # A Tn.n version is a released field test version.
268 # A Xn.n version is an unreleased experimental baselevel.
269 # 1.2 uses "1.2" for uname -r.
270 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 Alpha\ *:Windows_NT*:*)
273 # How do we know it's Interix rather than the generic POSIX subsystem?
274 # Should we change UNAME_MACHINE based on the output of uname instead
275 # of the specific Alpha model?
276 echo alpha-pc-interix
277 exit ;;
278 21064:Windows_NT:50:3)
279 echo alpha-dec-winnt3.5
280 exit ;;
281 Amiga*:UNIX_System_V:4.0:*)
282 echo m68k-unknown-sysv4
283 exit ;;
284 *:[Aa]miga[Oo][Ss]:*:*)
285 echo ${UNAME_MACHINE}-unknown-amigaos
286 exit ;;
287 *:[Mm]orph[Oo][Ss]:*:*)
288 echo ${UNAME_MACHINE}-unknown-morphos
289 exit ;;
290 *:OS/390:*:*)
291 echo i370-ibm-openedition
292 exit ;;
293 *:z/VM:*:*)
294 echo s390-ibm-zvmoe
295 exit ;;
296 *:OS400:*:*)
297 echo powerpc-ibm-os400
298 exit ;;
299 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300 echo arm-acorn-riscix${UNAME_RELEASE}
301 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
303 echo arm-unknown-riscos
304 exit ;;
305 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
306 echo hppa1.1-hitachi-hiuxmpp
307 exit ;;
308 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
309 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
310 if test "`(/bin/universe) 2>/dev/null`" = att ; then
311 echo pyramid-pyramid-sysv3
312 else
313 echo pyramid-pyramid-bsd
314 fi
315 exit ;;
316 NILE*:*:*:dcosx)
317 echo pyramid-pyramid-svr4
318 exit ;;
319 DRS?6000:unix:4.0:6*)
320 echo sparc-icl-nx6
321 exit ;;
322 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
323 case `/usr/bin/uname -p` in
324 sparc) echo sparc-icl-nx7; exit ;;
325 esac ;;
326 s390x:SunOS:*:*)
327 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
328 exit ;;
329 sun4H:SunOS:5.*:*)
330 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
331 exit ;;
332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
334 exit ;;
335 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
336 echo i386-pc-auroraux${UNAME_RELEASE}
337 exit ;;
338 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
339 eval $set_cc_for_build
340 SUN_ARCH="i386"
341 # If there is a compiler, see if it is configured for 64-bit objects.
342 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
343 # This test works for both compilers.
344 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
345 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
346 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
347 grep IS_64BIT_ARCH >/dev/null
348 then
349 SUN_ARCH="x86_64"
350 fi
351 fi
352 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
353 exit ;;
354 sun4*:SunOS:6*:*)
355 # According to config.sub, this is the proper way to canonicalize
356 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
357 # it's likely to be more like Solaris than SunOS4.
358 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
359 exit ;;
360 sun4*:SunOS:*:*)
361 case "`/usr/bin/arch -k`" in
362 Series*|S4*)
363 UNAME_RELEASE=`uname -v`
364 ;;
365 esac
366 # Japanese Language versions have a version number like `4.1.3-JL'.
367 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
368 exit ;;
369 sun3*:SunOS:*:*)
370 echo m68k-sun-sunos${UNAME_RELEASE}
371 exit ;;
372 sun*:*:4.2BSD:*)
373 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
374 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
375 case "`/bin/arch`" in
376 sun3)
377 echo m68k-sun-sunos${UNAME_RELEASE}
378 ;;
379 sun4)
380 echo sparc-sun-sunos${UNAME_RELEASE}
381 ;;
382 esac
383 exit ;;
384 aushp:SunOS:*:*)
385 echo sparc-auspex-sunos${UNAME_RELEASE}
386 exit ;;
387 # The situation for MiNT is a little confusing. The machine name
388 # can be virtually everything (everything which is not
389 # "atarist" or "atariste" at least should have a processor
390 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
391 # to the lowercase version "mint" (or "freemint"). Finally
392 # the system name "TOS" denotes a system which is actually not
393 # MiNT. But MiNT is downward compatible to TOS, so this should
394 # be no problem.
395 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
396 echo m68k-atari-mint${UNAME_RELEASE}
397 exit ;;
398 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
399 echo m68k-atari-mint${UNAME_RELEASE}
400 exit ;;
401 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE}
403 exit ;;
404 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
405 echo m68k-milan-mint${UNAME_RELEASE}
406 exit ;;
407 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
408 echo m68k-hades-mint${UNAME_RELEASE}
409 exit ;;
410 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
411 echo m68k-unknown-mint${UNAME_RELEASE}
412 exit ;;
413 m68k:machten:*:*)
414 echo m68k-apple-machten${UNAME_RELEASE}
415 exit ;;
416 powerpc:machten:*:*)
417 echo powerpc-apple-machten${UNAME_RELEASE}
418 exit ;;
419 RISC*:Mach:*:*)
420 echo mips-dec-mach_bsd4.3
421 exit ;;
422 RISC*:ULTRIX:*:*)
423 echo mips-dec-ultrix${UNAME_RELEASE}
424 exit ;;
425 VAX*:ULTRIX*:*:*)
426 echo vax-dec-ultrix${UNAME_RELEASE}
427 exit ;;
428 2020:CLIX:*:* | 2430:CLIX:*:*)
429 echo clipper-intergraph-clix${UNAME_RELEASE}
430 exit ;;
431 mips:*:*:UMIPS | mips:*:*:RISCos)
432 eval $set_cc_for_build
433 sed 's/^ //' << EOF >$dummy.c
434 #ifdef __cplusplus
435 #include <stdio.h> /* for printf() prototype */
436 int main (int argc, char *argv[]) {
437 #else
438 int main (argc, argv) int argc; char *argv[]; {
439 #endif
440 #if defined (host_mips) && defined (MIPSEB)
441 #if defined (SYSTYPE_SYSV)
442 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
443 #endif
444 #if defined (SYSTYPE_SVR4)
445 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
446 #endif
447 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
448 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
449 #endif
450 #endif
451 exit (-1);
452 }
453 EOF
454 $CC_FOR_BUILD -o $dummy $dummy.c &&
455 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
456 SYSTEM_NAME=`$dummy $dummyarg` &&
457 { echo "$SYSTEM_NAME"; exit; }
458 echo mips-mips-riscos${UNAME_RELEASE}
459 exit ;;
460 Motorola:PowerMAX_OS:*:*)
461 echo powerpc-motorola-powermax
462 exit ;;
463 Motorola:*:4.3:PL8-*)
464 echo powerpc-harris-powermax
465 exit ;;
466 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
467 echo powerpc-harris-powermax
468 exit ;;
469 Night_Hawk:Power_UNIX:*:*)
470 echo powerpc-harris-powerunix
471 exit ;;
472 m88k:CX/UX:7*:*)
473 echo m88k-harris-cxux7
474 exit ;;
475 m88k:*:4*:R4*)
476 echo m88k-motorola-sysv4
477 exit ;;
478 m88k:*:3*:R3*)
479 echo m88k-motorola-sysv3
480 exit ;;
481 AViiON:dgux:*:*)
482 # DG/UX returns AViiON for all architectures
483 UNAME_PROCESSOR=`/usr/bin/uname -p`
484 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
485 then
486 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
487 [ ${TARGET_BINARY_INTERFACE}x = x ]
488 then
489 echo m88k-dg-dgux${UNAME_RELEASE}
490 else
491 echo m88k-dg-dguxbcs${UNAME_RELEASE}
492 fi
493 else
494 echo i586-dg-dgux${UNAME_RELEASE}
495 fi
496 exit ;;
497 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
498 echo m88k-dolphin-sysv3
499 exit ;;
500 M88*:*:R3*:*)
501 # Delta 88k system running SVR3
502 echo m88k-motorola-sysv3
503 exit ;;
504 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
505 echo m88k-tektronix-sysv3
506 exit ;;
507 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
508 echo m68k-tektronix-bsd
509 exit ;;
510 *:IRIX*:*:*)
511 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
512 exit ;;
513 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
514 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
515 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
516 i*86:AIX:*:*)
517 echo i386-ibm-aix
518 exit ;;
519 ia64:AIX:*:*)
520 if [ -x /usr/bin/oslevel ] ; then
521 IBM_REV=`/usr/bin/oslevel`
522 else
523 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
524 fi
525 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
526 exit ;;
527 *:AIX:2:3)
528 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
529 eval $set_cc_for_build
530 sed 's/^ //' << EOF >$dummy.c
531 #include <sys/systemcfg.h>
532
533 main()
534 {
535 if (!__power_pc())
536 exit(1);
537 puts("powerpc-ibm-aix3.2.5");
538 exit(0);
539 }
540 EOF
541 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
542 then
543 echo "$SYSTEM_NAME"
544 else
545 echo rs6000-ibm-aix3.2.5
546 fi
547 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
548 echo rs6000-ibm-aix3.2.4
549 else
550 echo rs6000-ibm-aix3.2
551 fi
552 exit ;;
553 *:AIX:*:[456])
554 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
555 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
556 IBM_ARCH=rs6000
557 else
558 IBM_ARCH=powerpc
559 fi
560 if [ -x /usr/bin/oslevel ] ; then
561 IBM_REV=`/usr/bin/oslevel`
562 else
563 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
564 fi
565 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
566 exit ;;
567 *:AIX:*:*)
568 echo rs6000-ibm-aix
569 exit ;;
570 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
571 echo romp-ibm-bsd4.4
572 exit ;;
573 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
574 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
575 exit ;; # report: romp-ibm BSD 4.3
576 *:BOSX:*:*)
577 echo rs6000-bull-bosx
578 exit ;;
579 DPX/2?00:B.O.S.:*:*)
580 echo m68k-bull-sysv3
581 exit ;;
582 9000/[34]??:4.3bsd:1.*:*)
583 echo m68k-hp-bsd
584 exit ;;
585 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
586 echo m68k-hp-bsd4.4
587 exit ;;
588 9000/[34678]??:HP-UX:*:*)
589 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
590 case "${UNAME_MACHINE}" in
591 9000/31? ) HP_ARCH=m68000 ;;
592 9000/[34]?? ) HP_ARCH=m68k ;;
593 9000/[678][0-9][0-9])
594 if [ -x /usr/bin/getconf ]; then
595 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
596 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
597 case "${sc_cpu_version}" in
598 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
599 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
600 532) # CPU_PA_RISC2_0
601 case "${sc_kernel_bits}" in
602 32) HP_ARCH="hppa2.0n" ;;
603 64) HP_ARCH="hppa2.0w" ;;
604 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
605 esac ;;
606 esac
607 fi
608 if [ "${HP_ARCH}" = "" ]; then
609 eval $set_cc_for_build
610 sed 's/^ //' << EOF >$dummy.c
611
612 #define _HPUX_SOURCE
613 #include <stdlib.h>
614 #include <unistd.h>
615
616 int main ()
617 {
618 #if defined(_SC_KERNEL_BITS)
619 long bits = sysconf(_SC_KERNEL_BITS);
620 #endif
621 long cpu = sysconf (_SC_CPU_VERSION);
622
623 switch (cpu)
624 {
625 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
626 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
627 case CPU_PA_RISC2_0:
628 #if defined(_SC_KERNEL_BITS)
629 switch (bits)
630 {
631 case 64: puts ("hppa2.0w"); break;
632 case 32: puts ("hppa2.0n"); break;
633 default: puts ("hppa2.0"); break;
634 } break;
635 #else /* !defined(_SC_KERNEL_BITS) */
636 puts ("hppa2.0"); break;
637 #endif
638 default: puts ("hppa1.0"); break;
639 }
640 exit (0);
641 }
642 EOF
643 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
644 test -z "$HP_ARCH" && HP_ARCH=hppa
645 fi ;;
646 esac
647 if [ ${HP_ARCH} = "hppa2.0w" ]
648 then
649 eval $set_cc_for_build
650
651 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
652 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
653 # generating 64-bit code. GNU and HP use different nomenclature:
654 #
655 # $ CC_FOR_BUILD=cc ./config.guess
656 # => hppa2.0w-hp-hpux11.23
657 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
658 # => hppa64-hp-hpux11.23
659
660 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
661 grep -q __LP64__
662 then
663 HP_ARCH="hppa2.0w"
664 else
665 HP_ARCH="hppa64"
666 fi
667 fi
668 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
669 exit ;;
670 ia64:HP-UX:*:*)
671 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
672 echo ia64-hp-hpux${HPUX_REV}
673 exit ;;
674 3050*:HI-UX:*:*)
675 eval $set_cc_for_build
676 sed 's/^ //' << EOF >$dummy.c
677 #include <unistd.h>
678 int
679 main ()
680 {
681 long cpu = sysconf (_SC_CPU_VERSION);
682 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
683 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
684 results, however. */
685 if (CPU_IS_PA_RISC (cpu))
686 {
687 switch (cpu)
688 {
689 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
690 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
691 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
692 default: puts ("hppa-hitachi-hiuxwe2"); break;
693 }
694 }
695 else if (CPU_IS_HP_MC68K (cpu))
696 puts ("m68k-hitachi-hiuxwe2");
697 else puts ("unknown-hitachi-hiuxwe2");
698 exit (0);
699 }
700 EOF
701 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
702 { echo "$SYSTEM_NAME"; exit; }
703 echo unknown-hitachi-hiuxwe2
704 exit ;;
705 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
706 echo hppa1.1-hp-bsd
707 exit ;;
708 9000/8??:4.3bsd:*:*)
709 echo hppa1.0-hp-bsd
710 exit ;;
711 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
712 echo hppa1.0-hp-mpeix
713 exit ;;
714 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
715 echo hppa1.1-hp-osf
716 exit ;;
717 hp8??:OSF1:*:*)
718 echo hppa1.0-hp-osf
719 exit ;;
720 i*86:OSF1:*:*)
721 if [ -x /usr/sbin/sysversion ] ; then
722 echo ${UNAME_MACHINE}-unknown-osf1mk
723 else
724 echo ${UNAME_MACHINE}-unknown-osf1
725 fi
726 exit ;;
727 parisc*:Lites*:*:*)
728 echo hppa1.1-hp-lites
729 exit ;;
730 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
731 echo c1-convex-bsd
732 exit ;;
733 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
734 if getsysinfo -f scalar_acc
735 then echo c32-convex-bsd
736 else echo c2-convex-bsd
737 fi
738 exit ;;
739 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
740 echo c34-convex-bsd
741 exit ;;
742 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
743 echo c38-convex-bsd
744 exit ;;
745 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
746 echo c4-convex-bsd
747 exit ;;
748 CRAY*Y-MP:*:*:*)
749 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750 exit ;;
751 CRAY*[A-Z]90:*:*:*)
752 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
753 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
754 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
755 -e 's/\.[^.]*$/.X/'
756 exit ;;
757 CRAY*TS:*:*:*)
758 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759 exit ;;
760 CRAY*T3E:*:*:*)
761 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
762 exit ;;
763 CRAY*SV1:*:*:*)
764 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765 exit ;;
766 *:UNICOS/mp:*:*)
767 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
768 exit ;;
769 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
770 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
772 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
773 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
774 exit ;;
775 5000:UNIX_System_V:4.*:*)
776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779 exit ;;
780 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
781 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
782 exit ;;
783 sparc*:BSD/OS:*:*)
784 echo sparc-unknown-bsdi${UNAME_RELEASE}
785 exit ;;
786 *:BSD/OS:*:*)
787 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788 exit ;;
789 *:FreeBSD:*:*)
790 case ${UNAME_MACHINE} in
791 pc98)
792 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793 amd64)
794 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795 *)
796 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797 esac
798 exit ;;
799 i*:CYGWIN*:*)
800 echo ${UNAME_MACHINE}-pc-cygwin
801 exit ;;
802 *:MINGW*:*)
803 echo ${UNAME_MACHINE}-pc-mingw32
804 exit ;;
805 i*:windows32*:*)
806 # uname -m includes "-pc" on this system.
807 echo ${UNAME_MACHINE}-mingw32
808 exit ;;
809 i*:PW*:*)
810 echo ${UNAME_MACHINE}-pc-pw32
811 exit ;;
812 *:Interix*:*)
813 case ${UNAME_MACHINE} in
814 x86)
815 echo i586-pc-interix${UNAME_RELEASE}
816 exit ;;
817 authenticamd | genuineintel | EM64T)
818 echo x86_64-unknown-interix${UNAME_RELEASE}
819 exit ;;
820 IA64)
821 echo ia64-unknown-interix${UNAME_RELEASE}
822 exit ;;
823 esac ;;
824 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
825 echo i${UNAME_MACHINE}-pc-mks
826 exit ;;
827 8664:Windows_NT:*)
828 echo x86_64-pc-mks
829 exit ;;
830 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
831 # How do we know it's Interix rather than the generic POSIX subsystem?
832 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
833 # UNAME_MACHINE based on the output of uname instead of i386?
834 echo i586-pc-interix
835 exit ;;
836 i*:UWIN*:*)
837 echo ${UNAME_MACHINE}-pc-uwin
838 exit ;;
839 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
840 echo x86_64-unknown-cygwin
841 exit ;;
842 p*:CYGWIN*:*)
843 echo powerpcle-unknown-cygwin
844 exit ;;
845 prep*:SunOS:5.*:*)
846 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
847 exit ;;
848 *:GNU:*:*)
849 # the GNU system
850 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
851 exit ;;
852 *:GNU/*:*:*)
853 # other systems with GNU libc and userland
854 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
855 exit ;;
856 i*86:Minix:*:*)
857 echo ${UNAME_MACHINE}-pc-minix
858 exit ;;
859 alpha:Linux:*:*)
860 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
861 EV5) UNAME_MACHINE=alphaev5 ;;
862 EV56) UNAME_MACHINE=alphaev56 ;;
863 PCA56) UNAME_MACHINE=alphapca56 ;;
864 PCA57) UNAME_MACHINE=alphapca56 ;;
865 EV6) UNAME_MACHINE=alphaev6 ;;
866 EV67) UNAME_MACHINE=alphaev67 ;;
867 EV68*) UNAME_MACHINE=alphaev68 ;;
868 esac
869 objdump --private-headers /bin/sh | grep -q ld.so.1
870 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
871 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
872 exit ;;
873 arm*:Linux:*:*)
874 eval $set_cc_for_build
875 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
876 | grep -q __ARM_EABI__
877 then
878 echo ${UNAME_MACHINE}-unknown-linux-gnu
879 else
880 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
881 fi
882 exit ;;
883 avr32*:Linux:*:*)
884 echo ${UNAME_MACHINE}-unknown-linux-gnu
885 exit ;;
886 cris:Linux:*:*)
887 echo cris-axis-linux-gnu
888 exit ;;
889 crisv32:Linux:*:*)
890 echo crisv32-axis-linux-gnu
891 exit ;;
892 frv:Linux:*:*)
893 echo frv-unknown-linux-gnu
894 exit ;;
895 i*86:Linux:*:*)
896 LIBC=gnu
897 eval $set_cc_for_build
898 sed 's/^ //' << EOF >$dummy.c
899 #ifdef __dietlibc__
900 LIBC=dietlibc
901 #endif
902 EOF
903 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
904 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
905 exit ;;
906 ia64:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-gnu
908 exit ;;
909 m32r*:Linux:*:*)
910 echo ${UNAME_MACHINE}-unknown-linux-gnu
911 exit ;;
912 m68*:Linux:*:*)
913 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 exit ;;
915 mips:Linux:*:* | mips64:Linux:*:*)
916 eval $set_cc_for_build
917 sed 's/^ //' << EOF >$dummy.c
918 #undef CPU
919 #undef ${UNAME_MACHINE}
920 #undef ${UNAME_MACHINE}el
921 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
922 CPU=${UNAME_MACHINE}el
923 #else
924 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
925 CPU=${UNAME_MACHINE}
926 #else
927 CPU=
928 #endif
929 #endif
930 EOF
931 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
932 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933 ;;
934 or32:Linux:*:*)
935 echo or32-unknown-linux-gnu
936 exit ;;
937 padre:Linux:*:*)
938 echo sparc-unknown-linux-gnu
939 exit ;;
940 parisc64:Linux:*:* | hppa64:Linux:*:*)
941 echo hppa64-unknown-linux-gnu
942 exit ;;
943 parisc:Linux:*:* | hppa:Linux:*:*)
944 # Look for CPU level
945 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
946 PA7*) echo hppa1.1-unknown-linux-gnu ;;
947 PA8*) echo hppa2.0-unknown-linux-gnu ;;
948 *) echo hppa-unknown-linux-gnu ;;
949 esac
950 exit ;;
951 ppc64:Linux:*:*)
952 echo powerpc64-unknown-linux-gnu
953 exit ;;
954 ppc:Linux:*:*)
955 echo powerpc-unknown-linux-gnu
956 exit ;;
957 s390:Linux:*:* | s390x:Linux:*:*)
958 echo ${UNAME_MACHINE}-ibm-linux
959 exit ;;
960 sh64*:Linux:*:*)
961 echo ${UNAME_MACHINE}-unknown-linux-gnu
962 exit ;;
963 sh*:Linux:*:*)
964 echo ${UNAME_MACHINE}-unknown-linux-gnu
965 exit ;;
966 sparc:Linux:*:* | sparc64:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
969 vax:Linux:*:*)
970 echo ${UNAME_MACHINE}-dec-linux-gnu
971 exit ;;
972 x86_64:Linux:*:*)
973 echo x86_64-unknown-linux-gnu
974 exit ;;
975 xtensa*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
977 exit ;;
978 i*86:DYNIX/ptx:4*:*)
979 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
980 # earlier versions are messed up and put the nodename in both
981 # sysname and nodename.
982 echo i386-sequent-sysv4
983 exit ;;
984 i*86:UNIX_SV:4.2MP:2.*)
985 # Unixware is an offshoot of SVR4, but it has its own version
986 # number series starting with 2...
987 # I am not positive that other SVR4 systems won't match this,
988 # I just have to hope. -- rms.
989 # Use sysv4.2uw... so that sysv4* matches it.
990 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
991 exit ;;
992 i*86:OS/2:*:*)
993 # If we were able to find `uname', then EMX Unix compatibility
994 # is probably installed.
995 echo ${UNAME_MACHINE}-pc-os2-emx
996 exit ;;
997 i*86:XTS-300:*:STOP)
998 echo ${UNAME_MACHINE}-unknown-stop
999 exit ;;
1000 i*86:atheos:*:*)
1001 echo ${UNAME_MACHINE}-unknown-atheos
1002 exit ;;
1003 i*86:syllable:*:*)
1004 echo ${UNAME_MACHINE}-pc-syllable
1005 exit ;;
1006 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1007 echo i386-unknown-lynxos${UNAME_RELEASE}
1008 exit ;;
1009 i*86:*DOS:*:*)
1010 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1011 exit ;;
1012 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1013 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1014 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1015 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1016 else
1017 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1018 fi
1019 exit ;;
1020 i*86:*:5:[678]*)
1021 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1022 case `/bin/uname -X | grep "^Machine"` in
1023 *486*) UNAME_MACHINE=i486 ;;
1024 *Pentium) UNAME_MACHINE=i586 ;;
1025 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1026 esac
1027 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1028 exit ;;
1029 i*86:*:3.2:*)
1030 if test -f /usr/options/cb.name; then
1031 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1032 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1033 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1034 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1035 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1036 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1037 && UNAME_MACHINE=i586
1038 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1039 && UNAME_MACHINE=i686
1040 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1041 && UNAME_MACHINE=i686
1042 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1043 else
1044 echo ${UNAME_MACHINE}-pc-sysv32
1045 fi
1046 exit ;;
1047 pc:*:*:*)
1048 # Left here for compatibility:
1049 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1050 # the processor, so we play safe by assuming i586.
1051 # Note: whatever this is, it MUST be the same as what config.sub
1052 # prints for the "djgpp" host, or else GDB configury will decide that
1053 # this is a cross-build.
1054 echo i586-pc-msdosdjgpp
1055 exit ;;
1056 Intel:Mach:3*:*)
1057 echo i386-pc-mach3
1058 exit ;;
1059 paragon:*:*:*)
1060 echo i860-intel-osf1
1061 exit ;;
1062 i860:*:4.*:*) # i860-SVR4
1063 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1064 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1065 else # Add other i860-SVR4 vendors below as they are discovered.
1066 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1067 fi
1068 exit ;;
1069 mini*:CTIX:SYS*5:*)
1070 # "miniframe"
1071 echo m68010-convergent-sysv
1072 exit ;;
1073 mc68k:UNIX:SYSTEM5:3.51m)
1074 echo m68k-convergent-sysv
1075 exit ;;
1076 M680?0:D-NIX:5.3:*)
1077 echo m68k-diab-dnix
1078 exit ;;
1079 M68*:*:R3V[5678]*:*)
1080 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1081 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1082 OS_REL=''
1083 test -r /etc/.relid \
1084 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1085 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1086 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1087 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1088 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1089 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && { echo i486-ncr-sysv4; exit; } ;;
1092 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1093 OS_REL='.3'
1094 test -r /etc/.relid \
1095 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1096 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1097 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1098 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1099 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1100 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1102 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1103 echo m68k-unknown-lynxos${UNAME_RELEASE}
1104 exit ;;
1105 mc68030:UNIX_System_V:4.*:*)
1106 echo m68k-atari-sysv4
1107 exit ;;
1108 TSUNAMI:LynxOS:2.*:*)
1109 echo sparc-unknown-lynxos${UNAME_RELEASE}
1110 exit ;;
1111 rs6000:LynxOS:2.*:*)
1112 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1113 exit ;;
1114 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1115 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1116 exit ;;
1117 SM[BE]S:UNIX_SV:*:*)
1118 echo mips-dde-sysv${UNAME_RELEASE}
1119 exit ;;
1120 RM*:ReliantUNIX-*:*:*)
1121 echo mips-sni-sysv4
1122 exit ;;
1123 RM*:SINIX-*:*:*)
1124 echo mips-sni-sysv4
1125 exit ;;
1126 *:SINIX-*:*:*)
1127 if uname -p 2>/dev/null >/dev/null ; then
1128 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1129 echo ${UNAME_MACHINE}-sni-sysv4
1130 else
1131 echo ns32k-sni-sysv
1132 fi
1133 exit ;;
1134 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1135 # says <Richard.M.Bartel@ccMail.Census.GOV>
1136 echo i586-unisys-sysv4
1137 exit ;;
1138 *:UNIX_System_V:4*:FTX*)
1139 # From Gerald Hewes <hewes@openmarket.com>.
1140 # How about differentiating between stratus architectures? -djm
1141 echo hppa1.1-stratus-sysv4
1142 exit ;;
1143 *:*:*:FTX*)
1144 # From seanf@swdc.stratus.com.
1145 echo i860-stratus-sysv4
1146 exit ;;
1147 i*86:VOS:*:*)
1148 # From Paul.Green@stratus.com.
1149 echo ${UNAME_MACHINE}-stratus-vos
1150 exit ;;
1151 *:VOS:*:*)
1152 # From Paul.Green@stratus.com.
1153 echo hppa1.1-stratus-vos
1154 exit ;;
1155 mc68*:A/UX:*:*)
1156 echo m68k-apple-aux${UNAME_RELEASE}
1157 exit ;;
1158 news*:NEWS-OS:6*:*)
1159 echo mips-sony-newsos6
1160 exit ;;
1161 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1162 if [ -d /usr/nec ]; then
1163 echo mips-nec-sysv${UNAME_RELEASE}
1164 else
1165 echo mips-unknown-sysv${UNAME_RELEASE}
1166 fi
1167 exit ;;
1168 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1169 echo powerpc-be-beos
1170 exit ;;
1171 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1172 echo powerpc-apple-beos
1173 exit ;;
1174 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1175 echo i586-pc-beos
1176 exit ;;
1177 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1178 echo i586-pc-haiku
1179 exit ;;
1180 SX-4:SUPER-UX:*:*)
1181 echo sx4-nec-superux${UNAME_RELEASE}
1182 exit ;;
1183 SX-5:SUPER-UX:*:*)
1184 echo sx5-nec-superux${UNAME_RELEASE}
1185 exit ;;
1186 SX-6:SUPER-UX:*:*)
1187 echo sx6-nec-superux${UNAME_RELEASE}
1188 exit ;;
1189 SX-7:SUPER-UX:*:*)
1190 echo sx7-nec-superux${UNAME_RELEASE}
1191 exit ;;
1192 SX-8:SUPER-UX:*:*)
1193 echo sx8-nec-superux${UNAME_RELEASE}
1194 exit ;;
1195 SX-8R:SUPER-UX:*:*)
1196 echo sx8r-nec-superux${UNAME_RELEASE}
1197 exit ;;
1198 Power*:Rhapsody:*:*)
1199 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1200 exit ;;
1201 *:Rhapsody:*:*)
1202 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1203 exit ;;
1204 *:Darwin:*:*)
1205 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1206 case $UNAME_PROCESSOR in
1207 i386)
1208 eval $set_cc_for_build
1209 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1210 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1211 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1212 grep IS_64BIT_ARCH >/dev/null
1213 then
1214 UNAME_PROCESSOR="x86_64"
1215 fi
1216 fi ;;
1217 unknown) UNAME_PROCESSOR=powerpc ;;
1218 esac
1219 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1220 exit ;;
1221 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1222 UNAME_PROCESSOR=`uname -p`
1223 if test "$UNAME_PROCESSOR" = "x86"; then
1224 UNAME_PROCESSOR=i386
1225 UNAME_MACHINE=pc
1226 fi
1227 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1228 exit ;;
1229 *:QNX:*:4*)
1230 echo i386-pc-qnx
1231 exit ;;
1232 NSE-?:NONSTOP_KERNEL:*:*)
1233 echo nse-tandem-nsk${UNAME_RELEASE}
1234 exit ;;
1235 NSR-?:NONSTOP_KERNEL:*:*)
1236 echo nsr-tandem-nsk${UNAME_RELEASE}
1237 exit ;;
1238 *:NonStop-UX:*:*)
1239 echo mips-compaq-nonstopux
1240 exit ;;
1241 BS2000:POSIX*:*:*)
1242 echo bs2000-siemens-sysv
1243 exit ;;
1244 DS/*:UNIX_System_V:*:*)
1245 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1246 exit ;;
1247 *:Plan9:*:*)
1248 # "uname -m" is not consistent, so use $cputype instead. 386
1249 # is converted to i386 for consistency with other x86
1250 # operating systems.
1251 if test "$cputype" = "386"; then
1252 UNAME_MACHINE=i386
1253 else
1254 UNAME_MACHINE="$cputype"
1255 fi
1256 echo ${UNAME_MACHINE}-unknown-plan9
1257 exit ;;
1258 *:TOPS-10:*:*)
1259 echo pdp10-unknown-tops10
1260 exit ;;
1261 *:TENEX:*:*)
1262 echo pdp10-unknown-tenex
1263 exit ;;
1264 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1265 echo pdp10-dec-tops20
1266 exit ;;
1267 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1268 echo pdp10-xkl-tops20
1269 exit ;;
1270 *:TOPS-20:*:*)
1271 echo pdp10-unknown-tops20
1272 exit ;;
1273 *:ITS:*:*)
1274 echo pdp10-unknown-its
1275 exit ;;
1276 SEI:*:*:SEIUX)
1277 echo mips-sei-seiux${UNAME_RELEASE}
1278 exit ;;
1279 *:DragonFly:*:*)
1280 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1281 exit ;;
1282 *:*VMS:*:*)
1283 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1284 case "${UNAME_MACHINE}" in
1285 A*) echo alpha-dec-vms ; exit ;;
1286 I*) echo ia64-dec-vms ; exit ;;
1287 V*) echo vax-dec-vms ; exit ;;
1288 esac ;;
1289 *:XENIX:*:SysV)
1290 echo i386-pc-xenix
1291 exit ;;
1292 i*86:skyos:*:*)
1293 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1294 exit ;;
1295 i*86:rdos:*:*)
1296 echo ${UNAME_MACHINE}-pc-rdos
1297 exit ;;
1298 i*86:AROS:*:*)
1299 echo ${UNAME_MACHINE}-pc-aros
1300 exit ;;
1301 esac
1302
1303 #echo '(No uname command or uname output not recognized.)' 1>&2
1304 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1305
1306 eval $set_cc_for_build
1307 cat >$dummy.c <<EOF
1308 #ifdef _SEQUENT_
1309 # include <sys/types.h>
1310 # include <sys/utsname.h>
1311 #endif
1312 main ()
1313 {
1314 #if defined (sony)
1315 #if defined (MIPSEB)
1316 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1317 I don't know.... */
1318 printf ("mips-sony-bsd\n"); exit (0);
1319 #else
1320 #include <sys/param.h>
1321 printf ("m68k-sony-newsos%s\n",
1322 #ifdef NEWSOS4
1323 "4"
1324 #else
1325 ""
1326 #endif
1327 ); exit (0);
1328 #endif
1329 #endif
1330
1331 #if defined (__arm) && defined (__acorn) && defined (__unix)
1332 printf ("arm-acorn-riscix\n"); exit (0);
1333 #endif
1334
1335 #if defined (hp300) && !defined (hpux)
1336 printf ("m68k-hp-bsd\n"); exit (0);
1337 #endif
1338
1339 #if defined (NeXT)
1340 #if !defined (__ARCHITECTURE__)
1341 #define __ARCHITECTURE__ "m68k"
1342 #endif
1343 int version;
1344 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1345 if (version < 4)
1346 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1347 else
1348 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1349 exit (0);
1350 #endif
1351
1352 #if defined (MULTIMAX) || defined (n16)
1353 #if defined (UMAXV)
1354 printf ("ns32k-encore-sysv\n"); exit (0);
1355 #else
1356 #if defined (CMU)
1357 printf ("ns32k-encore-mach\n"); exit (0);
1358 #else
1359 printf ("ns32k-encore-bsd\n"); exit (0);
1360 #endif
1361 #endif
1362 #endif
1363
1364 #if defined (__386BSD__)
1365 printf ("i386-pc-bsd\n"); exit (0);
1366 #endif
1367
1368 #if defined (sequent)
1369 #if defined (i386)
1370 printf ("i386-sequent-dynix\n"); exit (0);
1371 #endif
1372 #if defined (ns32000)
1373 printf ("ns32k-sequent-dynix\n"); exit (0);
1374 #endif
1375 #endif
1376
1377 #if defined (_SEQUENT_)
1378 struct utsname un;
1379
1380 uname(&un);
1381
1382 if (strncmp(un.version, "V2", 2) == 0) {
1383 printf ("i386-sequent-ptx2\n"); exit (0);
1384 }
1385 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1386 printf ("i386-sequent-ptx1\n"); exit (0);
1387 }
1388 printf ("i386-sequent-ptx\n"); exit (0);
1389
1390 #endif
1391
1392 #if defined (vax)
1393 # if !defined (ultrix)
1394 # include <sys/param.h>
1395 # if defined (BSD)
1396 # if BSD == 43
1397 printf ("vax-dec-bsd4.3\n"); exit (0);
1398 # else
1399 # if BSD == 199006
1400 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1401 # else
1402 printf ("vax-dec-bsd\n"); exit (0);
1403 # endif
1404 # endif
1405 # else
1406 printf ("vax-dec-bsd\n"); exit (0);
1407 # endif
1408 # else
1409 printf ("vax-dec-ultrix\n"); exit (0);
1410 # endif
1411 #endif
1412
1413 #if defined (alliant) && defined (i860)
1414 printf ("i860-alliant-bsd\n"); exit (0);
1415 #endif
1416
1417 exit (1);
1418 }
1419 EOF
1420
1421 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1422 { echo "$SYSTEM_NAME"; exit; }
1423
1424 # Apollos put the system type in the environment.
1425
1426 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1427
1428 # Convex versions that predate uname can use getsysinfo(1)
1429
1430 if [ -x /usr/convex/getsysinfo ]
1431 then
1432 case `getsysinfo -f cpu_type` in
1433 c1*)
1434 echo c1-convex-bsd
1435 exit ;;
1436 c2*)
1437 if getsysinfo -f scalar_acc
1438 then echo c32-convex-bsd
1439 else echo c2-convex-bsd
1440 fi
1441 exit ;;
1442 c34*)
1443 echo c34-convex-bsd
1444 exit ;;
1445 c38*)
1446 echo c38-convex-bsd
1447 exit ;;
1448 c4*)
1449 echo c4-convex-bsd
1450 exit ;;
1451 esac
1452 fi
1453
1454 cat >&2 <<EOF
1455 $0: unable to guess system type
1456
1457 This script, last modified $timestamp, has failed to recognize
1458 the operating system you are using. It is advised that you
1459 download the most up to date version of the config scripts from
1460
1461 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1462 and
1463 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1464
1465 If the version you run ($0) is already up to date, please
1466 send the following data and any information you think might be
1467 pertinent to <config-patches@gnu.org> in order to provide the needed
1468 information to handle your system.
1469
1470 config.guess timestamp = $timestamp
1471
1472 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1478 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1479
1480 hostinfo = `(hostinfo) 2>/dev/null`
1481 /bin/universe = `(/bin/universe) 2>/dev/null`
1482 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1483 /bin/arch = `(/bin/arch) 2>/dev/null`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1485 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1486
1487 UNAME_MACHINE = ${UNAME_MACHINE}
1488 UNAME_RELEASE = ${UNAME_RELEASE}
1489 UNAME_SYSTEM = ${UNAME_SYSTEM}
1490 UNAME_VERSION = ${UNAME_VERSION}
1491 EOF
1492
1493 exit 1
1494
1495 # Local variables:
1496 # eval: (add-hook 'write-file-hooks 'time-stamp)
1497 # time-stamp-start: "timestamp='"
1498 # time-stamp-format: "%:y-%02m-%02d"
1499 # time-stamp-end: "'"
1500 # End:
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # You can get the latest version of this script from:
42 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
43
44 # This file is supposed to be the same for all GNU packages
45 # and recognize all the CPU types, system types and aliases
46 # that are meaningful with *any* GNU software.
47 # Each package is responsible for reporting which valid configurations
48 # it does not support. The user should be able to distinguish
49 # a failure to support a valid configuration from a meaningless
50 # configuration.
51
52 # The goal of this file is to map all the various variations of a given
53 # machine specification into a single specification in the form:
54 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
55 # or in some cases, the newer four-part form:
56 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
57 # It is wrong to echo any other type of specification.
58
59 me=`echo "$0" | sed -e 's,.*/,,'`
60
61 usage="\
62 Usage: $0 [OPTION] CPU-MFR-OPSYS
63 $0 [OPTION] ALIAS
64
65 Canonicalize a configuration name.
66
67 Operation modes:
68 -h, --help print this help, then exit
69 -t, --time-stamp print date of last modification, then exit
70 -v, --version print version number, then exit
71
72 Report bugs and patches to <config-patches@gnu.org>."
73
74 version="\
75 GNU config.sub ($timestamp)
76
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
78 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
79
80 This is free software; see the source for copying conditions. There is NO
81 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
82
83 help="
84 Try \`$me --help' for more information."
85
86 # Parse command line
87 while test $# -gt 0 ; do
88 case $1 in
89 --time-stamp | --time* | -t )
90 echo "$timestamp" ; exit ;;
91 --version | -v )
92 echo "$version" ; exit ;;
93 --help | --h* | -h )
94 echo "$usage"; exit ;;
95 -- ) # Stop option processing
96 shift; break ;;
97 - ) # Use stdin as input.
98 break ;;
99 -* )
100 echo "$me: invalid option $1$help"
101 exit 1 ;;
102
103 *local*)
104 # First pass through any local machine types.
105 echo $1
106 exit ;;
107
108 * )
109 break ;;
110 esac
111 done
112
113 case $# in
114 0) echo "$me: missing argument$help" >&2
115 exit 1;;
116 1) ;;
117 *) echo "$me: too many arguments$help" >&2
118 exit 1;;
119 esac
120
121 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
122 # Here we must recognize all the valid KERNEL-OS combinations.
123 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124 case $maybe_os in
125 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
126 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
127 kopensolaris*-gnu* | \
128 storm-chaos* | os2-emx* | rtmk-nova*)
129 os=-$maybe_os
130 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
131 ;;
132 *)
133 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
134 if [ $basic_machine != $1 ]
135 then os=`echo $1 | sed 's/.*-/-/'`
136 else os=; fi
137 ;;
138 esac
139
140 ### Let's recognize common machines as not being operating systems so
141 ### that things like config.sub decstation-3100 work. We also
142 ### recognize some manufacturers as not being operating systems, so we
143 ### can provide default operating systems below.
144 case $os in
145 -sun*os*)
146 # Prevent following clause from handling this invalid input.
147 ;;
148 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
149 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
150 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
151 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
152 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
153 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
154 -apple | -axis | -knuth | -cray | -microblaze)
155 os=
156 basic_machine=$1
157 ;;
158 -bluegene*)
159 os=-cnk
160 ;;
161 -sim | -cisco | -oki | -wec | -winbond)
162 os=
163 basic_machine=$1
164 ;;
165 -scout)
166 ;;
167 -wrs)
168 os=-vxworks
169 basic_machine=$1
170 ;;
171 -chorusos*)
172 os=-chorusos
173 basic_machine=$1
174 ;;
175 -chorusrdb)
176 os=-chorusrdb
177 basic_machine=$1
178 ;;
179 -hiux*)
180 os=-hiuxwe2
181 ;;
182 -sco6)
183 os=-sco5v6
184 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco5)
187 os=-sco3.2v5
188 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco4)
191 os=-sco3.2v4
192 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2.[4-9]*)
195 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
196 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco3.2v[4-9]*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco5v6*)
203 # Don't forget version if it is 3.2v4 or newer.
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -sco*)
207 os=-sco3.2v2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -udk*)
211 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -isc)
214 os=-isc2.2
215 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216 ;;
217 -clix*)
218 basic_machine=clipper-intergraph
219 ;;
220 -isc*)
221 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
222 ;;
223 -lynx*)
224 os=-lynxos
225 ;;
226 -ptx*)
227 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
228 ;;
229 -windowsnt*)
230 os=`echo $os | sed -e 's/windowsnt/winnt/'`
231 ;;
232 -psos*)
233 os=-psos
234 ;;
235 -mint | -mint[0-9]*)
236 basic_machine=m68k-atari
237 os=-mint
238 ;;
239 esac
240
241 # Decode aliases for certain CPU-COMPANY combinations.
242 case $basic_machine in
243 # Recognize the basic CPU types without company name.
244 # Some are omitted here because they have special meanings below.
245 1750a | 580 \
246 | a29k \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
251 | bfin \
252 | c4x | clipper \
253 | d10v | d30v | dlx | dsp16xx \
254 | fido | fr30 | frv \
255 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
256 | i370 | i860 | i960 | ia64 \
257 | ip2k | iq2000 \
258 | lm32 \
259 | m32c | m32r | m32rle | m68000 | m68k | m88k \
260 | maxq | mb | microblaze | mcore | mep | metag \
261 | mips | mipsbe | mipseb | mipsel | mipsle \
262 | mips16 \
263 | mips64 | mips64el \
264 | mips64octeon | mips64octeonel \
265 | mips64orion | mips64orionel \
266 | mips64r5900 | mips64r5900el \
267 | mips64vr | mips64vrel \
268 | mips64vr4100 | mips64vr4100el \
269 | mips64vr4300 | mips64vr4300el \
270 | mips64vr5000 | mips64vr5000el \
271 | mips64vr5900 | mips64vr5900el \
272 | mipsisa32 | mipsisa32el \
273 | mipsisa32r2 | mipsisa32r2el \
274 | mipsisa64 | mipsisa64el \
275 | mipsisa64r2 | mipsisa64r2el \
276 | mipsisa64sb1 | mipsisa64sb1el \
277 | mipsisa64sr71k | mipsisa64sr71kel \
278 | mipstx39 | mipstx39el \
279 | mn10200 | mn10300 \
280 | moxie \
281 | mt \
282 | msp430 \
283 | nios | nios2 \
284 | ns16k | ns32k \
285 | or32 \
286 | pdp10 | pdp11 | pj | pjl \
287 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
288 | pyramid \
289 | rx \
290 | score \
291 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
292 | sh64 | sh64le \
293 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
294 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
295 | spu | strongarm \
296 | tahoe | thumb | tic4x | tic80 | tron \
297 | ubicom32 \
298 | v850 | v850e \
299 | we32k \
300 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
301 | z8k | z80)
302 basic_machine=$basic_machine-unknown
303 ;;
304 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
305 # Motorola 68HC11/12.
306 basic_machine=$basic_machine-unknown
307 os=-none
308 ;;
309 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
310 ;;
311 ms1)
312 basic_machine=mt-unknown
313 ;;
314
315 # We use `pc' rather than `unknown'
316 # because (1) that's what they normally are, and
317 # (2) the word "unknown" tends to confuse beginning users.
318 i*86 | x86_64)
319 basic_machine=$basic_machine-pc
320 ;;
321 # Object if more than one company name word.
322 *-*-*)
323 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
324 exit 1
325 ;;
326 # Recognize the basic CPU types with company name.
327 580-* \
328 | a29k-* \
329 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
330 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
331 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
332 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
333 | avr-* | avr32-* \
334 | bfin-* | bs2000-* \
335 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
336 | clipper-* | craynv-* | cydra-* \
337 | d10v-* | d30v-* | dlx-* \
338 | elxsi-* \
339 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
340 | h8300-* | h8500-* \
341 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
342 | i*86-* | i860-* | i960-* | ia64-* \
343 | ip2k-* | iq2000-* \
344 | lm32-* \
345 | m32c-* | m32r-* | m32rle-* \
346 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
347 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
348 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
349 | mips16-* \
350 | mips64-* | mips64el-* \
351 | mips64octeon-* | mips64octeonel-* \
352 | mips64orion-* | mips64orionel-* \
353 | mips64r5900-* | mips64r5900el-* \
354 | mips64vr-* | mips64vrel-* \
355 | mips64vr4100-* | mips64vr4100el-* \
356 | mips64vr4300-* | mips64vr4300el-* \
357 | mips64vr5000-* | mips64vr5000el-* \
358 | mips64vr5900-* | mips64vr5900el-* \
359 | mipsisa32-* | mipsisa32el-* \
360 | mipsisa32r2-* | mipsisa32r2el-* \
361 | mipsisa64-* | mipsisa64el-* \
362 | mipsisa64r2-* | mipsisa64r2el-* \
363 | mipsisa64sb1-* | mipsisa64sb1el-* \
364 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
365 | mipstx39-* | mipstx39el-* \
366 | mmix-* \
367 | mt-* \
368 | msp430-* \
369 | nios-* | nios2-* \
370 | none-* | np1-* | ns16k-* | ns32k-* \
371 | orion-* \
372 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
373 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
374 | pyramid-* \
375 | romp-* | rs6000-* | rx-* \
376 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
377 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
378 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
379 | sparclite-* \
380 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
381 | tahoe-* | thumb-* \
382 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
383 | tron-* \
384 | ubicom32-* \
385 | v850-* | v850e-* | vax-* \
386 | we32k-* \
387 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
388 | xstormy16-* | xtensa*-* \
389 | ymp-* \
390 | z8k-* | z80-*)
391 ;;
392 # Recognize the basic CPU types without company name, with glob match.
393 xtensa*)
394 basic_machine=$basic_machine-unknown
395 ;;
396 # Recognize the various machine names and aliases which stand
397 # for a CPU type and a company and sometimes even an OS.
398 386bsd)
399 basic_machine=i386-unknown
400 os=-bsd
401 ;;
402 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
403 basic_machine=m68000-att
404 ;;
405 3b*)
406 basic_machine=we32k-att
407 ;;
408 a29khif)
409 basic_machine=a29k-amd
410 os=-udi
411 ;;
412 abacus)
413 basic_machine=abacus-unknown
414 ;;
415 adobe68k)
416 basic_machine=m68010-adobe
417 os=-scout
418 ;;
419 alliant | fx80)
420 basic_machine=fx80-alliant
421 ;;
422 altos | altos3068)
423 basic_machine=m68k-altos
424 ;;
425 am29k)
426 basic_machine=a29k-none
427 os=-bsd
428 ;;
429 amd64)
430 basic_machine=x86_64-pc
431 ;;
432 amd64-*)
433 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
434 ;;
435 amdahl)
436 basic_machine=580-amdahl
437 os=-sysv
438 ;;
439 amiga | amiga-*)
440 basic_machine=m68k-unknown
441 ;;
442 amigaos | amigados)
443 basic_machine=m68k-unknown
444 os=-amigaos
445 ;;
446 amigaunix | amix)
447 basic_machine=m68k-unknown
448 os=-sysv4
449 ;;
450 apollo68)
451 basic_machine=m68k-apollo
452 os=-sysv
453 ;;
454 apollo68bsd)
455 basic_machine=m68k-apollo
456 os=-bsd
457 ;;
458 aros)
459 basic_machine=i386-pc
460 os=-aros
461 ;;
462 aux)
463 basic_machine=m68k-apple
464 os=-aux
465 ;;
466 balance)
467 basic_machine=ns32k-sequent
468 os=-dynix
469 ;;
470 blackfin)
471 basic_machine=bfin-unknown
472 os=-linux
473 ;;
474 blackfin-*)
475 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
476 os=-linux
477 ;;
478 bluegene*)
479 basic_machine=powerpc-ibm
480 os=-cnk
481 ;;
482 c90)
483 basic_machine=c90-cray
484 os=-unicos
485 ;;
486 cegcc)
487 basic_machine=arm-unknown
488 os=-cegcc
489 ;;
490 convex-c1)
491 basic_machine=c1-convex
492 os=-bsd
493 ;;
494 convex-c2)
495 basic_machine=c2-convex
496 os=-bsd
497 ;;
498 convex-c32)
499 basic_machine=c32-convex
500 os=-bsd
501 ;;
502 convex-c34)
503 basic_machine=c34-convex
504 os=-bsd
505 ;;
506 convex-c38)
507 basic_machine=c38-convex
508 os=-bsd
509 ;;
510 cray | j90)
511 basic_machine=j90-cray
512 os=-unicos
513 ;;
514 craynv)
515 basic_machine=craynv-cray
516 os=-unicosmp
517 ;;
518 cr16)
519 basic_machine=cr16-unknown
520 os=-elf
521 ;;
522 crds | unos)
523 basic_machine=m68k-crds
524 ;;
525 crisv32 | crisv32-* | etraxfs*)
526 basic_machine=crisv32-axis
527 ;;
528 cris | cris-* | etrax*)
529 basic_machine=cris-axis
530 ;;
531 crx)
532 basic_machine=crx-unknown
533 os=-elf
534 ;;
535 da30 | da30-*)
536 basic_machine=m68k-da30
537 ;;
538 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
539 basic_machine=mips-dec
540 ;;
541 decsystem10* | dec10*)
542 basic_machine=pdp10-dec
543 os=-tops10
544 ;;
545 decsystem20* | dec20*)
546 basic_machine=pdp10-dec
547 os=-tops20
548 ;;
549 delta | 3300 | motorola-3300 | motorola-delta \
550 | 3300-motorola | delta-motorola)
551 basic_machine=m68k-motorola
552 ;;
553 delta88)
554 basic_machine=m88k-motorola
555 os=-sysv3
556 ;;
557 dicos)
558 basic_machine=i686-pc
559 os=-dicos
560 ;;
561 djgpp)
562 basic_machine=i586-pc
563 os=-msdosdjgpp
564 ;;
565 dpx20 | dpx20-*)
566 basic_machine=rs6000-bull
567 os=-bosx
568 ;;
569 dpx2* | dpx2*-bull)
570 basic_machine=m68k-bull
571 os=-sysv3
572 ;;
573 ebmon29k)
574 basic_machine=a29k-amd
575 os=-ebmon
576 ;;
577 elxsi)
578 basic_machine=elxsi-elxsi
579 os=-bsd
580 ;;
581 encore | umax | mmax)
582 basic_machine=ns32k-encore
583 ;;
584 es1800 | OSE68k | ose68k | ose | OSE)
585 basic_machine=m68k-ericsson
586 os=-ose
587 ;;
588 fx2800)
589 basic_machine=i860-alliant
590 ;;
591 genix)
592 basic_machine=ns32k-ns
593 ;;
594 gmicro)
595 basic_machine=tron-gmicro
596 os=-sysv
597 ;;
598 go32)
599 basic_machine=i386-pc
600 os=-go32
601 ;;
602 h3050r* | hiux*)
603 basic_machine=hppa1.1-hitachi
604 os=-hiuxwe2
605 ;;
606 h8300hms)
607 basic_machine=h8300-hitachi
608 os=-hms
609 ;;
610 h8300xray)
611 basic_machine=h8300-hitachi
612 os=-xray
613 ;;
614 h8500hms)
615 basic_machine=h8500-hitachi
616 os=-hms
617 ;;
618 harris)
619 basic_machine=m88k-harris
620 os=-sysv3
621 ;;
622 hp300-*)
623 basic_machine=m68k-hp
624 ;;
625 hp300bsd)
626 basic_machine=m68k-hp
627 os=-bsd
628 ;;
629 hp300hpux)
630 basic_machine=m68k-hp
631 os=-hpux
632 ;;
633 hp3k9[0-9][0-9] | hp9[0-9][0-9])
634 basic_machine=hppa1.0-hp
635 ;;
636 hp9k2[0-9][0-9] | hp9k31[0-9])
637 basic_machine=m68000-hp
638 ;;
639 hp9k3[2-9][0-9])
640 basic_machine=m68k-hp
641 ;;
642 hp9k6[0-9][0-9] | hp6[0-9][0-9])
643 basic_machine=hppa1.0-hp
644 ;;
645 hp9k7[0-79][0-9] | hp7[0-79][0-9])
646 basic_machine=hppa1.1-hp
647 ;;
648 hp9k78[0-9] | hp78[0-9])
649 # FIXME: really hppa2.0-hp
650 basic_machine=hppa1.1-hp
651 ;;
652 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
653 # FIXME: really hppa2.0-hp
654 basic_machine=hppa1.1-hp
655 ;;
656 hp9k8[0-9][13679] | hp8[0-9][13679])
657 basic_machine=hppa1.1-hp
658 ;;
659 hp9k8[0-9][0-9] | hp8[0-9][0-9])
660 basic_machine=hppa1.0-hp
661 ;;
662 hppa-next)
663 os=-nextstep3
664 ;;
665 hppaosf)
666 basic_machine=hppa1.1-hp
667 os=-osf
668 ;;
669 hppro)
670 basic_machine=hppa1.1-hp
671 os=-proelf
672 ;;
673 i370-ibm* | ibm*)
674 basic_machine=i370-ibm
675 ;;
676 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
677 i*86v32)
678 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
679 os=-sysv32
680 ;;
681 i*86v4*)
682 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
683 os=-sysv4
684 ;;
685 i*86v)
686 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
687 os=-sysv
688 ;;
689 i*86sol2)
690 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
691 os=-solaris2
692 ;;
693 i386mach)
694 basic_machine=i386-mach
695 os=-mach
696 ;;
697 i386-vsta | vsta)
698 basic_machine=i386-unknown
699 os=-vsta
700 ;;
701 iris | iris4d)
702 basic_machine=mips-sgi
703 case $os in
704 -irix*)
705 ;;
706 *)
707 os=-irix4
708 ;;
709 esac
710 ;;
711 isi68 | isi)
712 basic_machine=m68k-isi
713 os=-sysv
714 ;;
715 m68knommu)
716 basic_machine=m68k-unknown
717 os=-linux
718 ;;
719 m68knommu-*)
720 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
721 os=-linux
722 ;;
723 m88k-omron*)
724 basic_machine=m88k-omron
725 ;;
726 magnum | m3230)
727 basic_machine=mips-mips
728 os=-sysv
729 ;;
730 merlin)
731 basic_machine=ns32k-utek
732 os=-sysv
733 ;;
734 microblaze)
735 basic_machine=microblaze-xilinx
736 ;;
737 mingw32)
738 basic_machine=i386-pc
739 os=-mingw32
740 ;;
741 mingw32ce)
742 basic_machine=arm-unknown
743 os=-mingw32ce
744 ;;
745 miniframe)
746 basic_machine=m68000-convergent
747 ;;
748 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
749 basic_machine=m68k-atari
750 os=-mint
751 ;;
752 mips3*-*)
753 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
754 ;;
755 mips3*)
756 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
757 ;;
758 monitor)
759 basic_machine=m68k-rom68k
760 os=-coff
761 ;;
762 morphos)
763 basic_machine=powerpc-unknown
764 os=-morphos
765 ;;
766 msdos)
767 basic_machine=i386-pc
768 os=-msdos
769 ;;
770 ms1-*)
771 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
772 ;;
773 mvs)
774 basic_machine=i370-ibm
775 os=-mvs
776 ;;
777 ncr3000)
778 basic_machine=i486-ncr
779 os=-sysv4
780 ;;
781 netbsd386)
782 basic_machine=i386-unknown
783 os=-netbsd
784 ;;
785 netwinder)
786 basic_machine=armv4l-rebel
787 os=-linux
788 ;;
789 news | news700 | news800 | news900)
790 basic_machine=m68k-sony
791 os=-newsos
792 ;;
793 news1000)
794 basic_machine=m68030-sony
795 os=-newsos
796 ;;
797 news-3600 | risc-news)
798 basic_machine=mips-sony
799 os=-newsos
800 ;;
801 necv70)
802 basic_machine=v70-nec
803 os=-sysv
804 ;;
805 next | m*-next )
806 basic_machine=m68k-next
807 case $os in
808 -nextstep* )
809 ;;
810 -ns2*)
811 os=-nextstep2
812 ;;
813 *)
814 os=-nextstep3
815 ;;
816 esac
817 ;;
818 nh3000)
819 basic_machine=m68k-harris
820 os=-cxux
821 ;;
822 nh[45]000)
823 basic_machine=m88k-harris
824 os=-cxux
825 ;;
826 nindy960)
827 basic_machine=i960-intel
828 os=-nindy
829 ;;
830 mon960)
831 basic_machine=i960-intel
832 os=-mon960
833 ;;
834 nonstopux)
835 basic_machine=mips-compaq
836 os=-nonstopux
837 ;;
838 np1)
839 basic_machine=np1-gould
840 ;;
841 nsr-tandem)
842 basic_machine=nsr-tandem
843 ;;
844 op50n-* | op60c-*)
845 basic_machine=hppa1.1-oki
846 os=-proelf
847 ;;
848 openrisc | openrisc-*)
849 basic_machine=or32-unknown
850 ;;
851 os400)
852 basic_machine=powerpc-ibm
853 os=-os400
854 ;;
855 OSE68000 | ose68000)
856 basic_machine=m68000-ericsson
857 os=-ose
858 ;;
859 os68k)
860 basic_machine=m68k-none
861 os=-os68k
862 ;;
863 pa-hitachi)
864 basic_machine=hppa1.1-hitachi
865 os=-hiuxwe2
866 ;;
867 paragon)
868 basic_machine=i860-intel
869 os=-osf
870 ;;
871 parisc)
872 basic_machine=hppa-unknown
873 os=-linux
874 ;;
875 parisc-*)
876 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
877 os=-linux
878 ;;
879 pbd)
880 basic_machine=sparc-tti
881 ;;
882 pbb)
883 basic_machine=m68k-tti
884 ;;
885 pc532 | pc532-*)
886 basic_machine=ns32k-pc532
887 ;;
888 pc98)
889 basic_machine=i386-pc
890 ;;
891 pc98-*)
892 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
893 ;;
894 pentium | p5 | k5 | k6 | nexgen | viac3)
895 basic_machine=i586-pc
896 ;;
897 pentiumpro | p6 | 6x86 | athlon | athlon_*)
898 basic_machine=i686-pc
899 ;;
900 pentiumii | pentium2 | pentiumiii | pentium3)
901 basic_machine=i686-pc
902 ;;
903 pentium4)
904 basic_machine=i786-pc
905 ;;
906 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
907 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
908 ;;
909 pentiumpro-* | p6-* | 6x86-* | athlon-*)
910 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
911 ;;
912 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
913 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
914 ;;
915 pentium4-*)
916 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
917 ;;
918 pn)
919 basic_machine=pn-gould
920 ;;
921 power) basic_machine=power-ibm
922 ;;
923 ppc) basic_machine=powerpc-unknown
924 ;;
925 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
926 ;;
927 ppcle | powerpclittle | ppc-le | powerpc-little)
928 basic_machine=powerpcle-unknown
929 ;;
930 ppcle-* | powerpclittle-*)
931 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
932 ;;
933 ppc64) basic_machine=powerpc64-unknown
934 ;;
935 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
936 ;;
937 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
938 basic_machine=powerpc64le-unknown
939 ;;
940 ppc64le-* | powerpc64little-*)
941 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
942 ;;
943 ps2)
944 basic_machine=i386-ibm
945 ;;
946 pw32)
947 basic_machine=i586-unknown
948 os=-pw32
949 ;;
950 rdos)
951 basic_machine=i386-pc
952 os=-rdos
953 ;;
954 rom68k)
955 basic_machine=m68k-rom68k
956 os=-coff
957 ;;
958 rm[46]00)
959 basic_machine=mips-siemens
960 ;;
961 rtpc | rtpc-*)
962 basic_machine=romp-ibm
963 ;;
964 s390 | s390-*)
965 basic_machine=s390-ibm
966 ;;
967 s390x | s390x-*)
968 basic_machine=s390x-ibm
969 ;;
970 sa29200)
971 basic_machine=a29k-amd
972 os=-udi
973 ;;
974 sb1)
975 basic_machine=mipsisa64sb1-unknown
976 ;;
977 sb1el)
978 basic_machine=mipsisa64sb1el-unknown
979 ;;
980 sde)
981 basic_machine=mipsisa32-sde
982 os=-elf
983 ;;
984 sei)
985 basic_machine=mips-sei
986 os=-seiux
987 ;;
988 sequent)
989 basic_machine=i386-sequent
990 ;;
991 sh)
992 basic_machine=sh-hitachi
993 os=-hms
994 ;;
995 sh5el)
996 basic_machine=sh5le-unknown
997 ;;
998 sh64)
999 basic_machine=sh64-unknown
1000 ;;
1001 sparclite-wrs | simso-wrs)
1002 basic_machine=sparclite-wrs
1003 os=-vxworks
1004 ;;
1005 sps7)
1006 basic_machine=m68k-bull
1007 os=-sysv2
1008 ;;
1009 spur)
1010 basic_machine=spur-unknown
1011 ;;
1012 st2000)
1013 basic_machine=m68k-tandem
1014 ;;
1015 stratus)
1016 basic_machine=i860-stratus
1017 os=-sysv4
1018 ;;
1019 sun2)
1020 basic_machine=m68000-sun
1021 ;;
1022 sun2os3)
1023 basic_machine=m68000-sun
1024 os=-sunos3
1025 ;;
1026 sun2os4)
1027 basic_machine=m68000-sun
1028 os=-sunos4
1029 ;;
1030 sun3os3)
1031 basic_machine=m68k-sun
1032 os=-sunos3
1033 ;;
1034 sun3os4)
1035 basic_machine=m68k-sun
1036 os=-sunos4
1037 ;;
1038 sun4os3)
1039 basic_machine=sparc-sun
1040 os=-sunos3
1041 ;;
1042 sun4os4)
1043 basic_machine=sparc-sun
1044 os=-sunos4
1045 ;;
1046 sun4sol2)
1047 basic_machine=sparc-sun
1048 os=-solaris2
1049 ;;
1050 sun3 | sun3-*)
1051 basic_machine=m68k-sun
1052 ;;
1053 sun4)
1054 basic_machine=sparc-sun
1055 ;;
1056 sun386 | sun386i | roadrunner)
1057 basic_machine=i386-sun
1058 ;;
1059 sv1)
1060 basic_machine=sv1-cray
1061 os=-unicos
1062 ;;
1063 symmetry)
1064 basic_machine=i386-sequent
1065 os=-dynix
1066 ;;
1067 t3e)
1068 basic_machine=alphaev5-cray
1069 os=-unicos
1070 ;;
1071 t90)
1072 basic_machine=t90-cray
1073 os=-unicos
1074 ;;
1075 tic54x | c54x*)
1076 basic_machine=tic54x-unknown
1077 os=-coff
1078 ;;
1079 tic55x | c55x*)
1080 basic_machine=tic55x-unknown
1081 os=-coff
1082 ;;
1083 tic6x | c6x*)
1084 basic_machine=tic6x-unknown
1085 os=-coff
1086 ;;
1087 tile*)
1088 basic_machine=tile-unknown
1089 os=-linux-gnu
1090 ;;
1091 tx39)
1092 basic_machine=mipstx39-unknown
1093 ;;
1094 tx39el)
1095 basic_machine=mipstx39el-unknown
1096 ;;
1097 toad1)
1098 basic_machine=pdp10-xkl
1099 os=-tops20
1100 ;;
1101 tower | tower-32)
1102 basic_machine=m68k-ncr
1103 ;;
1104 tpf)
1105 basic_machine=s390x-ibm
1106 os=-tpf
1107 ;;
1108 udi29k)
1109 basic_machine=a29k-amd
1110 os=-udi
1111 ;;
1112 ultra3)
1113 basic_machine=a29k-nyu
1114 os=-sym1
1115 ;;
1116 v810 | necv810)
1117 basic_machine=v810-nec
1118 os=-none
1119 ;;
1120 vaxv)
1121 basic_machine=vax-dec
1122 os=-sysv
1123 ;;
1124 vms)
1125 basic_machine=vax-dec
1126 os=-vms
1127 ;;
1128 vpp*|vx|vx-*)
1129 basic_machine=f301-fujitsu
1130 ;;
1131 vxworks960)
1132 basic_machine=i960-wrs
1133 os=-vxworks
1134 ;;
1135 vxworks68)
1136 basic_machine=m68k-wrs
1137 os=-vxworks
1138 ;;
1139 vxworks29k)
1140 basic_machine=a29k-wrs
1141 os=-vxworks
1142 ;;
1143 w65*)
1144 basic_machine=w65-wdc
1145 os=-none
1146 ;;
1147 w89k-*)
1148 basic_machine=hppa1.1-winbond
1149 os=-proelf
1150 ;;
1151 xbox)
1152 basic_machine=i686-pc
1153 os=-mingw32
1154 ;;
1155 xps | xps100)
1156 basic_machine=xps100-honeywell
1157 ;;
1158 ymp)
1159 basic_machine=ymp-cray
1160 os=-unicos
1161 ;;
1162 z8k-*-coff)
1163 basic_machine=z8k-unknown
1164 os=-sim
1165 ;;
1166 z80-*-coff)
1167 basic_machine=z80-unknown
1168 os=-sim
1169 ;;
1170 none)
1171 basic_machine=none-none
1172 os=-none
1173 ;;
1174
1175 # Here we handle the default manufacturer of certain CPU types. It is in
1176 # some cases the only manufacturer, in others, it is the most popular.
1177 w89k)
1178 basic_machine=hppa1.1-winbond
1179 ;;
1180 op50n)
1181 basic_machine=hppa1.1-oki
1182 ;;
1183 op60c)
1184 basic_machine=hppa1.1-oki
1185 ;;
1186 romp)
1187 basic_machine=romp-ibm
1188 ;;
1189 mmix)
1190 basic_machine=mmix-knuth
1191 ;;
1192 rs6000)
1193 basic_machine=rs6000-ibm
1194 ;;
1195 vax)
1196 basic_machine=vax-dec
1197 ;;
1198 pdp10)
1199 # there are many clones, so DEC is not a safe bet
1200 basic_machine=pdp10-unknown
1201 ;;
1202 pdp11)
1203 basic_machine=pdp11-dec
1204 ;;
1205 we32k)
1206 basic_machine=we32k-att
1207 ;;
1208 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1209 basic_machine=sh-unknown
1210 ;;
1211 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1212 basic_machine=sparc-sun
1213 ;;
1214 cydra)
1215 basic_machine=cydra-cydrome
1216 ;;
1217 orion)
1218 basic_machine=orion-highlevel
1219 ;;
1220 orion105)
1221 basic_machine=clipper-highlevel
1222 ;;
1223 mac | mpw | mac-mpw)
1224 basic_machine=m68k-apple
1225 ;;
1226 pmac | pmac-mpw)
1227 basic_machine=powerpc-apple
1228 ;;
1229 *-unknown)
1230 # Make sure to match an already-canonicalized machine name.
1231 ;;
1232 *)
1233 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1234 exit 1
1235 ;;
1236 esac
1237
1238 # Here we canonicalize certain aliases for manufacturers.
1239 case $basic_machine in
1240 *-digital*)
1241 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1242 ;;
1243 *-commodore*)
1244 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1245 ;;
1246 *)
1247 ;;
1248 esac
1249
1250 # Decode manufacturer-specific aliases for certain operating systems.
1251
1252 if [ x"$os" != x"" ]
1253 then
1254 case $os in
1255 # First match some system type aliases
1256 # that might get confused with valid system types.
1257 # -solaris* is a basic system type, with this one exception.
1258 -auroraux)
1259 os=-auroraux
1260 ;;
1261 -solaris1 | -solaris1.*)
1262 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1263 ;;
1264 -solaris)
1265 os=-solaris2
1266 ;;
1267 -svr4*)
1268 os=-sysv4
1269 ;;
1270 -unixware*)
1271 os=-sysv4.2uw
1272 ;;
1273 -gnu/linux*)
1274 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1275 ;;
1276 # First accept the basic system types.
1277 # The portable systems comes first.
1278 # Each alternative MUST END IN A *, to match a version number.
1279 # -sysv* is not here because it comes later, after sysvr4.
1280 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1281 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1282 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1283 | -sym* | -kopensolaris* \
1284 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1285 | -aos* | -aros* \
1286 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1287 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1288 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1289 | -openbsd* | -solidbsd* \
1290 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1291 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1292 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1293 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1294 | -chorusos* | -chorusrdb* | -cegcc* \
1295 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1296 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1297 | -uxpv* | -beos* | -mpeix* | -udk* \
1298 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1299 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1300 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1301 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1302 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1303 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1304 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1305 # Remember, each alternative MUST END IN *, to match a version number.
1306 ;;
1307 -qnx*)
1308 case $basic_machine in
1309 x86-* | i*86-*)
1310 ;;
1311 *)
1312 os=-nto$os
1313 ;;
1314 esac
1315 ;;
1316 -nto-qnx*)
1317 ;;
1318 -nto*)
1319 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1320 ;;
1321 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1322 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1323 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1324 ;;
1325 -mac*)
1326 os=`echo $os | sed -e 's|mac|macos|'`
1327 ;;
1328 -linux-dietlibc)
1329 os=-linux-dietlibc
1330 ;;
1331 -linux*)
1332 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1333 ;;
1334 -sunos5*)
1335 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1336 ;;
1337 -sunos6*)
1338 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1339 ;;
1340 -opened*)
1341 os=-openedition
1342 ;;
1343 -os400*)
1344 os=-os400
1345 ;;
1346 -wince*)
1347 os=-wince
1348 ;;
1349 -osfrose*)
1350 os=-osfrose
1351 ;;
1352 -osf*)
1353 os=-osf
1354 ;;
1355 -utek*)
1356 os=-bsd
1357 ;;
1358 -dynix*)
1359 os=-bsd
1360 ;;
1361 -acis*)
1362 os=-aos
1363 ;;
1364 -atheos*)
1365 os=-atheos
1366 ;;
1367 -syllable*)
1368 os=-syllable
1369 ;;
1370 -386bsd)
1371 os=-bsd
1372 ;;
1373 -ctix* | -uts*)
1374 os=-sysv
1375 ;;
1376 -nova*)
1377 os=-rtmk-nova
1378 ;;
1379 -ns2 )
1380 os=-nextstep2
1381 ;;
1382 -nsk*)
1383 os=-nsk
1384 ;;
1385 # Preserve the version number of sinix5.
1386 -sinix5.*)
1387 os=`echo $os | sed -e 's|sinix|sysv|'`
1388 ;;
1389 -sinix*)
1390 os=-sysv4
1391 ;;
1392 -tpf*)
1393 os=-tpf
1394 ;;
1395 -triton*)
1396 os=-sysv3
1397 ;;
1398 -oss*)
1399 os=-sysv3
1400 ;;
1401 -svr4)
1402 os=-sysv4
1403 ;;
1404 -svr3)
1405 os=-sysv3
1406 ;;
1407 -sysvr4)
1408 os=-sysv4
1409 ;;
1410 # This must come after -sysvr4.
1411 -sysv*)
1412 ;;
1413 -ose*)
1414 os=-ose
1415 ;;
1416 -es1800*)
1417 os=-ose
1418 ;;
1419 -xenix)
1420 os=-xenix
1421 ;;
1422 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1423 os=-mint
1424 ;;
1425 -aros*)
1426 os=-aros
1427 ;;
1428 -kaos*)
1429 os=-kaos
1430 ;;
1431 -zvmoe)
1432 os=-zvmoe
1433 ;;
1434 -dicos*)
1435 os=-dicos
1436 ;;
1437 -none)
1438 ;;
1439 *)
1440 # Get rid of the `-' at the beginning of $os.
1441 os=`echo $os | sed 's/[^-]*-//'`
1442 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1443 exit 1
1444 ;;
1445 esac
1446 else
1447
1448 # Here we handle the default operating systems that come with various machines.
1449 # The value should be what the vendor currently ships out the door with their
1450 # machine or put another way, the most popular os provided with the machine.
1451
1452 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1453 # "-sun"), then you have to tell the case statement up towards the top
1454 # that MANUFACTURER isn't an operating system. Otherwise, code above
1455 # will signal an error saying that MANUFACTURER isn't an operating
1456 # system, and we'll never get to this point.
1457
1458 case $basic_machine in
1459 score-*)
1460 os=-elf
1461 ;;
1462 spu-*)
1463 os=-elf
1464 ;;
1465 *-acorn)
1466 os=-riscix1.2
1467 ;;
1468 arm*-rebel)
1469 os=-linux
1470 ;;
1471 arm*-semi)
1472 os=-aout
1473 ;;
1474 c4x-* | tic4x-*)
1475 os=-coff
1476 ;;
1477 # This must come before the *-dec entry.
1478 pdp10-*)
1479 os=-tops20
1480 ;;
1481 pdp11-*)
1482 os=-none
1483 ;;
1484 *-dec | vax-*)
1485 os=-ultrix4.2
1486 ;;
1487 m68*-apollo)
1488 os=-domain
1489 ;;
1490 i386-sun)
1491 os=-sunos4.0.2
1492 ;;
1493 m68000-sun)
1494 os=-sunos3
1495 # This also exists in the configure program, but was not the
1496 # default.
1497 # os=-sunos4
1498 ;;
1499 m68*-cisco)
1500 os=-aout
1501 ;;
1502 mep-*)
1503 os=-elf
1504 ;;
1505 mips*-cisco)
1506 os=-elf
1507 ;;
1508 mips*-*)
1509 os=-elf
1510 ;;
1511 or32-*)
1512 os=-coff
1513 ;;
1514 *-tti) # must be before sparc entry or we get the wrong os.
1515 os=-sysv3
1516 ;;
1517 sparc-* | *-sun)
1518 os=-sunos4.1.1
1519 ;;
1520 *-be)
1521 os=-beos
1522 ;;
1523 *-haiku)
1524 os=-haiku
1525 ;;
1526 *-ibm)
1527 os=-aix
1528 ;;
1529 *-knuth)
1530 os=-mmixware
1531 ;;
1532 *-wec)
1533 os=-proelf
1534 ;;
1535 *-winbond)
1536 os=-proelf
1537 ;;
1538 *-oki)
1539 os=-proelf
1540 ;;
1541 *-hp)
1542 os=-hpux
1543 ;;
1544 *-hitachi)
1545 os=-hiux
1546 ;;
1547 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1548 os=-sysv
1549 ;;
1550 *-cbm)
1551 os=-amigaos
1552 ;;
1553 *-dg)
1554 os=-dgux
1555 ;;
1556 *-dolphin)
1557 os=-sysv3
1558 ;;
1559 m68k-ccur)
1560 os=-rtu
1561 ;;
1562 m88k-omron*)
1563 os=-luna
1564 ;;
1565 *-next )
1566 os=-nextstep
1567 ;;
1568 *-sequent)
1569 os=-ptx
1570 ;;
1571 *-crds)
1572 os=-unos
1573 ;;
1574 *-ns)
1575 os=-genix
1576 ;;
1577 i370-*)
1578 os=-mvs
1579 ;;
1580 *-next)
1581 os=-nextstep3
1582 ;;
1583 *-gould)
1584 os=-sysv
1585 ;;
1586 *-highlevel)
1587 os=-bsd
1588 ;;
1589 *-encore)
1590 os=-bsd
1591 ;;
1592 *-sgi)
1593 os=-irix
1594 ;;
1595 *-siemens)
1596 os=-sysv4
1597 ;;
1598 *-masscomp)
1599 os=-rtu
1600 ;;
1601 f30[01]-fujitsu | f700-fujitsu)
1602 os=-uxpv
1603 ;;
1604 *-rom68k)
1605 os=-coff
1606 ;;
1607 *-*bug)
1608 os=-coff
1609 ;;
1610 *-apple)
1611 os=-macos
1612 ;;
1613 *-atari*)
1614 os=-mint
1615 ;;
1616 *)
1617 os=-none
1618 ;;
1619 esac
1620 fi
1621
1622 # Here we handle the case where we know the os, and the CPU type, but not the
1623 # manufacturer. We pick the logical manufacturer.
1624 vendor=unknown
1625 case $basic_machine in
1626 *-unknown)
1627 case $os in
1628 -riscix*)
1629 vendor=acorn
1630 ;;
1631 -sunos*)
1632 vendor=sun
1633 ;;
1634 -cnk*|-aix*)
1635 vendor=ibm
1636 ;;
1637 -beos*)
1638 vendor=be
1639 ;;
1640 -hpux*)
1641 vendor=hp
1642 ;;
1643 -mpeix*)
1644 vendor=hp
1645 ;;
1646 -hiux*)
1647 vendor=hitachi
1648 ;;
1649 -unos*)
1650 vendor=crds
1651 ;;
1652 -dgux*)
1653 vendor=dg
1654 ;;
1655 -luna*)
1656 vendor=omron
1657 ;;
1658 -genix*)
1659 vendor=ns
1660 ;;
1661 -mvs* | -opened*)
1662 vendor=ibm
1663 ;;
1664 -os400*)
1665 vendor=ibm
1666 ;;
1667 -ptx*)
1668 vendor=sequent
1669 ;;
1670 -tpf*)
1671 vendor=ibm
1672 ;;
1673 -vxsim* | -vxworks* | -windiss*)
1674 vendor=wrs
1675 ;;
1676 -aux*)
1677 vendor=apple
1678 ;;
1679 -hms*)
1680 vendor=hitachi
1681 ;;
1682 -mpw* | -macos*)
1683 vendor=apple
1684 ;;
1685 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1686 vendor=atari
1687 ;;
1688 -vos*)
1689 vendor=stratus
1690 ;;
1691 esac
1692 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1693 ;;
1694 esac
1695
1696 echo $basic_machine$os
1697 exit
1698
1699 # Local variables:
1700 # eval: (add-hook 'write-file-hooks 'time-stamp)
1701 # time-stamp-start: "timestamp='"
1702 # time-stamp-format: "%:y-%02m-%02d"
1703 # time-stamp-end: "'"
1704 # End:
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 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, see <http://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
27
28 case $1 in
29 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
33 -h | --h*)
34 cat <<\EOF
35 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
36
37 Run PROGRAMS ARGS to compile a file, generating dependencies
38 as side-effects.
39
40 Environment variables:
41 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
44 DEPDIR directory where to store dependencies.
45 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
47 libtool Whether libtool is used (yes/no).
48
49 Report bugs to <bug-automake@gnu.org>.
50 EOF
51 exit $?
52 ;;
53 -v | --v*)
54 echo "depcomp $scriptversion"
55 exit $?
56 ;;
57 esac
58
59 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61 exit 1
62 fi
63
64 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
65 depfile=${depfile-`echo "$object" |
66 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
67 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68
69 rm -f "$tmpdepfile"
70
71 # Some modes work just like other modes, but use different flags. We
72 # parameterize here, but still list the modes in the big case below,
73 # to make depend.m4 easier to write. Note that we *cannot* use a case
74 # here, because this file can only contain one case statement.
75 if test "$depmode" = hp; then
76 # HP compiler uses -M and no extra arg.
77 gccflag=-M
78 depmode=gcc
79 fi
80
81 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
85 fi
86
87 cygpath_u="cygpath -u -f -"
88 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
94 fi
95
96 case "$depmode" in
97 gcc3)
98 ## gcc 3 implements dependency tracking that does exactly what
99 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
100 ## it if -MD -MP comes after the -MF stuff. Hmm.
101 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
102 ## the command line argument order; so add the flags where they
103 ## appear in depend2.am. Note that the slowdown incurred here
104 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
105 for arg
106 do
107 case $arg in
108 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
109 *) set fnord "$@" "$arg" ;;
110 esac
111 shift # fnord
112 shift # $arg
113 done
114 "$@"
115 stat=$?
116 if test $stat -eq 0; then :
117 else
118 rm -f "$tmpdepfile"
119 exit $stat
120 fi
121 mv "$tmpdepfile" "$depfile"
122 ;;
123
124 gcc)
125 ## There are various ways to get dependency output from gcc. Here's
126 ## why we pick this rather obscure method:
127 ## - Don't want to use -MD because we'd like the dependencies to end
128 ## up in a subdir. Having to rename by hand is ugly.
129 ## (We might end up doing this anyway to support other compilers.)
130 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
132 ## - Using -M directly means running the compiler twice (even worse
133 ## than renaming).
134 if test -z "$gccflag"; then
135 gccflag=-MD,
136 fi
137 "$@" -Wp,"$gccflag$tmpdepfile"
138 stat=$?
139 if test $stat -eq 0; then :
140 else
141 rm -f "$tmpdepfile"
142 exit $stat
143 fi
144 rm -f "$depfile"
145 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
148 sed -e 's/^[^:]*: / /' \
149 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
151 ## The problem is that when a header file which appears in a .P file
152 ## is deleted, the dependency causes make to die (because there is
153 ## typically no way to rebuild the header). We avoid this by adding
154 ## dummy dependencies for each header file. Too bad gcc doesn't do
155 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
159 ## that the space means something, we add a space to the output as
160 ## well.
161 ## Some versions of the HPUX 10.20 sed can't process this invocation
162 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
164 rm -f "$tmpdepfile"
165 ;;
166
167 hp)
168 # This case exists only to let depend.m4 do its work. It works by
169 # looking at the text of this script. This case will never be run,
170 # since it is checked for above.
171 exit 1
172 ;;
173
174 sgi)
175 if test "$libtool" = yes; then
176 "$@" "-Wp,-MDupdate,$tmpdepfile"
177 else
178 "$@" -MDupdate "$tmpdepfile"
179 fi
180 stat=$?
181 if test $stat -eq 0; then :
182 else
183 rm -f "$tmpdepfile"
184 exit $stat
185 fi
186 rm -f "$depfile"
187
188 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189 echo "$object : \\" > "$depfile"
190
191 # Clip off the initial element (the dependent). Don't try to be
192 # clever and replace this with sed code, as IRIX sed won't handle
193 # lines with more than a fixed number of characters (4096 in
194 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
196 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
202 echo >> "$depfile"
203
204 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
209 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
214 fi
215 rm -f "$tmpdepfile"
216 ;;
217
218 aix)
219 # The C for AIX Compiler uses -M and outputs the dependencies
220 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
222 # start of each line; $object doesn't have directory information.
223 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
227 if test "$libtool" = yes; then
228 tmpdepfile1=$dir$base.u
229 tmpdepfile2=$base.u
230 tmpdepfile3=$dir.libs/$base.u
231 "$@" -Wc,-M
232 else
233 tmpdepfile1=$dir$base.u
234 tmpdepfile2=$dir$base.u
235 tmpdepfile3=$dir$base.u
236 "$@" -M
237 fi
238 stat=$?
239
240 if test $stat -eq 0; then :
241 else
242 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243 exit $stat
244 fi
245
246 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
247 do
248 test -f "$tmpdepfile" && break
249 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
263 rm -f "$tmpdepfile"
264 ;;
265
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
278 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
280 # foo.o: sub/foo.c ... \
281 # sub/foo.h ... \
282 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
288 rm -f "$tmpdepfile"
289 exit $stat
290 fi
291 rm -f "$depfile"
292 # Each line is of the form `foo.o: dependent.h',
293 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
294 # Do two passes, one to just change these to
295 # `$object: dependent.h' and one to simply `dependent.h:'.
296 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297 # Some versions of the HPUX 10.20 sed can't process this invocation
298 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
301 rm -f "$tmpdepfile"
302 ;;
303
304 hp2)
305 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
306 # compilers, which have integrated preprocessors. The correct option
307 # to use with these is +Maked; it writes dependencies to a file named
308 # 'foo.d', which lands next to the object file, wherever that
309 # happens to be.
310 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
314 if test "$libtool" = yes; then
315 tmpdepfile1=$dir$base.d
316 tmpdepfile2=$dir.libs/$base.d
317 "$@" -Wc,+Maked
318 else
319 tmpdepfile1=$dir$base.d
320 tmpdepfile2=$dir$base.d
321 "$@" +Maked
322 fi
323 stat=$?
324 if test $stat -eq 0; then :
325 else
326 rm -f "$tmpdepfile1" "$tmpdepfile2"
327 exit $stat
328 fi
329
330 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
331 do
332 test -f "$tmpdepfile" && break
333 done
334 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
337 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
343 else
344 echo "#dummy" > "$depfile"
345 fi
346 rm -f "$tmpdepfile" "$tmpdepfile2"
347 ;;
348
349 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
406
407 #nosideeffect)
408 # This comment above is used by automake to tell side-effect
409 # dependency tracking mechanisms from slower ones.
410
411 dashmstdout)
412 # Important note: in order to support this mode, a compiler *must*
413 # always write the preprocessed file to stdout, regardless of -o.
414 "$@" || exit $?
415
416 # Remove the call to Libtool.
417 if test "$libtool" = yes; then
418 while test "X$1" != 'X--mode=compile'; do
419 shift
420 done
421 shift
422 fi
423
424 # Remove `-o $object'.
425 IFS=" "
426 for arg
427 do
428 case $arg in
429 -o)
430 shift
431 ;;
432 $object)
433 shift
434 ;;
435 *)
436 set fnord "$@" "$arg"
437 shift # fnord
438 shift # $arg
439 ;;
440 esac
441 done
442
443 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
445 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
447 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
449 rm -f "$depfile"
450 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
456 rm -f "$tmpdepfile"
457 ;;
458
459 dashXmstdout)
460 # This case only exists to satisfy depend.m4. It is never actually
461 # run, as this mode is specially recognized in the preamble.
462 exit 1
463 ;;
464
465 makedepend)
466 "$@" || exit $?
467 # Remove any Libtool call
468 if test "$libtool" = yes; then
469 while test "X$1" != 'X--mode=compile'; do
470 shift
471 done
472 shift
473 fi
474 # X makedepend
475 shift
476 cleared=no eat=no
477 for arg
478 do
479 case $cleared in
480 no)
481 set ""; shift
482 cleared=yes ;;
483 esac
484 if test $eat = yes; then
485 eat=no
486 continue
487 fi
488 case "$arg" in
489 -D*|-I*)
490 set fnord "$@" "$arg"; shift ;;
491 # Strip any option that makedepend may not understand. Remove
492 # the object too, otherwise makedepend will parse it as a source file.
493 -arch)
494 eat=yes ;;
495 -*|$object)
496 ;;
497 *)
498 set fnord "$@" "$arg"; shift ;;
499 esac
500 done
501 obj_suffix=`echo "$object" | sed 's/^.*\././'`
502 touch "$tmpdepfile"
503 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
511 rm -f "$tmpdepfile" "$tmpdepfile".bak
512 ;;
513
514 cpp)
515 # Important note: in order to support this mode, a compiler *must*
516 # always write the preprocessed file to stdout.
517 "$@" || exit $?
518
519 # Remove the call to Libtool.
520 if test "$libtool" = yes; then
521 while test "X$1" != 'X--mode=compile'; do
522 shift
523 done
524 shift
525 fi
526
527 # Remove `-o $object'.
528 IFS=" "
529 for arg
530 do
531 case $arg in
532 -o)
533 shift
534 ;;
535 $object)
536 shift
537 ;;
538 *)
539 set fnord "$@" "$arg"
540 shift # fnord
541 shift # $arg
542 ;;
543 esac
544 done
545
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
550 rm -f "$depfile"
551 echo "$object : \\" > "$depfile"
552 cat < "$tmpdepfile" >> "$depfile"
553 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
554 rm -f "$tmpdepfile"
555 ;;
556
557 msvisualcpp)
558 # Important note: in order to support this mode, a compiler *must*
559 # always write the preprocessed file to stdout.
560 "$@" || exit $?
561
562 # Remove the call to Libtool.
563 if test "$libtool" = yes; then
564 while test "X$1" != 'X--mode=compile'; do
565 shift
566 done
567 shift
568 fi
569
570 IFS=" "
571 for arg
572 do
573 case "$arg" in
574 -o)
575 shift
576 ;;
577 $object)
578 shift
579 ;;
580 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
585 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
590 esac
591 done
592 "$@" -E 2>/dev/null |
593 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594 rm -f "$depfile"
595 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
598 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599 rm -f "$tmpdepfile"
600 ;;
601
602 msvcmsys)
603 # This case exists only to let depend.m4 do its work. It works by
604 # looking at the text of this script. This case will never be run,
605 # since it is checked for above.
606 exit 1
607 ;;
608
609 none)
610 exec "$@"
611 ;;
612
613 *)
614 echo "Unknown depmode $depmode" 1>&2
615 exit 1
616 ;;
617 esac
618
619 exit 0
620
621 # Local Variables:
622 # mode: shell-script
623 # sh-indentation: 2
624 # eval: (add-hook 'write-file-hooks 'time-stamp)
625 # time-stamp-start: "scriptversion="
626 # time-stamp-format: "%:y-%02m-%02d.%02H"
627 # time-stamp-time-zone: "UTC"
628 # time-stamp-end: "; # UTC"
629 # End:
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2009-04-28.21; # UTC
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.
42
43 nl='
44 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
88 chowncmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
91 stripcmd=
92
93 src=
94 dst=
95 dir_arg=
96 dst_arg=
97
98 copy_on_change=false
99 no_target_directory=
100
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
103 or: $0 [OPTION]... SRCFILES... DIRECTORY
104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
105 or: $0 [OPTION]... -d DIRECTORIES...
106
107 In the 1st form, copy SRCFILE to DSTFILE.
108 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
109 In the 4th, create DIRECTORIES.
110
111 Options:
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
124
125 Environment variables override the default commands:
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
128 "
129
130 while test $# -ne 0; do
131 case $1 in
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
137
138 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
140
141 --help) echo "$usage"; exit $?;;
142
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
151
152 -o) chowncmd="$chownprog $2"
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
161
162 --version) echo "$0 $scriptversion"; exit $?;;
163
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
171 esac
172 shift
173 done
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
192 if test -z "$dir_arg"; then
193 echo "$0: no input file specified." >&2
194 exit 1
195 fi
196 # It's OK to call `install-sh -d' without argument.
197 # This can happen when creating conditional directories.
198 exit 0
199 fi
200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
228 for src
229 do
230 # Protect names starting with `-'.
231 case $src in
232 -*) src=./$src;;
233 esac
234
235 if test -n "$dir_arg"; then
236 dst=$src
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
240 else
241
242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
243 # might cause directories to be created, which would be especially bad
244 # if $src (and thus $dsttmp) contains '*'.
245 if test ! -f "$src" && test ! -d "$src"; then
246 echo "$0: $src does not exist." >&2
247 exit 1
248 fi
249
250 if test -z "$dst_arg"; then
251 echo "$0: no destination specified." >&2
252 exit 1
253 fi
254
255 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260
261 # If destination is a directory, append the input filename; won't work
262 # if double slashes aren't ignored.
263 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
267 fi
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
301 fi
302 fi
303
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
397 shift
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
433 fi
434 fi
435 fi
436
437 if test -n "$dir_arg"; then
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
442 else
443
444 # Make a couple of temp file names in the proper directory.
445 dsttmp=$dstdir/_inst.$$_
446 rmtmp=$dstdir/_rm.$$_
447
448 # Trap to clean up those temp files at exit.
449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
450
451 # Copy the file name to the temp name.
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
453
454 # and set any options; do chmod last to preserve setuid bits.
455 #
456 # If any of these fail, we abort the whole thing. If we want to
457 # ignore errors from any of these, just make sure not to ignore
458 # errors from the above "$doit $cpprog $src $dsttmp" command.
459 #
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
511 done
512
513 # Local variables:
514 # eval: (add-hook 'write-file-hooks 'time-stamp)
515 # time-stamp-start: "scriptversion="
516 # time-stamp-format: "%:y-%02m-%02d.%02H"
517 # time-stamp-time-zone: "UTC"
518 # time-stamp-end: "; # UTC"
519 # End:
0
1 # libtool (GNU libtool) 2.4
2 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool 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 of the License, or
12 # (at your option) any later version.
13 #
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
20 # WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 # General Public License for more details.
23 #
24 # You should have received a copy of the GNU General Public License
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
31 #
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --tag=TAG use configuration variables from tag TAG
44 # -v, --verbose print more informational messages than default
45 # --no-verbose don't print the extra informational messages
46 # --version print version information
47 # -h, --help, --help-all print short, long, or detailed help message
48 #
49 # MODE must be one of the following:
50 #
51 # clean remove files from the build directory
52 # compile compile a source file into a libtool object
53 # execute automatically set library path, then run a program
54 # finish complete the installation of libtool libraries
55 # install install libraries or executables
56 # link create a library or an executable
57 # uninstall remove libraries from an installed directory
58 #
59 # MODE-ARGS vary depending on the MODE. When passed as first option,
60 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
61 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
62 #
63 # When reporting a bug, please describe a test case to reproduce it and
64 # include the following information:
65 #
66 # host-triplet: $host
67 # shell: $SHELL
68 # compiler: $LTCC
69 # compiler flags: $LTCFLAGS
70 # linker: $LD (gnu? $with_gnu_ld)
71 # $progname: (GNU libtool) 2.4
72 # automake: $automake_version
73 # autoconf: $autoconf_version
74 #
75 # Report bugs to <bug-libtool@gnu.org>.
76 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
77 # General help using GNU software: <http://www.gnu.org/gethelp/>.
78
79 PROGRAM=libtool
80 PACKAGE=libtool
81 VERSION=2.4
82 TIMESTAMP=""
83 package_revision=1.3293
84
85 # Be Bourne compatible
86 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
87 emulate sh
88 NULLCMD=:
89 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
90 # is contrary to our usage. Disable this feature.
91 alias -g '${1+"$@"}'='"$@"'
92 setopt NO_GLOB_SUBST
93 else
94 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
95 fi
96 BIN_SH=xpg4; export BIN_SH # for Tru64
97 DUALCASE=1; export DUALCASE # for MKS sh
98
99 # A function that is used when there is no print builtin or printf.
100 func_fallback_echo ()
101 {
102 eval 'cat <<_LTECHO_EOF
103 $1
104 _LTECHO_EOF'
105 }
106
107 # NLS nuisances: We save the old values to restore during execute mode.
108 lt_user_locale=
109 lt_safe_locale=
110 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
111 do
112 eval "if test \"\${$lt_var+set}\" = set; then
113 save_$lt_var=\$$lt_var
114 $lt_var=C
115 export $lt_var
116 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
117 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
118 fi"
119 done
120 LC_ALL=C
121 LANGUAGE=C
122 export LANGUAGE LC_ALL
123
124 $lt_unset CDPATH
125
126
127 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
128 # is ksh but when the shell is invoked as "sh" and the current value of
129 # the _XPG environment variable is not equal to 1 (one), the special
130 # positional parameter $0, within a function call, is the name of the
131 # function.
132 progpath="$0"
133
134
135
136 : ${CP="cp -f"}
137 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
138 : ${EGREP="/bin/grep -E"}
139 : ${FGREP="/bin/grep -F"}
140 : ${GREP="/bin/grep"}
141 : ${LN_S="ln -s"}
142 : ${MAKE="make"}
143 : ${MKDIR="mkdir"}
144 : ${MV="mv -f"}
145 : ${RM="rm -f"}
146 : ${SED="/bin/sed"}
147 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
148 : ${Xsed="$SED -e 1s/^X//"}
149
150 # Global variables:
151 EXIT_SUCCESS=0
152 EXIT_FAILURE=1
153 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
154 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
155
156 exit_status=$EXIT_SUCCESS
157
158 # Make sure IFS has a sensible default
159 lt_nl='
160 '
161 IFS=" $lt_nl"
162
163 dirname="s,/[^/]*$,,"
164 basename="s,^.*/,,"
165
166 # func_dirname file append nondir_replacement
167 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
168 # otherwise set result to NONDIR_REPLACEMENT.
169 func_dirname ()
170 {
171 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
172 if test "X$func_dirname_result" = "X${1}"; then
173 func_dirname_result="${3}"
174 else
175 func_dirname_result="$func_dirname_result${2}"
176 fi
177 } # func_dirname may be replaced by extended shell implementation
178
179
180 # func_basename file
181 func_basename ()
182 {
183 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
184 } # func_basename may be replaced by extended shell implementation
185
186
187 # func_dirname_and_basename file append nondir_replacement
188 # perform func_basename and func_dirname in a single function
189 # call:
190 # dirname: Compute the dirname of FILE. If nonempty,
191 # add APPEND to the result, otherwise set result
192 # to NONDIR_REPLACEMENT.
193 # value returned in "$func_dirname_result"
194 # basename: Compute filename of FILE.
195 # value retuned in "$func_basename_result"
196 # Implementation must be kept synchronized with func_dirname
197 # and func_basename. For efficiency, we do not delegate to
198 # those functions but instead duplicate the functionality here.
199 func_dirname_and_basename ()
200 {
201 # Extract subdirectory from the argument.
202 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
203 if test "X$func_dirname_result" = "X${1}"; then
204 func_dirname_result="${3}"
205 else
206 func_dirname_result="$func_dirname_result${2}"
207 fi
208 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
209 } # func_dirname_and_basename may be replaced by extended shell implementation
210
211
212 # func_stripname prefix suffix name
213 # strip PREFIX and SUFFIX off of NAME.
214 # PREFIX and SUFFIX must not contain globbing or regex special
215 # characters, hashes, percent signs, but SUFFIX may contain a leading
216 # dot (in which case that matches only a dot).
217 # func_strip_suffix prefix name
218 func_stripname ()
219 {
220 case ${2} in
221 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
222 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
223 esac
224 } # func_stripname may be replaced by extended shell implementation
225
226
227 # These SED scripts presuppose an absolute path with a trailing slash.
228 pathcar='s,^/\([^/]*\).*$,\1,'
229 pathcdr='s,^/[^/]*,,'
230 removedotparts=':dotsl
231 s@/\./@/@g
232 t dotsl
233 s,/\.$,/,'
234 collapseslashes='s@/\{1,\}@/@g'
235 finalslash='s,/*$,/,'
236
237 # func_normal_abspath PATH
238 # Remove doubled-up and trailing slashes, "." path components,
239 # and cancel out any ".." path components in PATH after making
240 # it an absolute path.
241 # value returned in "$func_normal_abspath_result"
242 func_normal_abspath ()
243 {
244 # Start from root dir and reassemble the path.
245 func_normal_abspath_result=
246 func_normal_abspath_tpath=$1
247 func_normal_abspath_altnamespace=
248 case $func_normal_abspath_tpath in
249 "")
250 # Empty path, that just means $cwd.
251 func_stripname '' '/' "`pwd`"
252 func_normal_abspath_result=$func_stripname_result
253 return
254 ;;
255 # The next three entries are used to spot a run of precisely
256 # two leading slashes without using negated character classes;
257 # we take advantage of case's first-match behaviour.
258 ///*)
259 # Unusual form of absolute path, do nothing.
260 ;;
261 //*)
262 # Not necessarily an ordinary path; POSIX reserves leading '//'
263 # and for example Cygwin uses it to access remote file shares
264 # over CIFS/SMB, so we conserve a leading double slash if found.
265 func_normal_abspath_altnamespace=/
266 ;;
267 /*)
268 # Absolute path, do nothing.
269 ;;
270 *)
271 # Relative path, prepend $cwd.
272 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
273 ;;
274 esac
275 # Cancel out all the simple stuff to save iterations. We also want
276 # the path to end with a slash for ease of parsing, so make sure
277 # there is one (and only one) here.
278 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
279 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
280 while :; do
281 # Processed it all yet?
282 if test "$func_normal_abspath_tpath" = / ; then
283 # If we ascended to the root using ".." the result may be empty now.
284 if test -z "$func_normal_abspath_result" ; then
285 func_normal_abspath_result=/
286 fi
287 break
288 fi
289 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
290 -e "$pathcar"`
291 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
292 -e "$pathcdr"`
293 # Figure out what to do with it
294 case $func_normal_abspath_tcomponent in
295 "")
296 # Trailing empty path component, ignore it.
297 ;;
298 ..)
299 # Parent dir; strip last assembled component from result.
300 func_dirname "$func_normal_abspath_result"
301 func_normal_abspath_result=$func_dirname_result
302 ;;
303 *)
304 # Actual path component, append it.
305 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
306 ;;
307 esac
308 done
309 # Restore leading double-slash if one was found on entry.
310 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
311 }
312
313 # func_relative_path SRCDIR DSTDIR
314 # generates a relative path from SRCDIR to DSTDIR, with a trailing
315 # slash if non-empty, suitable for immediately appending a filename
316 # without needing to append a separator.
317 # value returned in "$func_relative_path_result"
318 func_relative_path ()
319 {
320 func_relative_path_result=
321 func_normal_abspath "$1"
322 func_relative_path_tlibdir=$func_normal_abspath_result
323 func_normal_abspath "$2"
324 func_relative_path_tbindir=$func_normal_abspath_result
325
326 # Ascend the tree starting from libdir
327 while :; do
328 # check if we have found a prefix of bindir
329 case $func_relative_path_tbindir in
330 $func_relative_path_tlibdir)
331 # found an exact match
332 func_relative_path_tcancelled=
333 break
334 ;;
335 $func_relative_path_tlibdir*)
336 # found a matching prefix
337 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
338 func_relative_path_tcancelled=$func_stripname_result
339 if test -z "$func_relative_path_result"; then
340 func_relative_path_result=.
341 fi
342 break
343 ;;
344 *)
345 func_dirname $func_relative_path_tlibdir
346 func_relative_path_tlibdir=${func_dirname_result}
347 if test "x$func_relative_path_tlibdir" = x ; then
348 # Have to descend all the way to the root!
349 func_relative_path_result=../$func_relative_path_result
350 func_relative_path_tcancelled=$func_relative_path_tbindir
351 break
352 fi
353 func_relative_path_result=../$func_relative_path_result
354 ;;
355 esac
356 done
357
358 # Now calculate path; take care to avoid doubling-up slashes.
359 func_stripname '' '/' "$func_relative_path_result"
360 func_relative_path_result=$func_stripname_result
361 func_stripname '/' '/' "$func_relative_path_tcancelled"
362 if test "x$func_stripname_result" != x ; then
363 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
364 fi
365
366 # Normalisation. If bindir is libdir, return empty string,
367 # else relative path ending with a slash; either way, target
368 # file name can be directly appended.
369 if test ! -z "$func_relative_path_result"; then
370 func_stripname './' '' "$func_relative_path_result/"
371 func_relative_path_result=$func_stripname_result
372 fi
373 }
374
375 # The name of this program:
376 func_dirname_and_basename "$progpath"
377 progname=$func_basename_result
378
379 # Make sure we have an absolute path for reexecution:
380 case $progpath in
381 [\\/]*|[A-Za-z]:\\*) ;;
382 *[\\/]*)
383 progdir=$func_dirname_result
384 progdir=`cd "$progdir" && pwd`
385 progpath="$progdir/$progname"
386 ;;
387 *)
388 save_IFS="$IFS"
389 IFS=:
390 for progdir in $PATH; do
391 IFS="$save_IFS"
392 test -x "$progdir/$progname" && break
393 done
394 IFS="$save_IFS"
395 test -n "$progdir" || progdir=`pwd`
396 progpath="$progdir/$progname"
397 ;;
398 esac
399
400 # Sed substitution that helps us do robust quoting. It backslashifies
401 # metacharacters that are still active within double-quoted strings.
402 Xsed="${SED}"' -e 1s/^X//'
403 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
404
405 # Same as above, but do not quote variable references.
406 double_quote_subst='s/\(["`\\]\)/\\\1/g'
407
408 # Sed substitution that turns a string into a regex matching for the
409 # string literally.
410 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
411
412 # Sed substitution that converts a w32 file name or path
413 # which contains forward slashes, into one that contains
414 # (escaped) backslashes. A very naive implementation.
415 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
416
417 # Re-`\' parameter expansions in output of double_quote_subst that were
418 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
419 # in input to double_quote_subst, that '$' was protected from expansion.
420 # Since each input `\' is now two `\'s, look for any number of runs of
421 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
422 bs='\\'
423 bs2='\\\\'
424 bs4='\\\\\\\\'
425 dollar='\$'
426 sed_double_backslash="\
427 s/$bs4/&\\
428 /g
429 s/^$bs2$dollar/$bs&/
430 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
431 s/\n//g"
432
433 # Standard options:
434 opt_dry_run=false
435 opt_help=false
436 opt_quiet=false
437 opt_verbose=false
438 opt_warning=:
439
440 # func_echo arg...
441 # Echo program name prefixed message, along with the current mode
442 # name if it has been set yet.
443 func_echo ()
444 {
445 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
446 }
447
448 # func_verbose arg...
449 # Echo program name prefixed message in verbose mode only.
450 func_verbose ()
451 {
452 $opt_verbose && func_echo ${1+"$@"}
453
454 # A bug in bash halts the script if the last line of a function
455 # fails when set -e is in force, so we need another command to
456 # work around that:
457 :
458 }
459
460 # func_echo_all arg...
461 # Invoke $ECHO with all args, space-separated.
462 func_echo_all ()
463 {
464 $ECHO "$*"
465 }
466
467 # func_error arg...
468 # Echo program name prefixed message to standard error.
469 func_error ()
470 {
471 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
472 }
473
474 # func_warning arg...
475 # Echo program name prefixed warning message to standard error.
476 func_warning ()
477 {
478 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
479
480 # bash bug again:
481 :
482 }
483
484 # func_fatal_error arg...
485 # Echo program name prefixed message to standard error, and exit.
486 func_fatal_error ()
487 {
488 func_error ${1+"$@"}
489 exit $EXIT_FAILURE
490 }
491
492 # func_fatal_help arg...
493 # Echo program name prefixed message to standard error, followed by
494 # a help hint, and exit.
495 func_fatal_help ()
496 {
497 func_error ${1+"$@"}
498 func_fatal_error "$help"
499 }
500 help="Try \`$progname --help' for more information." ## default
501
502
503 # func_grep expression filename
504 # Check whether EXPRESSION matches any line of FILENAME, without output.
505 func_grep ()
506 {
507 $GREP "$1" "$2" >/dev/null 2>&1
508 }
509
510
511 # func_mkdir_p directory-path
512 # Make sure the entire path to DIRECTORY-PATH is available.
513 func_mkdir_p ()
514 {
515 my_directory_path="$1"
516 my_dir_list=
517
518 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
519
520 # Protect directory names starting with `-'
521 case $my_directory_path in
522 -*) my_directory_path="./$my_directory_path" ;;
523 esac
524
525 # While some portion of DIR does not yet exist...
526 while test ! -d "$my_directory_path"; do
527 # ...make a list in topmost first order. Use a colon delimited
528 # list incase some portion of path contains whitespace.
529 my_dir_list="$my_directory_path:$my_dir_list"
530
531 # If the last portion added has no slash in it, the list is done
532 case $my_directory_path in */*) ;; *) break ;; esac
533
534 # ...otherwise throw away the child directory and loop
535 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
536 done
537 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
538
539 save_mkdir_p_IFS="$IFS"; IFS=':'
540 for my_dir in $my_dir_list; do
541 IFS="$save_mkdir_p_IFS"
542 # mkdir can fail with a `File exist' error if two processes
543 # try to create one of the directories concurrently. Don't
544 # stop in that case!
545 $MKDIR "$my_dir" 2>/dev/null || :
546 done
547 IFS="$save_mkdir_p_IFS"
548
549 # Bail out if we (or some other process) failed to create a directory.
550 test -d "$my_directory_path" || \
551 func_fatal_error "Failed to create \`$1'"
552 fi
553 }
554
555
556 # func_mktempdir [string]
557 # Make a temporary directory that won't clash with other running
558 # libtool processes, and avoids race conditions if possible. If
559 # given, STRING is the basename for that directory.
560 func_mktempdir ()
561 {
562 my_template="${TMPDIR-/tmp}/${1-$progname}"
563
564 if test "$opt_dry_run" = ":"; then
565 # Return a directory name, but don't create it in dry-run mode
566 my_tmpdir="${my_template}-$$"
567 else
568
569 # If mktemp works, use that first and foremost
570 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
571
572 if test ! -d "$my_tmpdir"; then
573 # Failing that, at least try and use $RANDOM to avoid a race
574 my_tmpdir="${my_template}-${RANDOM-0}$$"
575
576 save_mktempdir_umask=`umask`
577 umask 0077
578 $MKDIR "$my_tmpdir"
579 umask $save_mktempdir_umask
580 fi
581
582 # If we're not in dry-run mode, bomb out on failure
583 test -d "$my_tmpdir" || \
584 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
585 fi
586
587 $ECHO "$my_tmpdir"
588 }
589
590
591 # func_quote_for_eval arg
592 # Aesthetically quote ARG to be evaled later.
593 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
594 # is double-quoted, suitable for a subsequent eval, whereas
595 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
596 # which are still active within double quotes backslashified.
597 func_quote_for_eval ()
598 {
599 case $1 in
600 *[\\\`\"\$]*)
601 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
602 *)
603 func_quote_for_eval_unquoted_result="$1" ;;
604 esac
605
606 case $func_quote_for_eval_unquoted_result in
607 # Double-quote args containing shell metacharacters to delay
608 # word splitting, command substitution and and variable
609 # expansion for a subsequent eval.
610 # Many Bourne shells cannot handle close brackets correctly
611 # in scan sets, so we specify it separately.
612 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
613 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
614 ;;
615 *)
616 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
617 esac
618 }
619
620
621 # func_quote_for_expand arg
622 # Aesthetically quote ARG to be evaled later; same as above,
623 # but do not quote variable references.
624 func_quote_for_expand ()
625 {
626 case $1 in
627 *[\\\`\"]*)
628 my_arg=`$ECHO "$1" | $SED \
629 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
630 *)
631 my_arg="$1" ;;
632 esac
633
634 case $my_arg in
635 # Double-quote args containing shell metacharacters to delay
636 # word splitting and command substitution for a subsequent eval.
637 # Many Bourne shells cannot handle close brackets correctly
638 # in scan sets, so we specify it separately.
639 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
640 my_arg="\"$my_arg\""
641 ;;
642 esac
643
644 func_quote_for_expand_result="$my_arg"
645 }
646
647
648 # func_show_eval cmd [fail_exp]
649 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
650 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
651 # is given, then evaluate it.
652 func_show_eval ()
653 {
654 my_cmd="$1"
655 my_fail_exp="${2-:}"
656
657 ${opt_silent-false} || {
658 func_quote_for_expand "$my_cmd"
659 eval "func_echo $func_quote_for_expand_result"
660 }
661
662 if ${opt_dry_run-false}; then :; else
663 eval "$my_cmd"
664 my_status=$?
665 if test "$my_status" -eq 0; then :; else
666 eval "(exit $my_status); $my_fail_exp"
667 fi
668 fi
669 }
670
671
672 # func_show_eval_locale cmd [fail_exp]
673 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
674 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
675 # is given, then evaluate it. Use the saved locale for evaluation.
676 func_show_eval_locale ()
677 {
678 my_cmd="$1"
679 my_fail_exp="${2-:}"
680
681 ${opt_silent-false} || {
682 func_quote_for_expand "$my_cmd"
683 eval "func_echo $func_quote_for_expand_result"
684 }
685
686 if ${opt_dry_run-false}; then :; else
687 eval "$lt_user_locale
688 $my_cmd"
689 my_status=$?
690 eval "$lt_safe_locale"
691 if test "$my_status" -eq 0; then :; else
692 eval "(exit $my_status); $my_fail_exp"
693 fi
694 fi
695 }
696
697 # func_tr_sh
698 # Turn $1 into a string suitable for a shell variable name.
699 # Result is stored in $func_tr_sh_result. All characters
700 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
701 # if $1 begins with a digit, a '_' is prepended as well.
702 func_tr_sh ()
703 {
704 case $1 in
705 [0-9]* | *[!a-zA-Z0-9_]*)
706 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
707 ;;
708 * )
709 func_tr_sh_result=$1
710 ;;
711 esac
712 }
713
714
715 # func_version
716 # Echo version message to standard output and exit.
717 func_version ()
718 {
719 $opt_debug
720
721 $SED -n '/(C)/!b go
722 :more
723 /\./!{
724 N
725 s/\n# / /
726 b more
727 }
728 :go
729 /^# '$PROGRAM' (GNU /,/# warranty; / {
730 s/^# //
731 s/^# *$//
732 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
733 p
734 }' < "$progpath"
735 exit $?
736 }
737
738 # func_usage
739 # Echo short help message to standard output and exit.
740 func_usage ()
741 {
742 $opt_debug
743
744 $SED -n '/^# Usage:/,/^# *.*--help/ {
745 s/^# //
746 s/^# *$//
747 s/\$progname/'$progname'/
748 p
749 }' < "$progpath"
750 echo
751 $ECHO "run \`$progname --help | more' for full usage"
752 exit $?
753 }
754
755 # func_help [NOEXIT]
756 # Echo long help message to standard output and exit,
757 # unless 'noexit' is passed as argument.
758 func_help ()
759 {
760 $opt_debug
761
762 $SED -n '/^# Usage:/,/# Report bugs to/ {
763 :print
764 s/^# //
765 s/^# *$//
766 s*\$progname*'$progname'*
767 s*\$host*'"$host"'*
768 s*\$SHELL*'"$SHELL"'*
769 s*\$LTCC*'"$LTCC"'*
770 s*\$LTCFLAGS*'"$LTCFLAGS"'*
771 s*\$LD*'"$LD"'*
772 s/\$with_gnu_ld/'"$with_gnu_ld"'/
773 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
774 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
775 p
776 d
777 }
778 /^# .* home page:/b print
779 /^# General help using/b print
780 ' < "$progpath"
781 ret=$?
782 if test -z "$1"; then
783 exit $ret
784 fi
785 }
786
787 # func_missing_arg argname
788 # Echo program name prefixed message to standard error and set global
789 # exit_cmd.
790 func_missing_arg ()
791 {
792 $opt_debug
793
794 func_error "missing argument for $1."
795 exit_cmd=exit
796 }
797
798
799 # func_split_short_opt shortopt
800 # Set func_split_short_opt_name and func_split_short_opt_arg shell
801 # variables after splitting SHORTOPT after the 2nd character.
802 func_split_short_opt ()
803 {
804 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
805 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
806
807 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
808 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
809 } # func_split_short_opt may be replaced by extended shell implementation
810
811
812 # func_split_long_opt longopt
813 # Set func_split_long_opt_name and func_split_long_opt_arg shell
814 # variables after splitting LONGOPT at the `=' sign.
815 func_split_long_opt ()
816 {
817 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
818 my_sed_long_arg='1s/^--[^=]*=//'
819
820 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
821 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
822 } # func_split_long_opt may be replaced by extended shell implementation
823
824 exit_cmd=:
825
826
827
828
829
830 magic="%%%MAGIC variable%%%"
831 magic_exe="%%%MAGIC EXE variable%%%"
832
833 # Global variables.
834 nonopt=
835 preserve_args=
836 lo2o="s/\\.lo\$/.${objext}/"
837 o2lo="s/\\.${objext}\$/.lo/"
838 extracted_archives=
839 extracted_serial=0
840
841 # If this variable is set in any of the actions, the command in it
842 # will be execed at the end. This prevents here-documents from being
843 # left over by shells.
844 exec_cmd=
845
846 # func_append var value
847 # Append VALUE to the end of shell variable VAR.
848 func_append ()
849 {
850 eval "${1}=\$${1}\${2}"
851 } # func_append may be replaced by extended shell implementation
852
853 # func_append_quoted var value
854 # Quote VALUE and append to the end of shell variable VAR, separated
855 # by a space.
856 func_append_quoted ()
857 {
858 func_quote_for_eval "${2}"
859 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
860 } # func_append_quoted may be replaced by extended shell implementation
861
862
863 # func_arith arithmetic-term...
864 func_arith ()
865 {
866 func_arith_result=`expr "${@}"`
867 } # func_arith may be replaced by extended shell implementation
868
869
870 # func_len string
871 # STRING may not start with a hyphen.
872 func_len ()
873 {
874 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
875 } # func_len may be replaced by extended shell implementation
876
877
878 # func_lo2o object
879 func_lo2o ()
880 {
881 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
882 } # func_lo2o may be replaced by extended shell implementation
883
884
885 # func_xform libobj-or-source
886 func_xform ()
887 {
888 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
889 } # func_xform may be replaced by extended shell implementation
890
891
892 # func_fatal_configuration arg...
893 # Echo program name prefixed message to standard error, followed by
894 # a configuration failure hint, and exit.
895 func_fatal_configuration ()
896 {
897 func_error ${1+"$@"}
898 func_error "See the $PACKAGE documentation for more information."
899 func_fatal_error "Fatal configuration error."
900 }
901
902
903 # func_config
904 # Display the configuration for all the tags in this script.
905 func_config ()
906 {
907 re_begincf='^# ### BEGIN LIBTOOL'
908 re_endcf='^# ### END LIBTOOL'
909
910 # Default configuration.
911 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
912
913 # Now print the configurations for the tags.
914 for tagname in $taglist; do
915 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
916 done
917
918 exit $?
919 }
920
921 # func_features
922 # Display the features supported by this script.
923 func_features ()
924 {
925 echo "host: $host"
926 if test "$build_libtool_libs" = yes; then
927 echo "enable shared libraries"
928 else
929 echo "disable shared libraries"
930 fi
931 if test "$build_old_libs" = yes; then
932 echo "enable static libraries"
933 else
934 echo "disable static libraries"
935 fi
936
937 exit $?
938 }
939
940 # func_enable_tag tagname
941 # Verify that TAGNAME is valid, and either flag an error and exit, or
942 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
943 # variable here.
944 func_enable_tag ()
945 {
946 # Global variable:
947 tagname="$1"
948
949 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
950 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
951 sed_extractcf="/$re_begincf/,/$re_endcf/p"
952
953 # Validate tagname.
954 case $tagname in
955 *[!-_A-Za-z0-9,/]*)
956 func_fatal_error "invalid tag name: $tagname"
957 ;;
958 esac
959
960 # Don't test for the "default" C tag, as we know it's
961 # there but not specially marked.
962 case $tagname in
963 CC) ;;
964 *)
965 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
966 taglist="$taglist $tagname"
967
968 # Evaluate the configuration. Be careful to quote the path
969 # and the sed script, to avoid splitting on whitespace, but
970 # also don't use non-portable quotes within backquotes within
971 # quotes we have to do it in 2 steps:
972 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
973 eval "$extractedcf"
974 else
975 func_error "ignoring unknown tag $tagname"
976 fi
977 ;;
978 esac
979 }
980
981 # func_check_version_match
982 # Ensure that we are using m4 macros, and libtool script from the same
983 # release of libtool.
984 func_check_version_match ()
985 {
986 if test "$package_revision" != "$macro_revision"; then
987 if test "$VERSION" != "$macro_version"; then
988 if test -z "$macro_version"; then
989 cat >&2 <<_LT_EOF
990 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
991 $progname: definition of this LT_INIT comes from an older release.
992 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
993 $progname: and run autoconf again.
994 _LT_EOF
995 else
996 cat >&2 <<_LT_EOF
997 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
998 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
999 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
1000 $progname: and run autoconf again.
1001 _LT_EOF
1002 fi
1003 else
1004 cat >&2 <<_LT_EOF
1005 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
1006 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
1007 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
1008 $progname: of $PACKAGE $VERSION and run autoconf again.
1009 _LT_EOF
1010 fi
1011
1012 exit $EXIT_MISMATCH
1013 fi
1014 }
1015
1016
1017 # Shorthand for --mode=foo, only valid as the first argument
1018 case $1 in
1019 clean|clea|cle|cl)
1020 shift; set dummy --mode clean ${1+"$@"}; shift
1021 ;;
1022 compile|compil|compi|comp|com|co|c)
1023 shift; set dummy --mode compile ${1+"$@"}; shift
1024 ;;
1025 execute|execut|execu|exec|exe|ex|e)
1026 shift; set dummy --mode execute ${1+"$@"}; shift
1027 ;;
1028 finish|finis|fini|fin|fi|f)
1029 shift; set dummy --mode finish ${1+"$@"}; shift
1030 ;;
1031 install|instal|insta|inst|ins|in|i)
1032 shift; set dummy --mode install ${1+"$@"}; shift
1033 ;;
1034 link|lin|li|l)
1035 shift; set dummy --mode link ${1+"$@"}; shift
1036 ;;
1037 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1038 shift; set dummy --mode uninstall ${1+"$@"}; shift
1039 ;;
1040 esac
1041
1042
1043
1044 # Option defaults:
1045 opt_debug=:
1046 opt_dry_run=false
1047 opt_config=false
1048 opt_preserve_dup_deps=false
1049 opt_features=false
1050 opt_finish=false
1051 opt_help=false
1052 opt_help_all=false
1053 opt_silent=:
1054 opt_verbose=:
1055 opt_silent=false
1056 opt_verbose=false
1057
1058
1059 # Parse options once, thoroughly. This comes as soon as possible in the
1060 # script to make things like `--version' happen as quickly as we can.
1061 {
1062 # this just eases exit handling
1063 while test $# -gt 0; do
1064 opt="$1"
1065 shift
1066 case $opt in
1067 --debug|-x) opt_debug='set -x'
1068 func_echo "enabling shell trace mode"
1069 $opt_debug
1070 ;;
1071 --dry-run|--dryrun|-n)
1072 opt_dry_run=:
1073 ;;
1074 --config)
1075 opt_config=:
1076 func_config
1077 ;;
1078 --dlopen|-dlopen)
1079 optarg="$1"
1080 opt_dlopen="${opt_dlopen+$opt_dlopen
1081 }$optarg"
1082 shift
1083 ;;
1084 --preserve-dup-deps)
1085 opt_preserve_dup_deps=:
1086 ;;
1087 --features)
1088 opt_features=:
1089 func_features
1090 ;;
1091 --finish)
1092 opt_finish=:
1093 set dummy --mode finish ${1+"$@"}; shift
1094 ;;
1095 --help)
1096 opt_help=:
1097 ;;
1098 --help-all)
1099 opt_help_all=:
1100 opt_help=': help-all'
1101 ;;
1102 --mode)
1103 test $# = 0 && func_missing_arg $opt && break
1104 optarg="$1"
1105 opt_mode="$optarg"
1106 case $optarg in
1107 # Valid mode arguments:
1108 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1109
1110 # Catch anything else as an error
1111 *) func_error "invalid argument for $opt"
1112 exit_cmd=exit
1113 break
1114 ;;
1115 esac
1116 shift
1117 ;;
1118 --no-silent|--no-quiet)
1119 opt_silent=false
1120 func_append preserve_args " $opt"
1121 ;;
1122 --no-verbose)
1123 opt_verbose=false
1124 func_append preserve_args " $opt"
1125 ;;
1126 --silent|--quiet)
1127 opt_silent=:
1128 func_append preserve_args " $opt"
1129 opt_verbose=false
1130 ;;
1131 --verbose|-v)
1132 opt_verbose=:
1133 func_append preserve_args " $opt"
1134 opt_silent=false
1135 ;;
1136 --tag)
1137 test $# = 0 && func_missing_arg $opt && break
1138 optarg="$1"
1139 opt_tag="$optarg"
1140 func_append preserve_args " $opt $optarg"
1141 func_enable_tag "$optarg"
1142 shift
1143 ;;
1144
1145 -\?|-h) func_usage ;;
1146 --help) func_help ;;
1147 --version) func_version ;;
1148
1149 # Separate optargs to long options:
1150 --*=*)
1151 func_split_long_opt "$opt"
1152 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1153 shift
1154 ;;
1155
1156 # Separate non-argument short options:
1157 -\?*|-h*|-n*|-v*)
1158 func_split_short_opt "$opt"
1159 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1160 shift
1161 ;;
1162
1163 --) break ;;
1164 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1165 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1166 esac
1167 done
1168
1169 # Validate options:
1170
1171 # save first non-option argument
1172 if test "$#" -gt 0; then
1173 nonopt="$opt"
1174 shift
1175 fi
1176
1177 # preserve --debug
1178 test "$opt_debug" = : || func_append preserve_args " --debug"
1179
1180 case $host in
1181 *cygwin* | *mingw* | *pw32* | *cegcc*)
1182 # don't eliminate duplications in $postdeps and $predeps
1183 opt_duplicate_compiler_generated_deps=:
1184 ;;
1185 *)
1186 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1187 ;;
1188 esac
1189
1190 $opt_help || {
1191 # Sanity checks first:
1192 func_check_version_match
1193
1194 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1195 func_fatal_configuration "not configured to build any kind of library"
1196 fi
1197
1198 # Darwin sucks
1199 eval std_shrext=\"$shrext_cmds\"
1200
1201 # Only execute mode is allowed to have -dlopen flags.
1202 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1203 func_error "unrecognized option \`-dlopen'"
1204 $ECHO "$help" 1>&2
1205 exit $EXIT_FAILURE
1206 fi
1207
1208 # Change the help message to a mode-specific one.
1209 generic_help="$help"
1210 help="Try \`$progname --help --mode=$opt_mode' for more information."
1211 }
1212
1213
1214 # Bail if the options were screwed
1215 $exit_cmd $EXIT_FAILURE
1216 }
1217
1218
1219
1220
1221 ## ----------- ##
1222 ## Main. ##
1223 ## ----------- ##
1224
1225 # func_lalib_p file
1226 # True iff FILE is a libtool `.la' library or `.lo' object file.
1227 # This function is only a basic sanity check; it will hardly flush out
1228 # determined imposters.
1229 func_lalib_p ()
1230 {
1231 test -f "$1" &&
1232 $SED -e 4q "$1" 2>/dev/null \
1233 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
1234 }
1235
1236 # func_lalib_unsafe_p file
1237 # True iff FILE is a libtool `.la' library or `.lo' object file.
1238 # This function implements the same check as func_lalib_p without
1239 # resorting to external programs. To this end, it redirects stdin and
1240 # closes it afterwards, without saving the original file descriptor.
1241 # As a safety measure, use it only where a negative result would be
1242 # fatal anyway. Works if `file' does not exist.
1243 func_lalib_unsafe_p ()
1244 {
1245 lalib_p=no
1246 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
1247 for lalib_p_l in 1 2 3 4
1248 do
1249 read lalib_p_line
1250 case "$lalib_p_line" in
1251 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
1252 esac
1253 done
1254 exec 0<&5 5<&-
1255 fi
1256 test "$lalib_p" = yes
1257 }
1258
1259 # func_ltwrapper_script_p file
1260 # True iff FILE is a libtool wrapper script
1261 # This function is only a basic sanity check; it will hardly flush out
1262 # determined imposters.
1263 func_ltwrapper_script_p ()
1264 {
1265 func_lalib_p "$1"
1266 }
1267
1268 # func_ltwrapper_executable_p file
1269 # True iff FILE is a libtool wrapper executable
1270 # This function is only a basic sanity check; it will hardly flush out
1271 # determined imposters.
1272 func_ltwrapper_executable_p ()
1273 {
1274 func_ltwrapper_exec_suffix=
1275 case $1 in
1276 *.exe) ;;
1277 *) func_ltwrapper_exec_suffix=.exe ;;
1278 esac
1279 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
1280 }
1281
1282 # func_ltwrapper_scriptname file
1283 # Assumes file is an ltwrapper_executable
1284 # uses $file to determine the appropriate filename for a
1285 # temporary ltwrapper_script.
1286 func_ltwrapper_scriptname ()
1287 {
1288 func_dirname_and_basename "$1" "" "."
1289 func_stripname '' '.exe' "$func_basename_result"
1290 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1291 }
1292
1293 # func_ltwrapper_p file
1294 # True iff FILE is a libtool wrapper script or wrapper executable
1295 # This function is only a basic sanity check; it will hardly flush out
1296 # determined imposters.
1297 func_ltwrapper_p ()
1298 {
1299 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
1300 }
1301
1302
1303 # func_execute_cmds commands fail_cmd
1304 # Execute tilde-delimited COMMANDS.
1305 # If FAIL_CMD is given, eval that upon failure.
1306 # FAIL_CMD may read-access the current command in variable CMD!
1307 func_execute_cmds ()
1308 {
1309 $opt_debug
1310 save_ifs=$IFS; IFS='~'
1311 for cmd in $1; do
1312 IFS=$save_ifs
1313 eval cmd=\"$cmd\"
1314 func_show_eval "$cmd" "${2-:}"
1315 done
1316 IFS=$save_ifs
1317 }
1318
1319
1320 # func_source file
1321 # Source FILE, adding directory component if necessary.
1322 # Note that it is not necessary on cygwin/mingw to append a dot to
1323 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
1324 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1325 # `FILE.' does not work on cygwin managed mounts.
1326 func_source ()
1327 {
1328 $opt_debug
1329 case $1 in
1330 */* | *\\*) . "$1" ;;
1331 *) . "./$1" ;;
1332 esac
1333 }
1334
1335
1336 # func_resolve_sysroot PATH
1337 # Replace a leading = in PATH with a sysroot. Store the result into
1338 # func_resolve_sysroot_result
1339 func_resolve_sysroot ()
1340 {
1341 func_resolve_sysroot_result=$1
1342 case $func_resolve_sysroot_result in
1343 =*)
1344 func_stripname '=' '' "$func_resolve_sysroot_result"
1345 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1346 ;;
1347 esac
1348 }
1349
1350 # func_replace_sysroot PATH
1351 # If PATH begins with the sysroot, replace it with = and
1352 # store the result into func_replace_sysroot_result.
1353 func_replace_sysroot ()
1354 {
1355 case "$lt_sysroot:$1" in
1356 ?*:"$lt_sysroot"*)
1357 func_stripname "$lt_sysroot" '' "$1"
1358 func_replace_sysroot_result="=$func_stripname_result"
1359 ;;
1360 *)
1361 # Including no sysroot.
1362 func_replace_sysroot_result=$1
1363 ;;
1364 esac
1365 }
1366
1367 # func_infer_tag arg
1368 # Infer tagged configuration to use if any are available and
1369 # if one wasn't chosen via the "--tag" command line option.
1370 # Only attempt this if the compiler in the base compile
1371 # command doesn't match the default compiler.
1372 # arg is usually of the form 'gcc ...'
1373 func_infer_tag ()
1374 {
1375 $opt_debug
1376 if test -n "$available_tags" && test -z "$tagname"; then
1377 CC_quoted=
1378 for arg in $CC; do
1379 func_append_quoted CC_quoted "$arg"
1380 done
1381 CC_expanded=`func_echo_all $CC`
1382 CC_quoted_expanded=`func_echo_all $CC_quoted`
1383 case $@ in
1384 # Blanks in the command may have been stripped by the calling shell,
1385 # but not from the CC environment variable when configure was run.
1386 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1387 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
1388 # Blanks at the start of $base_compile will cause this to fail
1389 # if we don't check for them as well.
1390 *)
1391 for z in $available_tags; do
1392 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1393 # Evaluate the configuration.
1394 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1395 CC_quoted=
1396 for arg in $CC; do
1397 # Double-quote args containing other shell metacharacters.
1398 func_append_quoted CC_quoted "$arg"
1399 done
1400 CC_expanded=`func_echo_all $CC`
1401 CC_quoted_expanded=`func_echo_all $CC_quoted`
1402 case "$@ " in
1403 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1404 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
1405 # The compiler in the base compile command matches
1406 # the one in the tagged configuration.
1407 # Assume this is the tagged configuration we want.
1408 tagname=$z
1409 break
1410 ;;
1411 esac
1412 fi
1413 done
1414 # If $tagname still isn't set, then no tagged configuration
1415 # was found and let the user know that the "--tag" command
1416 # line option must be used.
1417 if test -z "$tagname"; then
1418 func_echo "unable to infer tagged configuration"
1419 func_fatal_error "specify a tag with \`--tag'"
1420 # else
1421 # func_verbose "using $tagname tagged configuration"
1422 fi
1423 ;;
1424 esac
1425 fi
1426 }
1427
1428
1429
1430 # func_write_libtool_object output_name pic_name nonpic_name
1431 # Create a libtool object file (analogous to a ".la" file),
1432 # but don't create it if we're doing a dry run.
1433 func_write_libtool_object ()
1434 {
1435 write_libobj=${1}
1436 if test "$build_libtool_libs" = yes; then
1437 write_lobj=\'${2}\'
1438 else
1439 write_lobj=none
1440 fi
1441
1442 if test "$build_old_libs" = yes; then
1443 write_oldobj=\'${3}\'
1444 else
1445 write_oldobj=none
1446 fi
1447
1448 $opt_dry_run || {
1449 cat >${write_libobj}T <<EOF
1450 # $write_libobj - a libtool object file
1451 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1452 #
1453 # Please DO NOT delete this file!
1454 # It is necessary for linking the library.
1455
1456 # Name of the PIC object.
1457 pic_object=$write_lobj
1458
1459 # Name of the non-PIC object
1460 non_pic_object=$write_oldobj
1461
1462 EOF
1463 $MV "${write_libobj}T" "${write_libobj}"
1464 }
1465 }
1466
1467
1468 ##################################################
1469 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1470 ##################################################
1471
1472 # func_convert_core_file_wine_to_w32 ARG
1473 # Helper function used by file name conversion functions when $build is *nix,
1474 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1475 # correctly configured wine environment available, with the winepath program
1476 # in $build's $PATH.
1477 #
1478 # ARG is the $build file name to be converted to w32 format.
1479 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1480 # be empty on error (or when ARG is empty)
1481 func_convert_core_file_wine_to_w32 ()
1482 {
1483 $opt_debug
1484 func_convert_core_file_wine_to_w32_result="$1"
1485 if test -n "$1"; then
1486 # Unfortunately, winepath does not exit with a non-zero error code, so we
1487 # are forced to check the contents of stdout. On the other hand, if the
1488 # command is not found, the shell will set an exit code of 127 and print
1489 # *an error message* to stdout. So we must check for both error code of
1490 # zero AND non-empty stdout, which explains the odd construction:
1491 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1492 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1493 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1494 $SED -e "$lt_sed_naive_backslashify"`
1495 else
1496 func_convert_core_file_wine_to_w32_result=
1497 fi
1498 fi
1499 }
1500 # end: func_convert_core_file_wine_to_w32
1501
1502
1503 # func_convert_core_path_wine_to_w32 ARG
1504 # Helper function used by path conversion functions when $build is *nix, and
1505 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1506 # configured wine environment available, with the winepath program in $build's
1507 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1508 #
1509 # ARG is path to be converted from $build format to win32.
1510 # Result is available in $func_convert_core_path_wine_to_w32_result.
1511 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1512 # are convertible, then the result may be empty.
1513 func_convert_core_path_wine_to_w32 ()
1514 {
1515 $opt_debug
1516 # unfortunately, winepath doesn't convert paths, only file names
1517 func_convert_core_path_wine_to_w32_result=""
1518 if test -n "$1"; then
1519 oldIFS=$IFS
1520 IFS=:
1521 for func_convert_core_path_wine_to_w32_f in $1; do
1522 IFS=$oldIFS
1523 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1524 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1525 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1526 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1527 else
1528 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1529 fi
1530 fi
1531 done
1532 IFS=$oldIFS
1533 fi
1534 }
1535 # end: func_convert_core_path_wine_to_w32
1536
1537
1538 # func_cygpath ARGS...
1539 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1540 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1541 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1542 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1543 # file name or path is assumed to be in w32 format, as previously converted
1544 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1545 # or path in func_cygpath_result (input file name or path is assumed to be in
1546 # Cygwin format). Returns an empty string on error.
1547 #
1548 # ARGS are passed to cygpath, with the last one being the file name or path to
1549 # be converted.
1550 #
1551 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1552 # environment variable; do not put it in $PATH.
1553 func_cygpath ()
1554 {
1555 $opt_debug
1556 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1557 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1558 if test "$?" -ne 0; then
1559 # on failure, ensure result is empty
1560 func_cygpath_result=
1561 fi
1562 else
1563 func_cygpath_result=
1564 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1565 fi
1566 }
1567 #end: func_cygpath
1568
1569
1570 # func_convert_core_msys_to_w32 ARG
1571 # Convert file name or path ARG from MSYS format to w32 format. Return
1572 # result in func_convert_core_msys_to_w32_result.
1573 func_convert_core_msys_to_w32 ()
1574 {
1575 $opt_debug
1576 # awkward: cmd appends spaces to result
1577 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1578 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1579 }
1580 #end: func_convert_core_msys_to_w32
1581
1582
1583 # func_convert_file_check ARG1 ARG2
1584 # Verify that ARG1 (a file name in $build format) was converted to $host
1585 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1586 # func_to_host_file_result to ARG1).
1587 func_convert_file_check ()
1588 {
1589 $opt_debug
1590 if test -z "$2" && test -n "$1" ; then
1591 func_error "Could not determine host file name corresponding to"
1592 func_error " \`$1'"
1593 func_error "Continuing, but uninstalled executables may not work."
1594 # Fallback:
1595 func_to_host_file_result="$1"
1596 fi
1597 }
1598 # end func_convert_file_check
1599
1600
1601 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1602 # Verify that FROM_PATH (a path in $build format) was converted to $host
1603 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1604 # func_to_host_file_result to a simplistic fallback value (see below).
1605 func_convert_path_check ()
1606 {
1607 $opt_debug
1608 if test -z "$4" && test -n "$3"; then
1609 func_error "Could not determine the host path corresponding to"
1610 func_error " \`$3'"
1611 func_error "Continuing, but uninstalled executables may not work."
1612 # Fallback. This is a deliberately simplistic "conversion" and
1613 # should not be "improved". See libtool.info.
1614 if test "x$1" != "x$2"; then
1615 lt_replace_pathsep_chars="s|$1|$2|g"
1616 func_to_host_path_result=`echo "$3" |
1617 $SED -e "$lt_replace_pathsep_chars"`
1618 else
1619 func_to_host_path_result="$3"
1620 fi
1621 fi
1622 }
1623 # end func_convert_path_check
1624
1625
1626 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1627 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1628 # and appending REPL if ORIG matches BACKPAT.
1629 func_convert_path_front_back_pathsep ()
1630 {
1631 $opt_debug
1632 case $4 in
1633 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1634 ;;
1635 esac
1636 case $4 in
1637 $2 ) func_append func_to_host_path_result "$3"
1638 ;;
1639 esac
1640 }
1641 # end func_convert_path_front_back_pathsep
1642
1643
1644 ##################################################
1645 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1646 ##################################################
1647 # invoked via `$to_host_file_cmd ARG'
1648 #
1649 # In each case, ARG is the path to be converted from $build to $host format.
1650 # Result will be available in $func_to_host_file_result.
1651
1652
1653 # func_to_host_file ARG
1654 # Converts the file name ARG from $build format to $host format. Return result
1655 # in func_to_host_file_result.
1656 func_to_host_file ()
1657 {
1658 $opt_debug
1659 $to_host_file_cmd "$1"
1660 }
1661 # end func_to_host_file
1662
1663
1664 # func_to_tool_file ARG LAZY
1665 # converts the file name ARG from $build format to toolchain format. Return
1666 # result in func_to_tool_file_result. If the conversion in use is listed
1667 # in (the comma separated) LAZY, no conversion takes place.
1668 func_to_tool_file ()
1669 {
1670 $opt_debug
1671 case ,$2, in
1672 *,"$to_tool_file_cmd",*)
1673 func_to_tool_file_result=$1
1674 ;;
1675 *)
1676 $to_tool_file_cmd "$1"
1677 func_to_tool_file_result=$func_to_host_file_result
1678 ;;
1679 esac
1680 }
1681 # end func_to_tool_file
1682
1683
1684 # func_convert_file_noop ARG
1685 # Copy ARG to func_to_host_file_result.
1686 func_convert_file_noop ()
1687 {
1688 func_to_host_file_result="$1"
1689 }
1690 # end func_convert_file_noop
1691
1692
1693 # func_convert_file_msys_to_w32 ARG
1694 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1695 # conversion to w32 is not available inside the cwrapper. Returns result in
1696 # func_to_host_file_result.
1697 func_convert_file_msys_to_w32 ()
1698 {
1699 $opt_debug
1700 func_to_host_file_result="$1"
1701 if test -n "$1"; then
1702 func_convert_core_msys_to_w32 "$1"
1703 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1704 fi
1705 func_convert_file_check "$1" "$func_to_host_file_result"
1706 }
1707 # end func_convert_file_msys_to_w32
1708
1709
1710 # func_convert_file_cygwin_to_w32 ARG
1711 # Convert file name ARG from Cygwin to w32 format. Returns result in
1712 # func_to_host_file_result.
1713 func_convert_file_cygwin_to_w32 ()
1714 {
1715 $opt_debug
1716 func_to_host_file_result="$1"
1717 if test -n "$1"; then
1718 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1719 # LT_CYGPATH in this case.
1720 func_to_host_file_result=`cygpath -m "$1"`
1721 fi
1722 func_convert_file_check "$1" "$func_to_host_file_result"
1723 }
1724 # end func_convert_file_cygwin_to_w32
1725
1726
1727 # func_convert_file_nix_to_w32 ARG
1728 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1729 # and a working winepath. Returns result in func_to_host_file_result.
1730 func_convert_file_nix_to_w32 ()
1731 {
1732 $opt_debug
1733 func_to_host_file_result="$1"
1734 if test -n "$1"; then
1735 func_convert_core_file_wine_to_w32 "$1"
1736 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1737 fi
1738 func_convert_file_check "$1" "$func_to_host_file_result"
1739 }
1740 # end func_convert_file_nix_to_w32
1741
1742
1743 # func_convert_file_msys_to_cygwin ARG
1744 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1745 # Returns result in func_to_host_file_result.
1746 func_convert_file_msys_to_cygwin ()
1747 {
1748 $opt_debug
1749 func_to_host_file_result="$1"
1750 if test -n "$1"; then
1751 func_convert_core_msys_to_w32 "$1"
1752 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1753 func_to_host_file_result="$func_cygpath_result"
1754 fi
1755 func_convert_file_check "$1" "$func_to_host_file_result"
1756 }
1757 # end func_convert_file_msys_to_cygwin
1758
1759
1760 # func_convert_file_nix_to_cygwin ARG
1761 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1762 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1763 # in func_to_host_file_result.
1764 func_convert_file_nix_to_cygwin ()
1765 {
1766 $opt_debug
1767 func_to_host_file_result="$1"
1768 if test -n "$1"; then
1769 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1770 func_convert_core_file_wine_to_w32 "$1"
1771 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1772 func_to_host_file_result="$func_cygpath_result"
1773 fi
1774 func_convert_file_check "$1" "$func_to_host_file_result"
1775 }
1776 # end func_convert_file_nix_to_cygwin
1777
1778
1779 #############################################
1780 # $build to $host PATH CONVERSION FUNCTIONS #
1781 #############################################
1782 # invoked via `$to_host_path_cmd ARG'
1783 #
1784 # In each case, ARG is the path to be converted from $build to $host format.
1785 # The result will be available in $func_to_host_path_result.
1786 #
1787 # Path separators are also converted from $build format to $host format. If
1788 # ARG begins or ends with a path separator character, it is preserved (but
1789 # converted to $host format) on output.
1790 #
1791 # All path conversion functions are named using the following convention:
1792 # file name conversion function : func_convert_file_X_to_Y ()
1793 # path conversion function : func_convert_path_X_to_Y ()
1794 # where, for any given $build/$host combination the 'X_to_Y' value is the
1795 # same. If conversion functions are added for new $build/$host combinations,
1796 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1797 # will break.
1798
1799
1800 # func_init_to_host_path_cmd
1801 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1802 # appropriate value, based on the value of $to_host_file_cmd.
1803 to_host_path_cmd=
1804 func_init_to_host_path_cmd ()
1805 {
1806 $opt_debug
1807 if test -z "$to_host_path_cmd"; then
1808 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1809 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1810 fi
1811 }
1812
1813
1814 # func_to_host_path ARG
1815 # Converts the path ARG from $build format to $host format. Return result
1816 # in func_to_host_path_result.
1817 func_to_host_path ()
1818 {
1819 $opt_debug
1820 func_init_to_host_path_cmd
1821 $to_host_path_cmd "$1"
1822 }
1823 # end func_to_host_path
1824
1825
1826 # func_convert_path_noop ARG
1827 # Copy ARG to func_to_host_path_result.
1828 func_convert_path_noop ()
1829 {
1830 func_to_host_path_result="$1"
1831 }
1832 # end func_convert_path_noop
1833
1834
1835 # func_convert_path_msys_to_w32 ARG
1836 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1837 # conversion to w32 is not available inside the cwrapper. Returns result in
1838 # func_to_host_path_result.
1839 func_convert_path_msys_to_w32 ()
1840 {
1841 $opt_debug
1842 func_to_host_path_result="$1"
1843 if test -n "$1"; then
1844 # Remove leading and trailing path separator characters from ARG. MSYS
1845 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1846 # and winepath ignores them completely.
1847 func_stripname : : "$1"
1848 func_to_host_path_tmp1=$func_stripname_result
1849 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1850 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1851 func_convert_path_check : ";" \
1852 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1853 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1854 fi
1855 }
1856 # end func_convert_path_msys_to_w32
1857
1858
1859 # func_convert_path_cygwin_to_w32 ARG
1860 # Convert path ARG from Cygwin to w32 format. Returns result in
1861 # func_to_host_file_result.
1862 func_convert_path_cygwin_to_w32 ()
1863 {
1864 $opt_debug
1865 func_to_host_path_result="$1"
1866 if test -n "$1"; then
1867 # See func_convert_path_msys_to_w32:
1868 func_stripname : : "$1"
1869 func_to_host_path_tmp1=$func_stripname_result
1870 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1871 func_convert_path_check : ";" \
1872 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1873 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1874 fi
1875 }
1876 # end func_convert_path_cygwin_to_w32
1877
1878
1879 # func_convert_path_nix_to_w32 ARG
1880 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1881 # a working winepath. Returns result in func_to_host_file_result.
1882 func_convert_path_nix_to_w32 ()
1883 {
1884 $opt_debug
1885 func_to_host_path_result="$1"
1886 if test -n "$1"; then
1887 # See func_convert_path_msys_to_w32:
1888 func_stripname : : "$1"
1889 func_to_host_path_tmp1=$func_stripname_result
1890 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1891 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1892 func_convert_path_check : ";" \
1893 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1894 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1895 fi
1896 }
1897 # end func_convert_path_nix_to_w32
1898
1899
1900 # func_convert_path_msys_to_cygwin ARG
1901 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1902 # Returns result in func_to_host_file_result.
1903 func_convert_path_msys_to_cygwin ()
1904 {
1905 $opt_debug
1906 func_to_host_path_result="$1"
1907 if test -n "$1"; then
1908 # See func_convert_path_msys_to_w32:
1909 func_stripname : : "$1"
1910 func_to_host_path_tmp1=$func_stripname_result
1911 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1912 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1913 func_to_host_path_result="$func_cygpath_result"
1914 func_convert_path_check : : \
1915 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1916 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1917 fi
1918 }
1919 # end func_convert_path_msys_to_cygwin
1920
1921
1922 # func_convert_path_nix_to_cygwin ARG
1923 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1924 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1925 # func_to_host_file_result.
1926 func_convert_path_nix_to_cygwin ()
1927 {
1928 $opt_debug
1929 func_to_host_path_result="$1"
1930 if test -n "$1"; then
1931 # Remove leading and trailing path separator characters from
1932 # ARG. msys behavior is inconsistent here, cygpath turns them
1933 # into '.;' and ';.', and winepath ignores them completely.
1934 func_stripname : : "$1"
1935 func_to_host_path_tmp1=$func_stripname_result
1936 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1937 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1938 func_to_host_path_result="$func_cygpath_result"
1939 func_convert_path_check : : \
1940 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1941 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1942 fi
1943 }
1944 # end func_convert_path_nix_to_cygwin
1945
1946
1947 # func_mode_compile arg...
1948 func_mode_compile ()
1949 {
1950 $opt_debug
1951 # Get the compilation command and the source file.
1952 base_compile=
1953 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1954 suppress_opt=yes
1955 suppress_output=
1956 arg_mode=normal
1957 libobj=
1958 later=
1959 pie_flag=
1960
1961 for arg
1962 do
1963 case $arg_mode in
1964 arg )
1965 # do not "continue". Instead, add this to base_compile
1966 lastarg="$arg"
1967 arg_mode=normal
1968 ;;
1969
1970 target )
1971 libobj="$arg"
1972 arg_mode=normal
1973 continue
1974 ;;
1975
1976 normal )
1977 # Accept any command-line options.
1978 case $arg in
1979 -o)
1980 test -n "$libobj" && \
1981 func_fatal_error "you cannot specify \`-o' more than once"
1982 arg_mode=target
1983 continue
1984 ;;
1985
1986 -pie | -fpie | -fPIE)
1987 func_append pie_flag " $arg"
1988 continue
1989 ;;
1990
1991 -shared | -static | -prefer-pic | -prefer-non-pic)
1992 func_append later " $arg"
1993 continue
1994 ;;
1995
1996 -no-suppress)
1997 suppress_opt=no
1998 continue
1999 ;;
2000
2001 -Xcompiler)
2002 arg_mode=arg # the next one goes into the "base_compile" arg list
2003 continue # The current "srcfile" will either be retained or
2004 ;; # replaced later. I would guess that would be a bug.
2005
2006 -Wc,*)
2007 func_stripname '-Wc,' '' "$arg"
2008 args=$func_stripname_result
2009 lastarg=
2010 save_ifs="$IFS"; IFS=','
2011 for arg in $args; do
2012 IFS="$save_ifs"
2013 func_append_quoted lastarg "$arg"
2014 done
2015 IFS="$save_ifs"
2016 func_stripname ' ' '' "$lastarg"
2017 lastarg=$func_stripname_result
2018
2019 # Add the arguments to base_compile.
2020 func_append base_compile " $lastarg"
2021 continue
2022 ;;
2023
2024 *)
2025 # Accept the current argument as the source file.
2026 # The previous "srcfile" becomes the current argument.
2027 #
2028 lastarg="$srcfile"
2029 srcfile="$arg"
2030 ;;
2031 esac # case $arg
2032 ;;
2033 esac # case $arg_mode
2034
2035 # Aesthetically quote the previous argument.
2036 func_append_quoted base_compile "$lastarg"
2037 done # for arg
2038
2039 case $arg_mode in
2040 arg)
2041 func_fatal_error "you must specify an argument for -Xcompile"
2042 ;;
2043 target)
2044 func_fatal_error "you must specify a target with \`-o'"
2045 ;;
2046 *)
2047 # Get the name of the library object.
2048 test -z "$libobj" && {
2049 func_basename "$srcfile"
2050 libobj="$func_basename_result"
2051 }
2052 ;;
2053 esac
2054
2055 # Recognize several different file suffixes.
2056 # If the user specifies -o file.o, it is replaced with file.lo
2057 case $libobj in
2058 *.[cCFSifmso] | \
2059 *.ada | *.adb | *.ads | *.asm | \
2060 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
2061 *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
2062 func_xform "$libobj"
2063 libobj=$func_xform_result
2064 ;;
2065 esac
2066
2067 case $libobj in
2068 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
2069 *)
2070 func_fatal_error "cannot determine name of library object from \`$libobj'"
2071 ;;
2072 esac
2073
2074 func_infer_tag $base_compile
2075
2076 for arg in $later; do
2077 case $arg in
2078 -shared)
2079 test "$build_libtool_libs" != yes && \
2080 func_fatal_configuration "can not build a shared library"
2081 build_old_libs=no
2082 continue
2083 ;;
2084
2085 -static)
2086 build_libtool_libs=no
2087 build_old_libs=yes
2088 continue
2089 ;;
2090
2091 -prefer-pic)
2092 pic_mode=yes
2093 continue
2094 ;;
2095
2096 -prefer-non-pic)
2097 pic_mode=no
2098 continue
2099 ;;
2100 esac
2101 done
2102
2103 func_quote_for_eval "$libobj"
2104 test "X$libobj" != "X$func_quote_for_eval_result" \
2105 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2106 && func_warning "libobj name \`$libobj' may not contain shell special characters."
2107 func_dirname_and_basename "$obj" "/" ""
2108 objname="$func_basename_result"
2109 xdir="$func_dirname_result"
2110 lobj=${xdir}$objdir/$objname
2111
2112 test -z "$base_compile" && \
2113 func_fatal_help "you must specify a compilation command"
2114
2115 # Delete any leftover library objects.
2116 if test "$build_old_libs" = yes; then
2117 removelist="$obj $lobj $libobj ${libobj}T"
2118 else
2119 removelist="$lobj $libobj ${libobj}T"
2120 fi
2121
2122 # On Cygwin there's no "real" PIC flag so we must build both object types
2123 case $host_os in
2124 cygwin* | mingw* | pw32* | os2* | cegcc*)
2125 pic_mode=default
2126 ;;
2127 esac
2128 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
2129 # non-PIC code in shared libraries is not supported
2130 pic_mode=default
2131 fi
2132
2133 # Calculate the filename of the output object if compiler does
2134 # not support -o with -c
2135 if test "$compiler_c_o" = no; then
2136 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2137 lockfile="$output_obj.lock"
2138 else
2139 output_obj=
2140 need_locks=no
2141 lockfile=
2142 fi
2143
2144 # Lock this critical section if it is needed
2145 # We use this script file to make the link, it avoids creating a new file
2146 if test "$need_locks" = yes; then
2147 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2148 func_echo "Waiting for $lockfile to be removed"
2149 sleep 2
2150 done
2151 elif test "$need_locks" = warn; then
2152 if test -f "$lockfile"; then
2153 $ECHO "\
2154 *** ERROR, $lockfile exists and contains:
2155 `cat $lockfile 2>/dev/null`
2156
2157 This indicates that another process is trying to use the same
2158 temporary object file, and libtool could not work around it because
2159 your compiler does not support \`-c' and \`-o' together. If you
2160 repeat this compilation, it may succeed, by chance, but you had better
2161 avoid parallel builds (make -j) in this platform, or get a better
2162 compiler."
2163
2164 $opt_dry_run || $RM $removelist
2165 exit $EXIT_FAILURE
2166 fi
2167 func_append removelist " $output_obj"
2168 $ECHO "$srcfile" > "$lockfile"
2169 fi
2170
2171 $opt_dry_run || $RM $removelist
2172 func_append removelist " $lockfile"
2173 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
2174
2175 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2176 srcfile=$func_to_tool_file_result
2177 func_quote_for_eval "$srcfile"
2178 qsrcfile=$func_quote_for_eval_result
2179
2180 # Only build a PIC object if we are building libtool libraries.
2181 if test "$build_libtool_libs" = yes; then
2182 # Without this assignment, base_compile gets emptied.
2183 fbsd_hideous_sh_bug=$base_compile
2184
2185 if test "$pic_mode" != no; then
2186 command="$base_compile $qsrcfile $pic_flag"
2187 else
2188 # Don't build PIC code
2189 command="$base_compile $qsrcfile"
2190 fi
2191
2192 func_mkdir_p "$xdir$objdir"
2193
2194 if test -z "$output_obj"; then
2195 # Place PIC objects in $objdir
2196 func_append command " -o $lobj"
2197 fi
2198
2199 func_show_eval_locale "$command" \
2200 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
2201
2202 if test "$need_locks" = warn &&
2203 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2204 $ECHO "\
2205 *** ERROR, $lockfile contains:
2206 `cat $lockfile 2>/dev/null`
2207
2208 but it should contain:
2209 $srcfile
2210
2211 This indicates that another process is trying to use the same
2212 temporary object file, and libtool could not work around it because
2213 your compiler does not support \`-c' and \`-o' together. If you
2214 repeat this compilation, it may succeed, by chance, but you had better
2215 avoid parallel builds (make -j) in this platform, or get a better
2216 compiler."
2217
2218 $opt_dry_run || $RM $removelist
2219 exit $EXIT_FAILURE
2220 fi
2221
2222 # Just move the object if needed, then go on to compile the next one
2223 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
2224 func_show_eval '$MV "$output_obj" "$lobj"' \
2225 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2226 fi
2227
2228 # Allow error messages only from the first compilation.
2229 if test "$suppress_opt" = yes; then
2230 suppress_output=' >/dev/null 2>&1'
2231 fi
2232 fi
2233
2234 # Only build a position-dependent object if we build old libraries.
2235 if test "$build_old_libs" = yes; then
2236 if test "$pic_mode" != yes; then
2237 # Don't build PIC code
2238 command="$base_compile $qsrcfile$pie_flag"
2239 else
2240 command="$base_compile $qsrcfile $pic_flag"
2241 fi
2242 if test "$compiler_c_o" = yes; then
2243 func_append command " -o $obj"
2244 fi
2245
2246 # Suppress compiler output if we already did a PIC compilation.
2247 func_append command "$suppress_output"
2248 func_show_eval_locale "$command" \
2249 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
2250
2251 if test "$need_locks" = warn &&
2252 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
2253 $ECHO "\
2254 *** ERROR, $lockfile contains:
2255 `cat $lockfile 2>/dev/null`
2256
2257 but it should contain:
2258 $srcfile
2259
2260 This indicates that another process is trying to use the same
2261 temporary object file, and libtool could not work around it because
2262 your compiler does not support \`-c' and \`-o' together. If you
2263 repeat this compilation, it may succeed, by chance, but you had better
2264 avoid parallel builds (make -j) in this platform, or get a better
2265 compiler."
2266
2267 $opt_dry_run || $RM $removelist
2268 exit $EXIT_FAILURE
2269 fi
2270
2271 # Just move the object if needed
2272 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
2273 func_show_eval '$MV "$output_obj" "$obj"' \
2274 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
2275 fi
2276 fi
2277
2278 $opt_dry_run || {
2279 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
2280
2281 # Unlock the critical section if it was locked
2282 if test "$need_locks" != no; then
2283 removelist=$lockfile
2284 $RM "$lockfile"
2285 fi
2286 }
2287
2288 exit $EXIT_SUCCESS
2289 }
2290
2291 $opt_help || {
2292 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
2293 }
2294
2295 func_mode_help ()
2296 {
2297 # We need to display help for each of the modes.
2298 case $opt_mode in
2299 "")
2300 # Generic help is extracted from the usage comments
2301 # at the start of this file.
2302 func_help
2303 ;;
2304
2305 clean)
2306 $ECHO \
2307 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
2308
2309 Remove files from the build directory.
2310
2311 RM is the name of the program to use to delete files associated with each FILE
2312 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2313 to RM.
2314
2315 If FILE is a libtool library, object or program, all the files associated
2316 with it are deleted. Otherwise, only FILE itself is deleted using RM."
2317 ;;
2318
2319 compile)
2320 $ECHO \
2321 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
2322
2323 Compile a source file into a libtool library object.
2324
2325 This mode accepts the following additional options:
2326
2327 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
2328 -no-suppress do not suppress compiler output for multiple passes
2329 -prefer-pic try to build PIC objects only
2330 -prefer-non-pic try to build non-PIC objects only
2331 -shared do not build a \`.o' file suitable for static linking
2332 -static only build a \`.o' file suitable for static linking
2333 -Wc,FLAG pass FLAG directly to the compiler
2334
2335 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
2336 from the given SOURCEFILE.
2337
2338 The output file name is determined by removing the directory component from
2339 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2340 library object suffix, \`.lo'."
2341 ;;
2342
2343 execute)
2344 $ECHO \
2345 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
2346
2347 Automatically set library path, then run a program.
2348
2349 This mode accepts the following additional options:
2350
2351 -dlopen FILE add the directory containing FILE to the library path
2352
2353 This mode sets the library path environment variable according to \`-dlopen'
2354 flags.
2355
2356 If any of the ARGS are libtool executable wrappers, then they are translated
2357 into their corresponding uninstalled binary, and any of their required library
2358 directories are added to the library path.
2359
2360 Then, COMMAND is executed, with ARGS as arguments."
2361 ;;
2362
2363 finish)
2364 $ECHO \
2365 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
2366
2367 Complete the installation of libtool libraries.
2368
2369 Each LIBDIR is a directory that contains libtool libraries.
2370
2371 The commands that this mode executes may require superuser privileges. Use
2372 the \`--dry-run' option if you just want to see what would be executed."
2373 ;;
2374
2375 install)
2376 $ECHO \
2377 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
2378
2379 Install executables or libraries.
2380
2381 INSTALL-COMMAND is the installation command. The first component should be
2382 either the \`install' or \`cp' program.
2383
2384 The following components of INSTALL-COMMAND are treated specially:
2385
2386 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
2387
2388 The rest of the components are interpreted as arguments to that command (only
2389 BSD-compatible install options are recognized)."
2390 ;;
2391
2392 link)
2393 $ECHO \
2394 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
2395
2396 Link object files or libraries together to form another library, or to
2397 create an executable program.
2398
2399 LINK-COMMAND is a command using the C compiler that you would use to create
2400 a program from several object files.
2401
2402 The following components of LINK-COMMAND are treated specially:
2403
2404 -all-static do not do any dynamic linking at all
2405 -avoid-version do not add a version suffix if possible
2406 -bindir BINDIR specify path to binaries directory (for systems where
2407 libraries must be found in the PATH setting at runtime)
2408 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
2409 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
2410 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
2411 -export-symbols SYMFILE
2412 try to export only the symbols listed in SYMFILE
2413 -export-symbols-regex REGEX
2414 try to export only the symbols matching REGEX
2415 -LLIBDIR search LIBDIR for required installed libraries
2416 -lNAME OUTPUT-FILE requires the installed library libNAME
2417 -module build a library that can dlopened
2418 -no-fast-install disable the fast-install mode
2419 -no-install link a not-installable executable
2420 -no-undefined declare that a library does not refer to external symbols
2421 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2422 -objectlist FILE Use a list of object files found in FILE to specify objects
2423 -precious-files-regex REGEX
2424 don't remove output files matching REGEX
2425 -release RELEASE specify package release information
2426 -rpath LIBDIR the created library will eventually be installed in LIBDIR
2427 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
2428 -shared only do dynamic linking of libtool libraries
2429 -shrext SUFFIX override the standard shared library file extension
2430 -static do not do any dynamic linking of uninstalled libtool libraries
2431 -static-libtool-libs
2432 do not do any dynamic linking of libtool libraries
2433 -version-info CURRENT[:REVISION[:AGE]]
2434 specify library version info [each variable defaults to 0]
2435 -weak LIBNAME declare that the target provides the LIBNAME interface
2436 -Wc,FLAG
2437 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
2438 -Wl,FLAG
2439 -Xlinker FLAG pass linker-specific FLAG directly to the linker
2440 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
2441
2442 All other options (arguments beginning with \`-') are ignored.
2443
2444 Every other argument is treated as a filename. Files ending in \`.la' are
2445 treated as uninstalled libtool libraries, other files are standard or library
2446 object files.
2447
2448 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2449 only library objects (\`.lo' files) may be specified, and \`-rpath' is
2450 required, except when creating a convenience library.
2451
2452 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2453 using \`ar' and \`ranlib', or on Windows using \`lib'.
2454
2455 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
2456 is created, otherwise an executable program is created."
2457 ;;
2458
2459 uninstall)
2460 $ECHO \
2461 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
2462
2463 Remove libraries from an installation directory.
2464
2465 RM is the name of the program to use to delete files associated with each FILE
2466 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
2467 to RM.
2468
2469 If FILE is a libtool library, all the files associated with it are deleted.
2470 Otherwise, only FILE itself is deleted using RM."
2471 ;;
2472
2473 *)
2474 func_fatal_help "invalid operation mode \`$opt_mode'"
2475 ;;
2476 esac
2477
2478 echo
2479 $ECHO "Try \`$progname --help' for more information about other modes."
2480 }
2481
2482 # Now that we've collected a possible --mode arg, show help if necessary
2483 if $opt_help; then
2484 if test "$opt_help" = :; then
2485 func_mode_help
2486 else
2487 {
2488 func_help noexit
2489 for opt_mode in compile link execute install finish uninstall clean; do
2490 func_mode_help
2491 done
2492 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
2493 {
2494 func_help noexit
2495 for opt_mode in compile link execute install finish uninstall clean; do
2496 echo
2497 func_mode_help
2498 done
2499 } |
2500 sed '1d
2501 /^When reporting/,/^Report/{
2502 H
2503 d
2504 }
2505 $x
2506 /information about other modes/d
2507 /more detailed .*MODE/d
2508 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
2509 fi
2510 exit $?
2511 fi
2512
2513
2514 # func_mode_execute arg...
2515 func_mode_execute ()
2516 {
2517 $opt_debug
2518 # The first argument is the command name.
2519 cmd="$nonopt"
2520 test -z "$cmd" && \
2521 func_fatal_help "you must specify a COMMAND"
2522
2523 # Handle -dlopen flags immediately.
2524 for file in $opt_dlopen; do
2525 test -f "$file" \
2526 || func_fatal_help "\`$file' is not a file"
2527
2528 dir=
2529 case $file in
2530 *.la)
2531 func_resolve_sysroot "$file"
2532 file=$func_resolve_sysroot_result
2533
2534 # Check to see that this really is a libtool archive.
2535 func_lalib_unsafe_p "$file" \
2536 || func_fatal_help "\`$lib' is not a valid libtool archive"
2537
2538 # Read the libtool library.
2539 dlname=
2540 library_names=
2541 func_source "$file"
2542
2543 # Skip this library if it cannot be dlopened.
2544 if test -z "$dlname"; then
2545 # Warn if it was a shared library.
2546 test -n "$library_names" && \
2547 func_warning "\`$file' was not linked with \`-export-dynamic'"
2548 continue
2549 fi
2550
2551 func_dirname "$file" "" "."
2552 dir="$func_dirname_result"
2553
2554 if test -f "$dir/$objdir/$dlname"; then
2555 func_append dir "/$objdir"
2556 else
2557 if test ! -f "$dir/$dlname"; then
2558 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
2559 fi
2560 fi
2561 ;;
2562
2563 *.lo)
2564 # Just add the directory containing the .lo file.
2565 func_dirname "$file" "" "."
2566 dir="$func_dirname_result"
2567 ;;
2568
2569 *)
2570 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
2571 continue
2572 ;;
2573 esac
2574
2575 # Get the absolute pathname.
2576 absdir=`cd "$dir" && pwd`
2577 test -n "$absdir" && dir="$absdir"
2578
2579 # Now add the directory to shlibpath_var.
2580 if eval "test -z \"\$$shlibpath_var\""; then
2581 eval "$shlibpath_var=\"\$dir\""
2582 else
2583 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
2584 fi
2585 done
2586
2587 # This variable tells wrapper scripts just to set shlibpath_var
2588 # rather than running their programs.
2589 libtool_execute_magic="$magic"
2590
2591 # Check if any of the arguments is a wrapper script.
2592 args=
2593 for file
2594 do
2595 case $file in
2596 -* | *.la | *.lo ) ;;
2597 *)
2598 # Do a test to see if this is really a libtool program.
2599 if func_ltwrapper_script_p "$file"; then
2600 func_source "$file"
2601 # Transform arg to wrapped name.
2602 file="$progdir/$program"
2603 elif func_ltwrapper_executable_p "$file"; then
2604 func_ltwrapper_scriptname "$file"
2605 func_source "$func_ltwrapper_scriptname_result"
2606 # Transform arg to wrapped name.
2607 file="$progdir/$program"
2608 fi
2609 ;;
2610 esac
2611 # Quote arguments (to preserve shell metacharacters).
2612 func_append_quoted args "$file"
2613 done
2614
2615 if test "X$opt_dry_run" = Xfalse; then
2616 if test -n "$shlibpath_var"; then
2617 # Export the shlibpath_var.
2618 eval "export $shlibpath_var"
2619 fi
2620
2621 # Restore saved environment variables
2622 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
2623 do
2624 eval "if test \"\${save_$lt_var+set}\" = set; then
2625 $lt_var=\$save_$lt_var; export $lt_var
2626 else
2627 $lt_unset $lt_var
2628 fi"
2629 done
2630
2631 # Now prepare to actually exec the command.
2632 exec_cmd="\$cmd$args"
2633 else
2634 # Display what would be done.
2635 if test -n "$shlibpath_var"; then
2636 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2637 echo "export $shlibpath_var"
2638 fi
2639 $ECHO "$cmd$args"
2640 exit $EXIT_SUCCESS
2641 fi
2642 }
2643
2644 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
2645
2646
2647 # func_mode_finish arg...
2648 func_mode_finish ()
2649 {
2650 $opt_debug
2651 libs=
2652 libdirs=
2653 admincmds=
2654
2655 for opt in "$nonopt" ${1+"$@"}
2656 do
2657 if test -d "$opt"; then
2658 func_append libdirs " $opt"
2659
2660 elif test -f "$opt"; then
2661 if func_lalib_unsafe_p "$opt"; then
2662 func_append libs " $opt"
2663 else
2664 func_warning "\`$opt' is not a valid libtool archive"
2665 fi
2666
2667 else
2668 func_fatal_error "invalid argument \`$opt'"
2669 fi
2670 done
2671
2672 if test -n "$libs"; then
2673 if test -n "$lt_sysroot"; then
2674 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2675 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2676 else
2677 sysroot_cmd=
2678 fi
2679
2680 # Remove sysroot references
2681 if $opt_dry_run; then
2682 for lib in $libs; do
2683 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2684 done
2685 else
2686 tmpdir=`func_mktempdir`
2687 for lib in $libs; do
2688 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2689 > $tmpdir/tmp-la
2690 mv -f $tmpdir/tmp-la $lib
2691 done
2692 ${RM}r "$tmpdir"
2693 fi
2694 fi
2695
2696 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2697 for libdir in $libdirs; do
2698 if test -n "$finish_cmds"; then
2699 # Do each command in the finish commands.
2700 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
2701 '"$cmd"'"'
2702 fi
2703 if test -n "$finish_eval"; then
2704 # Do the single finish_eval.
2705 eval cmds=\"$finish_eval\"
2706 $opt_dry_run || eval "$cmds" || func_append admincmds "
2707 $cmds"
2708 fi
2709 done
2710 fi
2711
2712 # Exit here if they wanted silent mode.
2713 $opt_silent && exit $EXIT_SUCCESS
2714
2715 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2716 echo "----------------------------------------------------------------------"
2717 echo "Libraries have been installed in:"
2718 for libdir in $libdirs; do
2719 $ECHO " $libdir"
2720 done
2721 echo
2722 echo "If you ever happen to want to link against installed libraries"
2723 echo "in a given directory, LIBDIR, you must either use libtool, and"
2724 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2725 echo "flag during linking and do at least one of the following:"
2726 if test -n "$shlibpath_var"; then
2727 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2728 echo " during execution"
2729 fi
2730 if test -n "$runpath_var"; then
2731 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2732 echo " during linking"
2733 fi
2734 if test -n "$hardcode_libdir_flag_spec"; then
2735 libdir=LIBDIR
2736 eval flag=\"$hardcode_libdir_flag_spec\"
2737
2738 $ECHO " - use the \`$flag' linker flag"
2739 fi
2740 if test -n "$admincmds"; then
2741 $ECHO " - have your system administrator run these commands:$admincmds"
2742 fi
2743 if test -f /etc/ld.so.conf; then
2744 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2745 fi
2746 echo
2747
2748 echo "See any operating system documentation about shared libraries for"
2749 case $host in
2750 solaris2.[6789]|solaris2.1[0-9])
2751 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2752 echo "pages."
2753 ;;
2754 *)
2755 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2756 ;;
2757 esac
2758 echo "----------------------------------------------------------------------"
2759 fi
2760 exit $EXIT_SUCCESS
2761 }
2762
2763 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
2764
2765
2766 # func_mode_install arg...
2767 func_mode_install ()
2768 {
2769 $opt_debug
2770 # There may be an optional sh(1) argument at the beginning of
2771 # install_prog (especially on Windows NT).
2772 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
2773 # Allow the use of GNU shtool's install command.
2774 case $nonopt in *shtool*) :;; *) false;; esac; then
2775 # Aesthetically quote it.
2776 func_quote_for_eval "$nonopt"
2777 install_prog="$func_quote_for_eval_result "
2778 arg=$1
2779 shift
2780 else
2781 install_prog=
2782 arg=$nonopt
2783 fi
2784
2785 # The real first argument should be the name of the installation program.
2786 # Aesthetically quote it.
2787 func_quote_for_eval "$arg"
2788 func_append install_prog "$func_quote_for_eval_result"
2789 install_shared_prog=$install_prog
2790 case " $install_prog " in
2791 *[\\\ /]cp\ *) install_cp=: ;;
2792 *) install_cp=false ;;
2793 esac
2794
2795 # We need to accept at least all the BSD install flags.
2796 dest=
2797 files=
2798 opts=
2799 prev=
2800 install_type=
2801 isdir=no
2802 stripme=
2803 no_mode=:
2804 for arg
2805 do
2806 arg2=
2807 if test -n "$dest"; then
2808 func_append files " $dest"
2809 dest=$arg
2810 continue
2811 fi
2812
2813 case $arg in
2814 -d) isdir=yes ;;
2815 -f)
2816 if $install_cp; then :; else
2817 prev=$arg
2818 fi
2819 ;;
2820 -g | -m | -o)
2821 prev=$arg
2822 ;;
2823 -s)
2824 stripme=" -s"
2825 continue
2826 ;;
2827 -*)
2828 ;;
2829 *)
2830 # If the previous option needed an argument, then skip it.
2831 if test -n "$prev"; then
2832 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2833 arg2=$install_override_mode
2834 no_mode=false
2835 fi
2836 prev=
2837 else
2838 dest=$arg
2839 continue
2840 fi
2841 ;;
2842 esac
2843
2844 # Aesthetically quote the argument.
2845 func_quote_for_eval "$arg"
2846 func_append install_prog " $func_quote_for_eval_result"
2847 if test -n "$arg2"; then
2848 func_quote_for_eval "$arg2"
2849 fi
2850 func_append install_shared_prog " $func_quote_for_eval_result"
2851 done
2852
2853 test -z "$install_prog" && \
2854 func_fatal_help "you must specify an install program"
2855
2856 test -n "$prev" && \
2857 func_fatal_help "the \`$prev' option requires an argument"
2858
2859 if test -n "$install_override_mode" && $no_mode; then
2860 if $install_cp; then :; else
2861 func_quote_for_eval "$install_override_mode"
2862 func_append install_shared_prog " -m $func_quote_for_eval_result"
2863 fi
2864 fi
2865
2866 if test -z "$files"; then
2867 if test -z "$dest"; then
2868 func_fatal_help "no file or destination specified"
2869 else
2870 func_fatal_help "you must specify a destination"
2871 fi
2872 fi
2873
2874 # Strip any trailing slash from the destination.
2875 func_stripname '' '/' "$dest"
2876 dest=$func_stripname_result
2877
2878 # Check to see that the destination is a directory.
2879 test -d "$dest" && isdir=yes
2880 if test "$isdir" = yes; then
2881 destdir="$dest"
2882 destname=
2883 else
2884 func_dirname_and_basename "$dest" "" "."
2885 destdir="$func_dirname_result"
2886 destname="$func_basename_result"
2887
2888 # Not a directory, so check to see that there is only one file specified.
2889 set dummy $files; shift
2890 test "$#" -gt 1 && \
2891 func_fatal_help "\`$dest' is not a directory"
2892 fi
2893 case $destdir in
2894 [\\/]* | [A-Za-z]:[\\/]*) ;;
2895 *)
2896 for file in $files; do
2897 case $file in
2898 *.lo) ;;
2899 *)
2900 func_fatal_help "\`$destdir' must be an absolute directory name"
2901 ;;
2902 esac
2903 done
2904 ;;
2905 esac
2906
2907 # This variable tells wrapper scripts just to set variables rather
2908 # than running their programs.
2909 libtool_install_magic="$magic"
2910
2911 staticlibs=
2912 future_libdirs=
2913 current_libdirs=
2914 for file in $files; do
2915
2916 # Do each installation.
2917 case $file in
2918 *.$libext)
2919 # Do the static libraries later.
2920 func_append staticlibs " $file"
2921 ;;
2922
2923 *.la)
2924 func_resolve_sysroot "$file"
2925 file=$func_resolve_sysroot_result
2926
2927 # Check to see that this really is a libtool archive.
2928 func_lalib_unsafe_p "$file" \
2929 || func_fatal_help "\`$file' is not a valid libtool archive"
2930
2931 library_names=
2932 old_library=
2933 relink_command=
2934 func_source "$file"
2935
2936 # Add the libdir to current_libdirs if it is the destination.
2937 if test "X$destdir" = "X$libdir"; then
2938 case "$current_libdirs " in
2939 *" $libdir "*) ;;
2940 *) func_append current_libdirs " $libdir" ;;
2941 esac
2942 else
2943 # Note the libdir as a future libdir.
2944 case "$future_libdirs " in
2945 *" $libdir "*) ;;
2946 *) func_append future_libdirs " $libdir" ;;
2947 esac
2948 fi
2949
2950 func_dirname "$file" "/" ""
2951 dir="$func_dirname_result"
2952 func_append dir "$objdir"
2953
2954 if test -n "$relink_command"; then
2955 # Determine the prefix the user has applied to our future dir.
2956 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2957
2958 # Don't allow the user to place us outside of our expected
2959 # location b/c this prevents finding dependent libraries that
2960 # are installed to the same prefix.
2961 # At present, this check doesn't affect windows .dll's that
2962 # are installed into $libdir/../bin (currently, that works fine)
2963 # but it's something to keep an eye on.
2964 test "$inst_prefix_dir" = "$destdir" && \
2965 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2966
2967 if test -n "$inst_prefix_dir"; then
2968 # Stick the inst_prefix_dir data into the link command.
2969 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2970 else
2971 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
2972 fi
2973
2974 func_warning "relinking \`$file'"
2975 func_show_eval "$relink_command" \
2976 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2977 fi
2978
2979 # See the names of the shared library.
2980 set dummy $library_names; shift
2981 if test -n "$1"; then
2982 realname="$1"
2983 shift
2984
2985 srcname="$realname"
2986 test -n "$relink_command" && srcname="$realname"T
2987
2988 # Install the shared library and build the symlinks.
2989 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
2990 'exit $?'
2991 tstripme="$stripme"
2992 case $host_os in
2993 cygwin* | mingw* | pw32* | cegcc*)
2994 case $realname in
2995 *.dll.a)
2996 tstripme=""
2997 ;;
2998 esac
2999 ;;
3000 esac
3001 if test -n "$tstripme" && test -n "$striplib"; then
3002 func_show_eval "$striplib $destdir/$realname" 'exit $?'
3003 fi
3004
3005 if test "$#" -gt 0; then
3006 # Delete the old symlinks, and create new ones.
3007 # Try `ln -sf' first, because the `ln' binary might depend on
3008 # the symlink we replace! Solaris /bin/ln does not understand -f,
3009 # so we also need to try rm && ln -s.
3010 for linkname
3011 do
3012 test "$linkname" != "$realname" \
3013 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
3014 done
3015 fi
3016
3017 # Do each command in the postinstall commands.
3018 lib="$destdir/$realname"
3019 func_execute_cmds "$postinstall_cmds" 'exit $?'
3020 fi
3021
3022 # Install the pseudo-library for information purposes.
3023 func_basename "$file"
3024 name="$func_basename_result"
3025 instname="$dir/$name"i
3026 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
3027
3028 # Maybe install the static library, too.
3029 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
3030 ;;
3031
3032 *.lo)
3033 # Install (i.e. copy) a libtool object.
3034
3035 # Figure out destination file name, if it wasn't already specified.
3036 if test -n "$destname"; then
3037 destfile="$destdir/$destname"
3038 else
3039 func_basename "$file"
3040 destfile="$func_basename_result"
3041 destfile="$destdir/$destfile"
3042 fi
3043
3044 # Deduce the name of the destination old-style object file.
3045 case $destfile in
3046 *.lo)
3047 func_lo2o "$destfile"
3048 staticdest=$func_lo2o_result
3049 ;;
3050 *.$objext)
3051 staticdest="$destfile"
3052 destfile=
3053 ;;
3054 *)
3055 func_fatal_help "cannot copy a libtool object to \`$destfile'"
3056 ;;
3057 esac
3058
3059 # Install the libtool object if requested.
3060 test -n "$destfile" && \
3061 func_show_eval "$install_prog $file $destfile" 'exit $?'
3062
3063 # Install the old object if enabled.
3064 if test "$build_old_libs" = yes; then
3065 # Deduce the name of the old-style object file.
3066 func_lo2o "$file"
3067 staticobj=$func_lo2o_result
3068 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
3069 fi
3070 exit $EXIT_SUCCESS
3071 ;;
3072
3073 *)
3074 # Figure out destination file name, if it wasn't already specified.
3075 if test -n "$destname"; then
3076 destfile="$destdir/$destname"
3077 else
3078 func_basename "$file"
3079 destfile="$func_basename_result"
3080 destfile="$destdir/$destfile"
3081 fi
3082
3083 # If the file is missing, and there is a .exe on the end, strip it
3084 # because it is most likely a libtool script we actually want to
3085 # install
3086 stripped_ext=""
3087 case $file in
3088 *.exe)
3089 if test ! -f "$file"; then
3090 func_stripname '' '.exe' "$file"
3091 file=$func_stripname_result
3092 stripped_ext=".exe"
3093 fi
3094 ;;
3095 esac
3096
3097 # Do a test to see if this is really a libtool program.
3098 case $host in
3099 *cygwin* | *mingw*)
3100 if func_ltwrapper_executable_p "$file"; then
3101 func_ltwrapper_scriptname "$file"
3102 wrapper=$func_ltwrapper_scriptname_result
3103 else
3104 func_stripname '' '.exe' "$file"
3105 wrapper=$func_stripname_result
3106 fi
3107 ;;
3108 *)
3109 wrapper=$file
3110 ;;
3111 esac
3112 if func_ltwrapper_script_p "$wrapper"; then
3113 notinst_deplibs=
3114 relink_command=
3115
3116 func_source "$wrapper"
3117
3118 # Check the variables that should have been set.
3119 test -z "$generated_by_libtool_version" && \
3120 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3121
3122 finalize=yes
3123 for lib in $notinst_deplibs; do
3124 # Check to see that each library is installed.
3125 libdir=
3126 if test -f "$lib"; then
3127 func_source "$lib"
3128 fi
3129 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
3130 if test -n "$libdir" && test ! -f "$libfile"; then
3131 func_warning "\`$lib' has not been installed in \`$libdir'"
3132 finalize=no
3133 fi
3134 done
3135
3136 relink_command=
3137 func_source "$wrapper"
3138
3139 outputname=
3140 if test "$fast_install" = no && test -n "$relink_command"; then
3141 $opt_dry_run || {
3142 if test "$finalize" = yes; then
3143 tmpdir=`func_mktempdir`
3144 func_basename "$file$stripped_ext"
3145 file="$func_basename_result"
3146 outputname="$tmpdir/$file"
3147 # Replace the output file specification.
3148 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
3149
3150 $opt_silent || {
3151 func_quote_for_expand "$relink_command"
3152 eval "func_echo $func_quote_for_expand_result"
3153 }
3154 if eval "$relink_command"; then :
3155 else
3156 func_error "error: relink \`$file' with the above command before installing it"
3157 $opt_dry_run || ${RM}r "$tmpdir"
3158 continue
3159 fi
3160 file="$outputname"
3161 else
3162 func_warning "cannot relink \`$file'"
3163 fi
3164 }
3165 else
3166 # Install the binary that we compiled earlier.
3167 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
3168 fi
3169 fi
3170
3171 # remove .exe since cygwin /usr/bin/install will append another
3172 # one anyway
3173 case $install_prog,$host in
3174 */usr/bin/install*,*cygwin*)
3175 case $file:$destfile in
3176 *.exe:*.exe)
3177 # this is ok
3178 ;;
3179 *.exe:*)
3180 destfile=$destfile.exe
3181 ;;
3182 *:*.exe)
3183 func_stripname '' '.exe' "$destfile"
3184 destfile=$func_stripname_result
3185 ;;
3186 esac
3187 ;;
3188 esac
3189 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
3190 $opt_dry_run || if test -n "$outputname"; then
3191 ${RM}r "$tmpdir"
3192 fi
3193 ;;
3194 esac
3195 done
3196
3197 for file in $staticlibs; do
3198 func_basename "$file"
3199 name="$func_basename_result"
3200
3201 # Set up the ranlib parameters.
3202 oldlib="$destdir/$name"
3203
3204 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
3205
3206 if test -n "$stripme" && test -n "$old_striplib"; then
3207 func_show_eval "$old_striplib $oldlib" 'exit $?'
3208 fi
3209
3210 # Do each command in the postinstall commands.
3211 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
3212 done
3213
3214 test -n "$future_libdirs" && \
3215 func_warning "remember to run \`$progname --finish$future_libdirs'"
3216
3217 if test -n "$current_libdirs"; then
3218 # Maybe just do a dry run.
3219 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3220 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
3221 else
3222 exit $EXIT_SUCCESS
3223 fi
3224 }
3225
3226 test "$opt_mode" = install && func_mode_install ${1+"$@"}
3227
3228
3229 # func_generate_dlsyms outputname originator pic_p
3230 # Extract symbols from dlprefiles and create ${outputname}S.o with
3231 # a dlpreopen symbol table.
3232 func_generate_dlsyms ()
3233 {
3234 $opt_debug
3235 my_outputname="$1"
3236 my_originator="$2"
3237 my_pic_p="${3-no}"
3238 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
3239 my_dlsyms=
3240
3241 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3242 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3243 my_dlsyms="${my_outputname}S.c"
3244 else
3245 func_error "not configured to extract global symbols from dlpreopened files"
3246 fi
3247 fi
3248
3249 if test -n "$my_dlsyms"; then
3250 case $my_dlsyms in
3251 "") ;;
3252 *.c)
3253 # Discover the nlist of each of the dlfiles.
3254 nlist="$output_objdir/${my_outputname}.nm"
3255
3256 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
3257
3258 # Parse the name list into a source file.
3259 func_verbose "creating $output_objdir/$my_dlsyms"
3260
3261 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3262 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3263 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
3264
3265 #ifdef __cplusplus
3266 extern \"C\" {
3267 #endif
3268
3269 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
3270 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
3271 #endif
3272
3273 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3274 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3275 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3276 relocations are performed -- see ld's documentation on pseudo-relocs. */
3277 # define LT_DLSYM_CONST
3278 #elif defined(__osf__)
3279 /* This system does not cope well with relocations in const data. */
3280 # define LT_DLSYM_CONST
3281 #else
3282 # define LT_DLSYM_CONST const
3283 #endif
3284
3285 /* External symbol declarations for the compiler. */\
3286 "
3287
3288 if test "$dlself" = yes; then
3289 func_verbose "generating symbol list for \`$output'"
3290
3291 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
3292
3293 # Add our own program objects to the symbol list.
3294 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
3295 for progfile in $progfiles; do
3296 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3297 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3298 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
3299 done
3300
3301 if test -n "$exclude_expsyms"; then
3302 $opt_dry_run || {
3303 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
3304 eval '$MV "$nlist"T "$nlist"'
3305 }
3306 fi
3307
3308 if test -n "$export_symbols_regex"; then
3309 $opt_dry_run || {
3310 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
3311 eval '$MV "$nlist"T "$nlist"'
3312 }
3313 fi
3314
3315 # Prepare the list of exported symbols
3316 if test -z "$export_symbols"; then
3317 export_symbols="$output_objdir/$outputname.exp"
3318 $opt_dry_run || {
3319 $RM $export_symbols
3320 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
3321 case $host in
3322 *cygwin* | *mingw* | *cegcc* )
3323 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3324 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
3325 ;;
3326 esac
3327 }
3328 else
3329 $opt_dry_run || {
3330 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
3331 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
3332 eval '$MV "$nlist"T "$nlist"'
3333 case $host in
3334 *cygwin* | *mingw* | *cegcc* )
3335 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
3336 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
3337 ;;
3338 esac
3339 }
3340 fi
3341 fi
3342
3343 for dlprefile in $dlprefiles; do
3344 func_verbose "extracting global C symbols from \`$dlprefile'"
3345 func_basename "$dlprefile"
3346 name="$func_basename_result"
3347 case $host in
3348 *cygwin* | *mingw* | *cegcc* )
3349 # if an import library, we need to obtain dlname
3350 if func_win32_import_lib_p "$dlprefile"; then
3351 func_tr_sh "$dlprefile"
3352 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3353 dlprefile_dlbasename=""
3354 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3355 # Use subshell, to avoid clobbering current variable values
3356 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3357 if test -n "$dlprefile_dlname" ; then
3358 func_basename "$dlprefile_dlname"
3359 dlprefile_dlbasename="$func_basename_result"
3360 else
3361 # no lafile. user explicitly requested -dlpreopen <import library>.
3362 $sharedlib_from_linklib_cmd "$dlprefile"
3363 dlprefile_dlbasename=$sharedlib_from_linklib_result
3364 fi
3365 fi
3366 $opt_dry_run || {
3367 if test -n "$dlprefile_dlbasename" ; then
3368 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3369 else
3370 func_warning "Could not compute DLL name from $name"
3371 eval '$ECHO ": $name " >> "$nlist"'
3372 fi
3373 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3374 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3375 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3376 }
3377 else # not an import lib
3378 $opt_dry_run || {
3379 eval '$ECHO ": $name " >> "$nlist"'
3380 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3381 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3382 }
3383 fi
3384 ;;
3385 *)
3386 $opt_dry_run || {
3387 eval '$ECHO ": $name " >> "$nlist"'
3388 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3389 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3390 }
3391 ;;
3392 esac
3393 done
3394
3395 $opt_dry_run || {
3396 # Make sure we have at least an empty file.
3397 test -f "$nlist" || : > "$nlist"
3398
3399 if test -n "$exclude_expsyms"; then
3400 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
3401 $MV "$nlist"T "$nlist"
3402 fi
3403
3404 # Try sorting and uniquifying the output.
3405 if $GREP -v "^: " < "$nlist" |
3406 if sort -k 3 </dev/null >/dev/null 2>&1; then
3407 sort -k 3
3408 else
3409 sort +2
3410 fi |
3411 uniq > "$nlist"S; then
3412 :
3413 else
3414 $GREP -v "^: " < "$nlist" > "$nlist"S
3415 fi
3416
3417 if test -f "$nlist"S; then
3418 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
3419 else
3420 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
3421 fi
3422
3423 echo >> "$output_objdir/$my_dlsyms" "\
3424
3425 /* The mapping between symbol names and symbols. */
3426 typedef struct {
3427 const char *name;
3428 void *address;
3429 } lt_dlsymlist;
3430 extern LT_DLSYM_CONST lt_dlsymlist
3431 lt_${my_prefix}_LTX_preloaded_symbols[];
3432 LT_DLSYM_CONST lt_dlsymlist
3433 lt_${my_prefix}_LTX_preloaded_symbols[] =
3434 {\
3435 { \"$my_originator\", (void *) 0 },"
3436
3437 case $need_lib_prefix in
3438 no)
3439 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
3440 ;;
3441 *)
3442 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
3443 ;;
3444 esac
3445 echo >> "$output_objdir/$my_dlsyms" "\
3446 {0, (void *) 0}
3447 };
3448
3449 /* This works around a problem in FreeBSD linker */
3450 #ifdef FREEBSD_WORKAROUND
3451 static const void *lt_preloaded_setup() {
3452 return lt_${my_prefix}_LTX_preloaded_symbols;
3453 }
3454 #endif
3455
3456 #ifdef __cplusplus
3457 }
3458 #endif\
3459 "
3460 } # !$opt_dry_run
3461
3462 pic_flag_for_symtable=
3463 case "$compile_command " in
3464 *" -static "*) ;;
3465 *)
3466 case $host in
3467 # compiling the symbol table file with pic_flag works around
3468 # a FreeBSD bug that causes programs to crash when -lm is
3469 # linked before any other PIC object. But we must not use
3470 # pic_flag when linking with -static. The problem exists in
3471 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
3472 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3473 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
3474 *-*-hpux*)
3475 pic_flag_for_symtable=" $pic_flag" ;;
3476 *)
3477 if test "X$my_pic_p" != Xno; then
3478 pic_flag_for_symtable=" $pic_flag"
3479 fi
3480 ;;
3481 esac
3482 ;;
3483 esac
3484 symtab_cflags=
3485 for arg in $LTCFLAGS; do
3486 case $arg in
3487 -pie | -fpie | -fPIE) ;;
3488 *) func_append symtab_cflags " $arg" ;;
3489 esac
3490 done
3491
3492 # Now compile the dynamic symbol file.
3493 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
3494
3495 # Clean up the generated files.
3496 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
3497
3498 # Transform the symbol file into the correct name.
3499 symfileobj="$output_objdir/${my_outputname}S.$objext"
3500 case $host in
3501 *cygwin* | *mingw* | *cegcc* )
3502 if test -f "$output_objdir/$my_outputname.def"; then
3503 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3504 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
3505 else
3506 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3507 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3508 fi
3509 ;;
3510 *)
3511 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3512 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
3513 ;;
3514 esac
3515 ;;
3516 *)
3517 func_fatal_error "unknown suffix for \`$my_dlsyms'"
3518 ;;
3519 esac
3520 else
3521 # We keep going just in case the user didn't refer to
3522 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
3523 # really was required.
3524
3525 # Nullify the symbol file.
3526 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
3527 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
3528 fi
3529 }
3530
3531 # func_win32_libid arg
3532 # return the library type of file 'arg'
3533 #
3534 # Need a lot of goo to handle *both* DLLs and import libs
3535 # Has to be a shell function in order to 'eat' the argument
3536 # that is supplied when $file_magic_command is called.
3537 # Despite the name, also deal with 64 bit binaries.
3538 func_win32_libid ()
3539 {
3540 $opt_debug
3541 win32_libid_type="unknown"
3542 win32_fileres=`file -L $1 2>/dev/null`
3543 case $win32_fileres in
3544 *ar\ archive\ import\ library*) # definitely import
3545 win32_libid_type="x86 archive import"
3546 ;;
3547 *ar\ archive*) # could be an import, or static
3548 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
3549 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
3550 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3551 func_to_tool_file "$1" func_convert_file_msys_to_w32
3552 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3553 $SED -n -e '
3554 1,100{
3555 / I /{
3556 s,.*,import,
3557 p
3558 q
3559 }
3560 }'`
3561 case $win32_nmres in
3562 import*) win32_libid_type="x86 archive import";;
3563 *) win32_libid_type="x86 archive static";;
3564 esac
3565 fi
3566 ;;
3567 *DLL*)
3568 win32_libid_type="x86 DLL"
3569 ;;
3570 *executable*) # but shell scripts are "executable" too...
3571 case $win32_fileres in
3572 *MS\ Windows\ PE\ Intel*)
3573 win32_libid_type="x86 DLL"
3574 ;;
3575 esac
3576 ;;
3577 esac
3578 $ECHO "$win32_libid_type"
3579 }
3580
3581 # func_cygming_dll_for_implib ARG
3582 #
3583 # Platform-specific function to extract the
3584 # name of the DLL associated with the specified
3585 # import library ARG.
3586 # Invoked by eval'ing the libtool variable
3587 # $sharedlib_from_linklib_cmd
3588 # Result is available in the variable
3589 # $sharedlib_from_linklib_result
3590 func_cygming_dll_for_implib ()
3591 {
3592 $opt_debug
3593 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3594 }
3595
3596 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3597 #
3598 # The is the core of a fallback implementation of a
3599 # platform-specific function to extract the name of the
3600 # DLL associated with the specified import library LIBNAME.
3601 #
3602 # SECTION_NAME is either .idata$6 or .idata$7, depending
3603 # on the platform and compiler that created the implib.
3604 #
3605 # Echos the name of the DLL associated with the
3606 # specified import library.
3607 func_cygming_dll_for_implib_fallback_core ()
3608 {
3609 $opt_debug
3610 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3611 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3612 $SED '/^Contents of section '"$match_literal"':/{
3613 # Place marker at beginning of archive member dllname section
3614 s/.*/====MARK====/
3615 p
3616 d
3617 }
3618 # These lines can sometimes be longer than 43 characters, but
3619 # are always uninteresting
3620 /:[ ]*file format pe[i]\{,1\}-/d
3621 /^In archive [^:]*:/d
3622 # Ensure marker is printed
3623 /^====MARK====/p
3624 # Remove all lines with less than 43 characters
3625 /^.\{43\}/!d
3626 # From remaining lines, remove first 43 characters
3627 s/^.\{43\}//' |
3628 $SED -n '
3629 # Join marker and all lines until next marker into a single line
3630 /^====MARK====/ b para
3631 H
3632 $ b para
3633 b
3634 :para
3635 x
3636 s/\n//g
3637 # Remove the marker
3638 s/^====MARK====//
3639 # Remove trailing dots and whitespace
3640 s/[\. \t]*$//
3641 # Print
3642 /./p' |
3643 # we now have a list, one entry per line, of the stringified
3644 # contents of the appropriate section of all members of the
3645 # archive which possess that section. Heuristic: eliminate
3646 # all those which have a first or second character that is
3647 # a '.' (that is, objdump's representation of an unprintable
3648 # character.) This should work for all archives with less than
3649 # 0x302f exports -- but will fail for DLLs whose name actually
3650 # begins with a literal '.' or a single character followed by
3651 # a '.'.
3652 #
3653 # Of those that remain, print the first one.
3654 $SED -e '/^\./d;/^.\./d;q'
3655 }
3656
3657 # func_cygming_gnu_implib_p ARG
3658 # This predicate returns with zero status (TRUE) if
3659 # ARG is a GNU/binutils-style import library. Returns
3660 # with nonzero status (FALSE) otherwise.
3661 func_cygming_gnu_implib_p ()
3662 {
3663 $opt_debug
3664 func_to_tool_file "$1" func_convert_file_msys_to_w32
3665 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3666 test -n "$func_cygming_gnu_implib_tmp"
3667 }
3668
3669 # func_cygming_ms_implib_p ARG
3670 # This predicate returns with zero status (TRUE) if
3671 # ARG is an MS-style import library. Returns
3672 # with nonzero status (FALSE) otherwise.
3673 func_cygming_ms_implib_p ()
3674 {
3675 $opt_debug
3676 func_to_tool_file "$1" func_convert_file_msys_to_w32
3677 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3678 test -n "$func_cygming_ms_implib_tmp"
3679 }
3680
3681 # func_cygming_dll_for_implib_fallback ARG
3682 # Platform-specific function to extract the
3683 # name of the DLL associated with the specified
3684 # import library ARG.
3685 #
3686 # This fallback implementation is for use when $DLLTOOL
3687 # does not support the --identify-strict option.
3688 # Invoked by eval'ing the libtool variable
3689 # $sharedlib_from_linklib_cmd
3690 # Result is available in the variable
3691 # $sharedlib_from_linklib_result
3692 func_cygming_dll_for_implib_fallback ()
3693 {
3694 $opt_debug
3695 if func_cygming_gnu_implib_p "$1" ; then
3696 # binutils import library
3697 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3698 elif func_cygming_ms_implib_p "$1" ; then
3699 # ms-generated import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3701 else
3702 # unknown
3703 sharedlib_from_linklib_result=""
3704 fi
3705 }
3706
3707
3708 # func_extract_an_archive dir oldlib
3709 func_extract_an_archive ()
3710 {
3711 $opt_debug
3712 f_ex_an_ar_dir="$1"; shift
3713 f_ex_an_ar_oldlib="$1"
3714 if test "$lock_old_archive_extraction" = yes; then
3715 lockfile=$f_ex_an_ar_oldlib.lock
3716 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3717 func_echo "Waiting for $lockfile to be removed"
3718 sleep 2
3719 done
3720 fi
3721 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
3722 'stat=$?; rm -f "$lockfile"; exit $stat'
3723 if test "$lock_old_archive_extraction" = yes; then
3724 $opt_dry_run || rm -f "$lockfile"
3725 fi
3726 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3727 :
3728 else
3729 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
3730 fi
3731 }
3732
3733
3734 # func_extract_archives gentop oldlib ...
3735 func_extract_archives ()
3736 {
3737 $opt_debug
3738 my_gentop="$1"; shift
3739 my_oldlibs=${1+"$@"}
3740 my_oldobjs=""
3741 my_xlib=""
3742 my_xabs=""
3743 my_xdir=""
3744
3745 for my_xlib in $my_oldlibs; do
3746 # Extract the objects.
3747 case $my_xlib in
3748 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3749 *) my_xabs=`pwd`"/$my_xlib" ;;
3750 esac
3751 func_basename "$my_xlib"
3752 my_xlib="$func_basename_result"
3753 my_xlib_u=$my_xlib
3754 while :; do
3755 case " $extracted_archives " in
3756 *" $my_xlib_u "*)
3757 func_arith $extracted_serial + 1
3758 extracted_serial=$func_arith_result
3759 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3760 *) break ;;
3761 esac
3762 done
3763 extracted_archives="$extracted_archives $my_xlib_u"
3764 my_xdir="$my_gentop/$my_xlib_u"
3765
3766 func_mkdir_p "$my_xdir"
3767
3768 case $host in
3769 *-darwin*)
3770 func_verbose "Extracting $my_xabs"
3771 # Do not bother doing anything if just a dry run
3772 $opt_dry_run || {
3773 darwin_orig_dir=`pwd`
3774 cd $my_xdir || exit $?
3775 darwin_archive=$my_xabs
3776 darwin_curdir=`pwd`
3777 darwin_base_archive=`basename "$darwin_archive"`
3778 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
3779 if test -n "$darwin_arches"; then
3780 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3781 darwin_arch=
3782 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3783 for darwin_arch in $darwin_arches ; do
3784 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3785 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3786 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3787 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
3788 cd "$darwin_curdir"
3789 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3790 done # $darwin_arches
3791 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3792 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
3793 darwin_file=
3794 darwin_files=
3795 for darwin_file in $darwin_filelist; do
3796 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
3797 $LIPO -create -output "$darwin_file" $darwin_files
3798 done # $darwin_filelist
3799 $RM -rf unfat-$$
3800 cd "$darwin_orig_dir"
3801 else
3802 cd $darwin_orig_dir
3803 func_extract_an_archive "$my_xdir" "$my_xabs"
3804 fi # $darwin_arches
3805 } # !$opt_dry_run
3806 ;;
3807 *)
3808 func_extract_an_archive "$my_xdir" "$my_xabs"
3809 ;;
3810 esac
3811 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
3812 done
3813
3814 func_extract_archives_result="$my_oldobjs"
3815 }
3816
3817
3818 # func_emit_wrapper [arg=no]
3819 #
3820 # Emit a libtool wrapper script on stdout.
3821 # Don't directly open a file because we may want to
3822 # incorporate the script contents within a cygwin/mingw
3823 # wrapper executable. Must ONLY be called from within
3824 # func_mode_link because it depends on a number of variables
3825 # set therein.
3826 #
3827 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
3828 # variable will take. If 'yes', then the emitted script
3829 # will assume that the directory in which it is stored is
3830 # the $objdir directory. This is a cygwin/mingw-specific
3831 # behavior.
3832 func_emit_wrapper ()
3833 {
3834 func_emit_wrapper_arg1=${1-no}
3835
3836 $ECHO "\
3837 #! $SHELL
3838
3839 # $output - temporary wrapper script for $objdir/$outputname
3840 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
3841 #
3842 # The $output program cannot be directly executed until all the libtool
3843 # libraries that it depends on are installed.
3844 #
3845 # This wrapper script should never be moved out of the build directory.
3846 # If it is, it will not operate correctly.
3847
3848 # Sed substitution that helps us do robust quoting. It backslashifies
3849 # metacharacters that are still active within double-quoted strings.
3850 sed_quote_subst='$sed_quote_subst'
3851
3852 # Be Bourne compatible
3853 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
3854 emulate sh
3855 NULLCMD=:
3856 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
3857 # is contrary to our usage. Disable this feature.
3858 alias -g '\${1+\"\$@\"}'='\"\$@\"'
3859 setopt NO_GLOB_SUBST
3860 else
3861 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
3862 fi
3863 BIN_SH=xpg4; export BIN_SH # for Tru64
3864 DUALCASE=1; export DUALCASE # for MKS sh
3865
3866 # The HP-UX ksh and POSIX shell print the target directory to stdout
3867 # if CDPATH is set.
3868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3869
3870 relink_command=\"$relink_command\"
3871
3872 # This environment variable determines our operation mode.
3873 if test \"\$libtool_install_magic\" = \"$magic\"; then
3874 # install mode needs the following variables:
3875 generated_by_libtool_version='$macro_version'
3876 notinst_deplibs='$notinst_deplibs'
3877 else
3878 # When we are sourced in execute mode, \$file and \$ECHO are already set.
3879 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3880 file=\"\$0\""
3881
3882 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
3883 $ECHO "\
3884
3885 # A function that is used when there is no print builtin or printf.
3886 func_fallback_echo ()
3887 {
3888 eval 'cat <<_LTECHO_EOF
3889 \$1
3890 _LTECHO_EOF'
3891 }
3892 ECHO=\"$qECHO\"
3893 fi
3894
3895 # Very basic option parsing. These options are (a) specific to
3896 # the libtool wrapper, (b) are identical between the wrapper
3897 # /script/ and the wrapper /executable/ which is used only on
3898 # windows platforms, and (c) all begin with the string "--lt-"
3899 # (application programs are unlikely to have options which match
3900 # this pattern).
3901 #
3902 # There are only two supported options: --lt-debug and
3903 # --lt-dump-script. There is, deliberately, no --lt-help.
3904 #
3905 # The first argument to this parsing function should be the
3906 # script's $0 value, followed by "$@".
3907 lt_option_debug=
3908 func_parse_lt_options ()
3909 {
3910 lt_script_arg0=\$0
3911 shift
3912 for lt_opt
3913 do
3914 case \"\$lt_opt\" in
3915 --lt-debug) lt_option_debug=1 ;;
3916 --lt-dump-script)
3917 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3918 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3919 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3920 cat \"\$lt_dump_D/\$lt_dump_F\"
3921 exit 0
3922 ;;
3923 --lt-*)
3924 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3925 exit 1
3926 ;;
3927 esac
3928 done
3929
3930 # Print the debug banner immediately:
3931 if test -n \"\$lt_option_debug\"; then
3932 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3933 fi
3934 }
3935
3936 # Used when --lt-debug. Prints its arguments to stdout
3937 # (redirection is the responsibility of the caller)
3938 func_lt_dump_args ()
3939 {
3940 lt_dump_args_N=1;
3941 for lt_arg
3942 do
3943 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3944 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3945 done
3946 }
3947
3948 # Core function for launching the target application
3949 func_exec_program_core ()
3950 {
3951 "
3952 case $host in
3953 # Backslashes separate directories on plain windows
3954 *-*-mingw | *-*-os2* | *-cegcc*)
3955 $ECHO "\
3956 if test -n \"\$lt_option_debug\"; then
3957 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3958 func_lt_dump_args \${1+\"\$@\"} 1>&2
3959 fi
3960 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3961 "
3962 ;;
3963
3964 *)
3965 $ECHO "\
3966 if test -n \"\$lt_option_debug\"; then
3967 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3968 func_lt_dump_args \${1+\"\$@\"} 1>&2
3969 fi
3970 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3971 "
3972 ;;
3973 esac
3974 $ECHO "\
3975 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3976 exit 1
3977 }
3978
3979 # A function to encapsulate launching the target application
3980 # Strips options in the --lt-* namespace from \$@ and
3981 # launches target application with the remaining arguments.
3982 func_exec_program ()
3983 {
3984 for lt_wr_arg
3985 do
3986 case \$lt_wr_arg in
3987 --lt-*) ;;
3988 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3989 esac
3990 shift
3991 done
3992 func_exec_program_core \${1+\"\$@\"}
3993 }
3994
3995 # Parse options
3996 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
3997
3998 # Find the directory that this script lives in.
3999 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
4000 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
4001
4002 # Follow symbolic links until we get to the real thisdir.
4003 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
4004 while test -n \"\$file\"; do
4005 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
4006
4007 # If there was a directory component, then change thisdir.
4008 if test \"x\$destdir\" != \"x\$file\"; then
4009 case \"\$destdir\" in
4010 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
4011 *) thisdir=\"\$thisdir/\$destdir\" ;;
4012 esac
4013 fi
4014
4015 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
4016 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
4017 done
4018
4019 # Usually 'no', except on cygwin/mingw when embedded into
4020 # the cwrapper.
4021 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
4022 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
4023 # special case for '.'
4024 if test \"\$thisdir\" = \".\"; then
4025 thisdir=\`pwd\`
4026 fi
4027 # remove .libs from thisdir
4028 case \"\$thisdir\" in
4029 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
4030 $objdir ) thisdir=. ;;
4031 esac
4032 fi
4033
4034 # Try to get the absolute directory name.
4035 absdir=\`cd \"\$thisdir\" && pwd\`
4036 test -n \"\$absdir\" && thisdir=\"\$absdir\"
4037 "
4038
4039 if test "$fast_install" = yes; then
4040 $ECHO "\
4041 program=lt-'$outputname'$exeext
4042 progdir=\"\$thisdir/$objdir\"
4043
4044 if test ! -f \"\$progdir/\$program\" ||
4045 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
4046 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
4047
4048 file=\"\$\$-\$program\"
4049
4050 if test ! -d \"\$progdir\"; then
4051 $MKDIR \"\$progdir\"
4052 else
4053 $RM \"\$progdir/\$file\"
4054 fi"
4055
4056 $ECHO "\
4057
4058 # relink executable if necessary
4059 if test -n \"\$relink_command\"; then
4060 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
4061 else
4062 $ECHO \"\$relink_command_output\" >&2
4063 $RM \"\$progdir/\$file\"
4064 exit 1
4065 fi
4066 fi
4067
4068 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
4069 { $RM \"\$progdir/\$program\";
4070 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
4071 $RM \"\$progdir/\$file\"
4072 fi"
4073 else
4074 $ECHO "\
4075 program='$outputname'
4076 progdir=\"\$thisdir/$objdir\"
4077 "
4078 fi
4079
4080 $ECHO "\
4081
4082 if test -f \"\$progdir/\$program\"; then"
4083
4084 # fixup the dll searchpath if we need to.
4085 #
4086 # Fix the DLL searchpath if we need to. Do this before prepending
4087 # to shlibpath, because on Windows, both are PATH and uninstalled
4088 # libraries must come first.
4089 if test -n "$dllsearchpath"; then
4090 $ECHO "\
4091 # Add the dll search path components to the executable PATH
4092 PATH=$dllsearchpath:\$PATH
4093 "
4094 fi
4095
4096 # Export our shlibpath_var if we have one.
4097 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4098 $ECHO "\
4099 # Add our own library path to $shlibpath_var
4100 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
4101
4102 # Some systems cannot cope with colon-terminated $shlibpath_var
4103 # The second colon is a workaround for a bug in BeOS R4 sed
4104 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
4105
4106 export $shlibpath_var
4107 "
4108 fi
4109
4110 $ECHO "\
4111 if test \"\$libtool_execute_magic\" != \"$magic\"; then
4112 # Run the actual program with our arguments.
4113 func_exec_program \${1+\"\$@\"}
4114 fi
4115 else
4116 # The program doesn't exist.
4117 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
4118 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
4119 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
4120 exit 1
4121 fi
4122 fi\
4123 "
4124 }
4125
4126
4127 # func_emit_cwrapperexe_src
4128 # emit the source code for a wrapper executable on stdout
4129 # Must ONLY be called from within func_mode_link because
4130 # it depends on a number of variable set therein.
4131 func_emit_cwrapperexe_src ()
4132 {
4133 cat <<EOF
4134
4135 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4136 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
4137
4138 The $output program cannot be directly executed until all the libtool
4139 libraries that it depends on are installed.
4140
4141 This wrapper executable should never be moved out of the build directory.
4142 If it is, it will not operate correctly.
4143 */
4144 EOF
4145 cat <<"EOF"
4146 #ifdef _MSC_VER
4147 # define _CRT_SECURE_NO_DEPRECATE 1
4148 #endif
4149 #include <stdio.h>
4150 #include <stdlib.h>
4151 #ifdef _MSC_VER
4152 # include <direct.h>
4153 # include <process.h>
4154 # include <io.h>
4155 #else
4156 # include <unistd.h>
4157 # include <stdint.h>
4158 # ifdef __CYGWIN__
4159 # include <io.h>
4160 # endif
4161 #endif
4162 #include <malloc.h>
4163 #include <stdarg.h>
4164 #include <assert.h>
4165 #include <string.h>
4166 #include <ctype.h>
4167 #include <errno.h>
4168 #include <fcntl.h>
4169 #include <sys/stat.h>
4170
4171 /* declarations of non-ANSI functions */
4172 #if defined(__MINGW32__)
4173 # ifdef __STRICT_ANSI__
4174 int _putenv (const char *);
4175 # endif
4176 #elif defined(__CYGWIN__)
4177 # ifdef __STRICT_ANSI__
4178 char *realpath (const char *, char *);
4179 int putenv (char *);
4180 int setenv (const char *, const char *, int);
4181 # endif
4182 /* #elif defined (other platforms) ... */
4183 #endif
4184
4185 /* portability defines, excluding path handling macros */
4186 #if defined(_MSC_VER)
4187 # define setmode _setmode
4188 # define stat _stat
4189 # define chmod _chmod
4190 # define getcwd _getcwd
4191 # define putenv _putenv
4192 # define S_IXUSR _S_IEXEC
4193 # ifndef _INTPTR_T_DEFINED
4194 # define _INTPTR_T_DEFINED
4195 # define intptr_t int
4196 # endif
4197 #elif defined(__MINGW32__)
4198 # define setmode _setmode
4199 # define stat _stat
4200 # define chmod _chmod
4201 # define getcwd _getcwd
4202 # define putenv _putenv
4203 #elif defined(__CYGWIN__)
4204 # define HAVE_SETENV
4205 # define FOPEN_WB "wb"
4206 /* #elif defined (other platforms) ... */
4207 #endif
4208
4209 #if defined(PATH_MAX)
4210 # define LT_PATHMAX PATH_MAX
4211 #elif defined(MAXPATHLEN)
4212 # define LT_PATHMAX MAXPATHLEN
4213 #else
4214 # define LT_PATHMAX 1024
4215 #endif
4216
4217 #ifndef S_IXOTH
4218 # define S_IXOTH 0
4219 #endif
4220 #ifndef S_IXGRP
4221 # define S_IXGRP 0
4222 #endif
4223
4224 /* path handling portability macros */
4225 #ifndef DIR_SEPARATOR
4226 # define DIR_SEPARATOR '/'
4227 # define PATH_SEPARATOR ':'
4228 #endif
4229
4230 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4231 defined (__OS2__)
4232 # define HAVE_DOS_BASED_FILE_SYSTEM
4233 # define FOPEN_WB "wb"
4234 # ifndef DIR_SEPARATOR_2
4235 # define DIR_SEPARATOR_2 '\\'
4236 # endif
4237 # ifndef PATH_SEPARATOR_2
4238 # define PATH_SEPARATOR_2 ';'
4239 # endif
4240 #endif
4241
4242 #ifndef DIR_SEPARATOR_2
4243 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4244 #else /* DIR_SEPARATOR_2 */
4245 # define IS_DIR_SEPARATOR(ch) \
4246 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4247 #endif /* DIR_SEPARATOR_2 */
4248
4249 #ifndef PATH_SEPARATOR_2
4250 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4251 #else /* PATH_SEPARATOR_2 */
4252 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4253 #endif /* PATH_SEPARATOR_2 */
4254
4255 #ifndef FOPEN_WB
4256 # define FOPEN_WB "w"
4257 #endif
4258 #ifndef _O_BINARY
4259 # define _O_BINARY 0
4260 #endif
4261
4262 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4263 #define XFREE(stale) do { \
4264 if (stale) { free ((void *) stale); stale = 0; } \
4265 } while (0)
4266
4267 #if defined(LT_DEBUGWRAPPER)
4268 static int lt_debug = 1;
4269 #else
4270 static int lt_debug = 0;
4271 #endif
4272
4273 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
4274
4275 void *xmalloc (size_t num);
4276 char *xstrdup (const char *string);
4277 const char *base_name (const char *name);
4278 char *find_executable (const char *wrapper);
4279 char *chase_symlinks (const char *pathspec);
4280 int make_executable (const char *path);
4281 int check_executable (const char *path);
4282 char *strendzap (char *str, const char *pat);
4283 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
4284 void lt_fatal (const char *file, int line, const char *message, ...);
4285 static const char *nonnull (const char *s);
4286 static const char *nonempty (const char *s);
4287 void lt_setenv (const char *name, const char *value);
4288 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
4289 void lt_update_exe_path (const char *name, const char *value);
4290 void lt_update_lib_path (const char *name, const char *value);
4291 char **prepare_spawn (char **argv);
4292 void lt_dump_script (FILE *f);
4293 EOF
4294
4295 cat <<EOF
4296 volatile const char * MAGIC_EXE = "$magic_exe";
4297 const char * LIB_PATH_VARNAME = "$shlibpath_var";
4298 EOF
4299
4300 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
4301 func_to_host_path "$temp_rpath"
4302 cat <<EOF
4303 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
4304 EOF
4305 else
4306 cat <<"EOF"
4307 const char * LIB_PATH_VALUE = "";
4308 EOF
4309 fi
4310
4311 if test -n "$dllsearchpath"; then
4312 func_to_host_path "$dllsearchpath:"
4313 cat <<EOF
4314 const char * EXE_PATH_VARNAME = "PATH";
4315 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
4316 EOF
4317 else
4318 cat <<"EOF"
4319 const char * EXE_PATH_VARNAME = "";
4320 const char * EXE_PATH_VALUE = "";
4321 EOF
4322 fi
4323
4324 if test "$fast_install" = yes; then
4325 cat <<EOF
4326 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
4327 EOF
4328 else
4329 cat <<EOF
4330 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
4331 EOF
4332 fi
4333
4334
4335 cat <<"EOF"
4336
4337 #define LTWRAPPER_OPTION_PREFIX "--lt-"
4338
4339 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
4340 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
4341 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
4342
4343 int
4344 main (int argc, char *argv[])
4345 {
4346 char **newargz;
4347 int newargc;
4348 char *tmp_pathspec;
4349 char *actual_cwrapper_path;
4350 char *actual_cwrapper_name;
4351 char *target_name;
4352 char *lt_argv_zero;
4353 intptr_t rval = 127;
4354
4355 int i;
4356
4357 program_name = (char *) xstrdup (base_name (argv[0]));
4358 newargz = XMALLOC (char *, argc + 1);
4359
4360 /* very simple arg parsing; don't want to rely on getopt
4361 * also, copy all non cwrapper options to newargz, except
4362 * argz[0], which is handled differently
4363 */
4364 newargc=0;
4365 for (i = 1; i < argc; i++)
4366 {
4367 if (strcmp (argv[i], dumpscript_opt) == 0)
4368 {
4369 EOF
4370 case "$host" in
4371 *mingw* | *cygwin* )
4372 # make stdout use "unix" line endings
4373 echo " setmode(1,_O_BINARY);"
4374 ;;
4375 esac
4376
4377 cat <<"EOF"
4378 lt_dump_script (stdout);
4379 return 0;
4380 }
4381 if (strcmp (argv[i], debug_opt) == 0)
4382 {
4383 lt_debug = 1;
4384 continue;
4385 }
4386 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
4387 {
4388 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
4389 namespace, but it is not one of the ones we know about and
4390 have already dealt with, above (inluding dump-script), then
4391 report an error. Otherwise, targets might begin to believe
4392 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
4393 namespace. The first time any user complains about this, we'll
4394 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
4395 or a configure.ac-settable value.
4396 */
4397 lt_fatal (__FILE__, __LINE__,
4398 "unrecognized %s option: '%s'",
4399 ltwrapper_option_prefix, argv[i]);
4400 }
4401 /* otherwise ... */
4402 newargz[++newargc] = xstrdup (argv[i]);
4403 }
4404 newargz[++newargc] = NULL;
4405
4406 EOF
4407 cat <<EOF
4408 /* The GNU banner must be the first non-error debug message */
4409 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
4410 EOF
4411 cat <<"EOF"
4412 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
4413 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
4414
4415 tmp_pathspec = find_executable (argv[0]);
4416 if (tmp_pathspec == NULL)
4417 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
4418 lt_debugprintf (__FILE__, __LINE__,
4419 "(main) found exe (before symlink chase) at: %s\n",
4420 tmp_pathspec);
4421
4422 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
4423 lt_debugprintf (__FILE__, __LINE__,
4424 "(main) found exe (after symlink chase) at: %s\n",
4425 actual_cwrapper_path);
4426 XFREE (tmp_pathspec);
4427
4428 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
4429 strendzap (actual_cwrapper_path, actual_cwrapper_name);
4430
4431 /* wrapper name transforms */
4432 strendzap (actual_cwrapper_name, ".exe");
4433 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
4434 XFREE (actual_cwrapper_name);
4435 actual_cwrapper_name = tmp_pathspec;
4436 tmp_pathspec = 0;
4437
4438 /* target_name transforms -- use actual target program name; might have lt- prefix */
4439 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
4440 strendzap (target_name, ".exe");
4441 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
4442 XFREE (target_name);
4443 target_name = tmp_pathspec;
4444 tmp_pathspec = 0;
4445
4446 lt_debugprintf (__FILE__, __LINE__,
4447 "(main) libtool target name: %s\n",
4448 target_name);
4449 EOF
4450
4451 cat <<EOF
4452 newargz[0] =
4453 XMALLOC (char, (strlen (actual_cwrapper_path) +
4454 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
4455 strcpy (newargz[0], actual_cwrapper_path);
4456 strcat (newargz[0], "$objdir");
4457 strcat (newargz[0], "/");
4458 EOF
4459
4460 cat <<"EOF"
4461 /* stop here, and copy so we don't have to do this twice */
4462 tmp_pathspec = xstrdup (newargz[0]);
4463
4464 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
4465 strcat (newargz[0], actual_cwrapper_name);
4466
4467 /* DO want the lt- prefix here if it exists, so use target_name */
4468 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
4469 XFREE (tmp_pathspec);
4470 tmp_pathspec = NULL;
4471 EOF
4472
4473 case $host_os in
4474 mingw*)
4475 cat <<"EOF"
4476 {
4477 char* p;
4478 while ((p = strchr (newargz[0], '\\')) != NULL)
4479 {
4480 *p = '/';
4481 }
4482 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
4483 {
4484 *p = '/';
4485 }
4486 }
4487 EOF
4488 ;;
4489 esac
4490
4491 cat <<"EOF"
4492 XFREE (target_name);
4493 XFREE (actual_cwrapper_path);
4494 XFREE (actual_cwrapper_name);
4495
4496 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
4497 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4498 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4499 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4500 because on Windows, both *_VARNAMEs are PATH but uninstalled
4501 libraries must come first. */
4502 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
4503 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
4504
4505 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
4506 nonnull (lt_argv_zero));
4507 for (i = 0; i < newargc; i++)
4508 {
4509 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
4510 i, nonnull (newargz[i]));
4511 }
4512
4513 EOF
4514
4515 case $host_os in
4516 mingw*)
4517 cat <<"EOF"
4518 /* execv doesn't actually work on mingw as expected on unix */
4519 newargz = prepare_spawn (newargz);
4520 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
4521 if (rval == -1)
4522 {
4523 /* failed to start process */
4524 lt_debugprintf (__FILE__, __LINE__,
4525 "(main) failed to launch target \"%s\": %s\n",
4526 lt_argv_zero, nonnull (strerror (errno)));
4527 return 127;
4528 }
4529 return rval;
4530 EOF
4531 ;;
4532 *)
4533 cat <<"EOF"
4534 execv (lt_argv_zero, newargz);
4535 return rval; /* =127, but avoids unused variable warning */
4536 EOF
4537 ;;
4538 esac
4539
4540 cat <<"EOF"
4541 }
4542
4543 void *
4544 xmalloc (size_t num)
4545 {
4546 void *p = (void *) malloc (num);
4547 if (!p)
4548 lt_fatal (__FILE__, __LINE__, "memory exhausted");
4549
4550 return p;
4551 }
4552
4553 char *
4554 xstrdup (const char *string)
4555 {
4556 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
4557 string) : NULL;
4558 }
4559
4560 const char *
4561 base_name (const char *name)
4562 {
4563 const char *base;
4564
4565 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4566 /* Skip over the disk name in MSDOS pathnames. */
4567 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
4568 name += 2;
4569 #endif
4570
4571 for (base = name; *name; name++)
4572 if (IS_DIR_SEPARATOR (*name))
4573 base = name + 1;
4574 return base;
4575 }
4576
4577 int
4578 check_executable (const char *path)
4579 {
4580 struct stat st;
4581
4582 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
4583 nonempty (path));
4584 if ((!path) || (!*path))
4585 return 0;
4586
4587 if ((stat (path, &st) >= 0)
4588 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
4589 return 1;
4590 else
4591 return 0;
4592 }
4593
4594 int
4595 make_executable (const char *path)
4596 {
4597 int rval = 0;
4598 struct stat st;
4599
4600 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
4601 nonempty (path));
4602 if ((!path) || (!*path))
4603 return 0;
4604
4605 if (stat (path, &st) >= 0)
4606 {
4607 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
4608 }
4609 return rval;
4610 }
4611
4612 /* Searches for the full path of the wrapper. Returns
4613 newly allocated full path name if found, NULL otherwise
4614 Does not chase symlinks, even on platforms that support them.
4615 */
4616 char *
4617 find_executable (const char *wrapper)
4618 {
4619 int has_slash = 0;
4620 const char *p;
4621 const char *p_next;
4622 /* static buffer for getcwd */
4623 char tmp[LT_PATHMAX + 1];
4624 int tmp_len;
4625 char *concat_name;
4626
4627 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
4628 nonempty (wrapper));
4629
4630 if ((wrapper == NULL) || (*wrapper == '\0'))
4631 return NULL;
4632
4633 /* Absolute path? */
4634 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4635 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
4636 {
4637 concat_name = xstrdup (wrapper);
4638 if (check_executable (concat_name))
4639 return concat_name;
4640 XFREE (concat_name);
4641 }
4642 else
4643 {
4644 #endif
4645 if (IS_DIR_SEPARATOR (wrapper[0]))
4646 {
4647 concat_name = xstrdup (wrapper);
4648 if (check_executable (concat_name))
4649 return concat_name;
4650 XFREE (concat_name);
4651 }
4652 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
4653 }
4654 #endif
4655
4656 for (p = wrapper; *p; p++)
4657 if (*p == '/')
4658 {
4659 has_slash = 1;
4660 break;
4661 }
4662 if (!has_slash)
4663 {
4664 /* no slashes; search PATH */
4665 const char *path = getenv ("PATH");
4666 if (path != NULL)
4667 {
4668 for (p = path; *p; p = p_next)
4669 {
4670 const char *q;
4671 size_t p_len;
4672 for (q = p; *q; q++)
4673 if (IS_PATH_SEPARATOR (*q))
4674 break;
4675 p_len = q - p;
4676 p_next = (*q == '\0' ? q : q + 1);
4677 if (p_len == 0)
4678 {
4679 /* empty path: current directory */
4680 if (getcwd (tmp, LT_PATHMAX) == NULL)
4681 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4682 nonnull (strerror (errno)));
4683 tmp_len = strlen (tmp);
4684 concat_name =
4685 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
4686 memcpy (concat_name, tmp, tmp_len);
4687 concat_name[tmp_len] = '/';
4688 strcpy (concat_name + tmp_len + 1, wrapper);
4689 }
4690 else
4691 {
4692 concat_name =
4693 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
4694 memcpy (concat_name, p, p_len);
4695 concat_name[p_len] = '/';
4696 strcpy (concat_name + p_len + 1, wrapper);
4697 }
4698 if (check_executable (concat_name))
4699 return concat_name;
4700 XFREE (concat_name);
4701 }
4702 }
4703 /* not found in PATH; assume curdir */
4704 }
4705 /* Relative path | not found in path: prepend cwd */
4706 if (getcwd (tmp, LT_PATHMAX) == NULL)
4707 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
4708 nonnull (strerror (errno)));
4709 tmp_len = strlen (tmp);
4710 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
4711 memcpy (concat_name, tmp, tmp_len);
4712 concat_name[tmp_len] = '/';
4713 strcpy (concat_name + tmp_len + 1, wrapper);
4714
4715 if (check_executable (concat_name))
4716 return concat_name;
4717 XFREE (concat_name);
4718 return NULL;
4719 }
4720
4721 char *
4722 chase_symlinks (const char *pathspec)
4723 {
4724 #ifndef S_ISLNK
4725 return xstrdup (pathspec);
4726 #else
4727 char buf[LT_PATHMAX];
4728 struct stat s;
4729 char *tmp_pathspec = xstrdup (pathspec);
4730 char *p;
4731 int has_symlinks = 0;
4732 while (strlen (tmp_pathspec) && !has_symlinks)
4733 {
4734 lt_debugprintf (__FILE__, __LINE__,
4735 "checking path component for symlinks: %s\n",
4736 tmp_pathspec);
4737 if (lstat (tmp_pathspec, &s) == 0)
4738 {
4739 if (S_ISLNK (s.st_mode) != 0)
4740 {
4741 has_symlinks = 1;
4742 break;
4743 }
4744
4745 /* search backwards for last DIR_SEPARATOR */
4746 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
4747 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
4748 p--;
4749 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
4750 {
4751 /* no more DIR_SEPARATORS left */
4752 break;
4753 }
4754 *p = '\0';
4755 }
4756 else
4757 {
4758 lt_fatal (__FILE__, __LINE__,
4759 "error accessing file \"%s\": %s",
4760 tmp_pathspec, nonnull (strerror (errno)));
4761 }
4762 }
4763 XFREE (tmp_pathspec);
4764
4765 if (!has_symlinks)
4766 {
4767 return xstrdup (pathspec);
4768 }
4769
4770 tmp_pathspec = realpath (pathspec, buf);
4771 if (tmp_pathspec == 0)
4772 {
4773 lt_fatal (__FILE__, __LINE__,
4774 "could not follow symlinks for %s", pathspec);
4775 }
4776 return xstrdup (tmp_pathspec);
4777 #endif
4778 }
4779
4780 char *
4781 strendzap (char *str, const char *pat)
4782 {
4783 size_t len, patlen;
4784
4785 assert (str != NULL);
4786 assert (pat != NULL);
4787
4788 len = strlen (str);
4789 patlen = strlen (pat);
4790
4791 if (patlen <= len)
4792 {
4793 str += len - patlen;
4794 if (strcmp (str, pat) == 0)
4795 *str = '\0';
4796 }
4797 return str;
4798 }
4799
4800 void
4801 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4802 {
4803 va_list args;
4804 if (lt_debug)
4805 {
4806 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4807 va_start (args, fmt);
4808 (void) vfprintf (stderr, fmt, args);
4809 va_end (args);
4810 }
4811 }
4812
4813 static void
4814 lt_error_core (int exit_status, const char *file,
4815 int line, const char *mode,
4816 const char *message, va_list ap)
4817 {
4818 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
4819 vfprintf (stderr, message, ap);
4820 fprintf (stderr, ".\n");
4821
4822 if (exit_status >= 0)
4823 exit (exit_status);
4824 }
4825
4826 void
4827 lt_fatal (const char *file, int line, const char *message, ...)
4828 {
4829 va_list ap;
4830 va_start (ap, message);
4831 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
4832 va_end (ap);
4833 }
4834
4835 static const char *
4836 nonnull (const char *s)
4837 {
4838 return s ? s : "(null)";
4839 }
4840
4841 static const char *
4842 nonempty (const char *s)
4843 {
4844 return (s && !*s) ? "(empty)" : nonnull (s);
4845 }
4846
4847 void
4848 lt_setenv (const char *name, const char *value)
4849 {
4850 lt_debugprintf (__FILE__, __LINE__,
4851 "(lt_setenv) setting '%s' to '%s'\n",
4852 nonnull (name), nonnull (value));
4853 {
4854 #ifdef HAVE_SETENV
4855 /* always make a copy, for consistency with !HAVE_SETENV */
4856 char *str = xstrdup (value);
4857 setenv (name, str, 1);
4858 #else
4859 int len = strlen (name) + 1 + strlen (value) + 1;
4860 char *str = XMALLOC (char, len);
4861 sprintf (str, "%s=%s", name, value);
4862 if (putenv (str) != EXIT_SUCCESS)
4863 {
4864 XFREE (str);
4865 }
4866 #endif
4867 }
4868 }
4869
4870 char *
4871 lt_extend_str (const char *orig_value, const char *add, int to_end)
4872 {
4873 char *new_value;
4874 if (orig_value && *orig_value)
4875 {
4876 int orig_value_len = strlen (orig_value);
4877 int add_len = strlen (add);
4878 new_value = XMALLOC (char, add_len + orig_value_len + 1);
4879 if (to_end)
4880 {
4881 strcpy (new_value, orig_value);
4882 strcpy (new_value + orig_value_len, add);
4883 }
4884 else
4885 {
4886 strcpy (new_value, add);
4887 strcpy (new_value + add_len, orig_value);
4888 }
4889 }
4890 else
4891 {
4892 new_value = xstrdup (add);
4893 }
4894 return new_value;
4895 }
4896
4897 void
4898 lt_update_exe_path (const char *name, const char *value)
4899 {
4900 lt_debugprintf (__FILE__, __LINE__,
4901 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4902 nonnull (name), nonnull (value));
4903
4904 if (name && *name && value && *value)
4905 {
4906 char *new_value = lt_extend_str (getenv (name), value, 0);
4907 /* some systems can't cope with a ':'-terminated path #' */
4908 int len = strlen (new_value);
4909 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
4910 {
4911 new_value[len-1] = '\0';
4912 }
4913 lt_setenv (name, new_value);
4914 XFREE (new_value);
4915 }
4916 }
4917
4918 void
4919 lt_update_lib_path (const char *name, const char *value)
4920 {
4921 lt_debugprintf (__FILE__, __LINE__,
4922 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4923 nonnull (name), nonnull (value));
4924
4925 if (name && *name && value && *value)
4926 {
4927 char *new_value = lt_extend_str (getenv (name), value, 0);
4928 lt_setenv (name, new_value);
4929 XFREE (new_value);
4930 }
4931 }
4932
4933 EOF
4934 case $host_os in
4935 mingw*)
4936 cat <<"EOF"
4937
4938 /* Prepares an argument vector before calling spawn().
4939 Note that spawn() does not by itself call the command interpreter
4940 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4941 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4942 GetVersionEx(&v);
4943 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4944 }) ? "cmd.exe" : "command.com").
4945 Instead it simply concatenates the arguments, separated by ' ', and calls
4946 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4947 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4948 special way:
4949 - Space and tab are interpreted as delimiters. They are not treated as
4950 delimiters if they are surrounded by double quotes: "...".
4951 - Unescaped double quotes are removed from the input. Their only effect is
4952 that within double quotes, space and tab are treated like normal
4953 characters.
4954 - Backslashes not followed by double quotes are not special.
4955 - But 2*n+1 backslashes followed by a double quote become
4956 n backslashes followed by a double quote (n >= 0):
4957 \" -> "
4958 \\\" -> \"
4959 \\\\\" -> \\"
4960 */
4961 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4962 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
4963 char **
4964 prepare_spawn (char **argv)
4965 {
4966 size_t argc;
4967 char **new_argv;
4968 size_t i;
4969
4970 /* Count number of arguments. */
4971 for (argc = 0; argv[argc] != NULL; argc++)
4972 ;
4973
4974 /* Allocate new argument vector. */
4975 new_argv = XMALLOC (char *, argc + 1);
4976
4977 /* Put quoted arguments into the new argument vector. */
4978 for (i = 0; i < argc; i++)
4979 {
4980 const char *string = argv[i];
4981
4982 if (string[0] == '\0')
4983 new_argv[i] = xstrdup ("\"\"");
4984 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4985 {
4986 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4987 size_t length;
4988 unsigned int backslashes;
4989 const char *s;
4990 char *quoted_string;
4991 char *p;
4992
4993 length = 0;
4994 backslashes = 0;
4995 if (quote_around)
4996 length++;
4997 for (s = string; *s != '\0'; s++)
4998 {
4999 char c = *s;
5000 if (c == '"')
5001 length += backslashes + 1;
5002 length++;
5003 if (c == '\\')
5004 backslashes++;
5005 else
5006 backslashes = 0;
5007 }
5008 if (quote_around)
5009 length += backslashes + 1;
5010
5011 quoted_string = XMALLOC (char, length + 1);
5012
5013 p = quoted_string;
5014 backslashes = 0;
5015 if (quote_around)
5016 *p++ = '"';
5017 for (s = string; *s != '\0'; s++)
5018 {
5019 char c = *s;
5020 if (c == '"')
5021 {
5022 unsigned int j;
5023 for (j = backslashes + 1; j > 0; j--)
5024 *p++ = '\\';
5025 }
5026 *p++ = c;
5027 if (c == '\\')
5028 backslashes++;
5029 else
5030 backslashes = 0;
5031 }
5032 if (quote_around)
5033 {
5034 unsigned int j;
5035 for (j = backslashes; j > 0; j--)
5036 *p++ = '\\';
5037 *p++ = '"';
5038 }
5039 *p = '\0';
5040
5041 new_argv[i] = quoted_string;
5042 }
5043 else
5044 new_argv[i] = (char *) string;
5045 }
5046 new_argv[argc] = NULL;
5047
5048 return new_argv;
5049 }
5050 EOF
5051 ;;
5052 esac
5053
5054 cat <<"EOF"
5055 void lt_dump_script (FILE* f)
5056 {
5057 EOF
5058 func_emit_wrapper yes |
5059 $SED -e 's/\([\\"]\)/\\\1/g' \
5060 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
5061
5062 cat <<"EOF"
5063 }
5064 EOF
5065 }
5066 # end: func_emit_cwrapperexe_src
5067
5068 # func_win32_import_lib_p ARG
5069 # True if ARG is an import lib, as indicated by $file_magic_cmd
5070 func_win32_import_lib_p ()
5071 {
5072 $opt_debug
5073 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
5074 *import*) : ;;
5075 *) false ;;
5076 esac
5077 }
5078
5079 # func_mode_link arg...
5080 func_mode_link ()
5081 {
5082 $opt_debug
5083 case $host in
5084 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5085 # It is impossible to link a dll without this setting, and
5086 # we shouldn't force the makefile maintainer to figure out
5087 # which system we are compiling for in order to pass an extra
5088 # flag for every libtool invocation.
5089 # allow_undefined=no
5090
5091 # FIXME: Unfortunately, there are problems with the above when trying
5092 # to make a dll which has undefined symbols, in which case not
5093 # even a static library is built. For now, we need to specify
5094 # -no-undefined on the libtool link line when we can be certain
5095 # that all symbols are satisfied, otherwise we get a static library.
5096 allow_undefined=yes
5097 ;;
5098 *)
5099 allow_undefined=yes
5100 ;;
5101 esac
5102 libtool_args=$nonopt
5103 base_compile="$nonopt $@"
5104 compile_command=$nonopt
5105 finalize_command=$nonopt
5106
5107 compile_rpath=
5108 finalize_rpath=
5109 compile_shlibpath=
5110 finalize_shlibpath=
5111 convenience=
5112 old_convenience=
5113 deplibs=
5114 old_deplibs=
5115 compiler_flags=
5116 linker_flags=
5117 dllsearchpath=
5118 lib_search_path=`pwd`
5119 inst_prefix_dir=
5120 new_inherited_linker_flags=
5121
5122 avoid_version=no
5123 bindir=
5124 dlfiles=
5125 dlprefiles=
5126 dlself=no
5127 export_dynamic=no
5128 export_symbols=
5129 export_symbols_regex=
5130 generated=
5131 libobjs=
5132 ltlibs=
5133 module=no
5134 no_install=no
5135 objs=
5136 non_pic_objects=
5137 precious_files_regex=
5138 prefer_static_libs=no
5139 preload=no
5140 prev=
5141 prevarg=
5142 release=
5143 rpath=
5144 xrpath=
5145 perm_rpath=
5146 temp_rpath=
5147 thread_safe=no
5148 vinfo=
5149 vinfo_number=no
5150 weak_libs=
5151 single_module="${wl}-single_module"
5152 func_infer_tag $base_compile
5153
5154 # We need to know -static, to get the right output filenames.
5155 for arg
5156 do
5157 case $arg in
5158 -shared)
5159 test "$build_libtool_libs" != yes && \
5160 func_fatal_configuration "can not build a shared library"
5161 build_old_libs=no
5162 break
5163 ;;
5164 -all-static | -static | -static-libtool-libs)
5165 case $arg in
5166 -all-static)
5167 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
5168 func_warning "complete static linking is impossible in this configuration"
5169 fi
5170 if test -n "$link_static_flag"; then
5171 dlopen_self=$dlopen_self_static
5172 fi
5173 prefer_static_libs=yes
5174 ;;
5175 -static)
5176 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5177 dlopen_self=$dlopen_self_static
5178 fi
5179 prefer_static_libs=built
5180 ;;
5181 -static-libtool-libs)
5182 if test -z "$pic_flag" && test -n "$link_static_flag"; then
5183 dlopen_self=$dlopen_self_static
5184 fi
5185 prefer_static_libs=yes
5186 ;;
5187 esac
5188 build_libtool_libs=no
5189 build_old_libs=yes
5190 break
5191 ;;
5192 esac
5193 done
5194
5195 # See if our shared archives depend on static archives.
5196 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
5197
5198 # Go through the arguments, transforming them on the way.
5199 while test "$#" -gt 0; do
5200 arg="$1"
5201 shift
5202 func_quote_for_eval "$arg"
5203 qarg=$func_quote_for_eval_unquoted_result
5204 func_append libtool_args " $func_quote_for_eval_result"
5205
5206 # If the previous option needs an argument, assign it.
5207 if test -n "$prev"; then
5208 case $prev in
5209 output)
5210 func_append compile_command " @OUTPUT@"
5211 func_append finalize_command " @OUTPUT@"
5212 ;;
5213 esac
5214
5215 case $prev in
5216 bindir)
5217 bindir="$arg"
5218 prev=
5219 continue
5220 ;;
5221 dlfiles|dlprefiles)
5222 if test "$preload" = no; then
5223 # Add the symbol object into the linking commands.
5224 func_append compile_command " @SYMFILE@"
5225 func_append finalize_command " @SYMFILE@"
5226 preload=yes
5227 fi
5228 case $arg in
5229 *.la | *.lo) ;; # We handle these cases below.
5230 force)
5231 if test "$dlself" = no; then
5232 dlself=needless
5233 export_dynamic=yes
5234 fi
5235 prev=
5236 continue
5237 ;;
5238 self)
5239 if test "$prev" = dlprefiles; then
5240 dlself=yes
5241 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
5242 dlself=yes
5243 else
5244 dlself=needless
5245 export_dynamic=yes
5246 fi
5247 prev=
5248 continue
5249 ;;
5250 *)
5251 if test "$prev" = dlfiles; then
5252 func_append dlfiles " $arg"
5253 else
5254 func_append dlprefiles " $arg"
5255 fi
5256 prev=
5257 continue
5258 ;;
5259 esac
5260 ;;
5261 expsyms)
5262 export_symbols="$arg"
5263 test -f "$arg" \
5264 || func_fatal_error "symbol file \`$arg' does not exist"
5265 prev=
5266 continue
5267 ;;
5268 expsyms_regex)
5269 export_symbols_regex="$arg"
5270 prev=
5271 continue
5272 ;;
5273 framework)
5274 case $host in
5275 *-*-darwin*)
5276 case "$deplibs " in
5277 *" $qarg.ltframework "*) ;;
5278 *) func_append deplibs " $qarg.ltframework" # this is fixed later
5279 ;;
5280 esac
5281 ;;
5282 esac
5283 prev=
5284 continue
5285 ;;
5286 inst_prefix)
5287 inst_prefix_dir="$arg"
5288 prev=
5289 continue
5290 ;;
5291 objectlist)
5292 if test -f "$arg"; then
5293 save_arg=$arg
5294 moreargs=
5295 for fil in `cat "$save_arg"`
5296 do
5297 # func_append moreargs " $fil"
5298 arg=$fil
5299 # A libtool-controlled object.
5300
5301 # Check to see that this really is a libtool object.
5302 if func_lalib_unsafe_p "$arg"; then
5303 pic_object=
5304 non_pic_object=
5305
5306 # Read the .lo file
5307 func_source "$arg"
5308
5309 if test -z "$pic_object" ||
5310 test -z "$non_pic_object" ||
5311 test "$pic_object" = none &&
5312 test "$non_pic_object" = none; then
5313 func_fatal_error "cannot find name of object for \`$arg'"
5314 fi
5315
5316 # Extract subdirectory from the argument.
5317 func_dirname "$arg" "/" ""
5318 xdir="$func_dirname_result"
5319
5320 if test "$pic_object" != none; then
5321 # Prepend the subdirectory the object is found in.
5322 pic_object="$xdir$pic_object"
5323
5324 if test "$prev" = dlfiles; then
5325 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5326 func_append dlfiles " $pic_object"
5327 prev=
5328 continue
5329 else
5330 # If libtool objects are unsupported, then we need to preload.
5331 prev=dlprefiles
5332 fi
5333 fi
5334
5335 # CHECK ME: I think I busted this. -Ossama
5336 if test "$prev" = dlprefiles; then
5337 # Preload the old-style object.
5338 func_append dlprefiles " $pic_object"
5339 prev=
5340 fi
5341
5342 # A PIC object.
5343 func_append libobjs " $pic_object"
5344 arg="$pic_object"
5345 fi
5346
5347 # Non-PIC object.
5348 if test "$non_pic_object" != none; then
5349 # Prepend the subdirectory the object is found in.
5350 non_pic_object="$xdir$non_pic_object"
5351
5352 # A standard non-PIC object
5353 func_append non_pic_objects " $non_pic_object"
5354 if test -z "$pic_object" || test "$pic_object" = none ; then
5355 arg="$non_pic_object"
5356 fi
5357 else
5358 # If the PIC object exists, use it instead.
5359 # $xdir was prepended to $pic_object above.
5360 non_pic_object="$pic_object"
5361 func_append non_pic_objects " $non_pic_object"
5362 fi
5363 else
5364 # Only an error if not doing a dry-run.
5365 if $opt_dry_run; then
5366 # Extract subdirectory from the argument.
5367 func_dirname "$arg" "/" ""
5368 xdir="$func_dirname_result"
5369
5370 func_lo2o "$arg"
5371 pic_object=$xdir$objdir/$func_lo2o_result
5372 non_pic_object=$xdir$func_lo2o_result
5373 func_append libobjs " $pic_object"
5374 func_append non_pic_objects " $non_pic_object"
5375 else
5376 func_fatal_error "\`$arg' is not a valid libtool object"
5377 fi
5378 fi
5379 done
5380 else
5381 func_fatal_error "link input file \`$arg' does not exist"
5382 fi
5383 arg=$save_arg
5384 prev=
5385 continue
5386 ;;
5387 precious_regex)
5388 precious_files_regex="$arg"
5389 prev=
5390 continue
5391 ;;
5392 release)
5393 release="-$arg"
5394 prev=
5395 continue
5396 ;;
5397 rpath | xrpath)
5398 # We need an absolute path.
5399 case $arg in
5400 [\\/]* | [A-Za-z]:[\\/]*) ;;
5401 *)
5402 func_fatal_error "only absolute run-paths are allowed"
5403 ;;
5404 esac
5405 if test "$prev" = rpath; then
5406 case "$rpath " in
5407 *" $arg "*) ;;
5408 *) func_append rpath " $arg" ;;
5409 esac
5410 else
5411 case "$xrpath " in
5412 *" $arg "*) ;;
5413 *) func_append xrpath " $arg" ;;
5414 esac
5415 fi
5416 prev=
5417 continue
5418 ;;
5419 shrext)
5420 shrext_cmds="$arg"
5421 prev=
5422 continue
5423 ;;
5424 weak)
5425 func_append weak_libs " $arg"
5426 prev=
5427 continue
5428 ;;
5429 xcclinker)
5430 func_append linker_flags " $qarg"
5431 func_append compiler_flags " $qarg"
5432 prev=
5433 func_append compile_command " $qarg"
5434 func_append finalize_command " $qarg"
5435 continue
5436 ;;
5437 xcompiler)
5438 func_append compiler_flags " $qarg"
5439 prev=
5440 func_append compile_command " $qarg"
5441 func_append finalize_command " $qarg"
5442 continue
5443 ;;
5444 xlinker)
5445 func_append linker_flags " $qarg"
5446 func_append compiler_flags " $wl$qarg"
5447 prev=
5448 func_append compile_command " $wl$qarg"
5449 func_append finalize_command " $wl$qarg"
5450 continue
5451 ;;
5452 *)
5453 eval "$prev=\"\$arg\""
5454 prev=
5455 continue
5456 ;;
5457 esac
5458 fi # test -n "$prev"
5459
5460 prevarg="$arg"
5461
5462 case $arg in
5463 -all-static)
5464 if test -n "$link_static_flag"; then
5465 # See comment for -static flag below, for more details.
5466 func_append compile_command " $link_static_flag"
5467 func_append finalize_command " $link_static_flag"
5468 fi
5469 continue
5470 ;;
5471
5472 -allow-undefined)
5473 # FIXME: remove this flag sometime in the future.
5474 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
5475 ;;
5476
5477 -avoid-version)
5478 avoid_version=yes
5479 continue
5480 ;;
5481
5482 -bindir)
5483 prev=bindir
5484 continue
5485 ;;
5486
5487 -dlopen)
5488 prev=dlfiles
5489 continue
5490 ;;
5491
5492 -dlpreopen)
5493 prev=dlprefiles
5494 continue
5495 ;;
5496
5497 -export-dynamic)
5498 export_dynamic=yes
5499 continue
5500 ;;
5501
5502 -export-symbols | -export-symbols-regex)
5503 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
5504 func_fatal_error "more than one -exported-symbols argument is not allowed"
5505 fi
5506 if test "X$arg" = "X-export-symbols"; then
5507 prev=expsyms
5508 else
5509 prev=expsyms_regex
5510 fi
5511 continue
5512 ;;
5513
5514 -framework)
5515 prev=framework
5516 continue
5517 ;;
5518
5519 -inst-prefix-dir)
5520 prev=inst_prefix
5521 continue
5522 ;;
5523
5524 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
5525 # so, if we see these flags be careful not to treat them like -L
5526 -L[A-Z][A-Z]*:*)
5527 case $with_gcc/$host in
5528 no/*-*-irix* | /*-*-irix*)
5529 func_append compile_command " $arg"
5530 func_append finalize_command " $arg"
5531 ;;
5532 esac
5533 continue
5534 ;;
5535
5536 -L*)
5537 func_stripname "-L" '' "$arg"
5538 if test -z "$func_stripname_result"; then
5539 if test "$#" -gt 0; then
5540 func_fatal_error "require no space between \`-L' and \`$1'"
5541 else
5542 func_fatal_error "need path for \`-L' option"
5543 fi
5544 fi
5545 func_resolve_sysroot "$func_stripname_result"
5546 dir=$func_resolve_sysroot_result
5547 # We need an absolute path.
5548 case $dir in
5549 [\\/]* | [A-Za-z]:[\\/]*) ;;
5550 *)
5551 absdir=`cd "$dir" && pwd`
5552 test -z "$absdir" && \
5553 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5554 dir="$absdir"
5555 ;;
5556 esac
5557 case "$deplibs " in
5558 *" -L$dir "* | *" $arg "*)
5559 # Will only happen for absolute or sysroot arguments
5560 ;;
5561 *)
5562 # Preserve sysroot, but never include relative directories
5563 case $dir in
5564 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5565 *) func_append deplibs " -L$dir" ;;
5566 esac
5567 func_append lib_search_path " $dir"
5568 ;;
5569 esac
5570 case $host in
5571 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
5572 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
5573 case :$dllsearchpath: in
5574 *":$dir:"*) ;;
5575 ::) dllsearchpath=$dir;;
5576 *) func_append dllsearchpath ":$dir";;
5577 esac
5578 case :$dllsearchpath: in
5579 *":$testbindir:"*) ;;
5580 ::) dllsearchpath=$testbindir;;
5581 *) func_append dllsearchpath ":$testbindir";;
5582 esac
5583 ;;
5584 esac
5585 continue
5586 ;;
5587
5588 -l*)
5589 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
5590 case $host in
5591 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
5592 # These systems don't actually have a C or math library (as such)
5593 continue
5594 ;;
5595 *-*-os2*)
5596 # These systems don't actually have a C library (as such)
5597 test "X$arg" = "X-lc" && continue
5598 ;;
5599 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5600 # Do not include libc due to us having libc/libc_r.
5601 test "X$arg" = "X-lc" && continue
5602 ;;
5603 *-*-rhapsody* | *-*-darwin1.[012])
5604 # Rhapsody C and math libraries are in the System framework
5605 func_append deplibs " System.ltframework"
5606 continue
5607 ;;
5608 *-*-sco3.2v5* | *-*-sco5v6*)
5609 # Causes problems with __ctype
5610 test "X$arg" = "X-lc" && continue
5611 ;;
5612 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
5613 # Compiler inserts libc in the correct place for threads to work
5614 test "X$arg" = "X-lc" && continue
5615 ;;
5616 esac
5617 elif test "X$arg" = "X-lc_r"; then
5618 case $host in
5619 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
5620 # Do not include libc_r directly, use -pthread flag.
5621 continue
5622 ;;
5623 esac
5624 fi
5625 func_append deplibs " $arg"
5626 continue
5627 ;;
5628
5629 -module)
5630 module=yes
5631 continue
5632 ;;
5633
5634 # Tru64 UNIX uses -model [arg] to determine the layout of C++
5635 # classes, name mangling, and exception handling.
5636 # Darwin uses the -arch flag to determine output architecture.
5637 -model|-arch|-isysroot|--sysroot)
5638 func_append compiler_flags " $arg"
5639 func_append compile_command " $arg"
5640 func_append finalize_command " $arg"
5641 prev=xcompiler
5642 continue
5643 ;;
5644
5645 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
5646 func_append compiler_flags " $arg"
5647 func_append compile_command " $arg"
5648 func_append finalize_command " $arg"
5649 case "$new_inherited_linker_flags " in
5650 *" $arg "*) ;;
5651 * ) func_append new_inherited_linker_flags " $arg" ;;
5652 esac
5653 continue
5654 ;;
5655
5656 -multi_module)
5657 single_module="${wl}-multi_module"
5658 continue
5659 ;;
5660
5661 -no-fast-install)
5662 fast_install=no
5663 continue
5664 ;;
5665
5666 -no-install)
5667 case $host in
5668 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
5669 # The PATH hackery in wrapper scripts is required on Windows
5670 # and Darwin in order for the loader to find any dlls it needs.
5671 func_warning "\`-no-install' is ignored for $host"
5672 func_warning "assuming \`-no-fast-install' instead"
5673 fast_install=no
5674 ;;
5675 *) no_install=yes ;;
5676 esac
5677 continue
5678 ;;
5679
5680 -no-undefined)
5681 allow_undefined=no
5682 continue
5683 ;;
5684
5685 -objectlist)
5686 prev=objectlist
5687 continue
5688 ;;
5689
5690 -o) prev=output ;;
5691
5692 -precious-files-regex)
5693 prev=precious_regex
5694 continue
5695 ;;
5696
5697 -release)
5698 prev=release
5699 continue
5700 ;;
5701
5702 -rpath)
5703 prev=rpath
5704 continue
5705 ;;
5706
5707 -R)
5708 prev=xrpath
5709 continue
5710 ;;
5711
5712 -R*)
5713 func_stripname '-R' '' "$arg"
5714 dir=$func_stripname_result
5715 # We need an absolute path.
5716 case $dir in
5717 [\\/]* | [A-Za-z]:[\\/]*) ;;
5718 =*)
5719 func_stripname '=' '' "$dir"
5720 dir=$lt_sysroot$func_stripname_result
5721 ;;
5722 *)
5723 func_fatal_error "only absolute run-paths are allowed"
5724 ;;
5725 esac
5726 case "$xrpath " in
5727 *" $dir "*) ;;
5728 *) func_append xrpath " $dir" ;;
5729 esac
5730 continue
5731 ;;
5732
5733 -shared)
5734 # The effects of -shared are defined in a previous loop.
5735 continue
5736 ;;
5737
5738 -shrext)
5739 prev=shrext
5740 continue
5741 ;;
5742
5743 -static | -static-libtool-libs)
5744 # The effects of -static are defined in a previous loop.
5745 # We used to do the same as -all-static on platforms that
5746 # didn't have a PIC flag, but the assumption that the effects
5747 # would be equivalent was wrong. It would break on at least
5748 # Digital Unix and AIX.
5749 continue
5750 ;;
5751
5752 -thread-safe)
5753 thread_safe=yes
5754 continue
5755 ;;
5756
5757 -version-info)
5758 prev=vinfo
5759 continue
5760 ;;
5761
5762 -version-number)
5763 prev=vinfo
5764 vinfo_number=yes
5765 continue
5766 ;;
5767
5768 -weak)
5769 prev=weak
5770 continue
5771 ;;
5772
5773 -Wc,*)
5774 func_stripname '-Wc,' '' "$arg"
5775 args=$func_stripname_result
5776 arg=
5777 save_ifs="$IFS"; IFS=','
5778 for flag in $args; do
5779 IFS="$save_ifs"
5780 func_quote_for_eval "$flag"
5781 func_append arg " $func_quote_for_eval_result"
5782 func_append compiler_flags " $func_quote_for_eval_result"
5783 done
5784 IFS="$save_ifs"
5785 func_stripname ' ' '' "$arg"
5786 arg=$func_stripname_result
5787 ;;
5788
5789 -Wl,*)
5790 func_stripname '-Wl,' '' "$arg"
5791 args=$func_stripname_result
5792 arg=
5793 save_ifs="$IFS"; IFS=','
5794 for flag in $args; do
5795 IFS="$save_ifs"
5796 func_quote_for_eval "$flag"
5797 func_append arg " $wl$func_quote_for_eval_result"
5798 func_append compiler_flags " $wl$func_quote_for_eval_result"
5799 func_append linker_flags " $func_quote_for_eval_result"
5800 done
5801 IFS="$save_ifs"
5802 func_stripname ' ' '' "$arg"
5803 arg=$func_stripname_result
5804 ;;
5805
5806 -Xcompiler)
5807 prev=xcompiler
5808 continue
5809 ;;
5810
5811 -Xlinker)
5812 prev=xlinker
5813 continue
5814 ;;
5815
5816 -XCClinker)
5817 prev=xcclinker
5818 continue
5819 ;;
5820
5821 # -msg_* for osf cc
5822 -msg_*)
5823 func_quote_for_eval "$arg"
5824 arg="$func_quote_for_eval_result"
5825 ;;
5826
5827 # Flags to be passed through unchanged, with rationale:
5828 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5829 # -r[0-9][0-9]* specify processor for the SGI compiler
5830 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5831 # +DA*, +DD* enable 64-bit mode for the HP compiler
5832 # -q* compiler args for the IBM compiler
5833 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5834 # -F/path path to uninstalled frameworks, gcc on darwin
5835 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5836 # @file GCC response files
5837 # -tp=* Portland pgcc target processor selection
5838 # --sysroot=* for sysroot support
5839 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
5840 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5841 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5842 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
5843 func_quote_for_eval "$arg"
5844 arg="$func_quote_for_eval_result"
5845 func_append compile_command " $arg"
5846 func_append finalize_command " $arg"
5847 func_append compiler_flags " $arg"
5848 continue
5849 ;;
5850
5851 # Some other compiler flag.
5852 -* | +*)
5853 func_quote_for_eval "$arg"
5854 arg="$func_quote_for_eval_result"
5855 ;;
5856
5857 *.$objext)
5858 # A standard object.
5859 func_append objs " $arg"
5860 ;;
5861
5862 *.lo)
5863 # A libtool-controlled object.
5864
5865 # Check to see that this really is a libtool object.
5866 if func_lalib_unsafe_p "$arg"; then
5867 pic_object=
5868 non_pic_object=
5869
5870 # Read the .lo file
5871 func_source "$arg"
5872
5873 if test -z "$pic_object" ||
5874 test -z "$non_pic_object" ||
5875 test "$pic_object" = none &&
5876 test "$non_pic_object" = none; then
5877 func_fatal_error "cannot find name of object for \`$arg'"
5878 fi
5879
5880 # Extract subdirectory from the argument.
5881 func_dirname "$arg" "/" ""
5882 xdir="$func_dirname_result"
5883
5884 if test "$pic_object" != none; then
5885 # Prepend the subdirectory the object is found in.
5886 pic_object="$xdir$pic_object"
5887
5888 if test "$prev" = dlfiles; then
5889 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5890 func_append dlfiles " $pic_object"
5891 prev=
5892 continue
5893 else
5894 # If libtool objects are unsupported, then we need to preload.
5895 prev=dlprefiles
5896 fi
5897 fi
5898
5899 # CHECK ME: I think I busted this. -Ossama
5900 if test "$prev" = dlprefiles; then
5901 # Preload the old-style object.
5902 func_append dlprefiles " $pic_object"
5903 prev=
5904 fi
5905
5906 # A PIC object.
5907 func_append libobjs " $pic_object"
5908 arg="$pic_object"
5909 fi
5910
5911 # Non-PIC object.
5912 if test "$non_pic_object" != none; then
5913 # Prepend the subdirectory the object is found in.
5914 non_pic_object="$xdir$non_pic_object"
5915
5916 # A standard non-PIC object
5917 func_append non_pic_objects " $non_pic_object"
5918 if test -z "$pic_object" || test "$pic_object" = none ; then
5919 arg="$non_pic_object"
5920 fi
5921 else
5922 # If the PIC object exists, use it instead.
5923 # $xdir was prepended to $pic_object above.
5924 non_pic_object="$pic_object"
5925 func_append non_pic_objects " $non_pic_object"
5926 fi
5927 else
5928 # Only an error if not doing a dry-run.
5929 if $opt_dry_run; then
5930 # Extract subdirectory from the argument.
5931 func_dirname "$arg" "/" ""
5932 xdir="$func_dirname_result"
5933
5934 func_lo2o "$arg"
5935 pic_object=$xdir$objdir/$func_lo2o_result
5936 non_pic_object=$xdir$func_lo2o_result
5937 func_append libobjs " $pic_object"
5938 func_append non_pic_objects " $non_pic_object"
5939 else
5940 func_fatal_error "\`$arg' is not a valid libtool object"
5941 fi
5942 fi
5943 ;;
5944
5945 *.$libext)
5946 # An archive.
5947 func_append deplibs " $arg"
5948 func_append old_deplibs " $arg"
5949 continue
5950 ;;
5951
5952 *.la)
5953 # A libtool-controlled library.
5954
5955 func_resolve_sysroot "$arg"
5956 if test "$prev" = dlfiles; then
5957 # This library was specified with -dlopen.
5958 func_append dlfiles " $func_resolve_sysroot_result"
5959 prev=
5960 elif test "$prev" = dlprefiles; then
5961 # The library was specified with -dlpreopen.
5962 func_append dlprefiles " $func_resolve_sysroot_result"
5963 prev=
5964 else
5965 func_append deplibs " $func_resolve_sysroot_result"
5966 fi
5967 continue
5968 ;;
5969
5970 # Some other compiler argument.
5971 *)
5972 # Unknown arguments in both finalize_command and compile_command need
5973 # to be aesthetically quoted because they are evaled later.
5974 func_quote_for_eval "$arg"
5975 arg="$func_quote_for_eval_result"
5976 ;;
5977 esac # arg
5978
5979 # Now actually substitute the argument into the commands.
5980 if test -n "$arg"; then
5981 func_append compile_command " $arg"
5982 func_append finalize_command " $arg"
5983 fi
5984 done # argument parsing loop
5985
5986 test -n "$prev" && \
5987 func_fatal_help "the \`$prevarg' option requires an argument"
5988
5989 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
5990 eval arg=\"$export_dynamic_flag_spec\"
5991 func_append compile_command " $arg"
5992 func_append finalize_command " $arg"
5993 fi
5994
5995 oldlibs=
5996 # calculate the name of the file, without its directory
5997 func_basename "$output"
5998 outputname="$func_basename_result"
5999 libobjs_save="$libobjs"
6000
6001 if test -n "$shlibpath_var"; then
6002 # get the directories listed in $shlibpath_var
6003 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
6004 else
6005 shlib_search_path=
6006 fi
6007 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
6008 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
6009
6010 func_dirname "$output" "/" ""
6011 output_objdir="$func_dirname_result$objdir"
6012 func_to_tool_file "$output_objdir/"
6013 tool_output_objdir=$func_to_tool_file_result
6014 # Create the object directory.
6015 func_mkdir_p "$output_objdir"
6016
6017 # Determine the type of output
6018 case $output in
6019 "")
6020 func_fatal_help "you must specify an output file"
6021 ;;
6022 *.$libext) linkmode=oldlib ;;
6023 *.lo | *.$objext) linkmode=obj ;;
6024 *.la) linkmode=lib ;;
6025 *) linkmode=prog ;; # Anything else should be a program.
6026 esac
6027
6028 specialdeplibs=
6029
6030 libs=
6031 # Find all interdependent deplibs by searching for libraries
6032 # that are linked more than once (e.g. -la -lb -la)
6033 for deplib in $deplibs; do
6034 if $opt_preserve_dup_deps ; then
6035 case "$libs " in
6036 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6037 esac
6038 fi
6039 func_append libs " $deplib"
6040 done
6041
6042 if test "$linkmode" = lib; then
6043 libs="$predeps $libs $compiler_lib_search_path $postdeps"
6044
6045 # Compute libraries that are listed more than once in $predeps
6046 # $postdeps and mark them as special (i.e., whose duplicates are
6047 # not to be eliminated).
6048 pre_post_deps=
6049 if $opt_duplicate_compiler_generated_deps; then
6050 for pre_post_dep in $predeps $postdeps; do
6051 case "$pre_post_deps " in
6052 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
6053 esac
6054 func_append pre_post_deps " $pre_post_dep"
6055 done
6056 fi
6057 pre_post_deps=
6058 fi
6059
6060 deplibs=
6061 newdependency_libs=
6062 newlib_search_path=
6063 need_relink=no # whether we're linking any uninstalled libtool libraries
6064 notinst_deplibs= # not-installed libtool libraries
6065 notinst_path= # paths that contain not-installed libtool libraries
6066
6067 case $linkmode in
6068 lib)
6069 passes="conv dlpreopen link"
6070 for file in $dlfiles $dlprefiles; do
6071 case $file in
6072 *.la) ;;
6073 *)
6074 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
6075 ;;
6076 esac
6077 done
6078 ;;
6079 prog)
6080 compile_deplibs=
6081 finalize_deplibs=
6082 alldeplibs=no
6083 newdlfiles=
6084 newdlprefiles=
6085 passes="conv scan dlopen dlpreopen link"
6086 ;;
6087 *) passes="conv"
6088 ;;
6089 esac
6090
6091 for pass in $passes; do
6092 # The preopen pass in lib mode reverses $deplibs; put it back here
6093 # so that -L comes before libs that need it for instance...
6094 if test "$linkmode,$pass" = "lib,link"; then
6095 ## FIXME: Find the place where the list is rebuilt in the wrong
6096 ## order, and fix it there properly
6097 tmp_deplibs=
6098 for deplib in $deplibs; do
6099 tmp_deplibs="$deplib $tmp_deplibs"
6100 done
6101 deplibs="$tmp_deplibs"
6102 fi
6103
6104 if test "$linkmode,$pass" = "lib,link" ||
6105 test "$linkmode,$pass" = "prog,scan"; then
6106 libs="$deplibs"
6107 deplibs=
6108 fi
6109 if test "$linkmode" = prog; then
6110 case $pass in
6111 dlopen) libs="$dlfiles" ;;
6112 dlpreopen) libs="$dlprefiles" ;;
6113 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
6114 esac
6115 fi
6116 if test "$linkmode,$pass" = "lib,dlpreopen"; then
6117 # Collect and forward deplibs of preopened libtool libs
6118 for lib in $dlprefiles; do
6119 # Ignore non-libtool-libs
6120 dependency_libs=
6121 func_resolve_sysroot "$lib"
6122 case $lib in
6123 *.la) func_source "$func_resolve_sysroot_result" ;;
6124 esac
6125
6126 # Collect preopened libtool deplibs, except any this library
6127 # has declared as weak libs
6128 for deplib in $dependency_libs; do
6129 func_basename "$deplib"
6130 deplib_base=$func_basename_result
6131 case " $weak_libs " in
6132 *" $deplib_base "*) ;;
6133 *) func_append deplibs " $deplib" ;;
6134 esac
6135 done
6136 done
6137 libs="$dlprefiles"
6138 fi
6139 if test "$pass" = dlopen; then
6140 # Collect dlpreopened libraries
6141 save_deplibs="$deplibs"
6142 deplibs=
6143 fi
6144
6145 for deplib in $libs; do
6146 lib=
6147 found=no
6148 case $deplib in
6149 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6150 if test "$linkmode,$pass" = "prog,link"; then
6151 compile_deplibs="$deplib $compile_deplibs"
6152 finalize_deplibs="$deplib $finalize_deplibs"
6153 else
6154 func_append compiler_flags " $deplib"
6155 if test "$linkmode" = lib ; then
6156 case "$new_inherited_linker_flags " in
6157 *" $deplib "*) ;;
6158 * ) func_append new_inherited_linker_flags " $deplib" ;;
6159 esac
6160 fi
6161 fi
6162 continue
6163 ;;
6164 -l*)
6165 if test "$linkmode" != lib && test "$linkmode" != prog; then
6166 func_warning "\`-l' is ignored for archives/objects"
6167 continue
6168 fi
6169 func_stripname '-l' '' "$deplib"
6170 name=$func_stripname_result
6171 if test "$linkmode" = lib; then
6172 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
6173 else
6174 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
6175 fi
6176 for searchdir in $searchdirs; do
6177 for search_ext in .la $std_shrext .so .a; do
6178 # Search the libtool library
6179 lib="$searchdir/lib${name}${search_ext}"
6180 if test -f "$lib"; then
6181 if test "$search_ext" = ".la"; then
6182 found=yes
6183 else
6184 found=no
6185 fi
6186 break 2
6187 fi
6188 done
6189 done
6190 if test "$found" != yes; then
6191 # deplib doesn't seem to be a libtool library
6192 if test "$linkmode,$pass" = "prog,link"; then
6193 compile_deplibs="$deplib $compile_deplibs"
6194 finalize_deplibs="$deplib $finalize_deplibs"
6195 else
6196 deplibs="$deplib $deplibs"
6197 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6198 fi
6199 continue
6200 else # deplib is a libtool library
6201 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
6202 # We need to do some special things here, and not later.
6203 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
6204 case " $predeps $postdeps " in
6205 *" $deplib "*)
6206 if func_lalib_p "$lib"; then
6207 library_names=
6208 old_library=
6209 func_source "$lib"
6210 for l in $old_library $library_names; do
6211 ll="$l"
6212 done
6213 if test "X$ll" = "X$old_library" ; then # only static version available
6214 found=no
6215 func_dirname "$lib" "" "."
6216 ladir="$func_dirname_result"
6217 lib=$ladir/$old_library
6218 if test "$linkmode,$pass" = "prog,link"; then
6219 compile_deplibs="$deplib $compile_deplibs"
6220 finalize_deplibs="$deplib $finalize_deplibs"
6221 else
6222 deplibs="$deplib $deplibs"
6223 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6224 fi
6225 continue
6226 fi
6227 fi
6228 ;;
6229 *) ;;
6230 esac
6231 fi
6232 fi
6233 ;; # -l
6234 *.ltframework)
6235 if test "$linkmode,$pass" = "prog,link"; then
6236 compile_deplibs="$deplib $compile_deplibs"
6237 finalize_deplibs="$deplib $finalize_deplibs"
6238 else
6239 deplibs="$deplib $deplibs"
6240 if test "$linkmode" = lib ; then
6241 case "$new_inherited_linker_flags " in
6242 *" $deplib "*) ;;
6243 * ) func_append new_inherited_linker_flags " $deplib" ;;
6244 esac
6245 fi
6246 fi
6247 continue
6248 ;;
6249 -L*)
6250 case $linkmode in
6251 lib)
6252 deplibs="$deplib $deplibs"
6253 test "$pass" = conv && continue
6254 newdependency_libs="$deplib $newdependency_libs"
6255 func_stripname '-L' '' "$deplib"
6256 func_resolve_sysroot "$func_stripname_result"
6257 func_append newlib_search_path " $func_resolve_sysroot_result"
6258 ;;
6259 prog)
6260 if test "$pass" = conv; then
6261 deplibs="$deplib $deplibs"
6262 continue
6263 fi
6264 if test "$pass" = scan; then
6265 deplibs="$deplib $deplibs"
6266 else
6267 compile_deplibs="$deplib $compile_deplibs"
6268 finalize_deplibs="$deplib $finalize_deplibs"
6269 fi
6270 func_stripname '-L' '' "$deplib"
6271 func_resolve_sysroot "$func_stripname_result"
6272 func_append newlib_search_path " $func_resolve_sysroot_result"
6273 ;;
6274 *)
6275 func_warning "\`-L' is ignored for archives/objects"
6276 ;;
6277 esac # linkmode
6278 continue
6279 ;; # -L
6280 -R*)
6281 if test "$pass" = link; then
6282 func_stripname '-R' '' "$deplib"
6283 func_resolve_sysroot "$func_stripname_result"
6284 dir=$func_resolve_sysroot_result
6285 # Make sure the xrpath contains only unique directories.
6286 case "$xrpath " in
6287 *" $dir "*) ;;
6288 *) func_append xrpath " $dir" ;;
6289 esac
6290 fi
6291 deplibs="$deplib $deplibs"
6292 continue
6293 ;;
6294 *.la)
6295 func_resolve_sysroot "$deplib"
6296 lib=$func_resolve_sysroot_result
6297 ;;
6298 *.$libext)
6299 if test "$pass" = conv; then
6300 deplibs="$deplib $deplibs"
6301 continue
6302 fi
6303 case $linkmode in
6304 lib)
6305 # Linking convenience modules into shared libraries is allowed,
6306 # but linking other static libraries is non-portable.
6307 case " $dlpreconveniencelibs " in
6308 *" $deplib "*) ;;
6309 *)
6310 valid_a_lib=no
6311 case $deplibs_check_method in
6312 match_pattern*)
6313 set dummy $deplibs_check_method; shift
6314 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
6315 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
6316 | $EGREP "$match_pattern_regex" > /dev/null; then
6317 valid_a_lib=yes
6318 fi
6319 ;;
6320 pass_all)
6321 valid_a_lib=yes
6322 ;;
6323 esac
6324 if test "$valid_a_lib" != yes; then
6325 echo
6326 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
6327 echo "*** I have the capability to make that library automatically link in when"
6328 echo "*** you link to this library. But I can only do this if you have a"
6329 echo "*** shared version of the library, which you do not appear to have"
6330 echo "*** because the file extensions .$libext of this argument makes me believe"
6331 echo "*** that it is just a static archive that I should not use here."
6332 else
6333 echo
6334 $ECHO "*** Warning: Linking the shared library $output against the"
6335 $ECHO "*** static library $deplib is not portable!"
6336 deplibs="$deplib $deplibs"
6337 fi
6338 ;;
6339 esac
6340 continue
6341 ;;
6342 prog)
6343 if test "$pass" != link; then
6344 deplibs="$deplib $deplibs"
6345 else
6346 compile_deplibs="$deplib $compile_deplibs"
6347 finalize_deplibs="$deplib $finalize_deplibs"
6348 fi
6349 continue
6350 ;;
6351 esac # linkmode
6352 ;; # *.$libext
6353 *.lo | *.$objext)
6354 if test "$pass" = conv; then
6355 deplibs="$deplib $deplibs"
6356 elif test "$linkmode" = prog; then
6357 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
6358 # If there is no dlopen support or we're linking statically,
6359 # we need to preload.
6360 func_append newdlprefiles " $deplib"
6361 compile_deplibs="$deplib $compile_deplibs"
6362 finalize_deplibs="$deplib $finalize_deplibs"
6363 else
6364 func_append newdlfiles " $deplib"
6365 fi
6366 fi
6367 continue
6368 ;;
6369 %DEPLIBS%)
6370 alldeplibs=yes
6371 continue
6372 ;;
6373 esac # case $deplib
6374
6375 if test "$found" = yes || test -f "$lib"; then :
6376 else
6377 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6378 fi
6379
6380 # Check to see that this really is a libtool archive.
6381 func_lalib_unsafe_p "$lib" \
6382 || func_fatal_error "\`$lib' is not a valid libtool archive"
6383
6384 func_dirname "$lib" "" "."
6385 ladir="$func_dirname_result"
6386
6387 dlname=
6388 dlopen=
6389 dlpreopen=
6390 libdir=
6391 library_names=
6392 old_library=
6393 inherited_linker_flags=
6394 # If the library was installed with an old release of libtool,
6395 # it will not redefine variables installed, or shouldnotlink
6396 installed=yes
6397 shouldnotlink=no
6398 avoidtemprpath=
6399
6400
6401 # Read the .la file
6402 func_source "$lib"
6403
6404 # Convert "-framework foo" to "foo.ltframework"
6405 if test -n "$inherited_linker_flags"; then
6406 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
6407 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
6408 case " $new_inherited_linker_flags " in
6409 *" $tmp_inherited_linker_flag "*) ;;
6410 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
6411 esac
6412 done
6413 fi
6414 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6415 if test "$linkmode,$pass" = "lib,link" ||
6416 test "$linkmode,$pass" = "prog,scan" ||
6417 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
6418 test -n "$dlopen" && func_append dlfiles " $dlopen"
6419 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
6420 fi
6421
6422 if test "$pass" = conv; then
6423 # Only check for convenience libraries
6424 deplibs="$lib $deplibs"
6425 if test -z "$libdir"; then
6426 if test -z "$old_library"; then
6427 func_fatal_error "cannot find name of link library for \`$lib'"
6428 fi
6429 # It is a libtool convenience library, so add in its objects.
6430 func_append convenience " $ladir/$objdir/$old_library"
6431 func_append old_convenience " $ladir/$objdir/$old_library"
6432 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6433 func_fatal_error "\`$lib' is not a convenience library"
6434 fi
6435 tmp_libs=
6436 for deplib in $dependency_libs; do
6437 deplibs="$deplib $deplibs"
6438 if $opt_preserve_dup_deps ; then
6439 case "$tmp_libs " in
6440 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6441 esac
6442 fi
6443 func_append tmp_libs " $deplib"
6444 done
6445 continue
6446 fi # $pass = conv
6447
6448
6449 # Get the name of the library we link against.
6450 linklib=
6451 if test -n "$old_library" &&
6452 { test "$prefer_static_libs" = yes ||
6453 test "$prefer_static_libs,$installed" = "built,no"; }; then
6454 linklib=$old_library
6455 else
6456 for l in $old_library $library_names; do
6457 linklib="$l"
6458 done
6459 fi
6460 if test -z "$linklib"; then
6461 func_fatal_error "cannot find name of link library for \`$lib'"
6462 fi
6463
6464 # This library was specified with -dlopen.
6465 if test "$pass" = dlopen; then
6466 if test -z "$libdir"; then
6467 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6468 fi
6469 if test -z "$dlname" ||
6470 test "$dlopen_support" != yes ||
6471 test "$build_libtool_libs" = no; then
6472 # If there is no dlname, no dlopen support or we're linking
6473 # statically, we need to preload. We also need to preload any
6474 # dependent libraries so libltdl's deplib preloader doesn't
6475 # bomb out in the load deplibs phase.
6476 func_append dlprefiles " $lib $dependency_libs"
6477 else
6478 func_append newdlfiles " $lib"
6479 fi
6480 continue
6481 fi # $pass = dlopen
6482
6483 # We need an absolute path.
6484 case $ladir in
6485 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
6486 *)
6487 abs_ladir=`cd "$ladir" && pwd`
6488 if test -z "$abs_ladir"; then
6489 func_warning "cannot determine absolute directory name of \`$ladir'"
6490 func_warning "passing it literally to the linker, although it might fail"
6491 abs_ladir="$ladir"
6492 fi
6493 ;;
6494 esac
6495 func_basename "$lib"
6496 laname="$func_basename_result"
6497
6498 # Find the relevant object directory and library name.
6499 if test "X$installed" = Xyes; then
6500 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6501 func_warning "library \`$lib' was moved."
6502 dir="$ladir"
6503 absdir="$abs_ladir"
6504 libdir="$abs_ladir"
6505 else
6506 dir="$lt_sysroot$libdir"
6507 absdir="$lt_sysroot$libdir"
6508 fi
6509 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
6510 else
6511 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6512 dir="$ladir"
6513 absdir="$abs_ladir"
6514 # Remove this search path later
6515 func_append notinst_path " $abs_ladir"
6516 else
6517 dir="$ladir/$objdir"
6518 absdir="$abs_ladir/$objdir"
6519 # Remove this search path later
6520 func_append notinst_path " $abs_ladir"
6521 fi
6522 fi # $installed = yes
6523 func_stripname 'lib' '.la' "$laname"
6524 name=$func_stripname_result
6525
6526 # This library was specified with -dlpreopen.
6527 if test "$pass" = dlpreopen; then
6528 if test -z "$libdir" && test "$linkmode" = prog; then
6529 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
6530 fi
6531 case "$host" in
6532 # special handling for platforms with PE-DLLs.
6533 *cygwin* | *mingw* | *cegcc* )
6534 # Linker will automatically link against shared library if both
6535 # static and shared are present. Therefore, ensure we extract
6536 # symbols from the import library if a shared library is present
6537 # (otherwise, the dlopen module name will be incorrect). We do
6538 # this by putting the import library name into $newdlprefiles.
6539 # We recover the dlopen module name by 'saving' the la file
6540 # name in a special purpose variable, and (later) extracting the
6541 # dlname from the la file.
6542 if test -n "$dlname"; then
6543 func_tr_sh "$dir/$linklib"
6544 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6545 func_append newdlprefiles " $dir/$linklib"
6546 else
6547 func_append newdlprefiles " $dir/$old_library"
6548 # Keep a list of preopened convenience libraries to check
6549 # that they are being used correctly in the link pass.
6550 test -z "$libdir" && \
6551 func_append dlpreconveniencelibs " $dir/$old_library"
6552 fi
6553 ;;
6554 * )
6555 # Prefer using a static library (so that no silly _DYNAMIC symbols
6556 # are required to link).
6557 if test -n "$old_library"; then
6558 func_append newdlprefiles " $dir/$old_library"
6559 # Keep a list of preopened convenience libraries to check
6560 # that they are being used correctly in the link pass.
6561 test -z "$libdir" && \
6562 func_append dlpreconveniencelibs " $dir/$old_library"
6563 # Otherwise, use the dlname, so that lt_dlopen finds it.
6564 elif test -n "$dlname"; then
6565 func_append newdlprefiles " $dir/$dlname"
6566 else
6567 func_append newdlprefiles " $dir/$linklib"
6568 fi
6569 ;;
6570 esac
6571 fi # $pass = dlpreopen
6572
6573 if test -z "$libdir"; then
6574 # Link the convenience library
6575 if test "$linkmode" = lib; then
6576 deplibs="$dir/$old_library $deplibs"
6577 elif test "$linkmode,$pass" = "prog,link"; then
6578 compile_deplibs="$dir/$old_library $compile_deplibs"
6579 finalize_deplibs="$dir/$old_library $finalize_deplibs"
6580 else
6581 deplibs="$lib $deplibs" # used for prog,scan pass
6582 fi
6583 continue
6584 fi
6585
6586
6587 if test "$linkmode" = prog && test "$pass" != link; then
6588 func_append newlib_search_path " $ladir"
6589 deplibs="$lib $deplibs"
6590
6591 linkalldeplibs=no
6592 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6593 test "$build_libtool_libs" = no; then
6594 linkalldeplibs=yes
6595 fi
6596
6597 tmp_libs=
6598 for deplib in $dependency_libs; do
6599 case $deplib in
6600 -L*) func_stripname '-L' '' "$deplib"
6601 func_resolve_sysroot "$func_stripname_result"
6602 func_append newlib_search_path " $func_resolve_sysroot_result"
6603 ;;
6604 esac
6605 # Need to link against all dependency_libs?
6606 if test "$linkalldeplibs" = yes; then
6607 deplibs="$deplib $deplibs"
6608 else
6609 # Need to hardcode shared library paths
6610 # or/and link against static libraries
6611 newdependency_libs="$deplib $newdependency_libs"
6612 fi
6613 if $opt_preserve_dup_deps ; then
6614 case "$tmp_libs " in
6615 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
6616 esac
6617 fi
6618 func_append tmp_libs " $deplib"
6619 done # for deplib
6620 continue
6621 fi # $linkmode = prog...
6622
6623 if test "$linkmode,$pass" = "prog,link"; then
6624 if test -n "$library_names" &&
6625 { { test "$prefer_static_libs" = no ||
6626 test "$prefer_static_libs,$installed" = "built,yes"; } ||
6627 test -z "$old_library"; }; then
6628 # We need to hardcode the library path
6629 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
6630 # Make sure the rpath contains only unique directories.
6631 case "$temp_rpath:" in
6632 *"$absdir:"*) ;;
6633 *) func_append temp_rpath "$absdir:" ;;
6634 esac
6635 fi
6636
6637 # Hardcode the library path.
6638 # Skip directories that are in the system default run-time
6639 # search path.
6640 case " $sys_lib_dlsearch_path " in
6641 *" $absdir "*) ;;
6642 *)
6643 case "$compile_rpath " in
6644 *" $absdir "*) ;;
6645 *) func_append compile_rpath " $absdir" ;;
6646 esac
6647 ;;
6648 esac
6649 case " $sys_lib_dlsearch_path " in
6650 *" $libdir "*) ;;
6651 *)
6652 case "$finalize_rpath " in
6653 *" $libdir "*) ;;
6654 *) func_append finalize_rpath " $libdir" ;;
6655 esac
6656 ;;
6657 esac
6658 fi # $linkmode,$pass = prog,link...
6659
6660 if test "$alldeplibs" = yes &&
6661 { test "$deplibs_check_method" = pass_all ||
6662 { test "$build_libtool_libs" = yes &&
6663 test -n "$library_names"; }; }; then
6664 # We only need to search for static libraries
6665 continue
6666 fi
6667 fi
6668
6669 link_static=no # Whether the deplib will be linked statically
6670 use_static_libs=$prefer_static_libs
6671 if test "$use_static_libs" = built && test "$installed" = yes; then
6672 use_static_libs=no
6673 fi
6674 if test -n "$library_names" &&
6675 { test "$use_static_libs" = no || test -z "$old_library"; }; then
6676 case $host in
6677 *cygwin* | *mingw* | *cegcc*)
6678 # No point in relinking DLLs because paths are not encoded
6679 func_append notinst_deplibs " $lib"
6680 need_relink=no
6681 ;;
6682 *)
6683 if test "$installed" = no; then
6684 func_append notinst_deplibs " $lib"
6685 need_relink=yes
6686 fi
6687 ;;
6688 esac
6689 # This is a shared library
6690
6691 # Warn about portability, can't link against -module's on some
6692 # systems (darwin). Don't bleat about dlopened modules though!
6693 dlopenmodule=""
6694 for dlpremoduletest in $dlprefiles; do
6695 if test "X$dlpremoduletest" = "X$lib"; then
6696 dlopenmodule="$dlpremoduletest"
6697 break
6698 fi
6699 done
6700 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
6701 echo
6702 if test "$linkmode" = prog; then
6703 $ECHO "*** Warning: Linking the executable $output against the loadable module"
6704 else
6705 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
6706 fi
6707 $ECHO "*** $linklib is not portable!"
6708 fi
6709 if test "$linkmode" = lib &&
6710 test "$hardcode_into_libs" = yes; then
6711 # Hardcode the library path.
6712 # Skip directories that are in the system default run-time
6713 # search path.
6714 case " $sys_lib_dlsearch_path " in
6715 *" $absdir "*) ;;
6716 *)
6717 case "$compile_rpath " in
6718 *" $absdir "*) ;;
6719 *) func_append compile_rpath " $absdir" ;;
6720 esac
6721 ;;
6722 esac
6723 case " $sys_lib_dlsearch_path " in
6724 *" $libdir "*) ;;
6725 *)
6726 case "$finalize_rpath " in
6727 *" $libdir "*) ;;
6728 *) func_append finalize_rpath " $libdir" ;;
6729 esac
6730 ;;
6731 esac
6732 fi
6733
6734 if test -n "$old_archive_from_expsyms_cmds"; then
6735 # figure out the soname
6736 set dummy $library_names
6737 shift
6738 realname="$1"
6739 shift
6740 libname=`eval "\\$ECHO \"$libname_spec\""`
6741 # use dlname if we got it. it's perfectly good, no?
6742 if test -n "$dlname"; then
6743 soname="$dlname"
6744 elif test -n "$soname_spec"; then
6745 # bleh windows
6746 case $host in
6747 *cygwin* | mingw* | *cegcc*)
6748 func_arith $current - $age
6749 major=$func_arith_result
6750 versuffix="-$major"
6751 ;;
6752 esac
6753 eval soname=\"$soname_spec\"
6754 else
6755 soname="$realname"
6756 fi
6757
6758 # Make a new name for the extract_expsyms_cmds to use
6759 soroot="$soname"
6760 func_basename "$soroot"
6761 soname="$func_basename_result"
6762 func_stripname 'lib' '.dll' "$soname"
6763 newlib=libimp-$func_stripname_result.a
6764
6765 # If the library has no export list, then create one now
6766 if test -f "$output_objdir/$soname-def"; then :
6767 else
6768 func_verbose "extracting exported symbol list from \`$soname'"
6769 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
6770 fi
6771
6772 # Create $newlib
6773 if test -f "$output_objdir/$newlib"; then :; else
6774 func_verbose "generating import library for \`$soname'"
6775 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
6776 fi
6777 # make sure the library variables are pointing to the new library
6778 dir=$output_objdir
6779 linklib=$newlib
6780 fi # test -n "$old_archive_from_expsyms_cmds"
6781
6782 if test "$linkmode" = prog || test "$opt_mode" != relink; then
6783 add_shlibpath=
6784 add_dir=
6785 add=
6786 lib_linked=yes
6787 case $hardcode_action in
6788 immediate | unsupported)
6789 if test "$hardcode_direct" = no; then
6790 add="$dir/$linklib"
6791 case $host in
6792 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6793 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
6794 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6795 *-*-unixware7*) add_dir="-L$dir" ;;
6796 *-*-darwin* )
6797 # if the lib is a (non-dlopened) module then we can not
6798 # link against it, someone is ignoring the earlier warnings
6799 if /usr/bin/file -L $add 2> /dev/null |
6800 $GREP ": [^:]* bundle" >/dev/null ; then
6801 if test "X$dlopenmodule" != "X$lib"; then
6802 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6803 if test -z "$old_library" ; then
6804 echo
6805 echo "*** And there doesn't seem to be a static archive available"
6806 echo "*** The link will probably fail, sorry"
6807 else
6808 add="$dir/$old_library"
6809 fi
6810 elif test -n "$old_library"; then
6811 add="$dir/$old_library"
6812 fi
6813 fi
6814 esac
6815 elif test "$hardcode_minus_L" = no; then
6816 case $host in
6817 *-*-sunos*) add_shlibpath="$dir" ;;
6818 esac
6819 add_dir="-L$dir"
6820 add="-l$name"
6821 elif test "$hardcode_shlibpath_var" = no; then
6822 add_shlibpath="$dir"
6823 add="-l$name"
6824 else
6825 lib_linked=no
6826 fi
6827 ;;
6828 relink)
6829 if test "$hardcode_direct" = yes &&
6830 test "$hardcode_direct_absolute" = no; then
6831 add="$dir/$linklib"
6832 elif test "$hardcode_minus_L" = yes; then
6833 add_dir="-L$dir"
6834 # Try looking first in the location we're being installed to.
6835 if test -n "$inst_prefix_dir"; then
6836 case $libdir in
6837 [\\/]*)
6838 func_append add_dir " -L$inst_prefix_dir$libdir"
6839 ;;
6840 esac
6841 fi
6842 add="-l$name"
6843 elif test "$hardcode_shlibpath_var" = yes; then
6844 add_shlibpath="$dir"
6845 add="-l$name"
6846 else
6847 lib_linked=no
6848 fi
6849 ;;
6850 *) lib_linked=no ;;
6851 esac
6852
6853 if test "$lib_linked" != yes; then
6854 func_fatal_configuration "unsupported hardcode properties"
6855 fi
6856
6857 if test -n "$add_shlibpath"; then
6858 case :$compile_shlibpath: in
6859 *":$add_shlibpath:"*) ;;
6860 *) func_append compile_shlibpath "$add_shlibpath:" ;;
6861 esac
6862 fi
6863 if test "$linkmode" = prog; then
6864 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
6865 test -n "$add" && compile_deplibs="$add $compile_deplibs"
6866 else
6867 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6868 test -n "$add" && deplibs="$add $deplibs"
6869 if test "$hardcode_direct" != yes &&
6870 test "$hardcode_minus_L" != yes &&
6871 test "$hardcode_shlibpath_var" = yes; then
6872 case :$finalize_shlibpath: in
6873 *":$libdir:"*) ;;
6874 *) func_append finalize_shlibpath "$libdir:" ;;
6875 esac
6876 fi
6877 fi
6878 fi
6879
6880 if test "$linkmode" = prog || test "$opt_mode" = relink; then
6881 add_shlibpath=
6882 add_dir=
6883 add=
6884 # Finalize command for both is simple: just hardcode it.
6885 if test "$hardcode_direct" = yes &&
6886 test "$hardcode_direct_absolute" = no; then
6887 add="$libdir/$linklib"
6888 elif test "$hardcode_minus_L" = yes; then
6889 add_dir="-L$libdir"
6890 add="-l$name"
6891 elif test "$hardcode_shlibpath_var" = yes; then
6892 case :$finalize_shlibpath: in
6893 *":$libdir:"*) ;;
6894 *) func_append finalize_shlibpath "$libdir:" ;;
6895 esac
6896 add="-l$name"
6897 elif test "$hardcode_automatic" = yes; then
6898 if test -n "$inst_prefix_dir" &&
6899 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6900 add="$inst_prefix_dir$libdir/$linklib"
6901 else
6902 add="$libdir/$linklib"
6903 fi
6904 else
6905 # We cannot seem to hardcode it, guess we'll fake it.
6906 add_dir="-L$libdir"
6907 # Try looking first in the location we're being installed to.
6908 if test -n "$inst_prefix_dir"; then
6909 case $libdir in
6910 [\\/]*)
6911 func_append add_dir " -L$inst_prefix_dir$libdir"
6912 ;;
6913 esac
6914 fi
6915 add="-l$name"
6916 fi
6917
6918 if test "$linkmode" = prog; then
6919 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
6920 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
6921 else
6922 test -n "$add_dir" && deplibs="$add_dir $deplibs"
6923 test -n "$add" && deplibs="$add $deplibs"
6924 fi
6925 fi
6926 elif test "$linkmode" = prog; then
6927 # Here we assume that one of hardcode_direct or hardcode_minus_L
6928 # is not unsupported. This is valid on all known static and
6929 # shared platforms.
6930 if test "$hardcode_direct" != unsupported; then
6931 test -n "$old_library" && linklib="$old_library"
6932 compile_deplibs="$dir/$linklib $compile_deplibs"
6933 finalize_deplibs="$dir/$linklib $finalize_deplibs"
6934 else
6935 compile_deplibs="-l$name -L$dir $compile_deplibs"
6936 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
6937 fi
6938 elif test "$build_libtool_libs" = yes; then
6939 # Not a shared library
6940 if test "$deplibs_check_method" != pass_all; then
6941 # We're trying link a shared library against a static one
6942 # but the system doesn't support it.
6943
6944 # Just print a warning and add the library to dependency_libs so
6945 # that the program can be linked against the static library.
6946 echo
6947 $ECHO "*** Warning: This system can not link to static lib archive $lib."
6948 echo "*** I have the capability to make that library automatically link in when"
6949 echo "*** you link to this library. But I can only do this if you have a"
6950 echo "*** shared version of the library, which you do not appear to have."
6951 if test "$module" = yes; then
6952 echo "*** But as you try to build a module library, libtool will still create "
6953 echo "*** a static module, that should work as long as the dlopening application"
6954 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
6955 if test -z "$global_symbol_pipe"; then
6956 echo
6957 echo "*** However, this would only work if libtool was able to extract symbol"
6958 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6959 echo "*** not find such a program. So, this module is probably useless."
6960 echo "*** \`nm' from GNU binutils and a full rebuild may help."
6961 fi
6962 if test "$build_old_libs" = no; then
6963 build_libtool_libs=module
6964 build_old_libs=yes
6965 else
6966 build_libtool_libs=no
6967 fi
6968 fi
6969 else
6970 deplibs="$dir/$old_library $deplibs"
6971 link_static=yes
6972 fi
6973 fi # link shared/static library?
6974
6975 if test "$linkmode" = lib; then
6976 if test -n "$dependency_libs" &&
6977 { test "$hardcode_into_libs" != yes ||
6978 test "$build_old_libs" = yes ||
6979 test "$link_static" = yes; }; then
6980 # Extract -R from dependency_libs
6981 temp_deplibs=
6982 for libdir in $dependency_libs; do
6983 case $libdir in
6984 -R*) func_stripname '-R' '' "$libdir"
6985 temp_xrpath=$func_stripname_result
6986 case " $xrpath " in
6987 *" $temp_xrpath "*) ;;
6988 *) func_append xrpath " $temp_xrpath";;
6989 esac;;
6990 *) func_append temp_deplibs " $libdir";;
6991 esac
6992 done
6993 dependency_libs="$temp_deplibs"
6994 fi
6995
6996 func_append newlib_search_path " $absdir"
6997 # Link against this library
6998 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
6999 # ... and its dependency_libs
7000 tmp_libs=
7001 for deplib in $dependency_libs; do
7002 newdependency_libs="$deplib $newdependency_libs"
7003 case $deplib in
7004 -L*) func_stripname '-L' '' "$deplib"
7005 func_resolve_sysroot "$func_stripname_result";;
7006 *) func_resolve_sysroot "$deplib" ;;
7007 esac
7008 if $opt_preserve_dup_deps ; then
7009 case "$tmp_libs " in
7010 *" $func_resolve_sysroot_result "*)
7011 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
7012 esac
7013 fi
7014 func_append tmp_libs " $func_resolve_sysroot_result"
7015 done
7016
7017 if test "$link_all_deplibs" != no; then
7018 # Add the search paths of all dependency libraries
7019 for deplib in $dependency_libs; do
7020 path=
7021 case $deplib in
7022 -L*) path="$deplib" ;;
7023 *.la)
7024 func_resolve_sysroot "$deplib"
7025 deplib=$func_resolve_sysroot_result
7026 func_dirname "$deplib" "" "."
7027 dir=$func_dirname_result
7028 # We need an absolute path.
7029 case $dir in
7030 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
7031 *)
7032 absdir=`cd "$dir" && pwd`
7033 if test -z "$absdir"; then
7034 func_warning "cannot determine absolute directory name of \`$dir'"
7035 absdir="$dir"
7036 fi
7037 ;;
7038 esac
7039 if $GREP "^installed=no" $deplib > /dev/null; then
7040 case $host in
7041 *-*-darwin*)
7042 depdepl=
7043 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7044 if test -n "$deplibrary_names" ; then
7045 for tmp in $deplibrary_names ; do
7046 depdepl=$tmp
7047 done
7048 if test -f "$absdir/$objdir/$depdepl" ; then
7049 depdepl="$absdir/$objdir/$depdepl"
7050 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7051 if test -z "$darwin_install_name"; then
7052 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
7053 fi
7054 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7055 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
7056 path=
7057 fi
7058 fi
7059 ;;
7060 *)
7061 path="-L$absdir/$objdir"
7062 ;;
7063 esac
7064 else
7065 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
7066 test -z "$libdir" && \
7067 func_fatal_error "\`$deplib' is not a valid libtool archive"
7068 test "$absdir" != "$libdir" && \
7069 func_warning "\`$deplib' seems to be moved"
7070
7071 path="-L$absdir"
7072 fi
7073 ;;
7074 esac
7075 case " $deplibs " in
7076 *" $path "*) ;;
7077 *) deplibs="$path $deplibs" ;;
7078 esac
7079 done
7080 fi # link_all_deplibs != no
7081 fi # linkmode = lib
7082 done # for deplib in $libs
7083 if test "$pass" = link; then
7084 if test "$linkmode" = "prog"; then
7085 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
7086 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
7087 else
7088 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7089 fi
7090 fi
7091 dependency_libs="$newdependency_libs"
7092 if test "$pass" = dlpreopen; then
7093 # Link the dlpreopened libraries before other libraries
7094 for deplib in $save_deplibs; do
7095 deplibs="$deplib $deplibs"
7096 done
7097 fi
7098 if test "$pass" != dlopen; then
7099 if test "$pass" != conv; then
7100 # Make sure lib_search_path contains only unique directories.
7101 lib_search_path=
7102 for dir in $newlib_search_path; do
7103 case "$lib_search_path " in
7104 *" $dir "*) ;;
7105 *) func_append lib_search_path " $dir" ;;
7106 esac
7107 done
7108 newlib_search_path=
7109 fi
7110
7111 if test "$linkmode,$pass" != "prog,link"; then
7112 vars="deplibs"
7113 else
7114 vars="compile_deplibs finalize_deplibs"
7115 fi
7116 for var in $vars dependency_libs; do
7117 # Add libraries to $var in reverse order
7118 eval tmp_libs=\"\$$var\"
7119 new_libs=
7120 for deplib in $tmp_libs; do
7121 # FIXME: Pedantically, this is the right thing to do, so
7122 # that some nasty dependency loop isn't accidentally
7123 # broken:
7124 #new_libs="$deplib $new_libs"
7125 # Pragmatically, this seems to cause very few problems in
7126 # practice:
7127 case $deplib in
7128 -L*) new_libs="$deplib $new_libs" ;;
7129 -R*) ;;
7130 *)
7131 # And here is the reason: when a library appears more
7132 # than once as an explicit dependence of a library, or
7133 # is implicitly linked in more than once by the
7134 # compiler, it is considered special, and multiple
7135 # occurrences thereof are not removed. Compare this
7136 # with having the same library being listed as a
7137 # dependency of multiple other libraries: in this case,
7138 # we know (pedantically, we assume) the library does not
7139 # need to be listed more than once, so we keep only the
7140 # last copy. This is not always right, but it is rare
7141 # enough that we require users that really mean to play
7142 # such unportable linking tricks to link the library
7143 # using -Wl,-lname, so that libtool does not consider it
7144 # for duplicate removal.
7145 case " $specialdeplibs " in
7146 *" $deplib "*) new_libs="$deplib $new_libs" ;;
7147 *)
7148 case " $new_libs " in
7149 *" $deplib "*) ;;
7150 *) new_libs="$deplib $new_libs" ;;
7151 esac
7152 ;;
7153 esac
7154 ;;
7155 esac
7156 done
7157 tmp_libs=
7158 for deplib in $new_libs; do
7159 case $deplib in
7160 -L*)
7161 case " $tmp_libs " in
7162 *" $deplib "*) ;;
7163 *) func_append tmp_libs " $deplib" ;;
7164 esac
7165 ;;
7166 *) func_append tmp_libs " $deplib" ;;
7167 esac
7168 done
7169 eval $var=\"$tmp_libs\"
7170 done # for var
7171 fi
7172 # Last step: remove runtime libs from dependency_libs
7173 # (they stay in deplibs)
7174 tmp_libs=
7175 for i in $dependency_libs ; do
7176 case " $predeps $postdeps $compiler_lib_search_path " in
7177 *" $i "*)
7178 i=""
7179 ;;
7180 esac
7181 if test -n "$i" ; then
7182 func_append tmp_libs " $i"
7183 fi
7184 done
7185 dependency_libs=$tmp_libs
7186 done # for pass
7187 if test "$linkmode" = prog; then
7188 dlfiles="$newdlfiles"
7189 fi
7190 if test "$linkmode" = prog || test "$linkmode" = lib; then
7191 dlprefiles="$newdlprefiles"
7192 fi
7193
7194 case $linkmode in
7195 oldlib)
7196 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7197 func_warning "\`-dlopen' is ignored for archives"
7198 fi
7199
7200 case " $deplibs" in
7201 *\ -l* | *\ -L*)
7202 func_warning "\`-l' and \`-L' are ignored for archives" ;;
7203 esac
7204
7205 test -n "$rpath" && \
7206 func_warning "\`-rpath' is ignored for archives"
7207
7208 test -n "$xrpath" && \
7209 func_warning "\`-R' is ignored for archives"
7210
7211 test -n "$vinfo" && \
7212 func_warning "\`-version-info/-version-number' is ignored for archives"
7213
7214 test -n "$release" && \
7215 func_warning "\`-release' is ignored for archives"
7216
7217 test -n "$export_symbols$export_symbols_regex" && \
7218 func_warning "\`-export-symbols' is ignored for archives"
7219
7220 # Now set the variables for building old libraries.
7221 build_libtool_libs=no
7222 oldlibs="$output"
7223 func_append objs "$old_deplibs"
7224 ;;
7225
7226 lib)
7227 # Make sure we only generate libraries of the form `libNAME.la'.
7228 case $outputname in
7229 lib*)
7230 func_stripname 'lib' '.la' "$outputname"
7231 name=$func_stripname_result
7232 eval shared_ext=\"$shrext_cmds\"
7233 eval libname=\"$libname_spec\"
7234 ;;
7235 *)
7236 test "$module" = no && \
7237 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7238
7239 if test "$need_lib_prefix" != no; then
7240 # Add the "lib" prefix for modules if required
7241 func_stripname '' '.la' "$outputname"
7242 name=$func_stripname_result
7243 eval shared_ext=\"$shrext_cmds\"
7244 eval libname=\"$libname_spec\"
7245 else
7246 func_stripname '' '.la' "$outputname"
7247 libname=$func_stripname_result
7248 fi
7249 ;;
7250 esac
7251
7252 if test -n "$objs"; then
7253 if test "$deplibs_check_method" != pass_all; then
7254 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
7255 else
7256 echo
7257 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
7258 $ECHO "*** objects $objs is not portable!"
7259 func_append libobjs " $objs"
7260 fi
7261 fi
7262
7263 test "$dlself" != no && \
7264 func_warning "\`-dlopen self' is ignored for libtool libraries"
7265
7266 set dummy $rpath
7267 shift
7268 test "$#" -gt 1 && \
7269 func_warning "ignoring multiple \`-rpath's for a libtool library"
7270
7271 install_libdir="$1"
7272
7273 oldlibs=
7274 if test -z "$rpath"; then
7275 if test "$build_libtool_libs" = yes; then
7276 # Building a libtool convenience library.
7277 # Some compilers have problems with a `.al' extension so
7278 # convenience libraries should have the same extension an
7279 # archive normally would.
7280 oldlibs="$output_objdir/$libname.$libext $oldlibs"
7281 build_libtool_libs=convenience
7282 build_old_libs=yes
7283 fi
7284
7285 test -n "$vinfo" && \
7286 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
7287
7288 test -n "$release" && \
7289 func_warning "\`-release' is ignored for convenience libraries"
7290 else
7291
7292 # Parse the version information argument.
7293 save_ifs="$IFS"; IFS=':'
7294 set dummy $vinfo 0 0 0
7295 shift
7296 IFS="$save_ifs"
7297
7298 test -n "$7" && \
7299 func_fatal_help "too many parameters to \`-version-info'"
7300
7301 # convert absolute version numbers to libtool ages
7302 # this retains compatibility with .la files and attempts
7303 # to make the code below a bit more comprehensible
7304
7305 case $vinfo_number in
7306 yes)
7307 number_major="$1"
7308 number_minor="$2"
7309 number_revision="$3"
7310 #
7311 # There are really only two kinds -- those that
7312 # use the current revision as the major version
7313 # and those that subtract age and use age as
7314 # a minor version. But, then there is irix
7315 # which has an extra 1 added just for fun
7316 #
7317 case $version_type in
7318 darwin|linux|osf|windows|none)
7319 func_arith $number_major + $number_minor
7320 current=$func_arith_result
7321 age="$number_minor"
7322 revision="$number_revision"
7323 ;;
7324 freebsd-aout|freebsd-elf|qnx|sunos)
7325 current="$number_major"
7326 revision="$number_minor"
7327 age="0"
7328 ;;
7329 irix|nonstopux)
7330 func_arith $number_major + $number_minor
7331 current=$func_arith_result
7332 age="$number_minor"
7333 revision="$number_minor"
7334 lt_irix_increment=no
7335 ;;
7336 esac
7337 ;;
7338 no)
7339 current="$1"
7340 revision="$2"
7341 age="$3"
7342 ;;
7343 esac
7344
7345 # Check that each of the things are valid numbers.
7346 case $current in
7347 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7348 *)
7349 func_error "CURRENT \`$current' must be a nonnegative integer"
7350 func_fatal_error "\`$vinfo' is not valid version information"
7351 ;;
7352 esac
7353
7354 case $revision in
7355 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7356 *)
7357 func_error "REVISION \`$revision' must be a nonnegative integer"
7358 func_fatal_error "\`$vinfo' is not valid version information"
7359 ;;
7360 esac
7361
7362 case $age in
7363 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
7364 *)
7365 func_error "AGE \`$age' must be a nonnegative integer"
7366 func_fatal_error "\`$vinfo' is not valid version information"
7367 ;;
7368 esac
7369
7370 if test "$age" -gt "$current"; then
7371 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7372 func_fatal_error "\`$vinfo' is not valid version information"
7373 fi
7374
7375 # Calculate the version variables.
7376 major=
7377 versuffix=
7378 verstring=
7379 case $version_type in
7380 none) ;;
7381
7382 darwin)
7383 # Like Linux, but with the current version available in
7384 # verstring for coding it into the library header
7385 func_arith $current - $age
7386 major=.$func_arith_result
7387 versuffix="$major.$age.$revision"
7388 # Darwin ld doesn't like 0 for these options...
7389 func_arith $current + 1
7390 minor_current=$func_arith_result
7391 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
7392 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
7393 ;;
7394
7395 freebsd-aout)
7396 major=".$current"
7397 versuffix=".$current.$revision";
7398 ;;
7399
7400 freebsd-elf)
7401 major=".$current"
7402 versuffix=".$current"
7403 ;;
7404
7405 irix | nonstopux)
7406 if test "X$lt_irix_increment" = "Xno"; then
7407 func_arith $current - $age
7408 else
7409 func_arith $current - $age + 1
7410 fi
7411 major=$func_arith_result
7412
7413 case $version_type in
7414 nonstopux) verstring_prefix=nonstopux ;;
7415 *) verstring_prefix=sgi ;;
7416 esac
7417 verstring="$verstring_prefix$major.$revision"
7418
7419 # Add in all the interfaces that we are compatible with.
7420 loop=$revision
7421 while test "$loop" -ne 0; do
7422 func_arith $revision - $loop
7423 iface=$func_arith_result
7424 func_arith $loop - 1
7425 loop=$func_arith_result
7426 verstring="$verstring_prefix$major.$iface:$verstring"
7427 done
7428
7429 # Before this point, $major must not contain `.'.
7430 major=.$major
7431 versuffix="$major.$revision"
7432 ;;
7433
7434 linux)
7435 func_arith $current - $age
7436 major=.$func_arith_result
7437 versuffix="$major.$age.$revision"
7438 ;;
7439
7440 osf)
7441 func_arith $current - $age
7442 major=.$func_arith_result
7443 versuffix=".$current.$age.$revision"
7444 verstring="$current.$age.$revision"
7445
7446 # Add in all the interfaces that we are compatible with.
7447 loop=$age
7448 while test "$loop" -ne 0; do
7449 func_arith $current - $loop
7450 iface=$func_arith_result
7451 func_arith $loop - 1
7452 loop=$func_arith_result
7453 verstring="$verstring:${iface}.0"
7454 done
7455
7456 # Make executables depend on our current version.
7457 func_append verstring ":${current}.0"
7458 ;;
7459
7460 qnx)
7461 major=".$current"
7462 versuffix=".$current"
7463 ;;
7464
7465 sunos)
7466 major=".$current"
7467 versuffix=".$current.$revision"
7468 ;;
7469
7470 windows)
7471 # Use '-' rather than '.', since we only want one
7472 # extension on DOS 8.3 filesystems.
7473 func_arith $current - $age
7474 major=$func_arith_result
7475 versuffix="-$major"
7476 ;;
7477
7478 *)
7479 func_fatal_configuration "unknown library version type \`$version_type'"
7480 ;;
7481 esac
7482
7483 # Clear the version info if we defaulted, and they specified a release.
7484 if test -z "$vinfo" && test -n "$release"; then
7485 major=
7486 case $version_type in
7487 darwin)
7488 # we can't check for "0.0" in archive_cmds due to quoting
7489 # problems, so we reset it completely
7490 verstring=
7491 ;;
7492 *)
7493 verstring="0.0"
7494 ;;
7495 esac
7496 if test "$need_version" = no; then
7497 versuffix=
7498 else
7499 versuffix=".0.0"
7500 fi
7501 fi
7502
7503 # Remove version info from name if versioning should be avoided
7504 if test "$avoid_version" = yes && test "$need_version" = no; then
7505 major=
7506 versuffix=
7507 verstring=""
7508 fi
7509
7510 # Check to see if the archive will have undefined symbols.
7511 if test "$allow_undefined" = yes; then
7512 if test "$allow_undefined_flag" = unsupported; then
7513 func_warning "undefined symbols not allowed in $host shared libraries"
7514 build_libtool_libs=no
7515 build_old_libs=yes
7516 fi
7517 else
7518 # Don't allow undefined symbols.
7519 allow_undefined_flag="$no_undefined_flag"
7520 fi
7521
7522 fi
7523
7524 func_generate_dlsyms "$libname" "$libname" "yes"
7525 func_append libobjs " $symfileobj"
7526 test "X$libobjs" = "X " && libobjs=
7527
7528 if test "$opt_mode" != relink; then
7529 # Remove our outputs, but don't remove object files since they
7530 # may have been created when compiling PIC objects.
7531 removelist=
7532 tempremovelist=`$ECHO "$output_objdir/*"`
7533 for p in $tempremovelist; do
7534 case $p in
7535 *.$objext | *.gcno)
7536 ;;
7537 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7538 if test "X$precious_files_regex" != "X"; then
7539 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
7540 then
7541 continue
7542 fi
7543 fi
7544 func_append removelist " $p"
7545 ;;
7546 *) ;;
7547 esac
7548 done
7549 test -n "$removelist" && \
7550 func_show_eval "${RM}r \$removelist"
7551 fi
7552
7553 # Now set the variables for building old libraries.
7554 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
7555 func_append oldlibs " $output_objdir/$libname.$libext"
7556
7557 # Transform .lo files to .o files.
7558 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
7559 fi
7560
7561 # Eliminate all temporary directories.
7562 #for path in $notinst_path; do
7563 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
7564 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
7565 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
7566 #done
7567
7568 if test -n "$xrpath"; then
7569 # If the user specified any rpath flags, then add them.
7570 temp_xrpath=
7571 for libdir in $xrpath; do
7572 func_replace_sysroot "$libdir"
7573 func_append temp_xrpath " -R$func_replace_sysroot_result"
7574 case "$finalize_rpath " in
7575 *" $libdir "*) ;;
7576 *) func_append finalize_rpath " $libdir" ;;
7577 esac
7578 done
7579 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
7580 dependency_libs="$temp_xrpath $dependency_libs"
7581 fi
7582 fi
7583
7584 # Make sure dlfiles contains only unique files that won't be dlpreopened
7585 old_dlfiles="$dlfiles"
7586 dlfiles=
7587 for lib in $old_dlfiles; do
7588 case " $dlprefiles $dlfiles " in
7589 *" $lib "*) ;;
7590 *) func_append dlfiles " $lib" ;;
7591 esac
7592 done
7593
7594 # Make sure dlprefiles contains only unique files
7595 old_dlprefiles="$dlprefiles"
7596 dlprefiles=
7597 for lib in $old_dlprefiles; do
7598 case "$dlprefiles " in
7599 *" $lib "*) ;;
7600 *) func_append dlprefiles " $lib" ;;
7601 esac
7602 done
7603
7604 if test "$build_libtool_libs" = yes; then
7605 if test -n "$rpath"; then
7606 case $host in
7607 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
7608 # these systems don't actually have a c library (as such)!
7609 ;;
7610 *-*-rhapsody* | *-*-darwin1.[012])
7611 # Rhapsody C library is in the System framework
7612 func_append deplibs " System.ltframework"
7613 ;;
7614 *-*-netbsd*)
7615 # Don't link with libc until the a.out ld.so is fixed.
7616 ;;
7617 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7618 # Do not include libc due to us having libc/libc_r.
7619 ;;
7620 *-*-sco3.2v5* | *-*-sco5v6*)
7621 # Causes problems with __ctype
7622 ;;
7623 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7624 # Compiler inserts libc in the correct place for threads to work
7625 ;;
7626 *)
7627 # Add libc to deplibs on all other systems if necessary.
7628 if test "$build_libtool_need_lc" = "yes"; then
7629 func_append deplibs " -lc"
7630 fi
7631 ;;
7632 esac
7633 fi
7634
7635 # Transform deplibs into only deplibs that can be linked in shared.
7636 name_save=$name
7637 libname_save=$libname
7638 release_save=$release
7639 versuffix_save=$versuffix
7640 major_save=$major
7641 # I'm not sure if I'm treating the release correctly. I think
7642 # release should show up in the -l (ie -lgmp5) so we don't want to
7643 # add it in twice. Is that correct?
7644 release=""
7645 versuffix=""
7646 major=""
7647 newdeplibs=
7648 droppeddeps=no
7649 case $deplibs_check_method in
7650 pass_all)
7651 # Don't check for shared/static. Everything works.
7652 # This might be a little naive. We might want to check
7653 # whether the library exists or not. But this is on
7654 # osf3 & osf4 and I'm not really sure... Just
7655 # implementing what was already the behavior.
7656 newdeplibs=$deplibs
7657 ;;
7658 test_compile)
7659 # This code stresses the "libraries are programs" paradigm to its
7660 # limits. Maybe even breaks it. We compile a program, linking it
7661 # against the deplibs as a proxy for the library. Then we can check
7662 # whether they linked in statically or dynamically with ldd.
7663 $opt_dry_run || $RM conftest.c
7664 cat > conftest.c <<EOF
7665 int main() { return 0; }
7666 EOF
7667 $opt_dry_run || $RM conftest
7668 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
7669 ldd_output=`ldd conftest`
7670 for i in $deplibs; do
7671 case $i in
7672 -l*)
7673 func_stripname -l '' "$i"
7674 name=$func_stripname_result
7675 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7676 case " $predeps $postdeps " in
7677 *" $i "*)
7678 func_append newdeplibs " $i"
7679 i=""
7680 ;;
7681 esac
7682 fi
7683 if test -n "$i" ; then
7684 libname=`eval "\\$ECHO \"$libname_spec\""`
7685 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
7686 set dummy $deplib_matches; shift
7687 deplib_match=$1
7688 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7689 func_append newdeplibs " $i"
7690 else
7691 droppeddeps=yes
7692 echo
7693 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
7694 echo "*** I have the capability to make that library automatically link in when"
7695 echo "*** you link to this library. But I can only do this if you have a"
7696 echo "*** shared version of the library, which I believe you do not have"
7697 echo "*** because a test_compile did reveal that the linker did not use it for"
7698 echo "*** its dynamic dependency list that programs get resolved with at runtime."
7699 fi
7700 fi
7701 ;;
7702 *)
7703 func_append newdeplibs " $i"
7704 ;;
7705 esac
7706 done
7707 else
7708 # Error occurred in the first compile. Let's try to salvage
7709 # the situation: Compile a separate program for each library.
7710 for i in $deplibs; do
7711 case $i in
7712 -l*)
7713 func_stripname -l '' "$i"
7714 name=$func_stripname_result
7715 $opt_dry_run || $RM conftest
7716 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
7717 ldd_output=`ldd conftest`
7718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7719 case " $predeps $postdeps " in
7720 *" $i "*)
7721 func_append newdeplibs " $i"
7722 i=""
7723 ;;
7724 esac
7725 fi
7726 if test -n "$i" ; then
7727 libname=`eval "\\$ECHO \"$libname_spec\""`
7728 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
7729 set dummy $deplib_matches; shift
7730 deplib_match=$1
7731 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
7732 func_append newdeplibs " $i"
7733 else
7734 droppeddeps=yes
7735 echo
7736 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
7737 echo "*** I have the capability to make that library automatically link in when"
7738 echo "*** you link to this library. But I can only do this if you have a"
7739 echo "*** shared version of the library, which you do not appear to have"
7740 echo "*** because a test_compile did reveal that the linker did not use this one"
7741 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
7742 fi
7743 fi
7744 else
7745 droppeddeps=yes
7746 echo
7747 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
7748 echo "*** make it link in! You will probably need to install it or some"
7749 echo "*** library that it depends on before this library will be fully"
7750 echo "*** functional. Installing it before continuing would be even better."
7751 fi
7752 ;;
7753 *)
7754 func_append newdeplibs " $i"
7755 ;;
7756 esac
7757 done
7758 fi
7759 ;;
7760 file_magic*)
7761 set dummy $deplibs_check_method; shift
7762 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7763 for a_deplib in $deplibs; do
7764 case $a_deplib in
7765 -l*)
7766 func_stripname -l '' "$a_deplib"
7767 name=$func_stripname_result
7768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7769 case " $predeps $postdeps " in
7770 *" $a_deplib "*)
7771 func_append newdeplibs " $a_deplib"
7772 a_deplib=""
7773 ;;
7774 esac
7775 fi
7776 if test -n "$a_deplib" ; then
7777 libname=`eval "\\$ECHO \"$libname_spec\""`
7778 if test -n "$file_magic_glob"; then
7779 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7780 else
7781 libnameglob=$libname
7782 fi
7783 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
7784 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7785 if test "$want_nocaseglob" = yes; then
7786 shopt -s nocaseglob
7787 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7788 $nocaseglob
7789 else
7790 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7791 fi
7792 for potent_lib in $potential_libs; do
7793 # Follow soft links.
7794 if ls -lLd "$potent_lib" 2>/dev/null |
7795 $GREP " -> " >/dev/null; then
7796 continue
7797 fi
7798 # The statement above tries to avoid entering an
7799 # endless loop below, in case of cyclic links.
7800 # We might still enter an endless loop, since a link
7801 # loop can be closed while we follow links,
7802 # but so what?
7803 potlib="$potent_lib"
7804 while test -h "$potlib" 2>/dev/null; do
7805 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
7806 case $potliblink in
7807 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7808 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
7809 esac
7810 done
7811 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
7812 $SED -e 10q |
7813 $EGREP "$file_magic_regex" > /dev/null; then
7814 func_append newdeplibs " $a_deplib"
7815 a_deplib=""
7816 break 2
7817 fi
7818 done
7819 done
7820 fi
7821 if test -n "$a_deplib" ; then
7822 droppeddeps=yes
7823 echo
7824 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7825 echo "*** I have the capability to make that library automatically link in when"
7826 echo "*** you link to this library. But I can only do this if you have a"
7827 echo "*** shared version of the library, which you do not appear to have"
7828 echo "*** because I did check the linker path looking for a file starting"
7829 if test -z "$potlib" ; then
7830 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
7831 else
7832 $ECHO "*** with $libname and none of the candidates passed a file format test"
7833 $ECHO "*** using a file magic. Last file checked: $potlib"
7834 fi
7835 fi
7836 ;;
7837 *)
7838 # Add a -L argument.
7839 func_append newdeplibs " $a_deplib"
7840 ;;
7841 esac
7842 done # Gone through all deplibs.
7843 ;;
7844 match_pattern*)
7845 set dummy $deplibs_check_method; shift
7846 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7847 for a_deplib in $deplibs; do
7848 case $a_deplib in
7849 -l*)
7850 func_stripname -l '' "$a_deplib"
7851 name=$func_stripname_result
7852 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7853 case " $predeps $postdeps " in
7854 *" $a_deplib "*)
7855 func_append newdeplibs " $a_deplib"
7856 a_deplib=""
7857 ;;
7858 esac
7859 fi
7860 if test -n "$a_deplib" ; then
7861 libname=`eval "\\$ECHO \"$libname_spec\""`
7862 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7863 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7864 for potent_lib in $potential_libs; do
7865 potlib="$potent_lib" # see symlink-check above in file_magic test
7866 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
7867 $EGREP "$match_pattern_regex" > /dev/null; then
7868 func_append newdeplibs " $a_deplib"
7869 a_deplib=""
7870 break 2
7871 fi
7872 done
7873 done
7874 fi
7875 if test -n "$a_deplib" ; then
7876 droppeddeps=yes
7877 echo
7878 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7879 echo "*** I have the capability to make that library automatically link in when"
7880 echo "*** you link to this library. But I can only do this if you have a"
7881 echo "*** shared version of the library, which you do not appear to have"
7882 echo "*** because I did check the linker path looking for a file starting"
7883 if test -z "$potlib" ; then
7884 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
7885 else
7886 $ECHO "*** with $libname and none of the candidates passed a file format test"
7887 $ECHO "*** using a regex pattern. Last file checked: $potlib"
7888 fi
7889 fi
7890 ;;
7891 *)
7892 # Add a -L argument.
7893 func_append newdeplibs " $a_deplib"
7894 ;;
7895 esac
7896 done # Gone through all deplibs.
7897 ;;
7898 none | unknown | *)
7899 newdeplibs=""
7900 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7901 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7902 for i in $predeps $postdeps ; do
7903 # can't use Xsed below, because $i might contain '/'
7904 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
7905 done
7906 fi
7907 case $tmp_deplibs in
7908 *[!\ \ ]*)
7909 echo
7910 if test "X$deplibs_check_method" = "Xnone"; then
7911 echo "*** Warning: inter-library dependencies are not supported in this platform."
7912 else
7913 echo "*** Warning: inter-library dependencies are not known to be supported."
7914 fi
7915 echo "*** All declared inter-library dependencies are being dropped."
7916 droppeddeps=yes
7917 ;;
7918 esac
7919 ;;
7920 esac
7921 versuffix=$versuffix_save
7922 major=$major_save
7923 release=$release_save
7924 libname=$libname_save
7925 name=$name_save
7926
7927 case $host in
7928 *-*-rhapsody* | *-*-darwin1.[012])
7929 # On Rhapsody replace the C library with the System framework
7930 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
7931 ;;
7932 esac
7933
7934 if test "$droppeddeps" = yes; then
7935 if test "$module" = yes; then
7936 echo
7937 echo "*** Warning: libtool could not satisfy all declared inter-library"
7938 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
7939 echo "*** a static module, that should work as long as the dlopening"
7940 echo "*** application is linked with the -dlopen flag."
7941 if test -z "$global_symbol_pipe"; then
7942 echo
7943 echo "*** However, this would only work if libtool was able to extract symbol"
7944 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7945 echo "*** not find such a program. So, this module is probably useless."
7946 echo "*** \`nm' from GNU binutils and a full rebuild may help."
7947 fi
7948 if test "$build_old_libs" = no; then
7949 oldlibs="$output_objdir/$libname.$libext"
7950 build_libtool_libs=module
7951 build_old_libs=yes
7952 else
7953 build_libtool_libs=no
7954 fi
7955 else
7956 echo "*** The inter-library dependencies that have been dropped here will be"
7957 echo "*** automatically added whenever a program is linked with this library"
7958 echo "*** or is declared to -dlopen it."
7959
7960 if test "$allow_undefined" = no; then
7961 echo
7962 echo "*** Since this library must not contain undefined symbols,"
7963 echo "*** because either the platform does not support them or"
7964 echo "*** it was explicitly requested with -no-undefined,"
7965 echo "*** libtool will only create a static version of it."
7966 if test "$build_old_libs" = no; then
7967 oldlibs="$output_objdir/$libname.$libext"
7968 build_libtool_libs=module
7969 build_old_libs=yes
7970 else
7971 build_libtool_libs=no
7972 fi
7973 fi
7974 fi
7975 fi
7976 # Done checking deplibs!
7977 deplibs=$newdeplibs
7978 fi
7979 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7980 case $host in
7981 *-*-darwin*)
7982 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7983 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7984 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7985 ;;
7986 esac
7987
7988 # move library search paths that coincide with paths to not yet
7989 # installed libraries to the beginning of the library search list
7990 new_libs=
7991 for path in $notinst_path; do
7992 case " $new_libs " in
7993 *" -L$path/$objdir "*) ;;
7994 *)
7995 case " $deplibs " in
7996 *" -L$path/$objdir "*)
7997 func_append new_libs " -L$path/$objdir" ;;
7998 esac
7999 ;;
8000 esac
8001 done
8002 for deplib in $deplibs; do
8003 case $deplib in
8004 -L*)
8005 case " $new_libs " in
8006 *" $deplib "*) ;;
8007 *) func_append new_libs " $deplib" ;;
8008 esac
8009 ;;
8010 *) func_append new_libs " $deplib" ;;
8011 esac
8012 done
8013 deplibs="$new_libs"
8014
8015 # All the library-specific variables (install_libdir is set above).
8016 library_names=
8017 old_library=
8018 dlname=
8019
8020 # Test again, we may have decided not to build it any more
8021 if test "$build_libtool_libs" = yes; then
8022 if test "$hardcode_into_libs" = yes; then
8023 # Hardcode the library paths
8024 hardcode_libdirs=
8025 dep_rpath=
8026 rpath="$finalize_rpath"
8027 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
8028 for libdir in $rpath; do
8029 if test -n "$hardcode_libdir_flag_spec"; then
8030 if test -n "$hardcode_libdir_separator"; then
8031 func_replace_sysroot "$libdir"
8032 libdir=$func_replace_sysroot_result
8033 if test -z "$hardcode_libdirs"; then
8034 hardcode_libdirs="$libdir"
8035 else
8036 # Just accumulate the unique libdirs.
8037 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8038 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8039 ;;
8040 *)
8041 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8042 ;;
8043 esac
8044 fi
8045 else
8046 eval flag=\"$hardcode_libdir_flag_spec\"
8047 func_append dep_rpath " $flag"
8048 fi
8049 elif test -n "$runpath_var"; then
8050 case "$perm_rpath " in
8051 *" $libdir "*) ;;
8052 *) func_apped perm_rpath " $libdir" ;;
8053 esac
8054 fi
8055 done
8056 # Substitute the hardcoded libdirs into the rpath.
8057 if test -n "$hardcode_libdir_separator" &&
8058 test -n "$hardcode_libdirs"; then
8059 libdir="$hardcode_libdirs"
8060 if test -n "$hardcode_libdir_flag_spec_ld"; then
8061 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
8062 else
8063 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
8064 fi
8065 fi
8066 if test -n "$runpath_var" && test -n "$perm_rpath"; then
8067 # We should set the runpath_var.
8068 rpath=
8069 for dir in $perm_rpath; do
8070 func_append rpath "$dir:"
8071 done
8072 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
8073 fi
8074 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
8075 fi
8076
8077 shlibpath="$finalize_shlibpath"
8078 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8079 if test -n "$shlibpath"; then
8080 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
8081 fi
8082
8083 # Get the real and link names of the library.
8084 eval shared_ext=\"$shrext_cmds\"
8085 eval library_names=\"$library_names_spec\"
8086 set dummy $library_names
8087 shift
8088 realname="$1"
8089 shift
8090
8091 if test -n "$soname_spec"; then
8092 eval soname=\"$soname_spec\"
8093 else
8094 soname="$realname"
8095 fi
8096 if test -z "$dlname"; then
8097 dlname=$soname
8098 fi
8099
8100 lib="$output_objdir/$realname"
8101 linknames=
8102 for link
8103 do
8104 func_append linknames " $link"
8105 done
8106
8107 # Use standard objects if they are pic
8108 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
8109 test "X$libobjs" = "X " && libobjs=
8110
8111 delfiles=
8112 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8113 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8114 export_symbols="$output_objdir/$libname.uexp"
8115 func_append delfiles " $export_symbols"
8116 fi
8117
8118 orig_export_symbols=
8119 case $host_os in
8120 cygwin* | mingw* | cegcc*)
8121 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
8122 # exporting using user supplied symfile
8123 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
8124 # and it's NOT already a .def file. Must figure out
8125 # which of the given symbols are data symbols and tag
8126 # them as such. So, trigger use of export_symbols_cmds.
8127 # export_symbols gets reassigned inside the "prepare
8128 # the list of exported symbols" if statement, so the
8129 # include_expsyms logic still works.
8130 orig_export_symbols="$export_symbols"
8131 export_symbols=
8132 always_export_symbols=yes
8133 fi
8134 fi
8135 ;;
8136 esac
8137
8138 # Prepare the list of exported symbols
8139 if test -z "$export_symbols"; then
8140 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8141 func_verbose "generating symbol list for \`$libname.la'"
8142 export_symbols="$output_objdir/$libname.exp"
8143 $opt_dry_run || $RM $export_symbols
8144 cmds=$export_symbols_cmds
8145 save_ifs="$IFS"; IFS='~'
8146 for cmd1 in $cmds; do
8147 IFS="$save_ifs"
8148 # Take the normal branch if the nm_file_list_spec branch
8149 # doesn't work or if tool conversion is not needed.
8150 case $nm_file_list_spec~$to_tool_file_cmd in
8151 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8152 try_normal_branch=yes
8153 eval cmd=\"$cmd1\"
8154 func_len " $cmd"
8155 len=$func_len_result
8156 ;;
8157 *)
8158 try_normal_branch=no
8159 ;;
8160 esac
8161 if test "$try_normal_branch" = yes \
8162 && { test "$len" -lt "$max_cmd_len" \
8163 || test "$max_cmd_len" -le -1; }
8164 then
8165 func_show_eval "$cmd" 'exit $?'
8166 skipped_export=false
8167 elif test -n "$nm_file_list_spec"; then
8168 func_basename "$output"
8169 output_la=$func_basename_result
8170 save_libobjs=$libobjs
8171 save_output=$output
8172 output=${output_objdir}/${output_la}.nm
8173 func_to_tool_file "$output"
8174 libobjs=$nm_file_list_spec$func_to_tool_file_result
8175 func_append delfiles " $output"
8176 func_verbose "creating $NM input file list: $output"
8177 for obj in $save_libobjs; do
8178 func_to_tool_file "$obj"
8179 $ECHO "$func_to_tool_file_result"
8180 done > "$output"
8181 eval cmd=\"$cmd1\"
8182 func_show_eval "$cmd" 'exit $?'
8183 output=$save_output
8184 libobjs=$save_libobjs
8185 skipped_export=false
8186 else
8187 # The command line is too long to execute in one step.
8188 func_verbose "using reloadable object file for export list..."
8189 skipped_export=:
8190 # Break out early, otherwise skipped_export may be
8191 # set to false by a later but shorter cmd.
8192 break
8193 fi
8194 done
8195 IFS="$save_ifs"
8196 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
8197 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8198 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8199 fi
8200 fi
8201 fi
8202
8203 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8204 tmp_export_symbols="$export_symbols"
8205 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8206 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8207 fi
8208
8209 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
8210 # The given exports_symbols file has to be filtered, so filter it.
8211 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8212 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8213 # 's' commands which not all seds can handle. GNU sed should be fine
8214 # though. Also, the filter scales superlinearly with the number of
8215 # global variables. join(1) would be nice here, but unfortunately
8216 # isn't a blessed tool.
8217 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8218 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
8219 export_symbols=$output_objdir/$libname.def
8220 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8221 fi
8222
8223 tmp_deplibs=
8224 for test_deplib in $deplibs; do
8225 case " $convenience " in
8226 *" $test_deplib "*) ;;
8227 *)
8228 func_append tmp_deplibs " $test_deplib"
8229 ;;
8230 esac
8231 done
8232 deplibs="$tmp_deplibs"
8233
8234 if test -n "$convenience"; then
8235 if test -n "$whole_archive_flag_spec" &&
8236 test "$compiler_needs_object" = yes &&
8237 test -z "$libobjs"; then
8238 # extract the archives, so we have objects to list.
8239 # TODO: could optimize this to just extract one archive.
8240 whole_archive_flag_spec=
8241 fi
8242 if test -n "$whole_archive_flag_spec"; then
8243 save_libobjs=$libobjs
8244 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8245 test "X$libobjs" = "X " && libobjs=
8246 else
8247 gentop="$output_objdir/${outputname}x"
8248 func_append generated " $gentop"
8249
8250 func_extract_archives $gentop $convenience
8251 func_append libobjs " $func_extract_archives_result"
8252 test "X$libobjs" = "X " && libobjs=
8253 fi
8254 fi
8255
8256 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
8257 eval flag=\"$thread_safe_flag_spec\"
8258 func_append linker_flags " $flag"
8259 fi
8260
8261 # Make a backup of the uninstalled library when relinking
8262 if test "$opt_mode" = relink; then
8263 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
8264 fi
8265
8266 # Do each of the archive commands.
8267 if test "$module" = yes && test -n "$module_cmds" ; then
8268 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8269 eval test_cmds=\"$module_expsym_cmds\"
8270 cmds=$module_expsym_cmds
8271 else
8272 eval test_cmds=\"$module_cmds\"
8273 cmds=$module_cmds
8274 fi
8275 else
8276 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8277 eval test_cmds=\"$archive_expsym_cmds\"
8278 cmds=$archive_expsym_cmds
8279 else
8280 eval test_cmds=\"$archive_cmds\"
8281 cmds=$archive_cmds
8282 fi
8283 fi
8284
8285 if test "X$skipped_export" != "X:" &&
8286 func_len " $test_cmds" &&
8287 len=$func_len_result &&
8288 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8289 :
8290 else
8291 # The command line is too long to link in one step, link piecewise
8292 # or, if using GNU ld and skipped_export is not :, use a linker
8293 # script.
8294
8295 # Save the value of $output and $libobjs because we want to
8296 # use them later. If we have whole_archive_flag_spec, we
8297 # want to use save_libobjs as it was before
8298 # whole_archive_flag_spec was expanded, because we can't
8299 # assume the linker understands whole_archive_flag_spec.
8300 # This may have to be revisited, in case too many
8301 # convenience libraries get linked in and end up exceeding
8302 # the spec.
8303 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
8304 save_libobjs=$libobjs
8305 fi
8306 save_output=$output
8307 func_basename "$output"
8308 output_la=$func_basename_result
8309
8310 # Clear the reloadable object creation command queue and
8311 # initialize k to one.
8312 test_cmds=
8313 concat_cmds=
8314 objlist=
8315 last_robj=
8316 k=1
8317
8318 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8319 output=${output_objdir}/${output_la}.lnkscript
8320 func_verbose "creating GNU ld script: $output"
8321 echo 'INPUT (' > $output
8322 for obj in $save_libobjs
8323 do
8324 func_to_tool_file "$obj"
8325 $ECHO "$func_to_tool_file_result" >> $output
8326 done
8327 echo ')' >> $output
8328 func_append delfiles " $output"
8329 func_to_tool_file "$output"
8330 output=$func_to_tool_file_result
8331 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8332 output=${output_objdir}/${output_la}.lnk
8333 func_verbose "creating linker input file list: $output"
8334 : > $output
8335 set x $save_libobjs
8336 shift
8337 firstobj=
8338 if test "$compiler_needs_object" = yes; then
8339 firstobj="$1 "
8340 shift
8341 fi
8342 for obj
8343 do
8344 func_to_tool_file "$obj"
8345 $ECHO "$func_to_tool_file_result" >> $output
8346 done
8347 func_append delfiles " $output"
8348 func_to_tool_file "$output"
8349 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
8350 else
8351 if test -n "$save_libobjs"; then
8352 func_verbose "creating reloadable object files..."
8353 output=$output_objdir/$output_la-${k}.$objext
8354 eval test_cmds=\"$reload_cmds\"
8355 func_len " $test_cmds"
8356 len0=$func_len_result
8357 len=$len0
8358
8359 # Loop over the list of objects to be linked.
8360 for obj in $save_libobjs
8361 do
8362 func_len " $obj"
8363 func_arith $len + $func_len_result
8364 len=$func_arith_result
8365 if test "X$objlist" = X ||
8366 test "$len" -lt "$max_cmd_len"; then
8367 func_append objlist " $obj"
8368 else
8369 # The command $test_cmds is almost too long, add a
8370 # command to the queue.
8371 if test "$k" -eq 1 ; then
8372 # The first file doesn't have a previous command to add.
8373 reload_objs=$objlist
8374 eval concat_cmds=\"$reload_cmds\"
8375 else
8376 # All subsequent reloadable object files will link in
8377 # the last one created.
8378 reload_objs="$objlist $last_robj"
8379 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
8380 fi
8381 last_robj=$output_objdir/$output_la-${k}.$objext
8382 func_arith $k + 1
8383 k=$func_arith_result
8384 output=$output_objdir/$output_la-${k}.$objext
8385 objlist=" $obj"
8386 func_len " $last_robj"
8387 func_arith $len0 + $func_len_result
8388 len=$func_arith_result
8389 fi
8390 done
8391 # Handle the remaining objects by creating one last
8392 # reloadable object file. All subsequent reloadable object
8393 # files will link in the last one created.
8394 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8395 reload_objs="$objlist $last_robj"
8396 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
8397 if test -n "$last_robj"; then
8398 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
8399 fi
8400 func_append delfiles " $output"
8401
8402 else
8403 output=
8404 fi
8405
8406 if ${skipped_export-false}; then
8407 func_verbose "generating symbol list for \`$libname.la'"
8408 export_symbols="$output_objdir/$libname.exp"
8409 $opt_dry_run || $RM $export_symbols
8410 libobjs=$output
8411 # Append the command to create the export file.
8412 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
8413 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
8414 if test -n "$last_robj"; then
8415 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
8416 fi
8417 fi
8418
8419 test -n "$save_libobjs" &&
8420 func_verbose "creating a temporary reloadable object file: $output"
8421
8422 # Loop through the commands generated above and execute them.
8423 save_ifs="$IFS"; IFS='~'
8424 for cmd in $concat_cmds; do
8425 IFS="$save_ifs"
8426 $opt_silent || {
8427 func_quote_for_expand "$cmd"
8428 eval "func_echo $func_quote_for_expand_result"
8429 }
8430 $opt_dry_run || eval "$cmd" || {
8431 lt_exit=$?
8432
8433 # Restore the uninstalled library and exit
8434 if test "$opt_mode" = relink; then
8435 ( cd "$output_objdir" && \
8436 $RM "${realname}T" && \
8437 $MV "${realname}U" "$realname" )
8438 fi
8439
8440 exit $lt_exit
8441 }
8442 done
8443 IFS="$save_ifs"
8444
8445 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
8446 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
8447 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
8448 fi
8449 fi
8450
8451 if ${skipped_export-false}; then
8452 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8453 tmp_export_symbols="$export_symbols"
8454 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
8455 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
8456 fi
8457
8458 if test -n "$orig_export_symbols"; then
8459 # The given exports_symbols file has to be filtered, so filter it.
8460 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
8461 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8462 # 's' commands which not all seds can handle. GNU sed should be fine
8463 # though. Also, the filter scales superlinearly with the number of
8464 # global variables. join(1) would be nice here, but unfortunately
8465 # isn't a blessed tool.
8466 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
8467 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
8468 export_symbols=$output_objdir/$libname.def
8469 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
8470 fi
8471 fi
8472
8473 libobjs=$output
8474 # Restore the value of output.
8475 output=$save_output
8476
8477 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
8478 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
8479 test "X$libobjs" = "X " && libobjs=
8480 fi
8481 # Expand the library linking commands again to reset the
8482 # value of $libobjs for piecewise linking.
8483
8484 # Do each of the archive commands.
8485 if test "$module" = yes && test -n "$module_cmds" ; then
8486 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
8487 cmds=$module_expsym_cmds
8488 else
8489 cmds=$module_cmds
8490 fi
8491 else
8492 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
8493 cmds=$archive_expsym_cmds
8494 else
8495 cmds=$archive_cmds
8496 fi
8497 fi
8498 fi
8499
8500 if test -n "$delfiles"; then
8501 # Append the command to remove temporary files to $cmds.
8502 eval cmds=\"\$cmds~\$RM $delfiles\"
8503 fi
8504
8505 # Add any objects from preloaded convenience libraries
8506 if test -n "$dlprefiles"; then
8507 gentop="$output_objdir/${outputname}x"
8508 func_append generated " $gentop"
8509
8510 func_extract_archives $gentop $dlprefiles
8511 func_append libobjs " $func_extract_archives_result"
8512 test "X$libobjs" = "X " && libobjs=
8513 fi
8514
8515 save_ifs="$IFS"; IFS='~'
8516 for cmd in $cmds; do
8517 IFS="$save_ifs"
8518 eval cmd=\"$cmd\"
8519 $opt_silent || {
8520 func_quote_for_expand "$cmd"
8521 eval "func_echo $func_quote_for_expand_result"
8522 }
8523 $opt_dry_run || eval "$cmd" || {
8524 lt_exit=$?
8525
8526 # Restore the uninstalled library and exit
8527 if test "$opt_mode" = relink; then
8528 ( cd "$output_objdir" && \
8529 $RM "${realname}T" && \
8530 $MV "${realname}U" "$realname" )
8531 fi
8532
8533 exit $lt_exit
8534 }
8535 done
8536 IFS="$save_ifs"
8537
8538 # Restore the uninstalled library and exit
8539 if test "$opt_mode" = relink; then
8540 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
8541
8542 if test -n "$convenience"; then
8543 if test -z "$whole_archive_flag_spec"; then
8544 func_show_eval '${RM}r "$gentop"'
8545 fi
8546 fi
8547
8548 exit $EXIT_SUCCESS
8549 fi
8550
8551 # Create links to the real library.
8552 for linkname in $linknames; do
8553 if test "$realname" != "$linkname"; then
8554 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
8555 fi
8556 done
8557
8558 # If -module or -export-dynamic was specified, set the dlname.
8559 if test "$module" = yes || test "$export_dynamic" = yes; then
8560 # On all known operating systems, these are identical.
8561 dlname="$soname"
8562 fi
8563 fi
8564 ;;
8565
8566 obj)
8567 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8568 func_warning "\`-dlopen' is ignored for objects"
8569 fi
8570
8571 case " $deplibs" in
8572 *\ -l* | *\ -L*)
8573 func_warning "\`-l' and \`-L' are ignored for objects" ;;
8574 esac
8575
8576 test -n "$rpath" && \
8577 func_warning "\`-rpath' is ignored for objects"
8578
8579 test -n "$xrpath" && \
8580 func_warning "\`-R' is ignored for objects"
8581
8582 test -n "$vinfo" && \
8583 func_warning "\`-version-info' is ignored for objects"
8584
8585 test -n "$release" && \
8586 func_warning "\`-release' is ignored for objects"
8587
8588 case $output in
8589 *.lo)
8590 test -n "$objs$old_deplibs" && \
8591 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
8592
8593 libobj=$output
8594 func_lo2o "$libobj"
8595 obj=$func_lo2o_result
8596 ;;
8597 *)
8598 libobj=
8599 obj="$output"
8600 ;;
8601 esac
8602
8603 # Delete the old objects.
8604 $opt_dry_run || $RM $obj $libobj
8605
8606 # Objects from convenience libraries. This assumes
8607 # single-version convenience libraries. Whenever we create
8608 # different ones for PIC/non-PIC, this we'll have to duplicate
8609 # the extraction.
8610 reload_conv_objs=
8611 gentop=
8612 # reload_cmds runs $LD directly, so let us get rid of
8613 # -Wl from whole_archive_flag_spec and hope we can get by with
8614 # turning comma into space..
8615 wl=
8616
8617 if test -n "$convenience"; then
8618 if test -n "$whole_archive_flag_spec"; then
8619 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8620 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
8621 else
8622 gentop="$output_objdir/${obj}x"
8623 func_append generated " $gentop"
8624
8625 func_extract_archives $gentop $convenience
8626 reload_conv_objs="$reload_objs $func_extract_archives_result"
8627 fi
8628 fi
8629
8630 # If we're not building shared, we need to use non_pic_objs
8631 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
8632
8633 # Create the old-style object.
8634 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8635
8636 output="$obj"
8637 func_execute_cmds "$reload_cmds" 'exit $?'
8638
8639 # Exit if we aren't doing a library object file.
8640 if test -z "$libobj"; then
8641 if test -n "$gentop"; then
8642 func_show_eval '${RM}r "$gentop"'
8643 fi
8644
8645 exit $EXIT_SUCCESS
8646 fi
8647
8648 if test "$build_libtool_libs" != yes; then
8649 if test -n "$gentop"; then
8650 func_show_eval '${RM}r "$gentop"'
8651 fi
8652
8653 # Create an invalid libtool object if no PIC, so that we don't
8654 # accidentally link it into a program.
8655 # $show "echo timestamp > $libobj"
8656 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
8657 exit $EXIT_SUCCESS
8658 fi
8659
8660 if test -n "$pic_flag" || test "$pic_mode" != default; then
8661 # Only do commands if we really have different PIC objects.
8662 reload_objs="$libobjs $reload_conv_objs"
8663 output="$libobj"
8664 func_execute_cmds "$reload_cmds" 'exit $?'
8665 fi
8666
8667 if test -n "$gentop"; then
8668 func_show_eval '${RM}r "$gentop"'
8669 fi
8670
8671 exit $EXIT_SUCCESS
8672 ;;
8673
8674 prog)
8675 case $host in
8676 *cygwin*) func_stripname '' '.exe' "$output"
8677 output=$func_stripname_result.exe;;
8678 esac
8679 test -n "$vinfo" && \
8680 func_warning "\`-version-info' is ignored for programs"
8681
8682 test -n "$release" && \
8683 func_warning "\`-release' is ignored for programs"
8684
8685 test "$preload" = yes \
8686 && test "$dlopen_support" = unknown \
8687 && test "$dlopen_self" = unknown \
8688 && test "$dlopen_self_static" = unknown && \
8689 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
8690
8691 case $host in
8692 *-*-rhapsody* | *-*-darwin1.[012])
8693 # On Rhapsody replace the C library is the System framework
8694 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
8695 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
8696 ;;
8697 esac
8698
8699 case $host in
8700 *-*-darwin*)
8701 # Don't allow lazy linking, it breaks C++ global constructors
8702 # But is supposedly fixed on 10.4 or later (yay!).
8703 if test "$tagname" = CXX ; then
8704 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8705 10.[0123])
8706 func_append compile_command " ${wl}-bind_at_load"
8707 func_append finalize_command " ${wl}-bind_at_load"
8708 ;;
8709 esac
8710 fi
8711 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
8712 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8713 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8714 ;;
8715 esac
8716
8717
8718 # move library search paths that coincide with paths to not yet
8719 # installed libraries to the beginning of the library search list
8720 new_libs=
8721 for path in $notinst_path; do
8722 case " $new_libs " in
8723 *" -L$path/$objdir "*) ;;
8724 *)
8725 case " $compile_deplibs " in
8726 *" -L$path/$objdir "*)
8727 func_append new_libs " -L$path/$objdir" ;;
8728 esac
8729 ;;
8730 esac
8731 done
8732 for deplib in $compile_deplibs; do
8733 case $deplib in
8734 -L*)
8735 case " $new_libs " in
8736 *" $deplib "*) ;;
8737 *) func_append new_libs " $deplib" ;;
8738 esac
8739 ;;
8740 *) func_append new_libs " $deplib" ;;
8741 esac
8742 done
8743 compile_deplibs="$new_libs"
8744
8745
8746 func_append compile_command " $compile_deplibs"
8747 func_append finalize_command " $finalize_deplibs"
8748
8749 if test -n "$rpath$xrpath"; then
8750 # If the user specified any rpath flags, then add them.
8751 for libdir in $rpath $xrpath; do
8752 # This is the magic to use -rpath.
8753 case "$finalize_rpath " in
8754 *" $libdir "*) ;;
8755 *) func_append finalize_rpath " $libdir" ;;
8756 esac
8757 done
8758 fi
8759
8760 # Now hardcode the library paths
8761 rpath=
8762 hardcode_libdirs=
8763 for libdir in $compile_rpath $finalize_rpath; do
8764 if test -n "$hardcode_libdir_flag_spec"; then
8765 if test -n "$hardcode_libdir_separator"; then
8766 if test -z "$hardcode_libdirs"; then
8767 hardcode_libdirs="$libdir"
8768 else
8769 # Just accumulate the unique libdirs.
8770 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8771 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8772 ;;
8773 *)
8774 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8775 ;;
8776 esac
8777 fi
8778 else
8779 eval flag=\"$hardcode_libdir_flag_spec\"
8780 func_append rpath " $flag"
8781 fi
8782 elif test -n "$runpath_var"; then
8783 case "$perm_rpath " in
8784 *" $libdir "*) ;;
8785 *) func_append perm_rpath " $libdir" ;;
8786 esac
8787 fi
8788 case $host in
8789 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8790 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
8791 case :$dllsearchpath: in
8792 *":$libdir:"*) ;;
8793 ::) dllsearchpath=$libdir;;
8794 *) func_append dllsearchpath ":$libdir";;
8795 esac
8796 case :$dllsearchpath: in
8797 *":$testbindir:"*) ;;
8798 ::) dllsearchpath=$testbindir;;
8799 *) func_append dllsearchpath ":$testbindir";;
8800 esac
8801 ;;
8802 esac
8803 done
8804 # Substitute the hardcoded libdirs into the rpath.
8805 if test -n "$hardcode_libdir_separator" &&
8806 test -n "$hardcode_libdirs"; then
8807 libdir="$hardcode_libdirs"
8808 eval rpath=\" $hardcode_libdir_flag_spec\"
8809 fi
8810 compile_rpath="$rpath"
8811
8812 rpath=
8813 hardcode_libdirs=
8814 for libdir in $finalize_rpath; do
8815 if test -n "$hardcode_libdir_flag_spec"; then
8816 if test -n "$hardcode_libdir_separator"; then
8817 if test -z "$hardcode_libdirs"; then
8818 hardcode_libdirs="$libdir"
8819 else
8820 # Just accumulate the unique libdirs.
8821 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
8822 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
8823 ;;
8824 *)
8825 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
8826 ;;
8827 esac
8828 fi
8829 else
8830 eval flag=\"$hardcode_libdir_flag_spec\"
8831 func_append rpath " $flag"
8832 fi
8833 elif test -n "$runpath_var"; then
8834 case "$finalize_perm_rpath " in
8835 *" $libdir "*) ;;
8836 *) func_append finalize_perm_rpath " $libdir" ;;
8837 esac
8838 fi
8839 done
8840 # Substitute the hardcoded libdirs into the rpath.
8841 if test -n "$hardcode_libdir_separator" &&
8842 test -n "$hardcode_libdirs"; then
8843 libdir="$hardcode_libdirs"
8844 eval rpath=\" $hardcode_libdir_flag_spec\"
8845 fi
8846 finalize_rpath="$rpath"
8847
8848 if test -n "$libobjs" && test "$build_old_libs" = yes; then
8849 # Transform all the library objects into standard objects.
8850 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8851 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
8852 fi
8853
8854 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
8855
8856 # template prelinking step
8857 if test -n "$prelink_cmds"; then
8858 func_execute_cmds "$prelink_cmds" 'exit $?'
8859 fi
8860
8861 wrappers_required=yes
8862 case $host in
8863 *cegcc* | *mingw32ce*)
8864 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8865 wrappers_required=no
8866 ;;
8867 *cygwin* | *mingw* )
8868 if test "$build_libtool_libs" != yes; then
8869 wrappers_required=no
8870 fi
8871 ;;
8872 *)
8873 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8874 wrappers_required=no
8875 fi
8876 ;;
8877 esac
8878 if test "$wrappers_required" = no; then
8879 # Replace the output file specification.
8880 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8881 link_command="$compile_command$compile_rpath"
8882
8883 # We have no uninstalled library dependencies, so finalize right now.
8884 exit_status=0
8885 func_show_eval "$link_command" 'exit_status=$?'
8886
8887 if test -n "$postlink_cmds"; then
8888 func_to_tool_file "$output"
8889 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8890 func_execute_cmds "$postlink_cmds" 'exit $?'
8891 fi
8892
8893 # Delete the generated files.
8894 if test -f "$output_objdir/${outputname}S.${objext}"; then
8895 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
8896 fi
8897
8898 exit $exit_status
8899 fi
8900
8901 if test -n "$compile_shlibpath$finalize_shlibpath"; then
8902 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
8903 fi
8904 if test -n "$finalize_shlibpath"; then
8905 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
8906 fi
8907
8908 compile_var=
8909 finalize_var=
8910 if test -n "$runpath_var"; then
8911 if test -n "$perm_rpath"; then
8912 # We should set the runpath_var.
8913 rpath=
8914 for dir in $perm_rpath; do
8915 func_append rpath "$dir:"
8916 done
8917 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
8918 fi
8919 if test -n "$finalize_perm_rpath"; then
8920 # We should set the runpath_var.
8921 rpath=
8922 for dir in $finalize_perm_rpath; do
8923 func_append rpath "$dir:"
8924 done
8925 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
8926 fi
8927 fi
8928
8929 if test "$no_install" = yes; then
8930 # We don't need to create a wrapper script.
8931 link_command="$compile_var$compile_command$compile_rpath"
8932 # Replace the output file specification.
8933 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8934 # Delete the old output file.
8935 $opt_dry_run || $RM $output
8936 # Link the executable and exit
8937 func_show_eval "$link_command" 'exit $?'
8938
8939 if test -n "$postlink_cmds"; then
8940 func_to_tool_file "$output"
8941 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8942 func_execute_cmds "$postlink_cmds" 'exit $?'
8943 fi
8944
8945 exit $EXIT_SUCCESS
8946 fi
8947
8948 if test "$hardcode_action" = relink; then
8949 # Fast installation is not supported
8950 link_command="$compile_var$compile_command$compile_rpath"
8951 relink_command="$finalize_var$finalize_command$finalize_rpath"
8952
8953 func_warning "this platform does not like uninstalled shared libraries"
8954 func_warning "\`$output' will be relinked during installation"
8955 else
8956 if test "$fast_install" != no; then
8957 link_command="$finalize_var$compile_command$finalize_rpath"
8958 if test "$fast_install" = yes; then
8959 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8960 else
8961 # fast_install is set to needless
8962 relink_command=
8963 fi
8964 else
8965 link_command="$compile_var$compile_command$compile_rpath"
8966 relink_command="$finalize_var$finalize_command$finalize_rpath"
8967 fi
8968 fi
8969
8970 # Replace the output file specification.
8971 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
8972
8973 # Delete the old output files.
8974 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
8975
8976 func_show_eval "$link_command" 'exit $?'
8977
8978 if test -n "$postlink_cmds"; then
8979 func_to_tool_file "$output_objdir/$outputname"
8980 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8981 func_execute_cmds "$postlink_cmds" 'exit $?'
8982 fi
8983
8984 # Now create the wrapper script.
8985 func_verbose "creating $output"
8986
8987 # Quote the relink command for shipping.
8988 if test -n "$relink_command"; then
8989 # Preserve any variables that may affect compiler behavior
8990 for var in $variables_saved_for_relink; do
8991 if eval test -z \"\${$var+set}\"; then
8992 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
8993 elif eval var_value=\$$var; test -z "$var_value"; then
8994 relink_command="$var=; export $var; $relink_command"
8995 else
8996 func_quote_for_eval "$var_value"
8997 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
8998 fi
8999 done
9000 relink_command="(cd `pwd`; $relink_command)"
9001 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9002 fi
9003
9004 # Only actually do things if not in dry run mode.
9005 $opt_dry_run || {
9006 # win32 will think the script is a binary if it has
9007 # a .exe suffix, so we strip it off here.
9008 case $output in
9009 *.exe) func_stripname '' '.exe' "$output"
9010 output=$func_stripname_result ;;
9011 esac
9012 # test for cygwin because mv fails w/o .exe extensions
9013 case $host in
9014 *cygwin*)
9015 exeext=.exe
9016 func_stripname '' '.exe' "$outputname"
9017 outputname=$func_stripname_result ;;
9018 *) exeext= ;;
9019 esac
9020 case $host in
9021 *cygwin* | *mingw* )
9022 func_dirname_and_basename "$output" "" "."
9023 output_name=$func_basename_result
9024 output_path=$func_dirname_result
9025 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9026 cwrapper="$output_path/$output_name.exe"
9027 $RM $cwrappersource $cwrapper
9028 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
9029
9030 func_emit_cwrapperexe_src > $cwrappersource
9031
9032 # The wrapper executable is built using the $host compiler,
9033 # because it contains $host paths and files. If cross-
9034 # compiling, it, like the target executable, must be
9035 # executed on the $host or under an emulation environment.
9036 $opt_dry_run || {
9037 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
9038 $STRIP $cwrapper
9039 }
9040
9041 # Now, create the wrapper script for func_source use:
9042 func_ltwrapper_scriptname $cwrapper
9043 $RM $func_ltwrapper_scriptname_result
9044 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
9045 $opt_dry_run || {
9046 # note: this script will not be executed, so do not chmod.
9047 if test "x$build" = "x$host" ; then
9048 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
9049 else
9050 func_emit_wrapper no > $func_ltwrapper_scriptname_result
9051 fi
9052 }
9053 ;;
9054 * )
9055 $RM $output
9056 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
9057
9058 func_emit_wrapper no > $output
9059 chmod +x $output
9060 ;;
9061 esac
9062 }
9063 exit $EXIT_SUCCESS
9064 ;;
9065 esac
9066
9067 # See if we need to build an old-fashioned archive.
9068 for oldlib in $oldlibs; do
9069
9070 if test "$build_libtool_libs" = convenience; then
9071 oldobjs="$libobjs_save $symfileobj"
9072 addlibs="$convenience"
9073 build_libtool_libs=no
9074 else
9075 if test "$build_libtool_libs" = module; then
9076 oldobjs="$libobjs_save"
9077 build_libtool_libs=no
9078 else
9079 oldobjs="$old_deplibs $non_pic_objects"
9080 if test "$preload" = yes && test -f "$symfileobj"; then
9081 func_append oldobjs " $symfileobj"
9082 fi
9083 fi
9084 addlibs="$old_convenience"
9085 fi
9086
9087 if test -n "$addlibs"; then
9088 gentop="$output_objdir/${outputname}x"
9089 func_append generated " $gentop"
9090
9091 func_extract_archives $gentop $addlibs
9092 func_append oldobjs " $func_extract_archives_result"
9093 fi
9094
9095 # Do each command in the archive commands.
9096 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
9097 cmds=$old_archive_from_new_cmds
9098 else
9099
9100 # Add any objects from preloaded convenience libraries
9101 if test -n "$dlprefiles"; then
9102 gentop="$output_objdir/${outputname}x"
9103 func_append generated " $gentop"
9104
9105 func_extract_archives $gentop $dlprefiles
9106 func_append oldobjs " $func_extract_archives_result"
9107 fi
9108
9109 # POSIX demands no paths to be encoded in archives. We have
9110 # to avoid creating archives with duplicate basenames if we
9111 # might have to extract them afterwards, e.g., when creating a
9112 # static archive out of a convenience library, or when linking
9113 # the entirety of a libtool archive into another (currently
9114 # not supported by libtool).
9115 if (for obj in $oldobjs
9116 do
9117 func_basename "$obj"
9118 $ECHO "$func_basename_result"
9119 done | sort | sort -uc >/dev/null 2>&1); then
9120 :
9121 else
9122 echo "copying selected object files to avoid basename conflicts..."
9123 gentop="$output_objdir/${outputname}x"
9124 func_append generated " $gentop"
9125 func_mkdir_p "$gentop"
9126 save_oldobjs=$oldobjs
9127 oldobjs=
9128 counter=1
9129 for obj in $save_oldobjs
9130 do
9131 func_basename "$obj"
9132 objbase="$func_basename_result"
9133 case " $oldobjs " in
9134 " ") oldobjs=$obj ;;
9135 *[\ /]"$objbase "*)
9136 while :; do
9137 # Make sure we don't pick an alternate name that also
9138 # overlaps.
9139 newobj=lt$counter-$objbase
9140 func_arith $counter + 1
9141 counter=$func_arith_result
9142 case " $oldobjs " in
9143 *[\ /]"$newobj "*) ;;
9144 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
9145 esac
9146 done
9147 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
9148 func_append oldobjs " $gentop/$newobj"
9149 ;;
9150 *) func_append oldobjs " $obj" ;;
9151 esac
9152 done
9153 fi
9154 eval cmds=\"$old_archive_cmds\"
9155
9156 func_len " $cmds"
9157 len=$func_len_result
9158 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9159 cmds=$old_archive_cmds
9160 elif test -n "$archiver_list_spec"; then
9161 func_verbose "using command file archive linking..."
9162 for obj in $oldobjs
9163 do
9164 func_to_tool_file "$obj"
9165 $ECHO "$func_to_tool_file_result"
9166 done > $output_objdir/$libname.libcmd
9167 func_to_tool_file "$output_objdir/$libname.libcmd"
9168 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
9169 cmds=$old_archive_cmds
9170 else
9171 # the command line is too long to link in one step, link in parts
9172 func_verbose "using piecewise archive linking..."
9173 save_RANLIB=$RANLIB
9174 RANLIB=:
9175 objlist=
9176 concat_cmds=
9177 save_oldobjs=$oldobjs
9178 oldobjs=
9179 # Is there a better way of finding the last object in the list?
9180 for obj in $save_oldobjs
9181 do
9182 last_oldobj=$obj
9183 done
9184 eval test_cmds=\"$old_archive_cmds\"
9185 func_len " $test_cmds"
9186 len0=$func_len_result
9187 len=$len0
9188 for obj in $save_oldobjs
9189 do
9190 func_len " $obj"
9191 func_arith $len + $func_len_result
9192 len=$func_arith_result
9193 func_append objlist " $obj"
9194 if test "$len" -lt "$max_cmd_len"; then
9195 :
9196 else
9197 # the above command should be used before it gets too long
9198 oldobjs=$objlist
9199 if test "$obj" = "$last_oldobj" ; then
9200 RANLIB=$save_RANLIB
9201 fi
9202 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9203 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
9204 objlist=
9205 len=$len0
9206 fi
9207 done
9208 RANLIB=$save_RANLIB
9209 oldobjs=$objlist
9210 if test "X$oldobjs" = "X" ; then
9211 eval cmds=\"\$concat_cmds\"
9212 else
9213 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
9214 fi
9215 fi
9216 fi
9217 func_execute_cmds "$cmds" 'exit $?'
9218 done
9219
9220 test -n "$generated" && \
9221 func_show_eval "${RM}r$generated"
9222
9223 # Now create the libtool archive.
9224 case $output in
9225 *.la)
9226 old_library=
9227 test "$build_old_libs" = yes && old_library="$libname.$libext"
9228 func_verbose "creating $output"
9229
9230 # Preserve any variables that may affect compiler behavior
9231 for var in $variables_saved_for_relink; do
9232 if eval test -z \"\${$var+set}\"; then
9233 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
9234 elif eval var_value=\$$var; test -z "$var_value"; then
9235 relink_command="$var=; export $var; $relink_command"
9236 else
9237 func_quote_for_eval "$var_value"
9238 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
9239 fi
9240 done
9241 # Quote the link command for shipping.
9242 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
9243 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9244 if test "$hardcode_automatic" = yes ; then
9245 relink_command=
9246 fi
9247
9248 # Only create the output if not a dry run.
9249 $opt_dry_run || {
9250 for installed in no yes; do
9251 if test "$installed" = yes; then
9252 if test -z "$install_libdir"; then
9253 break
9254 fi
9255 output="$output_objdir/$outputname"i
9256 # Replace all uninstalled libtool libraries with the installed ones
9257 newdependency_libs=
9258 for deplib in $dependency_libs; do
9259 case $deplib in
9260 *.la)
9261 func_basename "$deplib"
9262 name="$func_basename_result"
9263 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9264 test -z "$libdir" && \
9265 func_fatal_error "\`$deplib' is not a valid libtool archive"
9266 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
9267 ;;
9268 -L*)
9269 func_stripname -L '' "$deplib"
9270 func_replace_sysroot "$func_stripname_result"
9271 func_append newdependency_libs " -L$func_replace_sysroot_result"
9272 ;;
9273 -R*)
9274 func_stripname -R '' "$deplib"
9275 func_replace_sysroot "$func_stripname_result"
9276 func_append newdependency_libs " -R$func_replace_sysroot_result"
9277 ;;
9278 *) func_append newdependency_libs " $deplib" ;;
9279 esac
9280 done
9281 dependency_libs="$newdependency_libs"
9282 newdlfiles=
9283
9284 for lib in $dlfiles; do
9285 case $lib in
9286 *.la)
9287 func_basename "$lib"
9288 name="$func_basename_result"
9289 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9290 test -z "$libdir" && \
9291 func_fatal_error "\`$lib' is not a valid libtool archive"
9292 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
9293 ;;
9294 *) func_append newdlfiles " $lib" ;;
9295 esac
9296 done
9297 dlfiles="$newdlfiles"
9298 newdlprefiles=
9299 for lib in $dlprefiles; do
9300 case $lib in
9301 *.la)
9302 # Only pass preopened files to the pseudo-archive (for
9303 # eventual linking with the app. that links it) if we
9304 # didn't already link the preopened objects directly into
9305 # the library:
9306 func_basename "$lib"
9307 name="$func_basename_result"
9308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
9309 test -z "$libdir" && \
9310 func_fatal_error "\`$lib' is not a valid libtool archive"
9311 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
9312 ;;
9313 esac
9314 done
9315 dlprefiles="$newdlprefiles"
9316 else
9317 newdlfiles=
9318 for lib in $dlfiles; do
9319 case $lib in
9320 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9321 *) abs=`pwd`"/$lib" ;;
9322 esac
9323 func_append newdlfiles " $abs"
9324 done
9325 dlfiles="$newdlfiles"
9326 newdlprefiles=
9327 for lib in $dlprefiles; do
9328 case $lib in
9329 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
9330 *) abs=`pwd`"/$lib" ;;
9331 esac
9332 func_append newdlprefiles " $abs"
9333 done
9334 dlprefiles="$newdlprefiles"
9335 fi
9336 $RM $output
9337 # place dlname in correct position for cygwin
9338 # In fact, it would be nice if we could use this code for all target
9339 # systems that can't hard-code library paths into their executables
9340 # and that have no shared library path variable independent of PATH,
9341 # but it turns out we can't easily determine that from inspecting
9342 # libtool variables, so we have to hard-code the OSs to which it
9343 # applies here; at the moment, that means platforms that use the PE
9344 # object format with DLL files. See the long comment at the top of
9345 # tests/bindir.at for full details.
9346 tdlname=$dlname
9347 case $host,$output,$installed,$module,$dlname in
9348 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
9349 # If a -bindir argument was supplied, place the dll there.
9350 if test "x$bindir" != x ;
9351 then
9352 func_relative_path "$install_libdir" "$bindir"
9353 tdlname=$func_relative_path_result$dlname
9354 else
9355 # Otherwise fall back on heuristic.
9356 tdlname=../bin/$dlname
9357 fi
9358 ;;
9359 esac
9360 $ECHO > $output "\
9361 # $outputname - a libtool library file
9362 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
9363 #
9364 # Please DO NOT delete this file!
9365 # It is necessary for linking the library.
9366
9367 # The name that we can dlopen(3).
9368 dlname='$tdlname'
9369
9370 # Names of this library.
9371 library_names='$library_names'
9372
9373 # The name of the static archive.
9374 old_library='$old_library'
9375
9376 # Linker flags that can not go in dependency_libs.
9377 inherited_linker_flags='$new_inherited_linker_flags'
9378
9379 # Libraries that this one depends upon.
9380 dependency_libs='$dependency_libs'
9381
9382 # Names of additional weak libraries provided by this library
9383 weak_library_names='$weak_libs'
9384
9385 # Version information for $libname.
9386 current=$current
9387 age=$age
9388 revision=$revision
9389
9390 # Is this an already installed library?
9391 installed=$installed
9392
9393 # Should we warn about portability when linking against -modules?
9394 shouldnotlink=$module
9395
9396 # Files to dlopen/dlpreopen
9397 dlopen='$dlfiles'
9398 dlpreopen='$dlprefiles'
9399
9400 # Directory that this library needs to be installed in:
9401 libdir='$install_libdir'"
9402 if test "$installed" = no && test "$need_relink" = yes; then
9403 $ECHO >> $output "\
9404 relink_command=\"$relink_command\""
9405 fi
9406 done
9407 }
9408
9409 # Do a symbolic link so that the libtool archive can be found in
9410 # LD_LIBRARY_PATH before the program is installed.
9411 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
9412 ;;
9413 esac
9414 exit $EXIT_SUCCESS
9415 }
9416
9417 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9418 func_mode_link ${1+"$@"}
9419
9420
9421 # func_mode_uninstall arg...
9422 func_mode_uninstall ()
9423 {
9424 $opt_debug
9425 RM="$nonopt"
9426 files=
9427 rmforce=
9428 exit_status=0
9429
9430 # This variable tells wrapper scripts just to set variables rather
9431 # than running their programs.
9432 libtool_install_magic="$magic"
9433
9434 for arg
9435 do
9436 case $arg in
9437 -f) func_append RM " $arg"; rmforce=yes ;;
9438 -*) func_append RM " $arg" ;;
9439 *) func_append files " $arg" ;;
9440 esac
9441 done
9442
9443 test -z "$RM" && \
9444 func_fatal_help "you must specify an RM program"
9445
9446 rmdirs=
9447
9448 for file in $files; do
9449 func_dirname "$file" "" "."
9450 dir="$func_dirname_result"
9451 if test "X$dir" = X.; then
9452 odir="$objdir"
9453 else
9454 odir="$dir/$objdir"
9455 fi
9456 func_basename "$file"
9457 name="$func_basename_result"
9458 test "$opt_mode" = uninstall && odir="$dir"
9459
9460 # Remember odir for removal later, being careful to avoid duplicates
9461 if test "$opt_mode" = clean; then
9462 case " $rmdirs " in
9463 *" $odir "*) ;;
9464 *) func_append rmdirs " $odir" ;;
9465 esac
9466 fi
9467
9468 # Don't error if the file doesn't exist and rm -f was used.
9469 if { test -L "$file"; } >/dev/null 2>&1 ||
9470 { test -h "$file"; } >/dev/null 2>&1 ||
9471 test -f "$file"; then
9472 :
9473 elif test -d "$file"; then
9474 exit_status=1
9475 continue
9476 elif test "$rmforce" = yes; then
9477 continue
9478 fi
9479
9480 rmfiles="$file"
9481
9482 case $name in
9483 *.la)
9484 # Possibly a libtool archive, so verify it.
9485 if func_lalib_p "$file"; then
9486 func_source $dir/$name
9487
9488 # Delete the libtool libraries and symlinks.
9489 for n in $library_names; do
9490 func_append rmfiles " $odir/$n"
9491 done
9492 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9493
9494 case "$opt_mode" in
9495 clean)
9496 case " $library_names " in
9497 *" $dlname "*) ;;
9498 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
9499 esac
9500 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
9501 ;;
9502 uninstall)
9503 if test -n "$library_names"; then
9504 # Do each command in the postuninstall commands.
9505 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9506 fi
9507
9508 if test -n "$old_library"; then
9509 # Do each command in the old_postuninstall commands.
9510 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
9511 fi
9512 # FIXME: should reinstall the best remaining shared library.
9513 ;;
9514 esac
9515 fi
9516 ;;
9517
9518 *.lo)
9519 # Possibly a libtool object, so verify it.
9520 if func_lalib_p "$file"; then
9521
9522 # Read the .lo file
9523 func_source $dir/$name
9524
9525 # Add PIC object to the list of files to remove.
9526 if test -n "$pic_object" &&
9527 test "$pic_object" != none; then
9528 func_append rmfiles " $dir/$pic_object"
9529 fi
9530
9531 # Add non-PIC object to the list of files to remove.
9532 if test -n "$non_pic_object" &&
9533 test "$non_pic_object" != none; then
9534 func_append rmfiles " $dir/$non_pic_object"
9535 fi
9536 fi
9537 ;;
9538
9539 *)
9540 if test "$opt_mode" = clean ; then
9541 noexename=$name
9542 case $file in
9543 *.exe)
9544 func_stripname '' '.exe' "$file"
9545 file=$func_stripname_result
9546 func_stripname '' '.exe' "$name"
9547 noexename=$func_stripname_result
9548 # $file with .exe has already been added to rmfiles,
9549 # add $file without .exe
9550 func_append rmfiles " $file"
9551 ;;
9552 esac
9553 # Do a test to see if this is a libtool program.
9554 if func_ltwrapper_p "$file"; then
9555 if func_ltwrapper_executable_p "$file"; then
9556 func_ltwrapper_scriptname "$file"
9557 relink_command=
9558 func_source $func_ltwrapper_scriptname_result
9559 func_append rmfiles " $func_ltwrapper_scriptname_result"
9560 else
9561 relink_command=
9562 func_source $dir/$noexename
9563 fi
9564
9565 # note $name still contains .exe if it was in $file originally
9566 # as does the version of $file that was added into $rmfiles
9567 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9568 if test "$fast_install" = yes && test -n "$relink_command"; then
9569 func_append rmfiles " $odir/lt-$name"
9570 fi
9571 if test "X$noexename" != "X$name" ; then
9572 func_append rmfiles " $odir/lt-${noexename}.c"
9573 fi
9574 fi
9575 fi
9576 ;;
9577 esac
9578 func_show_eval "$RM $rmfiles" 'exit_status=1'
9579 done
9580
9581 # Try to remove the ${objdir}s in the directories where we deleted files
9582 for dir in $rmdirs; do
9583 if test -d "$dir"; then
9584 func_show_eval "rmdir $dir >/dev/null 2>&1"
9585 fi
9586 done
9587
9588 exit $exit_status
9589 }
9590
9591 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9592 func_mode_uninstall ${1+"$@"}
9593
9594 test -z "$opt_mode" && {
9595 help="$generic_help"
9596 func_fatal_help "you must specify a MODE"
9597 }
9598
9599 test -z "$exec_cmd" && \
9600 func_fatal_help "invalid operation mode \`$opt_mode'"
9601
9602 if test -n "$exec_cmd"; then
9603 eval exec "$exec_cmd"
9604 exit $EXIT_FAILURE
9605 fi
9606
9607 exit $exit_status
9608
9609
9610 # The TAGs below are defined such that we never get into a situation
9611 # in which we disable both kinds of libraries. Given conflicting
9612 # choices, we go for a static library, that is the most portable,
9613 # since we can't tell whether shared libraries were disabled because
9614 # the user asked for that or because the platform doesn't support
9615 # them. This is particularly important on AIX, because we don't
9616 # support having both static and shared libraries enabled at the same
9617 # time on that platform, so we default to a shared-only configuration.
9618 # If a disable-shared tag is given, we'll fallback to a static-only
9619 # configuration. But we'll never go from static-only to shared-only.
9620
9621 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
9622 build_libtool_libs=no
9623 build_old_libs=yes
9624 # ### END LIBTOOL TAG CONFIG: disable-shared
9625
9626 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
9627 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
9628 # ### END LIBTOOL TAG CONFIG: disable-static
9629
9630 # Local Variables:
9631 # mode:shell-script
9632 # sh-indentation:2
9633 # End:
9634 # vi:sw=2
9635
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 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, see <http://www.gnu.org/licenses/>.
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 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
29 exit 1
30 fi
31
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
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 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
91
92 Send bug reports to <bug-automake@gnu.org>."
93 exit $?
94 ;;
95
96 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
97 echo "missing $scriptversion (GNU Automake)"
98 exit $?
99 ;;
100
101 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
104 exit 1
105 ;;
106
107 esac
108
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
368
369 # Local variables:
370 # eval: (add-hook 'write-file-hooks 'time-stamp)
371 # time-stamp-start: "scriptversion="
372 # time-stamp-format: "%:y-%02m-%02d.%02H"
373 # time-stamp-time-zone: "UTC"
374 # time-stamp-end: "; # UTC"
375 # End:
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to 1 if you have the <dlfcn.h> header file. */
3 #undef HAVE_DLFCN_H
4
5 /* Define to 1 if you have the <inttypes.h> header file. */
6 #undef HAVE_INTTYPES_H
7
8 /* Define to 1 if you have the <memory.h> header file. */
9 #undef HAVE_MEMORY_H
10
11 /* Define to 1 if you have the <stdint.h> header file. */
12 #undef HAVE_STDINT_H
13
14 /* Define to 1 if you have the <stdlib.h> header file. */
15 #undef HAVE_STDLIB_H
16
17 /* Define to 1 if you have the <strings.h> header file. */
18 #undef HAVE_STRINGS_H
19
20 /* Define to 1 if you have the <string.h> header file. */
21 #undef HAVE_STRING_H
22
23 /* Define to 1 if you have the <sys/stat.h> header file. */
24 #undef HAVE_SYS_STAT_H
25
26 /* Define to 1 if you have the <sys/types.h> header file. */
27 #undef HAVE_SYS_TYPES_H
28
29 /* Define to 1 if you have the <unistd.h> header file. */
30 #undef HAVE_UNISTD_H
31
32 /* Define to the sub-directory in which libtool stores uninstalled libraries.
33 */
34 #undef LT_OBJDIR
35
36 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
37 #undef NO_MINUS_C_MINUS_O
38
39 /* Name of package */
40 #undef PACKAGE
41
42 /* Define to the address where bug reports for this package should be sent. */
43 #undef PACKAGE_BUGREPORT
44
45 /* Define to the full name of this package. */
46 #undef PACKAGE_NAME
47
48 /* Define to the full name and version of this package. */
49 #undef PACKAGE_STRING
50
51 /* Define to the one symbol short name of this package. */
52 #undef PACKAGE_TARNAME
53
54 /* Define to the home page for this package. */
55 #undef PACKAGE_URL
56
57 /* Define to the version of this package. */
58 #undef PACKAGE_VERSION
59
60 /* Define to 1 if you have the ANSI C header files. */
61 #undef STDC_HEADERS
62
63 /* Version number of package */
64 #undef VERSION
65
66 /* enable GObject introspection support */
67 #undef WITH_GOBJECT_INTROSPECTION
68
69 /* Enable GNU extensions */
70 #undef _GNU_SOURCE
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for libvirt-glib 0.0.1.
3 #
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
208 fi
209 fi
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 # Preserve -v and -x to the replacement shell.
226 BASH_ENV=/dev/null
227 ENV=/dev/null
228 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 export CONFIG_SHELL
230 case $- in # ((((
231 *v*x* | *x*v* ) as_opts=-vx ;;
232 *v* ) as_opts=-v ;;
233 *x* ) as_opts=-x ;;
234 * ) as_opts= ;;
235 esac
236 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 fi
238
239 if test x$as_have_required = xno; then :
240 $as_echo "$0: This script requires a shell more modern than all"
241 $as_echo "$0: the shells that I found on your system."
242 if test x${ZSH_VERSION+set} = xset ; then
243 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
244 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
245 else
246 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
247 $0: including any error possibly output before this
248 $0: message. Then install a modern shell, or manually run
249 $0: the script under such a shell if you do have one."
250 fi
251 exit 1
252 fi
253 fi
254 fi
255 SHELL=${CONFIG_SHELL-/bin/sh}
256 export SHELL
257 # Unset more variables known to interfere with behavior of common tools.
258 CLICOLOR_FORCE= GREP_OPTIONS=
259 unset CLICOLOR_FORCE GREP_OPTIONS
260
261 ## --------------------- ##
262 ## M4sh Shell Functions. ##
263 ## --------------------- ##
264 # as_fn_unset VAR
265 # ---------------
266 # Portably unset VAR.
267 as_fn_unset ()
268 {
269 { eval $1=; unset $1;}
270 }
271 as_unset=as_fn_unset
272
273 # as_fn_set_status STATUS
274 # -----------------------
275 # Set $? to STATUS, without forking.
276 as_fn_set_status ()
277 {
278 return $1
279 } # as_fn_set_status
280
281 # as_fn_exit STATUS
282 # -----------------
283 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 as_fn_exit ()
285 {
286 set +e
287 as_fn_set_status $1
288 exit $1
289 } # as_fn_exit
290
291 # as_fn_mkdir_p
292 # -------------
293 # Create "$as_dir" as a directory, including parents if necessary.
294 as_fn_mkdir_p ()
295 {
296
297 case $as_dir in #(
298 -*) as_dir=./$as_dir;;
299 esac
300 test -d "$as_dir" || eval $as_mkdir_p || {
301 as_dirs=
302 while :; do
303 case $as_dir in #(
304 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
305 *) as_qdir=$as_dir;;
306 esac
307 as_dirs="'$as_qdir' $as_dirs"
308 as_dir=`$as_dirname -- "$as_dir" ||
309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
310 X"$as_dir" : 'X\(//\)[^/]' \| \
311 X"$as_dir" : 'X\(//\)$' \| \
312 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
313 $as_echo X"$as_dir" |
314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)[^/].*/{
319 s//\1/
320 q
321 }
322 /^X\(\/\/\)$/{
323 s//\1/
324 q
325 }
326 /^X\(\/\).*/{
327 s//\1/
328 q
329 }
330 s/.*/./; q'`
331 test -d "$as_dir" && break
332 done
333 test -z "$as_dirs" || eval "mkdir $as_dirs"
334 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335
336
337 } # as_fn_mkdir_p
338 # as_fn_append VAR VALUE
339 # ----------------------
340 # Append the text in VALUE to the end of the definition contained in VAR. Take
341 # advantage of any shell optimizations that allow amortized linear growth over
342 # repeated appends, instead of the typical quadratic growth present in naive
343 # implementations.
344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
345 eval 'as_fn_append ()
346 {
347 eval $1+=\$2
348 }'
349 else
350 as_fn_append ()
351 {
352 eval $1=\$$1\$2
353 }
354 fi # as_fn_append
355
356 # as_fn_arith ARG...
357 # ------------------
358 # Perform arithmetic evaluation on the ARGs, and store the result in the
359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
360 # must be portable across $(()) and expr.
361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 eval 'as_fn_arith ()
363 {
364 as_val=$(( $* ))
365 }'
366 else
367 as_fn_arith ()
368 {
369 as_val=`expr "$@" || test $? -eq 1`
370 }
371 fi # as_fn_arith
372
373
374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
375 # ----------------------------------------
376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
378 # script with STATUS, using 1 if that was 0.
379 as_fn_error ()
380 {
381 as_status=$1; test $as_status -eq 0 && as_status=1
382 if test "$4"; then
383 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 fi
386 $as_echo "$as_me: error: $2" >&2
387 as_fn_exit $as_status
388 } # as_fn_error
389
390 if expr a : '\(a\)' >/dev/null 2>&1 &&
391 test "X`expr 00001 : '.*\(...\)'`" = X001; then
392 as_expr=expr
393 else
394 as_expr=false
395 fi
396
397 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 as_basename=basename
399 else
400 as_basename=false
401 fi
402
403 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
404 as_dirname=dirname
405 else
406 as_dirname=false
407 fi
408
409 as_me=`$as_basename -- "$0" ||
410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
411 X"$0" : 'X\(//\)$' \| \
412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 $as_echo X/"$0" |
414 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\/\)$/{
419 s//\1/
420 q
421 }
422 /^X\/\(\/\).*/{
423 s//\1/
424 q
425 }
426 s/.*/./; q'`
427
428 # Avoid depending upon Character Ranges.
429 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
430 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
431 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
432 as_cr_digits='0123456789'
433 as_cr_alnum=$as_cr_Letters$as_cr_digits
434
435
436 as_lineno_1=$LINENO as_lineno_1a=$LINENO
437 as_lineno_2=$LINENO as_lineno_2a=$LINENO
438 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
439 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
440 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
441 sed -n '
442 p
443 /[$]LINENO/=
444 ' <$as_myself |
445 sed '
446 s/[$]LINENO.*/&-/
447 t lineno
448 b
449 :lineno
450 N
451 :loop
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 t loop
454 s/-\n.*//
455 ' >$as_me.lineno &&
456 chmod +x "$as_me.lineno" ||
457 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in #(((((
469 -n*)
470 case `echo 'xy\c'` in
471 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 xy) ECHO_C='\c';;
473 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
474 ECHO_T=' ';;
475 esac;;
476 *)
477 ECHO_N='-n';;
478 esac
479
480 rm -f conf$$ conf$$.exe conf$$.file
481 if test -d conf$$.dir; then
482 rm -f conf$$.dir/conf$$.file
483 else
484 rm -f conf$$.dir
485 mkdir conf$$.dir 2>/dev/null
486 fi
487 if (echo >conf$$.file) 2>/dev/null; then
488 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s='ln -s'
490 # ... but there are two gotchas:
491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
493 # In both cases, we have to default to `cp -p'.
494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 as_ln_s='cp -p'
496 elif ln conf$$.file conf$$ 2>/dev/null; then
497 as_ln_s=ln
498 else
499 as_ln_s='cp -p'
500 fi
501 else
502 as_ln_s='cp -p'
503 fi
504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
505 rmdir conf$$.dir 2>/dev/null
506
507 if mkdir -p . 2>/dev/null; then
508 as_mkdir_p='mkdir -p "$as_dir"'
509 else
510 test -d ./-p && rmdir ./-p
511 as_mkdir_p=false
512 fi
513
514 if test -x / >/dev/null 2>&1; then
515 as_test_x='test -x'
516 else
517 if ls -dL / >/dev/null 2>&1; then
518 as_ls_L_option=L
519 else
520 as_ls_L_option=
521 fi
522 as_test_x='
523 eval sh -c '\''
524 if test -d "$1"; then
525 test -d "$1/.";
526 else
527 case $1 in #(
528 -*)set "./$1";;
529 esac;
530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
531 ???[sx]*):;;*)false;;esac;fi
532 '\'' sh
533 '
534 fi
535 as_executable_p=$as_test_x
536
537 # Sed expression to map a string onto a valid CPP name.
538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539
540 # Sed expression to map a string onto a valid variable name.
541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542
543 SHELL=${CONFIG_SHELL-/bin/sh}
544
545
546 test -n "$DJDIR" || exec 7<&0 </dev/null
547 exec 6>&1
548
549 # Name of the host.
550 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
551 # so uname gets run too.
552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
554 #
555 # Initializations.
556 #
557 ac_default_prefix=/usr/local
558 ac_clean_files=
559 ac_config_libobj_dir=.
560 LIBOBJS=
561 cross_compiling=no
562 subdirs=
563 MFLAGS=
564 MAKEFLAGS=
565
566 # Identity of this package.
567 PACKAGE_NAME='libvirt-glib'
568 PACKAGE_TARNAME='libvirt-glib'
569 PACKAGE_VERSION='0.0.1'
570 PACKAGE_STRING='libvirt-glib 0.0.1'
571 PACKAGE_BUGREPORT=''
572 PACKAGE_URL=''
573
574 ac_unique_file="libvirt-glib/libvirt-glib-main.c"
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 # include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 # include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 WITH_VALA_FALSE
616 WITH_VALA_TRUE
617 VAPIGEN
618 WITH_GOBJECT_INTROSPECTION_FALSE
619 WITH_GOBJECT_INTROSPECTION_TRUE
620 G_IR_COMPILER
621 G_IR_SCANNER
622 GOBJECT_INTROSPECTION_LIBS
623 GOBJECT_INTROSPECTION_CFLAGS
624 PYTHON_SITE_PACKAGES
625 PYTHON_INCLUDES
626 PYTHON_VERSION
627 pythondir
628 WITH_PYTHON_FALSE
629 WITH_PYTHON_TRUE
630 PYTHON
631 COVERAGE_LDFLAGS
632 COVERAGE_CFLAGS
633 COMPILER_FLAGS
634 MINGW_EXTRA_LDFLAGS
635 CYGWIN_EXTRA_PYTHON_LIBADD
636 CYGWIN_EXTRA_LIBADD
637 CYGWIN_EXTRA_LDFLAGS
638 GTK_DOC_USE_REBASE_FALSE
639 GTK_DOC_USE_REBASE_TRUE
640 GTK_DOC_USE_LIBTOOL_FALSE
641 GTK_DOC_USE_LIBTOOL_TRUE
642 GTK_DOC_BUILD_PDF_FALSE
643 GTK_DOC_BUILD_PDF_TRUE
644 GTK_DOC_BUILD_HTML_FALSE
645 GTK_DOC_BUILD_HTML_TRUE
646 ENABLE_GTK_DOC_FALSE
647 ENABLE_GTK_DOC_TRUE
648 HTML_DIR
649 GTKDOC_MKPDF
650 GTKDOC_REBASE
651 GTKDOC_CHECK
652 LIBXML2_LIBS
653 LIBXML2_CFLAGS
654 GIO2_LIBS
655 GIO2_CFLAGS
656 GOBJECT2_LIBS
657 GOBJECT2_CFLAGS
658 GTHREAD2_LIBS
659 GTHREAD2_CFLAGS
660 GLIB2_LIBS
661 GLIB2_CFLAGS
662 LIBVIRT_LIBS
663 LIBVIRT_CFLAGS
664 PKG_CONFIG_LIBDIR
665 PKG_CONFIG_PATH
666 PKG_CONFIG
667 WARN_CFLAGS
668 CPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 MANIFEST_TOOL
675 RANLIB
676 ac_ct_AR
677 AR
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 LIBTOOL
688 OBJDUMP
689 DLLTOOL
690 AS
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 LIBVIRT_GLIB_VERSION_NUMBER
708 LIBVIRT_GLIB_VERSION_INFO
709 LIBVIRT_GLIB_VERSION
710 LIBVIRT_GLIB_MICRO_VERSION
711 LIBVIRT_GLIB_MINOR_VERSION
712 LIBVIRT_GLIB_MAJOR_VERSION
713 AM_BACKSLASH
714 AM_DEFAULT_VERBOSITY
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_alias
747 host_alias
748 build_alias
749 LIBS
750 ECHO_T
751 ECHO_N
752 ECHO_C
753 DEFS
754 mandir
755 localedir
756 libdir
757 psdir
758 pdfdir
759 dvidir
760 htmldir
761 infodir
762 docdir
763 oldincludedir
764 includedir
765 localstatedir
766 sharedstatedir
767 sysconfdir
768 datadir
769 datarootdir
770 libexecdir
771 sbindir
772 bindir
773 program_transform_name
774 prefix
775 exec_prefix
776 PACKAGE_URL
777 PACKAGE_BUGREPORT
778 PACKAGE_STRING
779 PACKAGE_VERSION
780 PACKAGE_TARNAME
781 PACKAGE_NAME
782 PATH_SEPARATOR
783 SHELL'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 enable_dependency_tracking
789 enable_shared
790 enable_static
791 with_pic
792 enable_fast_install
793 with_gnu_ld
794 with_sysroot
795 enable_libtool_lock
796 enable_compile_warnings
797 enable_iso_c
798 with_html_dir
799 enable_gtk_doc
800 enable_gtk_doc_html
801 enable_gtk_doc_pdf
802 enable_test_coverage
803 with_python
804 enable_introspection
805 enable_vala
806 '
807 ac_precious_vars='build_alias
808 host_alias
809 target_alias
810 CC
811 CFLAGS
812 LDFLAGS
813 LIBS
814 CPPFLAGS
815 CPP
816 PKG_CONFIG
817 PKG_CONFIG_PATH
818 PKG_CONFIG_LIBDIR
819 LIBVIRT_CFLAGS
820 LIBVIRT_LIBS
821 GLIB2_CFLAGS
822 GLIB2_LIBS
823 GTHREAD2_CFLAGS
824 GTHREAD2_LIBS
825 GOBJECT2_CFLAGS
826 GOBJECT2_LIBS
827 GIO2_CFLAGS
828 GIO2_LIBS
829 LIBXML2_CFLAGS
830 LIBXML2_LIBS
831 GOBJECT_INTROSPECTION_CFLAGS
832 GOBJECT_INTROSPECTION_LIBS'
833
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
895 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *=) ac_optarg= ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error $? "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information"
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error $? "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used" >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures libvirt-glib 0.0.1 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libvirt-glib]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of libvirt-glib 0.0.1:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: `make V=1')
1454 --disable-silent-rules verbose build output (undo: `make V=0')
1455 --disable-dependency-tracking speeds up one-time build
1456 --enable-dependency-tracking do not reject slow dependency extractors
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-compile-warnings=[no/minimum/yes/maximum/error]
1463 Turn on compiler warnings
1464 --enable-iso-c Try to warn if code is not ISO C
1465 --enable-gtk-doc use gtk-doc to build documentation [[default=no]]
1466 --enable-gtk-doc-html build documentation in html format [[default=yes]]
1467 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]]
1468 --enable-test-coverage turn on code coverage instrumentation
1469 --enable-introspection enable GObject introspection
1470 --enable-vala enable Vala binding generation
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-sysroot=DIR Search for dependent libraries within DIR
1479 (or the compiler's sysroot if not specified).
1480 --with-html-dir=PATH path to installed docs
1481 --with-python Build python bindings [default=yes]
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CPP C preprocessor
1492 PKG_CONFIG path to pkg-config utility
1493 PKG_CONFIG_PATH
1494 directories to add to pkg-config's search path
1495 PKG_CONFIG_LIBDIR
1496 path overriding pkg-config's built-in search path
1497 LIBVIRT_CFLAGS
1498 C compiler flags for LIBVIRT, overriding pkg-config
1499 LIBVIRT_LIBS
1500 linker flags for LIBVIRT, overriding pkg-config
1501 GLIB2_CFLAGS
1502 C compiler flags for GLIB2, overriding pkg-config
1503 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config
1504 GTHREAD2_CFLAGS
1505 C compiler flags for GTHREAD2, overriding pkg-config
1506 GTHREAD2_LIBS
1507 linker flags for GTHREAD2, overriding pkg-config
1508 GOBJECT2_CFLAGS
1509 C compiler flags for GOBJECT2, overriding pkg-config
1510 GOBJECT2_LIBS
1511 linker flags for GOBJECT2, overriding pkg-config
1512 GIO2_CFLAGS C compiler flags for GIO2, overriding pkg-config
1513 GIO2_LIBS linker flags for GIO2, overriding pkg-config
1514 LIBXML2_CFLAGS
1515 C compiler flags for LIBXML2, overriding pkg-config
1516 LIBXML2_LIBS
1517 linker flags for LIBXML2, overriding pkg-config
1518 GOBJECT_INTROSPECTION_CFLAGS
1519 C compiler flags for GOBJECT_INTROSPECTION, overriding
1520 pkg-config
1521 GOBJECT_INTROSPECTION_LIBS
1522 linker flags for GOBJECT_INTROSPECTION, overriding pkg-config
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 libvirt-glib configure 0.0.1
1591 generated by GNU Autoconf 2.68
1592
1593 Copyright (C) 2010 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 $as_test_x conftest$ac_exeext
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_link
1687
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 $4
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=$ac_status
1791 fi
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1813 #define $2 innocuous_$2
1814
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $2 (); below.
1817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818 <limits.h> exists even on freestanding compilers. */
1819
1820 #ifdef __STDC__
1821 # include <limits.h>
1822 #else
1823 # include <assert.h>
1824 #endif
1825
1826 #undef $2
1827
1828 /* Override any GCC internal prototype to avoid an error.
1829 Use char because int might match the return type of a GCC
1830 builtin and then its argument prototype would still apply. */
1831 #ifdef __cplusplus
1832 extern "C"
1833 #endif
1834 char $2 ();
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined __stub_$2 || defined __stub___$2
1839 choke me
1840 #endif
1841
1842 int
1843 main ()
1844 {
1845 return $2 ();
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_link "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext \
1856 conftest$ac_exeext conftest.$ac_ext
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863 } # ac_fn_c_check_func
1864 cat >config.log <<_ACEOF
1865 This file contains any messages produced by compilers while
1866 running configure, to aid debugging if configure makes a mistake.
1867
1868 It was created by libvirt-glib $as_me 0.0.1, which was
1869 generated by GNU Autoconf 2.68. Invocation command line was
1870
1871 $ $0 $@
1872
1873 _ACEOF
1874 exec 5>>config.log
1875 {
1876 cat <<_ASUNAME
1877 ## --------- ##
1878 ## Platform. ##
1879 ## --------- ##
1880
1881 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1889
1890 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1891 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1892 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1894 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1895 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1896 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1897
1898 _ASUNAME
1899
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 $as_echo "PATH: $as_dir"
1906 done
1907 IFS=$as_save_IFS
1908
1909 } >&5
1910
1911 cat >&5 <<_ACEOF
1912
1913
1914 ## ----------- ##
1915 ## Core tests. ##
1916 ## ----------- ##
1917
1918 _ACEOF
1919
1920
1921 # Keep a trace of the command line.
1922 # Strip out --no-create and --no-recursion so they do not pile up.
1923 # Strip out --silent because we don't want to record it for future runs.
1924 # Also quote any args containing shell meta-characters.
1925 # Make two passes to allow for proper duplicate-argument suppression.
1926 ac_configure_args=
1927 ac_configure_args0=
1928 ac_configure_args1=
1929 ac_must_keep_next=false
1930 for ac_pass in 1 2
1931 do
1932 for ac_arg
1933 do
1934 case $ac_arg in
1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1937 | -silent | --silent | --silen | --sile | --sil)
1938 continue ;;
1939 *\'*)
1940 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1941 esac
1942 case $ac_pass in
1943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1944 2)
1945 as_fn_append ac_configure_args1 " '$ac_arg'"
1946 if test $ac_must_keep_next = true; then
1947 ac_must_keep_next=false # Got value, back to normal.
1948 else
1949 case $ac_arg in
1950 *=* | --config-cache | -C | -disable-* | --disable-* \
1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1953 | -with-* | --with-* | -without-* | --without-* | --x)
1954 case "$ac_configure_args0 " in
1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1956 esac
1957 ;;
1958 -* ) ac_must_keep_next=true ;;
1959 esac
1960 fi
1961 as_fn_append ac_configure_args " '$ac_arg'"
1962 ;;
1963 esac
1964 done
1965 done
1966 { ac_configure_args0=; unset ac_configure_args0;}
1967 { ac_configure_args1=; unset ac_configure_args1;}
1968
1969 # When interrupted or exit'd, cleanup temporary files, and complete
1970 # config.log. We remove comments because anyway the quotes in there
1971 # would cause problems or look ugly.
1972 # WARNING: Use '\'' to represent an apostrophe within the trap.
1973 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1974 trap 'exit_status=$?
1975 # Save into config.log some information that might help in debugging.
1976 {
1977 echo
1978
1979 $as_echo "## ---------------- ##
1980 ## Cache variables. ##
1981 ## ---------------- ##"
1982 echo
1983 # The following way of writing the cache mishandles newlines in values,
1984 (
1985 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in #(
1988 *${as_nl}*)
1989 case $ac_var in #(
1990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1992 esac
1993 case $ac_var in #(
1994 _ | IFS | as_nl) ;; #(
1995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1996 *) { eval $ac_var=; unset $ac_var;} ;;
1997 esac ;;
1998 esac
1999 done
2000 (set) 2>&1 |
2001 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2002 *${as_nl}ac_space=\ *)
2003 sed -n \
2004 "s/'\''/'\''\\\\'\'''\''/g;
2005 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2006 ;; #(
2007 *)
2008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2009 ;;
2010 esac |
2011 sort
2012 )
2013 echo
2014
2015 $as_echo "## ----------------- ##
2016 ## Output variables. ##
2017 ## ----------------- ##"
2018 echo
2019 for ac_var in $ac_subst_vars
2020 do
2021 eval ac_val=\$$ac_var
2022 case $ac_val in
2023 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 esac
2025 $as_echo "$ac_var='\''$ac_val'\''"
2026 done | sort
2027 echo
2028
2029 if test -n "$ac_subst_files"; then
2030 $as_echo "## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##"
2033 echo
2034 for ac_var in $ac_subst_files
2035 do
2036 eval ac_val=\$$ac_var
2037 case $ac_val in
2038 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039 esac
2040 $as_echo "$ac_var='\''$ac_val'\''"
2041 done | sort
2042 echo
2043 fi
2044
2045 if test -s confdefs.h; then
2046 $as_echo "## ----------- ##
2047 ## confdefs.h. ##
2048 ## ----------- ##"
2049 echo
2050 cat confdefs.h
2051 echo
2052 fi
2053 test "$ac_signal" != 0 &&
2054 $as_echo "$as_me: caught signal $ac_signal"
2055 $as_echo "$as_me: exit $exit_status"
2056 } >&5
2057 rm -f core *.core core.conftest.* &&
2058 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2059 exit $exit_status
2060 ' 0
2061 for ac_signal in 1 2 13 15; do
2062 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2063 done
2064 ac_signal=0
2065
2066 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2067 rm -f -r conftest* confdefs.h
2068
2069 $as_echo "/* confdefs.h */" > confdefs.h
2070
2071 # Predefined preprocessor variables.
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_NAME "$PACKAGE_NAME"
2075 _ACEOF
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2079 _ACEOF
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_STRING "$PACKAGE_STRING"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_URL "$PACKAGE_URL"
2095 _ACEOF
2096
2097
2098 # Let the site file select an alternate cache file if it wants to.
2099 # Prefer an explicitly selected file to automatically selected ones.
2100 ac_site_file1=NONE
2101 ac_site_file2=NONE
2102 if test -n "$CONFIG_SITE"; then
2103 # We do not want a PATH search for config.site.
2104 case $CONFIG_SITE in #((
2105 -*) ac_site_file1=./$CONFIG_SITE;;
2106 */*) ac_site_file1=$CONFIG_SITE;;
2107 *) ac_site_file1=./$CONFIG_SITE;;
2108 esac
2109 elif test "x$prefix" != xNONE; then
2110 ac_site_file1=$prefix/share/config.site
2111 ac_site_file2=$prefix/etc/config.site
2112 else
2113 ac_site_file1=$ac_default_prefix/share/config.site
2114 ac_site_file2=$ac_default_prefix/etc/config.site
2115 fi
2116 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2117 do
2118 test "x$ac_site_file" = xNONE && continue
2119 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2121 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2122 sed 's/^/| /' "$ac_site_file" >&5
2123 . "$ac_site_file" \
2124 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126 as_fn_error $? "failed to load site script $ac_site_file
2127 See \`config.log' for more details" "$LINENO" 5; }
2128 fi
2129 done
2130
2131 if test -r "$cache_file"; then
2132 # Some versions of bash will fail to source /dev/null (special files
2133 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2134 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136 $as_echo "$as_me: loading cache $cache_file" >&6;}
2137 case $cache_file in
2138 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139 *) . "./$cache_file";;
2140 esac
2141 fi
2142 else
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144 $as_echo "$as_me: creating cache $cache_file" >&6;}
2145 >$cache_file
2146 fi
2147
2148 # Check that the precious variables saved in the cache have kept the same
2149 # value.
2150 ac_cache_corrupted=false
2151 for ac_var in $ac_precious_vars; do
2152 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153 eval ac_new_set=\$ac_env_${ac_var}_set
2154 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155 eval ac_new_val=\$ac_env_${ac_var}_value
2156 case $ac_old_set,$ac_new_set in
2157 set,)
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160 ac_cache_corrupted=: ;;
2161 ,set)
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2165 ,);;
2166 *)
2167 if test "x$ac_old_val" != "x$ac_new_val"; then
2168 # differences in whitespace do not lead to failure.
2169 ac_old_val_w=`echo x $ac_old_val`
2170 ac_new_val_w=`echo x $ac_new_val`
2171 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174 ac_cache_corrupted=:
2175 else
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178 eval $ac_var=\$ac_old_val
2179 fi
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2181 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2183 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2184 fi;;
2185 esac
2186 # Pass precious variables to config.status.
2187 if test "$ac_new_set" = set; then
2188 case $ac_new_val in
2189 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190 *) ac_arg=$ac_var=$ac_new_val ;;
2191 esac
2192 case " $ac_configure_args " in
2193 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2194 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195 esac
2196 fi
2197 done
2198 if $ac_cache_corrupted; then
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204 fi
2205 ## -------------------- ##
2206 ## Main body of script. ##
2207 ## -------------------- ##
2208
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216
2217 ac_aux_dir=
2218 for ac_dir in build-aux "$srcdir"/build-aux; do
2219 if test -f "$ac_dir/install-sh"; then
2220 ac_aux_dir=$ac_dir
2221 ac_install_sh="$ac_aux_dir/install-sh -c"
2222 break
2223 elif test -f "$ac_dir/install.sh"; then
2224 ac_aux_dir=$ac_dir
2225 ac_install_sh="$ac_aux_dir/install.sh -c"
2226 break
2227 elif test -f "$ac_dir/shtool"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/shtool install -c"
2230 break
2231 fi
2232 done
2233 if test -z "$ac_aux_dir"; then
2234 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2235 fi
2236
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2244
2245
2246 ac_config_headers="$ac_config_headers config.h"
2247
2248
2249 am__api_version='1.11'
2250
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2257 # AIX /bin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # OS/2's system install, which has a completely different semantic
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 # Reject install programs that cannot install multiple files.
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2266 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2267 if test -z "$INSTALL"; then
2268 if ${ac_cv_path_install+:} false; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274 IFS=$as_save_IFS
2275 test -z "$as_dir" && as_dir=.
2276 # Account for people who put trailing slashes in PATH elements.
2277 case $as_dir/ in #((
2278 ./ | .// | /[cC]/* | \
2279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2280 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2281 /usr/ucb/* ) ;;
2282 *)
2283 # OSF1 and SCO ODT 3.0 have their own names for install.
2284 # Don't use installbsd from OSF since it installs stuff as root
2285 # by default.
2286 for ac_prog in ginstall scoinst install; do
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2289 if test $ac_prog = install &&
2290 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # AIX install. It has an incompatible calling convention.
2292 :
2293 elif test $ac_prog = install &&
2294 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295 # program-specific install script used by HP pwplus--don't use.
2296 :
2297 else
2298 rm -rf conftest.one conftest.two conftest.dir
2299 echo one > conftest.one
2300 echo two > conftest.two
2301 mkdir conftest.dir
2302 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2303 test -s conftest.one && test -s conftest.two &&
2304 test -s conftest.dir/conftest.one &&
2305 test -s conftest.dir/conftest.two
2306 then
2307 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2308 break 3
2309 fi
2310 fi
2311 fi
2312 done
2313 done
2314 ;;
2315 esac
2316
2317 done
2318 IFS=$as_save_IFS
2319
2320 rm -rf conftest.one conftest.two conftest.dir
2321
2322 fi
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2325 else
2326 # As a last resort, use the slow shell script. Don't cache a
2327 # value for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the value is a relative name.
2330 INSTALL=$ac_install_sh
2331 fi
2332 fi
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2334 $as_echo "$INSTALL" >&6; }
2335
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2339
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2341
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2345 $as_echo_n "checking whether build environment is sane... " >&6; }
2346 # Just in case
2347 sleep 1
2348 echo timestamp > conftest.file
2349 # Reject unsafe characters in $srcdir or the absolute working directory
2350 # name. Accept space and tab only in the latter.
2351 am_lf='
2352 '
2353 case `pwd` in
2354 *[\\\"\#\$\&\'\`$am_lf]*)
2355 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2356 esac
2357 case $srcdir in
2358 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2359 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2360 esac
2361
2362 # Do `set' in a subshell so we don't clobber the current shell's
2363 # arguments. Must try -L first in case configure is actually a
2364 # symlink; some systems play weird games with the mod time of symlinks
2365 # (eg FreeBSD returns the mod time of the symlink's containing
2366 # directory).
2367 if (
2368 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2369 if test "$*" = "X"; then
2370 # -L didn't work.
2371 set X `ls -t "$srcdir/configure" conftest.file`
2372 fi
2373 rm -f conftest.file
2374 if test "$*" != "X $srcdir/configure conftest.file" \
2375 && test "$*" != "X conftest.file $srcdir/configure"; then
2376
2377 # If neither matched, then we have a broken ls. This can happen
2378 # if, for instance, CONFIG_SHELL is bash and it inherits a
2379 # broken ls alias from the environment. This has actually
2380 # happened. Such a system could not be considered "sane".
2381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2382 alias in your environment" "$LINENO" 5
2383 fi
2384
2385 test "$2" = conftest.file
2386 )
2387 then
2388 # Ok.
2389 :
2390 else
2391 as_fn_error $? "newly created file is older than distributed files!
2392 Check your system clock" "$LINENO" 5
2393 fi
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.
2402 # By default was `s,x,x', remove it if useless.
2403 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2404 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2405
2406 # expand $ac_aux_dir to an absolute path
2407 am_aux_dir=`cd $ac_aux_dir && pwd`
2408
2409 if test x"${MISSING+set}" != xset; then
2410 case $am_aux_dir in
2411 *\ * | *\ *)
2412 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2413 *)
2414 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2415 esac
2416 fi
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419 am_missing_run="$MISSING --run "
2420 else
2421 am_missing_run=
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2423 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 fi
2425
2426 if test x"${install_sh}" != xset; then
2427 case $am_aux_dir in
2428 *\ * | *\ *)
2429 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2430 *)
2431 install_sh="\${SHELL} $am_aux_dir/install-sh"
2432 esac
2433 fi
2434
2435 # Installed binaries are usually stripped using `strip' when the user
2436 # run `make install-strip'. However `strip' might not be the right
2437 # tool to use in cross-compilation environments, therefore Automake
2438 # will honor the `STRIP' environment variable to overrule this program.
2439 if test "$cross_compiling" != no; then
2440 if test -n "$ac_tool_prefix"; then
2441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2442 set dummy ${ac_tool_prefix}strip; ac_word=$2
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if ${ac_cv_prog_STRIP+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test -n "$STRIP"; then
2449 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2461 fi
2462 done
2463 done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 STRIP=$ac_cv_prog_STRIP
2469 if test -n "$STRIP"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2471 $as_echo "$STRIP" >&6; }
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2474 $as_echo "no" >&6; }
2475 fi
2476
2477
2478 fi
2479 if test -z "$ac_cv_prog_STRIP"; then
2480 ac_ct_STRIP=$STRIP
2481 # Extract the first word of "strip", so it can be a program name with args.
2482 set dummy strip; ac_word=$2
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2484 $as_echo_n "checking for $ac_word... " >&6; }
2485 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2486 $as_echo_n "(cached) " >&6
2487 else
2488 if test -n "$ac_ct_STRIP"; then
2489 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 for ac_exec_ext in '' $ac_executable_extensions; do
2497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2498 ac_cv_prog_ac_ct_STRIP="strip"
2499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 break 2
2501 fi
2502 done
2503 done
2504 IFS=$as_save_IFS
2505
2506 fi
2507 fi
2508 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2509 if test -n "$ac_ct_STRIP"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2511 $as_echo "$ac_ct_STRIP" >&6; }
2512 else
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2514 $as_echo "no" >&6; }
2515 fi
2516
2517 if test "x$ac_ct_STRIP" = x; then
2518 STRIP=":"
2519 else
2520 case $cross_compiling:$ac_tool_warned in
2521 yes:)
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2524 ac_tool_warned=yes ;;
2525 esac
2526 STRIP=$ac_ct_STRIP
2527 fi
2528 else
2529 STRIP="$ac_cv_prog_STRIP"
2530 fi
2531
2532 fi
2533 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2534
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2536 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2537 if test -z "$MKDIR_P"; then
2538 if ${ac_cv_path_mkdir+:} false; then :
2539 $as_echo_n "(cached) " >&6
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2543 do
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_prog in mkdir gmkdir; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2549 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2550 'mkdir (GNU coreutils) '* | \
2551 'mkdir (coreutils) '* | \
2552 'mkdir (fileutils) '4.1*)
2553 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2554 break 3;;
2555 esac
2556 done
2557 done
2558 done
2559 IFS=$as_save_IFS
2560
2561 fi
2562
2563 test -d ./--version && rmdir ./--version
2564 if test "${ac_cv_path_mkdir+set}" = set; then
2565 MKDIR_P="$ac_cv_path_mkdir -p"
2566 else
2567 # As a last resort, use the slow shell script. Don't cache a
2568 # value for MKDIR_P within a source directory, because that will
2569 # break other packages using the cache if that directory is
2570 # removed, or if the value is a relative name.
2571 MKDIR_P="$ac_install_sh -d"
2572 fi
2573 fi
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2575 $as_echo "$MKDIR_P" >&6; }
2576
2577 mkdir_p="$MKDIR_P"
2578 case $mkdir_p in
2579 [\\/$]* | ?:[\\/]*) ;;
2580 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2581 esac
2582
2583 for ac_prog in gawk mawk nawk awk
2584 do
2585 # Extract the first word of "$ac_prog", so it can be a program name with args.
2586 set dummy $ac_prog; ac_word=$2
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588 $as_echo_n "checking for $ac_word... " >&6; }
2589 if ${ac_cv_prog_AWK+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591 else
2592 if test -n "$AWK"; then
2593 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2594 else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 for as_dir in $PATH
2597 do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
2600 for ac_exec_ext in '' $ac_executable_extensions; do
2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602 ac_cv_prog_AWK="$ac_prog"
2603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 break 2
2605 fi
2606 done
2607 done
2608 IFS=$as_save_IFS
2609
2610 fi
2611 fi
2612 AWK=$ac_cv_prog_AWK
2613 if test -n "$AWK"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2615 $as_echo "$AWK" >&6; }
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618 $as_echo "no" >&6; }
2619 fi
2620
2621
2622 test -n "$AWK" && break
2623 done
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2626 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2627 set x ${MAKE-make}
2628 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2629 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 cat >conftest.make <<\_ACEOF
2633 SHELL = /bin/sh
2634 all:
2635 @echo '@@@%%%=$(MAKE)=@@@%%%'
2636 _ACEOF
2637 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2638 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2639 *@@@%%%=?*=@@@%%%*)
2640 eval ac_cv_prog_make_${ac_make}_set=yes;;
2641 *)
2642 eval ac_cv_prog_make_${ac_make}_set=no;;
2643 esac
2644 rm -f conftest.make
2645 fi
2646 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2648 $as_echo "yes" >&6; }
2649 SET_MAKE=
2650 else
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 $as_echo "no" >&6; }
2653 SET_MAKE="MAKE=${MAKE-make}"
2654 fi
2655
2656 rm -rf .tst 2>/dev/null
2657 mkdir .tst 2>/dev/null
2658 if test -d .tst; then
2659 am__leading_dot=.
2660 else
2661 am__leading_dot=_
2662 fi
2663 rmdir .tst 2>/dev/null
2664
2665 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2666 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2667 # is not polluted with repeated "-I."
2668 am__isrc=' -I$(srcdir)'
2669 # test to see if srcdir already configured
2670 if test -f $srcdir/config.status; then
2671 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2672 fi
2673 fi
2674
2675 # test whether we have cygpath
2676 if test -z "$CYGPATH_W"; then
2677 if (cygpath --version) >/dev/null 2>/dev/null; then
2678 CYGPATH_W='cygpath -w'
2679 else
2680 CYGPATH_W=echo
2681 fi
2682 fi
2683
2684
2685 # Define the identity of the package.
2686 PACKAGE='libvirt-glib'
2687 VERSION='0.0.1'
2688
2689
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE "$PACKAGE"
2692 _ACEOF
2693
2694
2695 cat >>confdefs.h <<_ACEOF
2696 #define VERSION "$VERSION"
2697 _ACEOF
2698
2699 # Some tools Automake needs.
2700
2701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2702
2703
2704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2705
2706
2707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2708
2709
2710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2711
2712
2713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2714
2715 # We need awk for the "check" target. The system "awk" is bad on
2716 # some platforms.
2717 # Always define AMTAR for backward compatibility.
2718
2719 AMTAR=${AMTAR-"${am_missing_run}tar"}
2720
2721 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2722
2723
2724
2725
2726
2727 # Make sure we can run config.sub.
2728 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2729 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2730
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2732 $as_echo_n "checking build system type... " >&6; }
2733 if ${ac_cv_build+:} false; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 ac_build_alias=$build_alias
2737 test "x$ac_build_alias" = x &&
2738 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2739 test "x$ac_build_alias" = x &&
2740 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2741 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2742 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2743
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2746 $as_echo "$ac_cv_build" >&6; }
2747 case $ac_cv_build in
2748 *-*-*) ;;
2749 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2750 esac
2751 build=$ac_cv_build
2752 ac_save_IFS=$IFS; IFS='-'
2753 set x $ac_cv_build
2754 shift
2755 build_cpu=$1
2756 build_vendor=$2
2757 shift; shift
2758 # Remember, the first character of IFS is used to create $*,
2759 # except with old shells:
2760 build_os=$*
2761 IFS=$ac_save_IFS
2762 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2763
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2766 $as_echo_n "checking host system type... " >&6; }
2767 if ${ac_cv_host+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test "x$host_alias" = x; then
2771 ac_cv_host=$ac_cv_build
2772 else
2773 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2775 fi
2776
2777 fi
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2779 $as_echo "$ac_cv_host" >&6; }
2780 case $ac_cv_host in
2781 *-*-*) ;;
2782 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2783 esac
2784 host=$ac_cv_host
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_host
2787 shift
2788 host_cpu=$1
2789 host_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 host_os=$*
2794 IFS=$ac_save_IFS
2795 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2796
2797
2798
2799 # Check whether --enable-silent-rules was given.
2800 if test "${enable_silent_rules+set}" = set; then :
2801 enableval=$enable_silent_rules;
2802 fi
2803
2804 case $enable_silent_rules in
2805 yes) AM_DEFAULT_VERBOSITY=0;;
2806 no) AM_DEFAULT_VERBOSITY=1;;
2807 *) AM_DEFAULT_VERBOSITY=0;;
2808 esac
2809 AM_BACKSLASH='\'
2810
2811
2812 LIBVIRT_REQUIRED=0.9.4
2813 GLIB2_REQUIRED=2.10.0
2814 GOBJECT2_REQUIRED=2.10.0
2815 GIO_REQUIRED=2.10.0
2816 GOBJECT_INTROSPECTION_REQUIRED=0.10.8
2817 LIBXML2_REQUIRED=2.0.0
2818
2819 LIBVIRT_GLIB_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
2820 LIBVIRT_GLIB_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'`
2821 LIBVIRT_GLIB_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'`
2822 LIBVIRT_GLIB_VERSION=$LIBVIRT_GLIB_MAJOR_VERSION.$LIBVIRT_GLIB_MINOR_VERSION.$LIBVIRT_GLIB_MICRO_VERSION$LIBVIRT_GLIB_MICRO_VERSION_SUFFIX
2823 LIBVIRT_GLIB_VERSION_INFO=`expr $LIBVIRT_GLIB_MAJOR_VERSION + $LIBVIRT_GLIB_MINOR_VERSION`:$LIBVIRT_GLIB_MICRO_VERSION:$LIBVIRT_GLIB_MINOR_VERSION
2824 LIBVIRT_GLIB_VERSION_NUMBER=`expr $LIBVIRT_GLIB_MAJOR_VERSION \* 1000000 + $LIBVIRT_GLIB_MINOR_VERSION \* 1000 + $LIBVIRT_GLIB_MICRO_VERSION`
2825
2826
2827
2828
2829
2830
2831
2832
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2859 fi
2860 done
2861 done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876 fi
2877 if test -z "$ac_cv_prog_CC"; then
2878 ac_ct_CC=$CC
2879 # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$ac_ct_CC"; then
2887 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_ac_ct_CC="gcc"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915 if test "x$ac_ct_CC" = x; then
2916 CC=""
2917 else
2918 case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924 CC=$ac_ct_CC
2925 fi
2926 else
2927 CC="$ac_cv_prog_CC"
2928 fi
2929
2930 if test -z "$CC"; then
2931 if test -n "$ac_tool_prefix"; then
2932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$CC"; then
2940 ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_CC="${ac_tool_prefix}cc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 fi
2971 if test -z "$CC"; then
2972 # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977 $as_echo_n "(cached) " >&6
2978 else
2979 if test -n "$CC"; then
2980 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982 ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991 ac_prog_rejected=yes
2992 continue
2993 fi
2994 ac_cv_prog_CC="cc"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 if test $ac_prog_rejected = yes; then
3003 # We found a bogon in the path, so make sure we never use it.
3004 set dummy $ac_cv_prog_CC
3005 shift
3006 if test $# != 0; then
3007 # We chose a different compiler from the bogus one.
3008 # However, it has the same basename, so the bogon will be chosen
3009 # first if we set CC to just the basename; use the full file name.
3010 shift
3011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012 fi
3013 fi
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 for ac_prog in cl.exe
3030 do
3031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 test -n "$CC" && break
3069 done
3070 fi
3071 if test -z "$CC"; then
3072 ac_ct_CC=$CC
3073 for ac_prog in cl.exe
3074 do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$ac_ct_CC"; then
3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_ac_ct_CC="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 test -n "$ac_ct_CC" && break
3113 done
3114
3115 if test "x$ac_ct_CC" = x; then
3116 CC=""
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 CC=$ac_ct_CC
3125 fi
3126 fi
3127
3128 fi
3129
3130
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details" "$LINENO" 5; }
3135
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 set X $ac_compile
3139 ac_compiler=$2
3140 for ac_option in --version -v -V -qversion; do
3141 { { ac_try="$ac_compiler $ac_option >&5"
3142 case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149 ac_status=$?
3150 if test -s conftest.err; then
3151 sed '10a\
3152 ... rest of stderr output deleted ...
3153 10q' conftest.err >conftest.er1
3154 cat conftest.er1 >&5
3155 fi
3156 rm -f conftest.er1 conftest.err
3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158 test $ac_status = 0; }
3159 done
3160
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3176 # of exeext.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178 $as_echo_n "checking whether the C compiler works... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184 ac_rmfiles=
3185 for ac_file in $ac_files
3186 do
3187 case $ac_file in
3188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190 esac
3191 done
3192 rm -f $ac_rmfiles
3193
3194 if { { ac_try="$ac_link_default"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_link_default") 2>&5
3202 ac_status=$?
3203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204 test $ac_status = 0; }; then :
3205 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3209 # Autoconf.
3210 for ac_file in $ac_files ''
3211 do
3212 test -f "$ac_file" || continue
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215 ;;
3216 [ab].out )
3217 # We found the default executable, but exeext='' is most
3218 # certainly right.
3219 break;;
3220 *.* )
3221 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222 then :; else
3223 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 fi
3225 # We set ac_cv_exeext here because the later test for it is not
3226 # safe: cross compilers may not add the suffix if given an `-o'
3227 # argument, so we may need to know it at that point already.
3228 # Even if this section looks crufty: it has the advantage of
3229 # actually working.
3230 break;;
3231 * )
3232 break;;
3233 esac
3234 done
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237 else
3238 ac_file=''
3239 fi
3240 if test -z "$ac_file"; then :
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error 77 "C compiler cannot create executables
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 else
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255 $as_echo_n "checking for C compiler default output file name... " >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 ac_exeext=$ac_cv_exeext
3259
3260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263 $as_echo_n "checking for suffix of executables... " >&6; }
3264 if { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3277 # work properly (i.e., refer to `conftest.exe'), while it won't with
3278 # `rm'.
3279 for ac_file in conftest.exe conftest conftest.*; do
3280 test -f "$ac_file" || continue
3281 case $ac_file in
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284 break;;
3285 * ) break;;
3286 esac
3287 done
3288 else
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 fi
3294 rm -f conftest conftest$ac_cv_exeext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296 $as_echo "$ac_cv_exeext" >&6; }
3297
3298 rm -f conftest.$ac_ext
3299 EXEEXT=$ac_cv_exeext
3300 ac_exeext=$EXEEXT
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303 #include <stdio.h>
3304 int
3305 main ()
3306 {
3307 FILE *f = fopen ("conftest.out", "w");
3308 return ferror (f) || fclose (f) != 0;
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 $as_echo_n "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
3321 case "(($ac_try" in
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_link") 2>&5
3328 ac_status=$?
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
3332 { { case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details" "$LINENO" 5; }
3352 fi
3353 fi
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 $as_echo "$cross_compiling" >&6; }
3357
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if ${ac_cv_objext+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393 break;;
3394 esac
3395 done
3396 else
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 fi
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3410 ac_objext=$OBJEXT
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if ${ac_cv_c_compiler_gnu+:} false; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423 choke me
3424 #endif
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_compiler_gnu=yes
3432 else
3433 ac_compiler_gnu=no
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443 else
3444 GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if ${ac_cv_prog_cc_g+:} false; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3455 ac_cv_prog_cc_g=no
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470 else
3471 CFLAGS=""
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484
3485 else
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3515 CFLAGS="-g -O2"
3516 else
3517 CFLAGS="-g"
3518 fi
3519 else
3520 if test "$GCC" = yes; then
3521 CFLAGS="-O2"
3522 else
3523 CFLAGS=
3524 fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if ${ac_cv_prog_cc_c89+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543 char **p;
3544 int i;
3545 {
3546 return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550 char *s;
3551 va_list v;
3552 va_start (v,p);
3553 s = g (p, va_arg (v,int));
3554 va_end (v);
3555 return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3569 #define FOO(x) 'x'
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 int argc;
3577 char **argv;
3578 int
3579 main ()
3580 {
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 do
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_c89=$ac_arg
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 done
3596 rm -f conftest.$ac_ext
3597 CC=$ac_save_CC
3598
3599 fi
3600 # AC_CACHE_VAL
3601 case "x$ac_cv_prog_cc_c89" in
3602 x)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3605 xno)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3608 *)
3609 CC="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 esac
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622 DEPDIR="${am__leading_dot}deps"
3623
3624 ac_config_commands="$ac_config_commands depfiles"
3625
3626
3627 am_make=${MAKE-make}
3628 cat > confinc << 'END'
3629 am__doit:
3630 @echo this is the am__doit target
3631 .PHONY: am__doit
3632 END
3633 # If we don't find an include directive, just comment out the code.
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3635 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3636 am__include="#"
3637 am__quote=
3638 _am_result=none
3639 # First try GNU make style include.
3640 echo "include confinc" > confmf
3641 # Ignore all kinds of additional output from `make'.
3642 case `$am_make -s -f confmf 2> /dev/null` in #(
3643 *the\ am__doit\ target*)
3644 am__include=include
3645 am__quote=
3646 _am_result=GNU
3647 ;;
3648 esac
3649 # Now try BSD make style include.
3650 if test "$am__include" = "#"; then
3651 echo '.include "confinc"' > confmf
3652 case `$am_make -s -f confmf 2> /dev/null` in #(
3653 *the\ am__doit\ target*)
3654 am__include=.include
3655 am__quote="\""
3656 _am_result=BSD
3657 ;;
3658 esac
3659 fi
3660
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3663 $as_echo "$_am_result" >&6; }
3664 rm -f confinc confmf
3665
3666 # Check whether --enable-dependency-tracking was given.
3667 if test "${enable_dependency_tracking+set}" = set; then :
3668 enableval=$enable_dependency_tracking;
3669 fi
3670
3671 if test "x$enable_dependency_tracking" != xno; then
3672 am_depcomp="$ac_aux_dir/depcomp"
3673 AMDEPBACKSLASH='\'
3674 fi
3675 if test "x$enable_dependency_tracking" != xno; then
3676 AMDEP_TRUE=
3677 AMDEP_FALSE='#'
3678 else
3679 AMDEP_TRUE='#'
3680 AMDEP_FALSE=
3681 fi
3682
3683
3684
3685 depcc="$CC" am_compiler_list=
3686
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3688 $as_echo_n "checking dependency style of $depcc... " >&6; }
3689 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3693 # We make a subdir and do the tests there. Otherwise we can end up
3694 # making bogus files that we don't know about and never remove. For
3695 # instance it was reported that on HP-UX the gcc test will end up
3696 # making a dummy file named `D' -- because `-MD' means `put the output
3697 # in D'.
3698 mkdir conftest.dir
3699 # Copy depcomp to subdir because otherwise we won't find it if we're
3700 # using a relative directory.
3701 cp "$am_depcomp" conftest.dir
3702 cd conftest.dir
3703 # We will build objects and dependencies in a subdirectory because
3704 # it helps to detect inapplicable dependency modes. For instance
3705 # both Tru64's cc and ICC support -MD to output dependencies as a
3706 # side effect of compilation, but ICC will put the dependencies in
3707 # the current directory while Tru64 will put them in the object
3708 # directory.
3709 mkdir sub
3710
3711 am_cv_CC_dependencies_compiler_type=none
3712 if test "$am_compiler_list" = ""; then
3713 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3714 fi
3715 am__universal=false
3716 case " $depcc " in #(
3717 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3718 esac
3719
3720 for depmode in $am_compiler_list; do
3721 # Setup a source with many dependencies, because some compilers
3722 # like to wrap large dependency lists on column 80 (with \), and
3723 # we should not choose a depcomp mode which is confused by this.
3724 #
3725 # We need to recreate these files for each test, as the compiler may
3726 # overwrite some of them when testing with obscure command lines.
3727 # This happens at least with the AIX C compiler.
3728 : > sub/conftest.c
3729 for i in 1 2 3 4 5 6; do
3730 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3731 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3732 # Solaris 8's {/usr,}/bin/sh.
3733 touch sub/conftst$i.h
3734 done
3735 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3736
3737 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3738 # mode. It turns out that the SunPro C++ compiler does not properly
3739 # handle `-M -o', and we need to detect this. Also, some Intel
3740 # versions had trouble with output in subdirs
3741 am__obj=sub/conftest.${OBJEXT-o}
3742 am__minus_obj="-o $am__obj"
3743 case $depmode in
3744 gcc)
3745 # This depmode causes a compiler race in universal mode.
3746 test "$am__universal" = false || continue
3747 ;;
3748 nosideeffect)
3749 # after this tag, mechanisms are not by side-effect, so they'll
3750 # only be used when explicitly requested
3751 if test "x$enable_dependency_tracking" = xyes; then
3752 continue
3753 else
3754 break
3755 fi
3756 ;;
3757 msvisualcpp | msvcmsys)
3758 # This compiler won't grok `-c -o', but also, the minuso test has
3759 # not run yet. These depmodes are late enough in the game, and
3760 # so weak that their functioning should not be impacted.
3761 am__obj=conftest.${OBJEXT-o}
3762 am__minus_obj=
3763 ;;
3764 none) break ;;
3765 esac
3766 if depmode=$depmode \
3767 source=sub/conftest.c object=$am__obj \
3768 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3769 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3770 >/dev/null 2>conftest.err &&
3771 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3772 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3773 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3774 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3775 # icc doesn't choke on unknown options, it will just issue warnings
3776 # or remarks (even with -Werror). So we grep stderr for any message
3777 # that says an option was ignored or not supported.
3778 # When given -MP, icc 7.0 and 7.1 complain thusly:
3779 # icc: Command line warning: ignoring option '-M'; no argument required
3780 # The diagnosis changed in icc 8.0:
3781 # icc: Command line remark: option '-MP' not supported
3782 if (grep 'ignoring option' conftest.err ||
3783 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3784 am_cv_CC_dependencies_compiler_type=$depmode
3785 break
3786 fi
3787 fi
3788 done
3789
3790 cd ..
3791 rm -rf conftest.dir
3792 else
3793 am_cv_CC_dependencies_compiler_type=none
3794 fi
3795
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3798 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3799 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3800
3801 if
3802 test "x$enable_dependency_tracking" != xno \
3803 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3804 am__fastdepCC_TRUE=
3805 am__fastdepCC_FALSE='#'
3806 else
3807 am__fastdepCC_TRUE='#'
3808 am__fastdepCC_FALSE=
3809 fi
3810
3811
3812 if test "x$CC" != xcc; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3814 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3815 else
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3817 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3818 fi
3819 set dummy $CC; ac_cc=`$as_echo "$2" |
3820 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3821 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3826
3827 int
3828 main ()
3829 {
3830
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 # Make sure it works both with $CC and with simple cc.
3836 # We do the test twice because some compilers refuse to overwrite an
3837 # existing .o file with -o, though they will create one.
3838 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3839 rm -f conftest2.*
3840 if { { case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846 (eval "$ac_try") 2>&5
3847 ac_status=$?
3848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849 test $ac_status = 0; } &&
3850 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_try") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; };
3860 then
3861 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3862 if test "x$CC" != xcc; then
3863 # Test first that cc exists at all.
3864 if { ac_try='cc -c conftest.$ac_ext >&5'
3865 { { case "(($ac_try" in
3866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867 *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871 (eval "$ac_try") 2>&5
3872 ac_status=$?
3873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874 test $ac_status = 0; }; }; then
3875 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3876 rm -f conftest2.*
3877 if { { case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; } &&
3887 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 $as_echo "$ac_try_echo"; } >&5
3893 (eval "$ac_try") 2>&5
3894 ac_status=$?
3895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; };
3897 then
3898 # cc works too.
3899 :
3900 else
3901 # cc exists but doesn't like -o.
3902 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3903 fi
3904 fi
3905 fi
3906 else
3907 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3908 fi
3909 rm -f core conftest*
3910
3911 fi
3912 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3914 $as_echo "yes" >&6; }
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918
3919 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3920
3921 fi
3922
3923 # FIXME: we rely on the cache variable name because
3924 # there is no other way.
3925 set dummy $CC
3926 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3927 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3928 if test "$am_t" != yes; then
3929 # Losing compiler, so override with the script.
3930 # FIXME: It is wrong to rewrite CC.
3931 # But if we don't then we get into trouble of one sort or another.
3932 # A longer-term fix would be to have automake use am__CC in this case,
3933 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3934 CC="$am_aux_dir/compile $CC"
3935 fi
3936
3937
3938
3939 enable_win32_dll=yes
3940
3941 case $host in
3942 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3943 if test -n "$ac_tool_prefix"; then
3944 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3945 set dummy ${ac_tool_prefix}as; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if ${ac_cv_prog_AS+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$AS"; then
3952 ac_cv_prog_AS="$AS" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3956 do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_AS="${ac_tool_prefix}as"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965 done
3966 done
3967 IFS=$as_save_IFS
3968
3969 fi
3970 fi
3971 AS=$ac_cv_prog_AS
3972 if test -n "$AS"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3974 $as_echo "$AS" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 fi
3979
3980
3981 fi
3982 if test -z "$ac_cv_prog_AS"; then
3983 ac_ct_AS=$AS
3984 # Extract the first word of "as", so it can be a program name with args.
3985 set dummy as; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$ac_ct_AS"; then
3992 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3996 do
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_ac_ct_AS="as"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4004 fi
4005 done
4006 done
4007 IFS=$as_save_IFS
4008
4009 fi
4010 fi
4011 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4012 if test -n "$ac_ct_AS"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4014 $as_echo "$ac_ct_AS" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 fi
4019
4020 if test "x$ac_ct_AS" = x; then
4021 AS="false"
4022 else
4023 case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4028 esac
4029 AS=$ac_ct_AS
4030 fi
4031 else
4032 AS="$ac_cv_prog_AS"
4033 fi
4034
4035 if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4037 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if ${ac_cv_prog_DLLTOOL+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -n "$DLLTOOL"; then
4044 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 DLLTOOL=$ac_cv_prog_DLLTOOL
4064 if test -n "$DLLTOOL"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4066 $as_echo "$DLLTOOL" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072
4073 fi
4074 if test -z "$ac_cv_prog_DLLTOOL"; then
4075 ac_ct_DLLTOOL=$DLLTOOL
4076 # Extract the first word of "dlltool", so it can be a program name with args.
4077 set dummy dlltool; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$ac_ct_DLLTOOL"; then
4084 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4088 do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097 done
4098 done
4099 IFS=$as_save_IFS
4100
4101 fi
4102 fi
4103 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4104 if test -n "$ac_ct_DLLTOOL"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4106 $as_echo "$ac_ct_DLLTOOL" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4110 fi
4111
4112 if test "x$ac_ct_DLLTOOL" = x; then
4113 DLLTOOL="false"
4114 else
4115 case $cross_compiling:$ac_tool_warned in
4116 yes:)
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119 ac_tool_warned=yes ;;
4120 esac
4121 DLLTOOL=$ac_ct_DLLTOOL
4122 fi
4123 else
4124 DLLTOOL="$ac_cv_prog_DLLTOOL"
4125 fi
4126
4127 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_OBJDUMP+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test -n "$OBJDUMP"; then
4136 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4137 else
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 for as_dir in $PATH
4140 do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4148 fi
4149 done
4150 done
4151 IFS=$as_save_IFS
4152
4153 fi
4154 fi
4155 OBJDUMP=$ac_cv_prog_OBJDUMP
4156 if test -n "$OBJDUMP"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4158 $as_echo "$OBJDUMP" >&6; }
4159 else
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4162 fi
4163
4164
4165 fi
4166 if test -z "$ac_cv_prog_OBJDUMP"; then
4167 ac_ct_OBJDUMP=$OBJDUMP
4168 # Extract the first word of "objdump", so it can be a program name with args.
4169 set dummy objdump; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$ac_ct_OBJDUMP"; then
4176 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4188 fi
4189 done
4190 done
4191 IFS=$as_save_IFS
4192
4193 fi
4194 fi
4195 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4196 if test -n "$ac_ct_OBJDUMP"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4198 $as_echo "$ac_ct_OBJDUMP" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4202 fi
4203
4204 if test "x$ac_ct_OBJDUMP" = x; then
4205 OBJDUMP="false"
4206 else
4207 case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4212 esac
4213 OBJDUMP=$ac_ct_OBJDUMP
4214 fi
4215 else
4216 OBJDUMP="$ac_cv_prog_OBJDUMP"
4217 fi
4218
4219 ;;
4220 esac
4221
4222 test -z "$AS" && AS=as
4223
4224
4225
4226
4227
4228 test -z "$DLLTOOL" && DLLTOOL=dlltool
4229
4230
4231
4232
4233
4234 test -z "$OBJDUMP" && OBJDUMP=objdump
4235
4236
4237
4238
4239
4240
4241
4242 case `pwd` in
4243 *\ * | *\ *)
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4245 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4246 esac
4247
4248
4249
4250 macro_version='2.4'
4251 macro_revision='1.3293'
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265 ltmain="$ac_aux_dir/ltmain.sh"
4266
4267 # Backslashify metacharacters that are still active within
4268 # double-quoted strings.
4269 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4270
4271 # Same as above, but do not quote variable references.
4272 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4273
4274 # Sed substitution to delay expansion of an escaped shell variable in a
4275 # double_quote_subst'ed string.
4276 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4277
4278 # Sed substitution to delay expansion of an escaped single quote.
4279 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4280
4281 # Sed substitution to avoid accidental globbing in evaled expressions
4282 no_glob_subst='s/\*/\\\*/g'
4283
4284 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4286 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4289 $as_echo_n "checking how to print strings... " >&6; }
4290 # Test print first, because it will be a builtin if present.
4291 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4292 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4293 ECHO='print -r --'
4294 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4295 ECHO='printf %s\n'
4296 else
4297 # Use this function as a fallback that always works.
4298 func_fallback_echo ()
4299 {
4300 eval 'cat <<_LTECHO_EOF
4301 $1
4302 _LTECHO_EOF'
4303 }
4304 ECHO='func_fallback_echo'
4305 fi
4306
4307 # func_echo_all arg...
4308 # Invoke $ECHO with all args, space-separated.
4309 func_echo_all ()
4310 {
4311 $ECHO ""
4312 }
4313
4314 case "$ECHO" in
4315 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4316 $as_echo "printf" >&6; } ;;
4317 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4318 $as_echo "print -r" >&6; } ;;
4319 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4320 $as_echo "cat" >&6; } ;;
4321 esac
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4337 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4338 if ${ac_cv_path_SED+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4342 for ac_i in 1 2 3 4 5 6 7; do
4343 ac_script="$ac_script$as_nl$ac_script"
4344 done
4345 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4346 { ac_script=; unset ac_script;}
4347 if test -z "$SED"; then
4348 ac_path_SED_found=false
4349 # Loop through the user's path and test for each of PROGNAME-LIST
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_prog in sed gsed; do
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4358 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4359 # Check for GNU ac_path_SED and select it if it is found.
4360 # Check for GNU $ac_path_SED
4361 case `"$ac_path_SED" --version 2>&1` in
4362 *GNU*)
4363 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4364 *)
4365 ac_count=0
4366 $as_echo_n 0123456789 >"conftest.in"
4367 while :
4368 do
4369 cat "conftest.in" "conftest.in" >"conftest.tmp"
4370 mv "conftest.tmp" "conftest.in"
4371 cp "conftest.in" "conftest.nl"
4372 $as_echo '' >> "conftest.nl"
4373 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4375 as_fn_arith $ac_count + 1 && ac_count=$as_val
4376 if test $ac_count -gt ${ac_path_SED_max-0}; then
4377 # Best one so far, save it but keep looking for a better one
4378 ac_cv_path_SED="$ac_path_SED"
4379 ac_path_SED_max=$ac_count
4380 fi
4381 # 10*(2^10) chars as input seems more than enough
4382 test $ac_count -gt 10 && break
4383 done
4384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4385 esac
4386
4387 $ac_path_SED_found && break 3
4388 done
4389 done
4390 done
4391 IFS=$as_save_IFS
4392 if test -z "$ac_cv_path_SED"; then
4393 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4394 fi
4395 else
4396 ac_cv_path_SED=$SED
4397 fi
4398
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4401 $as_echo "$ac_cv_path_SED" >&6; }
4402 SED="$ac_cv_path_SED"
4403 rm -f conftest.sed
4404
4405 test -z "$SED" && SED=sed
4406 Xsed="$SED -e 1s/^X//"
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4419 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4420 if ${ac_cv_path_GREP+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -z "$GREP"; then
4424 ac_path_GREP_found=false
4425 # Loop through the user's path and test for each of PROGNAME-LIST
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_prog in grep ggrep; do
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4434 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4435 # Check for GNU ac_path_GREP and select it if it is found.
4436 # Check for GNU $ac_path_GREP
4437 case `"$ac_path_GREP" --version 2>&1` in
4438 *GNU*)
4439 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4440 *)
4441 ac_count=0
4442 $as_echo_n 0123456789 >"conftest.in"
4443 while :
4444 do
4445 cat "conftest.in" "conftest.in" >"conftest.tmp"
4446 mv "conftest.tmp" "conftest.in"
4447 cp "conftest.in" "conftest.nl"
4448 $as_echo 'GREP' >> "conftest.nl"
4449 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4451 as_fn_arith $ac_count + 1 && ac_count=$as_val
4452 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4453 # Best one so far, save it but keep looking for a better one
4454 ac_cv_path_GREP="$ac_path_GREP"
4455 ac_path_GREP_max=$ac_count
4456 fi
4457 # 10*(2^10) chars as input seems more than enough
4458 test $ac_count -gt 10 && break
4459 done
4460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4461 esac
4462
4463 $ac_path_GREP_found && break 3
4464 done
4465 done
4466 done
4467 IFS=$as_save_IFS
4468 if test -z "$ac_cv_path_GREP"; then
4469 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 fi
4471 else
4472 ac_cv_path_GREP=$GREP
4473 fi
4474
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4477 $as_echo "$ac_cv_path_GREP" >&6; }
4478 GREP="$ac_cv_path_GREP"
4479
4480
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4482 $as_echo_n "checking for egrep... " >&6; }
4483 if ${ac_cv_path_EGREP+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4487 then ac_cv_path_EGREP="$GREP -E"
4488 else
4489 if test -z "$EGREP"; then
4490 ac_path_EGREP_found=false
4491 # Loop through the user's path and test for each of PROGNAME-LIST
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_prog in egrep; do
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4500 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4501 # Check for GNU ac_path_EGREP and select it if it is found.
4502 # Check for GNU $ac_path_EGREP
4503 case `"$ac_path_EGREP" --version 2>&1` in
4504 *GNU*)
4505 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4506 *)
4507 ac_count=0
4508 $as_echo_n 0123456789 >"conftest.in"
4509 while :
4510 do
4511 cat "conftest.in" "conftest.in" >"conftest.tmp"
4512 mv "conftest.tmp" "conftest.in"
4513 cp "conftest.in" "conftest.nl"
4514 $as_echo 'EGREP' >> "conftest.nl"
4515 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4517 as_fn_arith $ac_count + 1 && ac_count=$as_val
4518 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4519 # Best one so far, save it but keep looking for a better one
4520 ac_cv_path_EGREP="$ac_path_EGREP"
4521 ac_path_EGREP_max=$ac_count
4522 fi
4523 # 10*(2^10) chars as input seems more than enough
4524 test $ac_count -gt 10 && break
4525 done
4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4527 esac
4528
4529 $ac_path_EGREP_found && break 3
4530 done
4531 done
4532 done
4533 IFS=$as_save_IFS
4534 if test -z "$ac_cv_path_EGREP"; then
4535 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 fi
4537 else
4538 ac_cv_path_EGREP=$EGREP
4539 fi
4540
4541 fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4544 $as_echo "$ac_cv_path_EGREP" >&6; }
4545 EGREP="$ac_cv_path_EGREP"
4546
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4549 $as_echo_n "checking for fgrep... " >&6; }
4550 if ${ac_cv_path_FGREP+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4554 then ac_cv_path_FGREP="$GREP -F"
4555 else
4556 if test -z "$FGREP"; then
4557 ac_path_FGREP_found=false
4558 # Loop through the user's path and test for each of PROGNAME-LIST
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
4564 for ac_prog in fgrep; do
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4567 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4568 # Check for GNU ac_path_FGREP and select it if it is found.
4569 # Check for GNU $ac_path_FGREP
4570 case `"$ac_path_FGREP" --version 2>&1` in
4571 *GNU*)
4572 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4573 *)
4574 ac_count=0
4575 $as_echo_n 0123456789 >"conftest.in"
4576 while :
4577 do
4578 cat "conftest.in" "conftest.in" >"conftest.tmp"
4579 mv "conftest.tmp" "conftest.in"
4580 cp "conftest.in" "conftest.nl"
4581 $as_echo 'FGREP' >> "conftest.nl"
4582 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584 as_fn_arith $ac_count + 1 && ac_count=$as_val
4585 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4586 # Best one so far, save it but keep looking for a better one
4587 ac_cv_path_FGREP="$ac_path_FGREP"
4588 ac_path_FGREP_max=$ac_count
4589 fi
4590 # 10*(2^10) chars as input seems more than enough
4591 test $ac_count -gt 10 && break
4592 done
4593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594 esac
4595
4596 $ac_path_FGREP_found && break 3
4597 done
4598 done
4599 done
4600 IFS=$as_save_IFS
4601 if test -z "$ac_cv_path_FGREP"; then
4602 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 fi
4604 else
4605 ac_cv_path_FGREP=$FGREP
4606 fi
4607
4608 fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4611 $as_echo "$ac_cv_path_FGREP" >&6; }
4612 FGREP="$ac_cv_path_FGREP"
4613
4614
4615 test -z "$GREP" && GREP=grep
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 # Check whether --with-gnu-ld was given.
4636 if test "${with_gnu_ld+set}" = set; then :
4637 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4638 else
4639 with_gnu_ld=no
4640 fi
4641
4642 ac_prog=ld
4643 if test "$GCC" = yes; then
4644 # Check if gcc -print-prog-name=ld gives a path.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4646 $as_echo_n "checking for ld used by $CC... " >&6; }
4647 case $host in
4648 *-*-mingw*)
4649 # gcc leaves a trailing carriage return which upsets mingw
4650 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 *)
4652 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4653 esac
4654 case $ac_prog in
4655 # Accept absolute paths.
4656 [\\/]* | ?:[\\/]*)
4657 re_direlt='/[^/][^/]*/\.\./'
4658 # Canonicalize the pathname of ld
4659 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4660 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4661 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4662 done
4663 test -z "$LD" && LD="$ac_prog"
4664 ;;
4665 "")
4666 # If it fails, then pretend we aren't using GCC.
4667 ac_prog=ld
4668 ;;
4669 *)
4670 # If it is relative, then search for the first ld in PATH.
4671 with_gnu_ld=unknown
4672 ;;
4673 esac
4674 elif test "$with_gnu_ld" = yes; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4676 $as_echo_n "checking for GNU ld... " >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4679 $as_echo_n "checking for non-GNU ld... " >&6; }
4680 fi
4681 if ${lt_cv_path_LD+:} false; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 if test -z "$LD"; then
4685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4686 for ac_dir in $PATH; do
4687 IFS="$lt_save_ifs"
4688 test -z "$ac_dir" && ac_dir=.
4689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4690 lt_cv_path_LD="$ac_dir/$ac_prog"
4691 # Check to see if the program is GNU ld. I'd rather use --version,
4692 # but apparently some variants of GNU ld only accept -v.
4693 # Break only if it was the GNU/non-GNU ld that we prefer.
4694 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4695 *GNU* | *'with BFD'*)
4696 test "$with_gnu_ld" != no && break
4697 ;;
4698 *)
4699 test "$with_gnu_ld" != yes && break
4700 ;;
4701 esac
4702 fi
4703 done
4704 IFS="$lt_save_ifs"
4705 else
4706 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4707 fi
4708 fi
4709
4710 LD="$lt_cv_path_LD"
4711 if test -n "$LD"; then
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4713 $as_echo "$LD" >&6; }
4714 else
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 $as_echo "no" >&6; }
4717 fi
4718 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4720 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4721 if ${lt_cv_prog_gnu_ld+:} false; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4725 case `$LD -v 2>&1 </dev/null` in
4726 *GNU* | *'with BFD'*)
4727 lt_cv_prog_gnu_ld=yes
4728 ;;
4729 *)
4730 lt_cv_prog_gnu_ld=no
4731 ;;
4732 esac
4733 fi
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4735 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4736 with_gnu_ld=$lt_cv_prog_gnu_ld
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4747 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4748 if ${lt_cv_path_NM+:} false; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$NM"; then
4752 # Let the user override the test.
4753 lt_cv_path_NM="$NM"
4754 else
4755 lt_nm_to_check="${ac_tool_prefix}nm"
4756 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4757 lt_nm_to_check="$lt_nm_to_check nm"
4758 fi
4759 for lt_tmp_nm in $lt_nm_to_check; do
4760 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4761 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4762 IFS="$lt_save_ifs"
4763 test -z "$ac_dir" && ac_dir=.
4764 tmp_nm="$ac_dir/$lt_tmp_nm"
4765 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4766 # Check to see if the nm accepts a BSD-compat flag.
4767 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4768 # nm: unknown option "B" ignored
4769 # Tru64's nm complains that /dev/null is an invalid object file
4770 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4771 */dev/null* | *'Invalid file or object type'*)
4772 lt_cv_path_NM="$tmp_nm -B"
4773 break
4774 ;;
4775 *)
4776 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4777 */dev/null*)
4778 lt_cv_path_NM="$tmp_nm -p"
4779 break
4780 ;;
4781 *)
4782 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4783 continue # so that we can try to find one that supports BSD flags
4784 ;;
4785 esac
4786 ;;
4787 esac
4788 fi
4789 done
4790 IFS="$lt_save_ifs"
4791 done
4792 : ${lt_cv_path_NM=no}
4793 fi
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4796 $as_echo "$lt_cv_path_NM" >&6; }
4797 if test "$lt_cv_path_NM" != "no"; then
4798 NM="$lt_cv_path_NM"
4799 else
4800 # Didn't find any BSD compatible name lister, look for dumpbin.
4801 if test -n "$DUMPBIN"; then :
4802 # Let the user override the test.
4803 else
4804 if test -n "$ac_tool_prefix"; then
4805 for ac_prog in dumpbin "link -dump"
4806 do
4807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_prog_DUMPBIN+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 if test -n "$DUMPBIN"; then
4815 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 DUMPBIN=$ac_cv_prog_DUMPBIN
4835 if test -n "$DUMPBIN"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4837 $as_echo "$DUMPBIN" >&6; }
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 fi
4842
4843
4844 test -n "$DUMPBIN" && break
4845 done
4846 fi
4847 if test -z "$DUMPBIN"; then
4848 ac_ct_DUMPBIN=$DUMPBIN
4849 for ac_prog in dumpbin "link -dump"
4850 do
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852 set dummy $ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$ac_ct_DUMPBIN"; then
4859 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4871 fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4879 if test -n "$ac_ct_DUMPBIN"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4881 $as_echo "$ac_ct_DUMPBIN" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888 test -n "$ac_ct_DUMPBIN" && break
4889 done
4890
4891 if test "x$ac_ct_DUMPBIN" = x; then
4892 DUMPBIN=":"
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895 yes:)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898 ac_tool_warned=yes ;;
4899 esac
4900 DUMPBIN=$ac_ct_DUMPBIN
4901 fi
4902 fi
4903
4904 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4905 *COFF*)
4906 DUMPBIN="$DUMPBIN -symbols"
4907 ;;
4908 *)
4909 DUMPBIN=:
4910 ;;
4911 esac
4912 fi
4913
4914 if test "$DUMPBIN" != ":"; then
4915 NM="$DUMPBIN"
4916 fi
4917 fi
4918 test -z "$NM" && NM=nm
4919
4920
4921
4922
4923
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4926 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4927 if ${lt_cv_nm_interface+:} false; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 lt_cv_nm_interface="BSD nm"
4931 echo "int some_variable = 0;" > conftest.$ac_ext
4932 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4933 (eval "$ac_compile" 2>conftest.err)
4934 cat conftest.err >&5
4935 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4936 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4937 cat conftest.err >&5
4938 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4939 cat conftest.out >&5
4940 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4941 lt_cv_nm_interface="MS dumpbin"
4942 fi
4943 rm -f conftest*
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4946 $as_echo "$lt_cv_nm_interface" >&6; }
4947
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4949 $as_echo_n "checking whether ln -s works... " >&6; }
4950 LN_S=$as_ln_s
4951 if test "$LN_S" = "ln -s"; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4953 $as_echo "yes" >&6; }
4954 else
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4956 $as_echo "no, using $LN_S" >&6; }
4957 fi
4958
4959 # find the maximum length of command line arguments
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4961 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4962 if ${lt_cv_sys_max_cmd_len+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 i=0
4966 teststring="ABCD"
4967
4968 case $build_os in
4969 msdosdjgpp*)
4970 # On DJGPP, this test can blow up pretty badly due to problems in libc
4971 # (any single argument exceeding 2000 bytes causes a buffer overrun
4972 # during glob expansion). Even if it were fixed, the result of this
4973 # check would be larger than it should be.
4974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4975 ;;
4976
4977 gnu*)
4978 # Under GNU Hurd, this test is not required because there is
4979 # no limit to the length of command line arguments.
4980 # Libtool will interpret -1 as no limit whatsoever
4981 lt_cv_sys_max_cmd_len=-1;
4982 ;;
4983
4984 cygwin* | mingw* | cegcc*)
4985 # On Win9x/ME, this test blows up -- it succeeds, but takes
4986 # about 5 minutes as the teststring grows exponentially.
4987 # Worse, since 9x/ME are not pre-emptively multitasking,
4988 # you end up with a "frozen" computer, even though with patience
4989 # the test eventually succeeds (with a max line length of 256k).
4990 # Instead, let's just punt: use the minimum linelength reported by
4991 # all of the supported platforms: 8192 (on NT/2K/XP).
4992 lt_cv_sys_max_cmd_len=8192;
4993 ;;
4994
4995 mint*)
4996 # On MiNT this can take a long time and run out of memory.
4997 lt_cv_sys_max_cmd_len=8192;
4998 ;;
4999
5000 amigaos*)
5001 # On AmigaOS with pdksh, this test takes hours, literally.
5002 # So we just punt and use a minimum line length of 8192.
5003 lt_cv_sys_max_cmd_len=8192;
5004 ;;
5005
5006 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5007 # This has been around since 386BSD, at least. Likely further.
5008 if test -x /sbin/sysctl; then
5009 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5010 elif test -x /usr/sbin/sysctl; then
5011 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5012 else
5013 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5014 fi
5015 # And add a safety zone
5016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5018 ;;
5019
5020 interix*)
5021 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5022 lt_cv_sys_max_cmd_len=196608
5023 ;;
5024
5025 osf*)
5026 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5027 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5028 # nice to cause kernel panics so lets avoid the loop below.
5029 # First set a reasonable default.
5030 lt_cv_sys_max_cmd_len=16384
5031 #
5032 if test -x /sbin/sysconfig; then
5033 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5034 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5035 esac
5036 fi
5037 ;;
5038 sco3.2v5*)
5039 lt_cv_sys_max_cmd_len=102400
5040 ;;
5041 sysv5* | sco5v6* | sysv4.2uw2*)
5042 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5043 if test -n "$kargmax"; then
5044 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5045 else
5046 lt_cv_sys_max_cmd_len=32768
5047 fi
5048 ;;
5049 *)
5050 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5051 if test -n "$lt_cv_sys_max_cmd_len"; then
5052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5054 else
5055 # Make teststring a little bigger before we do anything with it.
5056 # a 1K string should be a reasonable start.
5057 for i in 1 2 3 4 5 6 7 8 ; do
5058 teststring=$teststring$teststring
5059 done
5060 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5061 # If test is not a shell built-in, we'll probably end up computing a
5062 # maximum length that is only half of the actual maximum length, but
5063 # we can't tell.
5064 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5065 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5066 test $i != 17 # 1/2 MB should be enough
5067 do
5068 i=`expr $i + 1`
5069 teststring=$teststring$teststring
5070 done
5071 # Only check the string length outside the loop.
5072 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5073 teststring=
5074 # Add a significant safety factor because C++ compilers can tack on
5075 # massive amounts of additional arguments before passing them to the
5076 # linker. It appears as though 1/2 is a usable value.
5077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5078 fi
5079 ;;
5080 esac
5081
5082 fi
5083
5084 if test -n $lt_cv_sys_max_cmd_len ; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5086 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5089 $as_echo "none" >&6; }
5090 fi
5091 max_cmd_len=$lt_cv_sys_max_cmd_len
5092
5093
5094
5095
5096
5097
5098 : ${CP="cp -f"}
5099 : ${MV="mv -f"}
5100 : ${RM="rm -f"}
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5103 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5104 # Try some XSI features
5105 xsi_shell=no
5106 ( _lt_dummy="a/b/c"
5107 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5108 = c,a/b,b/c, \
5109 && eval 'test $(( 1 + 1 )) -eq 2 \
5110 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5111 && xsi_shell=yes
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5113 $as_echo "$xsi_shell" >&6; }
5114
5115
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5117 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5118 lt_shell_append=no
5119 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5120 >/dev/null 2>&1 \
5121 && lt_shell_append=yes
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5123 $as_echo "$lt_shell_append" >&6; }
5124
5125
5126 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5127 lt_unset=unset
5128 else
5129 lt_unset=false
5130 fi
5131
5132
5133
5134
5135
5136 # test EBCDIC or ASCII
5137 case `echo X|tr X '\101'` in
5138 A) # ASCII based system
5139 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5140 lt_SP2NL='tr \040 \012'
5141 lt_NL2SP='tr \015\012 \040\040'
5142 ;;
5143 *) # EBCDIC based system
5144 lt_SP2NL='tr \100 \n'
5145 lt_NL2SP='tr \r\n \100\100'
5146 ;;
5147 esac
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5158 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5159 if ${lt_cv_to_host_file_cmd+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 case $host in
5163 *-*-mingw* )
5164 case $build in
5165 *-*-mingw* ) # actually msys
5166 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5167 ;;
5168 *-*-cygwin* )
5169 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5170 ;;
5171 * ) # otherwise, assume *nix
5172 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5173 ;;
5174 esac
5175 ;;
5176 *-*-cygwin* )
5177 case $build in
5178 *-*-mingw* ) # actually msys
5179 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5180 ;;
5181 *-*-cygwin* )
5182 lt_cv_to_host_file_cmd=func_convert_file_noop
5183 ;;
5184 * ) # otherwise, assume *nix
5185 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5186 ;;
5187 esac
5188 ;;
5189 * ) # unhandled hosts (and "normal" native builds)
5190 lt_cv_to_host_file_cmd=func_convert_file_noop
5191 ;;
5192 esac
5193
5194 fi
5195
5196 to_host_file_cmd=$lt_cv_to_host_file_cmd
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5198 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5199
5200
5201
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5205 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5206 if ${lt_cv_to_tool_file_cmd+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 #assume ordinary cross tools, or native build.
5210 lt_cv_to_tool_file_cmd=func_convert_file_noop
5211 case $host in
5212 *-*-mingw* )
5213 case $build in
5214 *-*-mingw* ) # actually msys
5215 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5216 ;;
5217 esac
5218 ;;
5219 esac
5220
5221 fi
5222
5223 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5225 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5226
5227
5228
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5232 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5233 if ${lt_cv_ld_reload_flag+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 lt_cv_ld_reload_flag='-r'
5237 fi
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5239 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5240 reload_flag=$lt_cv_ld_reload_flag
5241 case $reload_flag in
5242 "" | " "*) ;;
5243 *) reload_flag=" $reload_flag" ;;
5244 esac
5245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5246 case $host_os in
5247 cygwin* | mingw* | pw32* | cegcc*)
5248 if test "$GCC" != yes; then
5249 reload_cmds=false
5250 fi
5251 ;;
5252 darwin*)
5253 if test "$GCC" = yes; then
5254 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5255 else
5256 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5257 fi
5258 ;;
5259 esac
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269 if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5271 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_OBJDUMP+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$OBJDUMP"; then
5278 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 OBJDUMP=$ac_cv_prog_OBJDUMP
5298 if test -n "$OBJDUMP"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5300 $as_echo "$OBJDUMP" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 fi
5308 if test -z "$ac_cv_prog_OBJDUMP"; then
5309 ac_ct_OBJDUMP=$OBJDUMP
5310 # Extract the first word of "objdump", so it can be a program name with args.
5311 set dummy objdump; ac_word=$2
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313 $as_echo_n "checking for $ac_word... " >&6; }
5314 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 if test -n "$ac_ct_OBJDUMP"; then
5318 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5319 else
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331 done
5332 done
5333 IFS=$as_save_IFS
5334
5335 fi
5336 fi
5337 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5338 if test -n "$ac_ct_OBJDUMP"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5340 $as_echo "$ac_ct_OBJDUMP" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343 $as_echo "no" >&6; }
5344 fi
5345
5346 if test "x$ac_ct_OBJDUMP" = x; then
5347 OBJDUMP="false"
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 OBJDUMP=$ac_ct_OBJDUMP
5356 fi
5357 else
5358 OBJDUMP="$ac_cv_prog_OBJDUMP"
5359 fi
5360
5361 test -z "$OBJDUMP" && OBJDUMP=objdump
5362
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5369 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5370 if ${lt_cv_deplibs_check_method+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 lt_cv_file_magic_cmd='$MAGIC_CMD'
5374 lt_cv_file_magic_test_file=
5375 lt_cv_deplibs_check_method='unknown'
5376 # Need to set the preceding variable on all platforms that support
5377 # interlibrary dependencies.
5378 # 'none' -- dependencies not supported.
5379 # `unknown' -- same as none, but documents that we really don't know.
5380 # 'pass_all' -- all dependencies passed with no checks.
5381 # 'test_compile' -- check by making test program.
5382 # 'file_magic [[regex]]' -- check by looking for files in library path
5383 # which responds to the $file_magic_cmd with a given extended regex.
5384 # If you have `file' or equivalent on your system and you're not sure
5385 # whether `pass_all' will *always* work, you probably want this one.
5386
5387 case $host_os in
5388 aix[4-9]*)
5389 lt_cv_deplibs_check_method=pass_all
5390 ;;
5391
5392 beos*)
5393 lt_cv_deplibs_check_method=pass_all
5394 ;;
5395
5396 bsdi[45]*)
5397 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5398 lt_cv_file_magic_cmd='/usr/bin/file -L'
5399 lt_cv_file_magic_test_file=/shlib/libc.so
5400 ;;
5401
5402 cygwin*)
5403 # func_win32_libid is a shell function defined in ltmain.sh
5404 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5405 lt_cv_file_magic_cmd='func_win32_libid'
5406 ;;
5407
5408 mingw* | pw32*)
5409 # Base MSYS/MinGW do not provide the 'file' command needed by
5410 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5411 # unless we find 'file', for example because we are cross-compiling.
5412 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5413 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5415 lt_cv_file_magic_cmd='func_win32_libid'
5416 else
5417 # Keep this pattern in sync with the one in func_win32_libid.
5418 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5419 lt_cv_file_magic_cmd='$OBJDUMP -f'
5420 fi
5421 ;;
5422
5423 cegcc*)
5424 # use the weaker test based on 'objdump'. See mingw*.
5425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5426 lt_cv_file_magic_cmd='$OBJDUMP -f'
5427 ;;
5428
5429 darwin* | rhapsody*)
5430 lt_cv_deplibs_check_method=pass_all
5431 ;;
5432
5433 freebsd* | dragonfly*)
5434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5435 case $host_cpu in
5436 i*86 )
5437 # Not sure whether the presence of OpenBSD here was a mistake.
5438 # Let's accept both of them until this is cleared up.
5439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5440 lt_cv_file_magic_cmd=/usr/bin/file
5441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5442 ;;
5443 esac
5444 else
5445 lt_cv_deplibs_check_method=pass_all
5446 fi
5447 ;;
5448
5449 gnu*)
5450 lt_cv_deplibs_check_method=pass_all
5451 ;;
5452
5453 haiku*)
5454 lt_cv_deplibs_check_method=pass_all
5455 ;;
5456
5457 hpux10.20* | hpux11*)
5458 lt_cv_file_magic_cmd=/usr/bin/file
5459 case $host_cpu in
5460 ia64*)
5461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5462 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5463 ;;
5464 hppa*64*)
5465 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5466 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5467 ;;
5468 *)
5469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5470 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5471 ;;
5472 esac
5473 ;;
5474
5475 interix[3-9]*)
5476 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5478 ;;
5479
5480 irix5* | irix6* | nonstopux*)
5481 case $LD in
5482 *-32|*"-32 ") libmagic=32-bit;;
5483 *-n32|*"-n32 ") libmagic=N32;;
5484 *-64|*"-64 ") libmagic=64-bit;;
5485 *) libmagic=never-match;;
5486 esac
5487 lt_cv_deplibs_check_method=pass_all
5488 ;;
5489
5490 # This must be Linux ELF.
5491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5492 lt_cv_deplibs_check_method=pass_all
5493 ;;
5494
5495 netbsd*)
5496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5498 else
5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5500 fi
5501 ;;
5502
5503 newos6*)
5504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5505 lt_cv_file_magic_cmd=/usr/bin/file
5506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5507 ;;
5508
5509 *nto* | *qnx*)
5510 lt_cv_deplibs_check_method=pass_all
5511 ;;
5512
5513 openbsd*)
5514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5516 else
5517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5518 fi
5519 ;;
5520
5521 osf3* | osf4* | osf5*)
5522 lt_cv_deplibs_check_method=pass_all
5523 ;;
5524
5525 rdos*)
5526 lt_cv_deplibs_check_method=pass_all
5527 ;;
5528
5529 solaris*)
5530 lt_cv_deplibs_check_method=pass_all
5531 ;;
5532
5533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5534 lt_cv_deplibs_check_method=pass_all
5535 ;;
5536
5537 sysv4 | sysv4.3*)
5538 case $host_vendor in
5539 motorola)
5540 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5542 ;;
5543 ncr)
5544 lt_cv_deplibs_check_method=pass_all
5545 ;;
5546 sequent)
5547 lt_cv_file_magic_cmd='/bin/file'
5548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5549 ;;
5550 sni)
5551 lt_cv_file_magic_cmd='/bin/file'
5552 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5553 lt_cv_file_magic_test_file=/lib/libc.so
5554 ;;
5555 siemens)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558 pc)
5559 lt_cv_deplibs_check_method=pass_all
5560 ;;
5561 esac
5562 ;;
5563
5564 tpf*)
5565 lt_cv_deplibs_check_method=pass_all
5566 ;;
5567 esac
5568
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5571 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5572
5573 file_magic_glob=
5574 want_nocaseglob=no
5575 if test "$build" = "$host"; then
5576 case $host_os in
5577 mingw* | pw32*)
5578 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5579 want_nocaseglob=yes
5580 else
5581 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5582 fi
5583 ;;
5584 esac
5585 fi
5586
5587 file_magic_cmd=$lt_cv_file_magic_cmd
5588 deplibs_check_method=$lt_cv_deplibs_check_method
5589 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5614 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_DLLTOOL+:} false; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$DLLTOOL"; then
5621 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634 done
5635 done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 DLLTOOL=$ac_cv_prog_DLLTOOL
5641 if test -n "$DLLTOOL"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5643 $as_echo "$DLLTOOL" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 fi
5651 if test -z "$ac_cv_prog_DLLTOOL"; then
5652 ac_ct_DLLTOOL=$DLLTOOL
5653 # Extract the first word of "dlltool", so it can be a program name with args.
5654 set dummy dlltool; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 if test -n "$ac_ct_DLLTOOL"; then
5661 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5673 fi
5674 done
5675 done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5681 if test -n "$ac_ct_DLLTOOL"; then
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5683 $as_echo "$ac_ct_DLLTOOL" >&6; }
5684 else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 fi
5688
5689 if test "x$ac_ct_DLLTOOL" = x; then
5690 DLLTOOL="false"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693 yes:)
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696 ac_tool_warned=yes ;;
5697 esac
5698 DLLTOOL=$ac_ct_DLLTOOL
5699 fi
5700 else
5701 DLLTOOL="$ac_cv_prog_DLLTOOL"
5702 fi
5703
5704 test -z "$DLLTOOL" && DLLTOOL=dlltool
5705
5706
5707
5708
5709
5710
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5713 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5714 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 lt_cv_sharedlib_from_linklib_cmd='unknown'
5718
5719 case $host_os in
5720 cygwin* | mingw* | pw32* | cegcc*)
5721 # two different shell functions defined in ltmain.sh
5722 # decide which to use based on capabilities of $DLLTOOL
5723 case `$DLLTOOL --help 2>&1` in
5724 *--identify-strict*)
5725 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5726 ;;
5727 *)
5728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5729 ;;
5730 esac
5731 ;;
5732 *)
5733 # fallback: assume linklib IS sharedlib
5734 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5735 ;;
5736 esac
5737
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5740 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5741 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5742 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5743
5744
5745
5746
5747
5748
5749
5750
5751 if test -n "$ac_tool_prefix"; then
5752 for ac_prog in ar
5753 do
5754 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5755 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_AR+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -n "$AR"; then
5762 ac_cv_prog_AR="$AR" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767 IFS=$as_save_IFS
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5771 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 break 2
5774 fi
5775 done
5776 done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 AR=$ac_cv_prog_AR
5782 if test -n "$AR"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5784 $as_echo "$AR" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791 test -n "$AR" && break
5792 done
5793 fi
5794 if test -z "$AR"; then
5795 ac_ct_AR=$AR
5796 for ac_prog in ar
5797 do
5798 # Extract the first word of "$ac_prog", so it can be a program name with args.
5799 set dummy $ac_prog; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$ac_ct_AR"; then
5806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_ac_ct_AR="$ac_prog"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5826 if test -n "$ac_ct_AR"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5828 $as_echo "$ac_ct_AR" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 test -n "$ac_ct_AR" && break
5836 done
5837
5838 if test "x$ac_ct_AR" = x; then
5839 AR="false"
5840 else
5841 case $cross_compiling:$ac_tool_warned in
5842 yes:)
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5844 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5845 ac_tool_warned=yes ;;
5846 esac
5847 AR=$ac_ct_AR
5848 fi
5849 fi
5850
5851 : ${AR=ar}
5852 : ${AR_FLAGS=cru}
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5865 $as_echo_n "checking for archiver @FILE support... " >&6; }
5866 if ${lt_cv_ar_at_file+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 lt_cv_ar_at_file=no
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872
5873 int
5874 main ()
5875 {
5876
5877 ;
5878 return 0;
5879 }
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"; then :
5882 echo conftest.$ac_objext > conftest.lst
5883 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5885 (eval $lt_ar_try) 2>&5
5886 ac_status=$?
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }
5889 if test "$ac_status" -eq 0; then
5890 # Ensure the archiver fails upon bogus file names.
5891 rm -f conftest.$ac_objext libconftest.a
5892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5893 (eval $lt_ar_try) 2>&5
5894 ac_status=$?
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }
5897 if test "$ac_status" -ne 0; then
5898 lt_cv_ar_at_file=@
5899 fi
5900 fi
5901 rm -f conftest.* libconftest.a
5902
5903 fi
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5908 $as_echo "$lt_cv_ar_at_file" >&6; }
5909
5910 if test "x$lt_cv_ar_at_file" = xno; then
5911 archiver_list_spec=
5912 else
5913 archiver_list_spec=$lt_cv_ar_at_file
5914 fi
5915
5916
5917
5918
5919
5920
5921
5922 if test -n "$ac_tool_prefix"; then
5923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5924 set dummy ${ac_tool_prefix}strip; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_STRIP+:} false; then :
5928 $as_echo_n "(cached) " >&6
5929 else
5930 if test -n "$STRIP"; then
5931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 test -z "$as_dir" && as_dir=.
5938 for ac_exec_ext in '' $ac_executable_extensions; do
5939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 break 2
5943 fi
5944 done
5945 done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5953 $as_echo "$STRIP" >&6; }
5954 else
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959
5960 fi
5961 if test -z "$ac_cv_prog_STRIP"; then
5962 ac_ct_STRIP=$STRIP
5963 # Extract the first word of "strip", so it can be a program name with args.
5964 set dummy strip; ac_word=$2
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5966 $as_echo_n "checking for $ac_word... " >&6; }
5967 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 if test -n "$ac_ct_STRIP"; then
5971 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5980 ac_cv_prog_ac_ct_STRIP="strip"
5981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988 fi
5989 fi
5990 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5991 if test -n "$ac_ct_STRIP"; then
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5993 $as_echo "$ac_ct_STRIP" >&6; }
5994 else
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999 if test "x$ac_ct_STRIP" = x; then
6000 STRIP=":"
6001 else
6002 case $cross_compiling:$ac_tool_warned in
6003 yes:)
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6006 ac_tool_warned=yes ;;
6007 esac
6008 STRIP=$ac_ct_STRIP
6009 fi
6010 else
6011 STRIP="$ac_cv_prog_STRIP"
6012 fi
6013
6014 test -z "$STRIP" && STRIP=:
6015
6016
6017
6018
6019
6020
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_RANLIB+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$RANLIB"; then
6030 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 RANLIB=$ac_cv_prog_RANLIB
6050 if test -n "$RANLIB"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6052 $as_echo "$RANLIB" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058
6059 fi
6060 if test -z "$ac_cv_prog_RANLIB"; then
6061 ac_ct_RANLIB=$RANLIB
6062 # Extract the first word of "ranlib", so it can be a program name with args.
6063 set dummy ranlib; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$ac_ct_RANLIB"; then
6070 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_ac_ct_RANLIB="ranlib"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6090 if test -n "$ac_ct_RANLIB"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6092 $as_echo "$ac_ct_RANLIB" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098 if test "x$ac_ct_RANLIB" = x; then
6099 RANLIB=":"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107 RANLIB=$ac_ct_RANLIB
6108 fi
6109 else
6110 RANLIB="$ac_cv_prog_RANLIB"
6111 fi
6112
6113 test -z "$RANLIB" && RANLIB=:
6114
6115
6116
6117
6118
6119
6120 # Determine commands to create old-style static archives.
6121 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6122 old_postinstall_cmds='chmod 644 $oldlib'
6123 old_postuninstall_cmds=
6124
6125 if test -n "$RANLIB"; then
6126 case $host_os in
6127 openbsd*)
6128 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6129 ;;
6130 *)
6131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6132 ;;
6133 esac
6134 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6135 fi
6136
6137 case $host_os in
6138 darwin*)
6139 lock_old_archive_extraction=yes ;;
6140 *)
6141 lock_old_archive_extraction=no ;;
6142 esac
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 # If no C compiler was specified, use CC.
6183 LTCC=${LTCC-"$CC"}
6184
6185 # If no C compiler flags were specified, use CFLAGS.
6186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6187
6188 # Allow CC to be a program name with arguments.
6189 compiler=$CC
6190
6191
6192 # Check for command to grab the raw symbol name followed by C symbol from nm.
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6194 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6195 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198
6199 # These are sane defaults that work on at least a few old systems.
6200 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6201
6202 # Character class describing NM global symbol codes.
6203 symcode='[BCDEGRST]'
6204
6205 # Regexp to match symbols that can be accessed directly from C.
6206 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6207
6208 # Define system-specific variables.
6209 case $host_os in
6210 aix*)
6211 symcode='[BCDT]'
6212 ;;
6213 cygwin* | mingw* | pw32* | cegcc*)
6214 symcode='[ABCDGISTW]'
6215 ;;
6216 hpux*)
6217 if test "$host_cpu" = ia64; then
6218 symcode='[ABCDEGRST]'
6219 fi
6220 ;;
6221 irix* | nonstopux*)
6222 symcode='[BCDEGRST]'
6223 ;;
6224 osf*)
6225 symcode='[BCDEGQRST]'
6226 ;;
6227 solaris*)
6228 symcode='[BDRT]'
6229 ;;
6230 sco3.2v5*)
6231 symcode='[DT]'
6232 ;;
6233 sysv4.2uw2*)
6234 symcode='[DT]'
6235 ;;
6236 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6237 symcode='[ABDT]'
6238 ;;
6239 sysv4)
6240 symcode='[DFNSTU]'
6241 ;;
6242 esac
6243
6244 # If we're using GNU nm, then use its standard symbol codes.
6245 case `$NM -V 2>&1` in
6246 *GNU* | *'with BFD'*)
6247 symcode='[ABCDGIRSTW]' ;;
6248 esac
6249
6250 # Transform an extracted symbol line into a proper C declaration.
6251 # Some systems (esp. on ia64) link data and code symbols differently,
6252 # so use this general approach.
6253 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6254
6255 # Transform an extracted symbol line into symbol name and symbol address
6256 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6258
6259 # Handle CRLF in mingw tool chain
6260 opt_cr=
6261 case $build_os in
6262 mingw*)
6263 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6264 ;;
6265 esac
6266
6267 # Try without a prefix underscore, then with it.
6268 for ac_symprfx in "" "_"; do
6269
6270 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6271 symxfrm="\\1 $ac_symprfx\\2 \\2"
6272
6273 # Write the raw and C identifiers.
6274 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6275 # Fake it for dumpbin and say T for any non-static function
6276 # and D for any global variable.
6277 # Also find C++ and __fastcall symbols from MSVC++,
6278 # which start with @ or ?.
6279 lt_cv_sys_global_symbol_pipe="$AWK '"\
6280 " {last_section=section; section=\$ 3};"\
6281 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6282 " \$ 0!~/External *\|/{next};"\
6283 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6284 " {if(hide[section]) next};"\
6285 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6286 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6287 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6288 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6289 " ' prfx=^$ac_symprfx"
6290 else
6291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6292 fi
6293 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6294
6295 # Check to see that the pipe works correctly.
6296 pipe_works=no
6297
6298 rm -f conftest*
6299 cat > conftest.$ac_ext <<_LT_EOF
6300 #ifdef __cplusplus
6301 extern "C" {
6302 #endif
6303 char nm_test_var;
6304 void nm_test_func(void);
6305 void nm_test_func(void){}
6306 #ifdef __cplusplus
6307 }
6308 #endif
6309 int main(){nm_test_var='a';nm_test_func();return(0);}
6310 _LT_EOF
6311
6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6313 (eval $ac_compile) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; then
6317 # Now try to grab the symbols.
6318 nlist=conftest.nm
6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6321 ac_status=$?
6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6323 test $ac_status = 0; } && test -s "$nlist"; then
6324 # Try sorting and uniquifying the output.
6325 if sort "$nlist" | uniq > "$nlist"T; then
6326 mv -f "$nlist"T "$nlist"
6327 else
6328 rm -f "$nlist"T
6329 fi
6330
6331 # Make sure that we snagged all the symbols we need.
6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6334 cat <<_LT_EOF > conftest.$ac_ext
6335 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6336 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6337 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6338 relocations are performed -- see ld's documentation on pseudo-relocs. */
6339 # define LT_DLSYM_CONST
6340 #elif defined(__osf__)
6341 /* This system does not cope well with relocations in const data. */
6342 # define LT_DLSYM_CONST
6343 #else
6344 # define LT_DLSYM_CONST const
6345 #endif
6346
6347 #ifdef __cplusplus
6348 extern "C" {
6349 #endif
6350
6351 _LT_EOF
6352 # Now generate the symbol file.
6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6354
6355 cat <<_LT_EOF >> conftest.$ac_ext
6356
6357 /* The mapping between symbol names and symbols. */
6358 LT_DLSYM_CONST struct {
6359 const char *name;
6360 void *address;
6361 }
6362 lt__PROGRAM__LTX_preloaded_symbols[] =
6363 {
6364 { "@PROGRAM@", (void *) 0 },
6365 _LT_EOF
6366 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6367 cat <<\_LT_EOF >> conftest.$ac_ext
6368 {0, (void *) 0}
6369 };
6370
6371 /* This works around a problem in FreeBSD linker */
6372 #ifdef FREEBSD_WORKAROUND
6373 static const void *lt_preloaded_setup() {
6374 return lt__PROGRAM__LTX_preloaded_symbols;
6375 }
6376 #endif
6377
6378 #ifdef __cplusplus
6379 }
6380 #endif
6381 _LT_EOF
6382 # Now try linking the two files.
6383 mv conftest.$ac_objext conftstm.$ac_objext
6384 lt_globsym_save_LIBS=$LIBS
6385 lt_globsym_save_CFLAGS=$CFLAGS
6386 LIBS="conftstm.$ac_objext"
6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6389 (eval $ac_link) 2>&5
6390 ac_status=$?
6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6393 pipe_works=yes
6394 fi
6395 LIBS=$lt_globsym_save_LIBS
6396 CFLAGS=$lt_globsym_save_CFLAGS
6397 else
6398 echo "cannot find nm_test_func in $nlist" >&5
6399 fi
6400 else
6401 echo "cannot find nm_test_var in $nlist" >&5
6402 fi
6403 else
6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6405 fi
6406 else
6407 echo "$progname: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6409 fi
6410 rm -rf conftest* conftst*
6411
6412 # Do not use the global_symbol_pipe unless it works.
6413 if test "$pipe_works" = yes; then
6414 break
6415 else
6416 lt_cv_sys_global_symbol_pipe=
6417 fi
6418 done
6419
6420 fi
6421
6422 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6423 lt_cv_sys_global_symbol_to_cdecl=
6424 fi
6425 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6427 $as_echo "failed" >&6; }
6428 else
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6430 $as_echo "ok" >&6; }
6431 fi
6432
6433 # Response file support.
6434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6435 nm_file_list_spec='@'
6436 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6437 nm_file_list_spec='@'
6438 fi
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6467 $as_echo_n "checking for sysroot... " >&6; }
6468
6469 # Check whether --with-sysroot was given.
6470 if test "${with_sysroot+set}" = set; then :
6471 withval=$with_sysroot;
6472 else
6473 with_sysroot=no
6474 fi
6475
6476
6477 lt_sysroot=
6478 case ${with_sysroot} in #(
6479 yes)
6480 if test "$GCC" = yes; then
6481 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6482 fi
6483 ;; #(
6484 /*)
6485 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6486 ;; #(
6487 no|'')
6488 ;; #(
6489 *)
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6491 $as_echo "${with_sysroot}" >&6; }
6492 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6493 ;;
6494 esac
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6497 $as_echo "${lt_sysroot:-no}" >&6; }
6498
6499
6500
6501
6502
6503 # Check whether --enable-libtool-lock was given.
6504 if test "${enable_libtool_lock+set}" = set; then :
6505 enableval=$enable_libtool_lock;
6506 fi
6507
6508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6509
6510 # Some flags need to be propagated to the compiler or linker for good
6511 # libtool support.
6512 case $host in
6513 ia64-*-hpux*)
6514 # Find out which ABI we are using.
6515 echo 'int i;' > conftest.$ac_ext
6516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6517 (eval $ac_compile) 2>&5
6518 ac_status=$?
6519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6520 test $ac_status = 0; }; then
6521 case `/usr/bin/file conftest.$ac_objext` in
6522 *ELF-32*)
6523 HPUX_IA64_MODE="32"
6524 ;;
6525 *ELF-64*)
6526 HPUX_IA64_MODE="64"
6527 ;;
6528 esac
6529 fi
6530 rm -rf conftest*
6531 ;;
6532 *-*-irix6*)
6533 # Find out which ABI we are using.
6534 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6539 test $ac_status = 0; }; then
6540 if test "$lt_cv_prog_gnu_ld" = yes; then
6541 case `/usr/bin/file conftest.$ac_objext` in
6542 *32-bit*)
6543 LD="${LD-ld} -melf32bsmip"
6544 ;;
6545 *N32*)
6546 LD="${LD-ld} -melf32bmipn32"
6547 ;;
6548 *64-bit*)
6549 LD="${LD-ld} -melf64bmip"
6550 ;;
6551 esac
6552 else
6553 case `/usr/bin/file conftest.$ac_objext` in
6554 *32-bit*)
6555 LD="${LD-ld} -32"
6556 ;;
6557 *N32*)
6558 LD="${LD-ld} -n32"
6559 ;;
6560 *64-bit*)
6561 LD="${LD-ld} -64"
6562 ;;
6563 esac
6564 fi
6565 fi
6566 rm -rf conftest*
6567 ;;
6568
6569 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6570 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6571 # Find out which ABI we are using.
6572 echo 'int i;' > conftest.$ac_ext
6573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6574 (eval $ac_compile) 2>&5
6575 ac_status=$?
6576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6577 test $ac_status = 0; }; then
6578 case `/usr/bin/file conftest.o` in
6579 *32-bit*)
6580 case $host in
6581 x86_64-*kfreebsd*-gnu)
6582 LD="${LD-ld} -m elf_i386_fbsd"
6583 ;;
6584 x86_64-*linux*)
6585 LD="${LD-ld} -m elf_i386"
6586 ;;
6587 ppc64-*linux*|powerpc64-*linux*)
6588 LD="${LD-ld} -m elf32ppclinux"
6589 ;;
6590 s390x-*linux*)
6591 LD="${LD-ld} -m elf_s390"
6592 ;;
6593 sparc64-*linux*)
6594 LD="${LD-ld} -m elf32_sparc"
6595 ;;
6596 esac
6597 ;;
6598 *64-bit*)
6599 case $host in
6600 x86_64-*kfreebsd*-gnu)
6601 LD="${LD-ld} -m elf_x86_64_fbsd"
6602 ;;
6603 x86_64-*linux*)
6604 LD="${LD-ld} -m elf_x86_64"
6605 ;;
6606 ppc*-*linux*|powerpc*-*linux*)
6607 LD="${LD-ld} -m elf64ppc"
6608 ;;
6609 s390*-*linux*|s390*-*tpf*)
6610 LD="${LD-ld} -m elf64_s390"
6611 ;;
6612 sparc*-*linux*)
6613 LD="${LD-ld} -m elf64_sparc"
6614 ;;
6615 esac
6616 ;;
6617 esac
6618 fi
6619 rm -rf conftest*
6620 ;;
6621
6622 *-*-sco3.2v5*)
6623 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6624 SAVE_CFLAGS="$CFLAGS"
6625 CFLAGS="$CFLAGS -belf"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6627 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6628 if ${lt_cv_cc_needs_belf+:} false; then :
6629 $as_echo_n "(cached) " >&6
6630 else
6631 ac_ext=c
6632 ac_cpp='$CPP $CPPFLAGS'
6633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639
6640 int
6641 main ()
6642 {
6643
6644 ;
6645 return 0;
6646 }
6647 _ACEOF
6648 if ac_fn_c_try_link "$LINENO"; then :
6649 lt_cv_cc_needs_belf=yes
6650 else
6651 lt_cv_cc_needs_belf=no
6652 fi
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6655 ac_ext=c
6656 ac_cpp='$CPP $CPPFLAGS'
6657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661 fi
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6663 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6664 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6665 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6666 CFLAGS="$SAVE_CFLAGS"
6667 fi
6668 ;;
6669 sparc*-*solaris*)
6670 # Find out which ABI we are using.
6671 echo 'int i;' > conftest.$ac_ext
6672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6673 (eval $ac_compile) 2>&5
6674 ac_status=$?
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; then
6677 case `/usr/bin/file conftest.o` in
6678 *64-bit*)
6679 case $lt_cv_prog_gnu_ld in
6680 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6681 *)
6682 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6683 LD="${LD-ld} -64"
6684 fi
6685 ;;
6686 esac
6687 ;;
6688 esac
6689 fi
6690 rm -rf conftest*
6691 ;;
6692 esac
6693
6694 need_locks="$enable_libtool_lock"
6695
6696 if test -n "$ac_tool_prefix"; then
6697 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6698 set dummy ${ac_tool_prefix}mt; ac_word=$2
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700 $as_echo_n "checking for $ac_word... " >&6; }
6701 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6702 $as_echo_n "(cached) " >&6
6703 else
6704 if test -n "$MANIFEST_TOOL"; then
6705 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6706 else
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708 for as_dir in $PATH
6709 do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718 done
6719 done
6720 IFS=$as_save_IFS
6721
6722 fi
6723 fi
6724 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6725 if test -n "$MANIFEST_TOOL"; then
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6727 $as_echo "$MANIFEST_TOOL" >&6; }
6728 else
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732
6733
6734 fi
6735 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6736 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6737 # Extract the first word of "mt", so it can be a program name with args.
6738 set dummy mt; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$ac_ct_MANIFEST_TOOL"; then
6745 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6749 do
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6757 fi
6758 done
6759 done
6760 IFS=$as_save_IFS
6761
6762 fi
6763 fi
6764 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6765 if test -n "$ac_ct_MANIFEST_TOOL"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6767 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6771 fi
6772
6773 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6774 MANIFEST_TOOL=":"
6775 else
6776 case $cross_compiling:$ac_tool_warned in
6777 yes:)
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780 ac_tool_warned=yes ;;
6781 esac
6782 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6783 fi
6784 else
6785 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6786 fi
6787
6788 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6790 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6791 if ${lt_cv_path_mainfest_tool+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 lt_cv_path_mainfest_tool=no
6795 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6796 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6797 cat conftest.err >&5
6798 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6799 lt_cv_path_mainfest_tool=yes
6800 fi
6801 rm -f conftest*
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6804 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6805 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6806 MANIFEST_TOOL=:
6807 fi
6808
6809
6810
6811
6812
6813
6814 case $host_os in
6815 rhapsody* | darwin*)
6816 if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6818 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820 $as_echo_n "checking for $ac_word... " >&6; }
6821 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6822 $as_echo_n "(cached) " >&6
6823 else
6824 if test -n "$DSYMUTIL"; then
6825 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6826 else
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 for as_dir in $PATH
6829 do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838 done
6839 done
6840 IFS=$as_save_IFS
6841
6842 fi
6843 fi
6844 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6845 if test -n "$DSYMUTIL"; then
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6847 $as_echo "$DSYMUTIL" >&6; }
6848 else
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852
6853
6854 fi
6855 if test -z "$ac_cv_prog_DSYMUTIL"; then
6856 ac_ct_DSYMUTIL=$DSYMUTIL
6857 # Extract the first word of "dsymutil", so it can be a program name with args.
6858 set dummy dsymutil; ac_word=$2
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6860 $as_echo_n "checking for $ac_word... " >&6; }
6861 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 if test -n "$ac_ct_DSYMUTIL"; then
6865 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6866 else
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 for as_dir in $PATH
6869 do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878 done
6879 done
6880 IFS=$as_save_IFS
6881
6882 fi
6883 fi
6884 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6885 if test -n "$ac_ct_DSYMUTIL"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6887 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6891 fi
6892
6893 if test "x$ac_ct_DSYMUTIL" = x; then
6894 DSYMUTIL=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897 yes:)
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6900 ac_tool_warned=yes ;;
6901 esac
6902 DSYMUTIL=$ac_ct_DSYMUTIL
6903 fi
6904 else
6905 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6906 fi
6907
6908 if test -n "$ac_tool_prefix"; then
6909 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6910 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_NMEDIT+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$NMEDIT"; then
6917 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 NMEDIT=$ac_cv_prog_NMEDIT
6937 if test -n "$NMEDIT"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6939 $as_echo "$NMEDIT" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945
6946 fi
6947 if test -z "$ac_cv_prog_NMEDIT"; then
6948 ac_ct_NMEDIT=$NMEDIT
6949 # Extract the first word of "nmedit", so it can be a program name with args.
6950 set dummy nmedit; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$ac_ct_NMEDIT"; then
6957 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6969 fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6977 if test -n "$ac_ct_NMEDIT"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6979 $as_echo "$ac_ct_NMEDIT" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6983 fi
6984
6985 if test "x$ac_ct_NMEDIT" = x; then
6986 NMEDIT=":"
6987 else
6988 case $cross_compiling:$ac_tool_warned in
6989 yes:)
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6992 ac_tool_warned=yes ;;
6993 esac
6994 NMEDIT=$ac_ct_NMEDIT
6995 fi
6996 else
6997 NMEDIT="$ac_cv_prog_NMEDIT"
6998 fi
6999
7000 if test -n "$ac_tool_prefix"; then
7001 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7002 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_LIPO+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 if test -n "$LIPO"; then
7009 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014 IFS=$as_save_IFS
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 break 2
7021 fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 LIPO=$ac_cv_prog_LIPO
7029 if test -n "$LIPO"; then
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7031 $as_echo "$LIPO" >&6; }
7032 else
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038 fi
7039 if test -z "$ac_cv_prog_LIPO"; then
7040 ac_ct_LIPO=$LIPO
7041 # Extract the first word of "lipo", so it can be a program name with args.
7042 set dummy lipo; ac_word=$2
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7044 $as_echo_n "checking for $ac_word... " >&6; }
7045 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7046 $as_echo_n "(cached) " >&6
7047 else
7048 if test -n "$ac_ct_LIPO"; then
7049 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7058 ac_cv_prog_ac_ct_LIPO="lipo"
7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7069 if test -n "$ac_ct_LIPO"; then
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7071 $as_echo "$ac_ct_LIPO" >&6; }
7072 else
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7074 $as_echo "no" >&6; }
7075 fi
7076
7077 if test "x$ac_ct_LIPO" = x; then
7078 LIPO=":"
7079 else
7080 case $cross_compiling:$ac_tool_warned in
7081 yes:)
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7084 ac_tool_warned=yes ;;
7085 esac
7086 LIPO=$ac_ct_LIPO
7087 fi
7088 else
7089 LIPO="$ac_cv_prog_LIPO"
7090 fi
7091
7092 if test -n "$ac_tool_prefix"; then
7093 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}otool; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_OTOOL+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 if test -n "$OTOOL"; then
7101 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 break 2
7113 fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 OTOOL=$ac_cv_prog_OTOOL
7121 if test -n "$OTOOL"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7123 $as_echo "$OTOOL" >&6; }
7124 else
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_OTOOL"; then
7132 ac_ct_OTOOL=$OTOOL
7133 # Extract the first word of "otool", so it can be a program name with args.
7134 set dummy otool; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 if test -n "$ac_ct_OTOOL"; then
7141 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_prog_ac_ct_OTOOL="otool"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7161 if test -n "$ac_ct_OTOOL"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7163 $as_echo "$ac_ct_OTOOL" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169 if test "x$ac_ct_OTOOL" = x; then
7170 OTOOL=":"
7171 else
7172 case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178 OTOOL=$ac_ct_OTOOL
7179 fi
7180 else
7181 OTOOL="$ac_cv_prog_OTOOL"
7182 fi
7183
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_OTOOL64+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if test -n "$OTOOL64"; then
7193 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7202 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 OTOOL64=$ac_cv_prog_OTOOL64
7213 if test -n "$OTOOL64"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7215 $as_echo "$OTOOL64" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222 fi
7223 if test -z "$ac_cv_prog_OTOOL64"; then
7224 ac_ct_OTOOL64=$OTOOL64
7225 # Extract the first word of "otool64", so it can be a program name with args.
7226 set dummy otool64; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$ac_ct_OTOOL64"; then
7233 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_ac_ct_OTOOL64="otool64"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7245 fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7253 if test -n "$ac_ct_OTOOL64"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7255 $as_echo "$ac_ct_OTOOL64" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261 if test "x$ac_ct_OTOOL64" = x; then
7262 OTOOL64=":"
7263 else
7264 case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270 OTOOL64=$ac_ct_OTOOL64
7271 fi
7272 else
7273 OTOOL64="$ac_cv_prog_OTOOL64"
7274 fi
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7303 $as_echo_n "checking for -single_module linker flag... " >&6; }
7304 if ${lt_cv_apple_cc_single_mod+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 lt_cv_apple_cc_single_mod=no
7308 if test -z "${LT_MULTI_MODULE}"; then
7309 # By default we will add the -single_module flag. You can override
7310 # by either setting the environment variable LT_MULTI_MODULE
7311 # non-empty at configure time, or by adding -multi_module to the
7312 # link flags.
7313 rm -rf libconftest.dylib*
7314 echo "int foo(void){return 1;}" > conftest.c
7315 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7316 -dynamiclib -Wl,-single_module conftest.c" >&5
7317 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7318 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7319 _lt_result=$?
7320 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7321 lt_cv_apple_cc_single_mod=yes
7322 else
7323 cat conftest.err >&5
7324 fi
7325 rm -rf libconftest.dylib*
7326 rm -f conftest.*
7327 fi
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7330 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7332 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7333 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 lt_cv_ld_exported_symbols_list=no
7337 save_LDFLAGS=$LDFLAGS
7338 echo "_main" > conftest.sym
7339 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342
7343 int
7344 main ()
7345 {
7346
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 if ac_fn_c_try_link "$LINENO"; then :
7352 lt_cv_ld_exported_symbols_list=yes
7353 else
7354 lt_cv_ld_exported_symbols_list=no
7355 fi
7356 rm -f core conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7358 LDFLAGS="$save_LDFLAGS"
7359
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7362 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7364 $as_echo_n "checking for -force_load linker flag... " >&6; }
7365 if ${lt_cv_ld_force_load+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 lt_cv_ld_force_load=no
7369 cat > conftest.c << _LT_EOF
7370 int forced_loaded() { return 2;}
7371 _LT_EOF
7372 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7373 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7374 echo "$AR cru libconftest.a conftest.o" >&5
7375 $AR cru libconftest.a conftest.o 2>&5
7376 echo "$RANLIB libconftest.a" >&5
7377 $RANLIB libconftest.a 2>&5
7378 cat > conftest.c << _LT_EOF
7379 int main() { return 0;}
7380 _LT_EOF
7381 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7382 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7383 _lt_result=$?
7384 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7385 lt_cv_ld_force_load=yes
7386 else
7387 cat conftest.err >&5
7388 fi
7389 rm -f conftest.err libconftest.a conftest conftest.c
7390 rm -rf conftest.dSYM
7391
7392 fi
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7394 $as_echo "$lt_cv_ld_force_load" >&6; }
7395 case $host_os in
7396 rhapsody* | darwin1.[012])
7397 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7398 darwin1.*)
7399 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7400 darwin*) # darwin 5.x on
7401 # if running on 10.5 or later, the deployment target defaults
7402 # to the OS version, if on x86, and 10.4, the deployment
7403 # target defaults to 10.4. Don't you love it?
7404 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7405 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7406 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7407 10.[012]*)
7408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7409 10.*)
7410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7411 esac
7412 ;;
7413 esac
7414 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7415 _lt_dar_single_mod='$single_module'
7416 fi
7417 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7418 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7419 else
7420 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7421 fi
7422 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7423 _lt_dsymutil='~$DSYMUTIL $lib || :'
7424 else
7425 _lt_dsymutil=
7426 fi
7427 ;;
7428 esac
7429
7430 ac_ext=c
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7437 # On Suns, sometimes $CPP names a directory.
7438 if test -n "$CPP" && test -d "$CPP"; then
7439 CPP=
7440 fi
7441 if test -z "$CPP"; then
7442 if ${ac_cv_prog_CPP+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 # Double quotes because CPP needs to be expanded
7446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7447 do
7448 ac_preproc_ok=false
7449 for ac_c_preproc_warn_flag in '' yes
7450 do
7451 # Use a header file that comes with gcc, so configuring glibc
7452 # with a fresh cross-compiler works.
7453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 # <limits.h> exists even on freestanding compilers.
7455 # On the NeXT, cc -E runs the code through the compiler's parser,
7456 # not just through cpp. "Syntax error" is here to catch this case.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #ifdef __STDC__
7460 # include <limits.h>
7461 #else
7462 # include <assert.h>
7463 #endif
7464 Syntax error
7465 _ACEOF
7466 if ac_fn_c_try_cpp "$LINENO"; then :
7467
7468 else
7469 # Broken: fails on valid input.
7470 continue
7471 fi
7472 rm -f conftest.err conftest.i conftest.$ac_ext
7473
7474 # OK, works on sane cases. Now check whether nonexistent headers
7475 # can be detected and how.
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 #include <ac_nonexistent.h>
7479 _ACEOF
7480 if ac_fn_c_try_cpp "$LINENO"; then :
7481 # Broken: success on invalid input.
7482 continue
7483 else
7484 # Passes both tests.
7485 ac_preproc_ok=:
7486 break
7487 fi
7488 rm -f conftest.err conftest.i conftest.$ac_ext
7489
7490 done
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.i conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then :
7494 break
7495 fi
7496
7497 done
7498 ac_cv_prog_CPP=$CPP
7499
7500 fi
7501 CPP=$ac_cv_prog_CPP
7502 else
7503 ac_cv_prog_CPP=$CPP
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7506 $as_echo "$CPP" >&6; }
7507 ac_preproc_ok=false
7508 for ac_c_preproc_warn_flag in '' yes
7509 do
7510 # Use a header file that comes with gcc, so configuring glibc
7511 # with a fresh cross-compiler works.
7512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 # <limits.h> exists even on freestanding compilers.
7514 # On the NeXT, cc -E runs the code through the compiler's parser,
7515 # not just through cpp. "Syntax error" is here to catch this case.
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #ifdef __STDC__
7519 # include <limits.h>
7520 #else
7521 # include <assert.h>
7522 #endif
7523 Syntax error
7524 _ACEOF
7525 if ac_fn_c_try_cpp "$LINENO"; then :
7526
7527 else
7528 # Broken: fails on valid input.
7529 continue
7530 fi
7531 rm -f conftest.err conftest.i conftest.$ac_ext
7532
7533 # OK, works on sane cases. Now check whether nonexistent headers
7534 # can be detected and how.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <ac_nonexistent.h>
7538 _ACEOF
7539 if ac_fn_c_try_cpp "$LINENO"; then :
7540 # Broken: success on invalid input.
7541 continue
7542 else
7543 # Passes both tests.
7544 ac_preproc_ok=:
7545 break
7546 fi
7547 rm -f conftest.err conftest.i conftest.$ac_ext
7548
7549 done
7550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7551 rm -f conftest.i conftest.err conftest.$ac_ext
7552 if $ac_preproc_ok; then :
7553
7554 else
7555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7558 See \`config.log' for more details" "$LINENO" 5; }
7559 fi
7560
7561 ac_ext=c
7562 ac_cpp='$CPP $CPPFLAGS'
7563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7569 $as_echo_n "checking for ANSI C header files... " >&6; }
7570 if ${ac_cv_header_stdc+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #include <stdlib.h>
7576 #include <stdarg.h>
7577 #include <string.h>
7578 #include <float.h>
7579
7580 int
7581 main ()
7582 {
7583
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 ac_cv_header_stdc=yes
7590 else
7591 ac_cv_header_stdc=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594
7595 if test $ac_cv_header_stdc = yes; then
7596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 #include <string.h>
7600
7601 _ACEOF
7602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7603 $EGREP "memchr" >/dev/null 2>&1; then :
7604
7605 else
7606 ac_cv_header_stdc=no
7607 fi
7608 rm -f conftest*
7609
7610 fi
7611
7612 if test $ac_cv_header_stdc = yes; then
7613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #include <stdlib.h>
7617
7618 _ACEOF
7619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7620 $EGREP "free" >/dev/null 2>&1; then :
7621
7622 else
7623 ac_cv_header_stdc=no
7624 fi
7625 rm -f conftest*
7626
7627 fi
7628
7629 if test $ac_cv_header_stdc = yes; then
7630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7631 if test "$cross_compiling" = yes; then :
7632 :
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #include <ctype.h>
7637 #include <stdlib.h>
7638 #if ((' ' & 0x0FF) == 0x020)
7639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7641 #else
7642 # define ISLOWER(c) \
7643 (('a' <= (c) && (c) <= 'i') \
7644 || ('j' <= (c) && (c) <= 'r') \
7645 || ('s' <= (c) && (c) <= 'z'))
7646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7647 #endif
7648
7649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7650 int
7651 main ()
7652 {
7653 int i;
7654 for (i = 0; i < 256; i++)
7655 if (XOR (islower (i), ISLOWER (i))
7656 || toupper (i) != TOUPPER (i))
7657 return 2;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_run "$LINENO"; then :
7662
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7667 conftest.$ac_objext conftest.beam conftest.$ac_ext
7668 fi
7669
7670 fi
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7673 $as_echo "$ac_cv_header_stdc" >&6; }
7674 if test $ac_cv_header_stdc = yes; then
7675
7676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7677
7678 fi
7679
7680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7682 inttypes.h stdint.h unistd.h
7683 do :
7684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7686 "
7687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693
7694 done
7695
7696
7697 for ac_header in dlfcn.h
7698 do :
7699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7700 "
7701 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7702 cat >>confdefs.h <<_ACEOF
7703 #define HAVE_DLFCN_H 1
7704 _ACEOF
7705
7706 fi
7707
7708 done
7709
7710
7711
7712
7713
7714 # Set options
7715
7716
7717
7718 enable_dlopen=no
7719
7720
7721
7722 # Check whether --enable-shared was given.
7723 if test "${enable_shared+set}" = set; then :
7724 enableval=$enable_shared; p=${PACKAGE-default}
7725 case $enableval in
7726 yes) enable_shared=yes ;;
7727 no) enable_shared=no ;;
7728 *)
7729 enable_shared=no
7730 # Look at the argument we got. We use all the common list separators.
7731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7732 for pkg in $enableval; do
7733 IFS="$lt_save_ifs"
7734 if test "X$pkg" = "X$p"; then
7735 enable_shared=yes
7736 fi
7737 done
7738 IFS="$lt_save_ifs"
7739 ;;
7740 esac
7741 else
7742 enable_shared=yes
7743 fi
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 # Check whether --enable-static was given.
7754 if test "${enable_static+set}" = set; then :
7755 enableval=$enable_static; p=${PACKAGE-default}
7756 case $enableval in
7757 yes) enable_static=yes ;;
7758 no) enable_static=no ;;
7759 *)
7760 enable_static=no
7761 # Look at the argument we got. We use all the common list separators.
7762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7763 for pkg in $enableval; do
7764 IFS="$lt_save_ifs"
7765 if test "X$pkg" = "X$p"; then
7766 enable_static=yes
7767 fi
7768 done
7769 IFS="$lt_save_ifs"
7770 ;;
7771 esac
7772 else
7773 enable_static=yes
7774 fi
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785 # Check whether --with-pic was given.
7786 if test "${with_pic+set}" = set; then :
7787 withval=$with_pic; pic_mode="$withval"
7788 else
7789 pic_mode=default
7790 fi
7791
7792
7793 test -z "$pic_mode" && pic_mode=default
7794
7795
7796
7797
7798
7799
7800
7801 # Check whether --enable-fast-install was given.
7802 if test "${enable_fast_install+set}" = set; then :
7803 enableval=$enable_fast_install; p=${PACKAGE-default}
7804 case $enableval in
7805 yes) enable_fast_install=yes ;;
7806 no) enable_fast_install=no ;;
7807 *)
7808 enable_fast_install=no
7809 # Look at the argument we got. We use all the common list separators.
7810 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7811 for pkg in $enableval; do
7812 IFS="$lt_save_ifs"
7813 if test "X$pkg" = "X$p"; then
7814 enable_fast_install=yes
7815 fi
7816 done
7817 IFS="$lt_save_ifs"
7818 ;;
7819 esac
7820 else
7821 enable_fast_install=yes
7822 fi
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834 # This can be used to rebuild libtool when needed
7835 LIBTOOL_DEPS="$ltmain"
7836
7837 # Always use our own libtool.
7838 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865 test -z "$LN_S" && LN_S="ln -s"
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 if test -n "${ZSH_VERSION+set}" ; then
7881 setopt NO_GLOB_SUBST
7882 fi
7883
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7885 $as_echo_n "checking for objdir... " >&6; }
7886 if ${lt_cv_objdir+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 rm -f .libs 2>/dev/null
7890 mkdir .libs 2>/dev/null
7891 if test -d .libs; then
7892 lt_cv_objdir=.libs
7893 else
7894 # MS-DOS does not allow filenames that begin with a dot.
7895 lt_cv_objdir=_libs
7896 fi
7897 rmdir .libs 2>/dev/null
7898 fi
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7900 $as_echo "$lt_cv_objdir" >&6; }
7901 objdir=$lt_cv_objdir
7902
7903
7904
7905
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define LT_OBJDIR "$lt_cv_objdir/"
7909 _ACEOF
7910
7911
7912
7913
7914 case $host_os in
7915 aix3*)
7916 # AIX sometimes has problems with the GCC collect2 program. For some
7917 # reason, if we set the COLLECT_NAMES environment variable, the problems
7918 # vanish in a puff of smoke.
7919 if test "X${COLLECT_NAMES+set}" != Xset; then
7920 COLLECT_NAMES=
7921 export COLLECT_NAMES
7922 fi
7923 ;;
7924 esac
7925
7926 # Global variables:
7927 ofile=libtool
7928 can_build_shared=yes
7929
7930 # All known linkers require a `.a' archive for static linking (except MSVC,
7931 # which needs '.lib').
7932 libext=a
7933
7934 with_gnu_ld="$lt_cv_prog_gnu_ld"
7935
7936 old_CC="$CC"
7937 old_CFLAGS="$CFLAGS"
7938
7939 # Set sane defaults for various variables
7940 test -z "$CC" && CC=cc
7941 test -z "$LTCC" && LTCC=$CC
7942 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7943 test -z "$LD" && LD=ld
7944 test -z "$ac_objext" && ac_objext=o
7945
7946 for cc_temp in $compiler""; do
7947 case $cc_temp in
7948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7950 \-*) ;;
7951 *) break;;
7952 esac
7953 done
7954 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7955
7956
7957 # Only perform the check for file, if the check method requires it
7958 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7959 case $deplibs_check_method in
7960 file_magic*)
7961 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7963 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7964 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 case $MAGIC_CMD in
7968 [\\/*] | ?:[\\/]*)
7969 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7970 ;;
7971 *)
7972 lt_save_MAGIC_CMD="$MAGIC_CMD"
7973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7975 for ac_dir in $ac_dummy; do
7976 IFS="$lt_save_ifs"
7977 test -z "$ac_dir" && ac_dir=.
7978 if test -f $ac_dir/${ac_tool_prefix}file; then
7979 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7980 if test -n "$file_magic_test_file"; then
7981 case $deplibs_check_method in
7982 "file_magic "*)
7983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7986 $EGREP "$file_magic_regex" > /dev/null; then
7987 :
7988 else
7989 cat <<_LT_EOF 1>&2
7990
7991 *** Warning: the command libtool uses to detect shared libraries,
7992 *** $file_magic_cmd, produces output that libtool cannot recognize.
7993 *** The result is that libtool may fail to recognize shared libraries
7994 *** as such. This will affect the creation of libtool libraries that
7995 *** depend on shared libraries, but programs linked with such libtool
7996 *** libraries will work regardless of this problem. Nevertheless, you
7997 *** may want to report the problem to your system manager and/or to
7998 *** bug-libtool@gnu.org
7999
8000 _LT_EOF
8001 fi ;;
8002 esac
8003 fi
8004 break
8005 fi
8006 done
8007 IFS="$lt_save_ifs"
8008 MAGIC_CMD="$lt_save_MAGIC_CMD"
8009 ;;
8010 esac
8011 fi
8012
8013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8014 if test -n "$MAGIC_CMD"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8016 $as_echo "$MAGIC_CMD" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8021
8022
8023
8024
8025
8026 if test -z "$lt_cv_path_MAGIC_CMD"; then
8027 if test -n "$ac_tool_prefix"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8029 $as_echo_n "checking for file... " >&6; }
8030 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 case $MAGIC_CMD in
8034 [\\/*] | ?:[\\/]*)
8035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8036 ;;
8037 *)
8038 lt_save_MAGIC_CMD="$MAGIC_CMD"
8039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8040 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8041 for ac_dir in $ac_dummy; do
8042 IFS="$lt_save_ifs"
8043 test -z "$ac_dir" && ac_dir=.
8044 if test -f $ac_dir/file; then
8045 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8046 if test -n "$file_magic_test_file"; then
8047 case $deplibs_check_method in
8048 "file_magic "*)
8049 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8050 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8051 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8052 $EGREP "$file_magic_regex" > /dev/null; then
8053 :
8054 else
8055 cat <<_LT_EOF 1>&2
8056
8057 *** Warning: the command libtool uses to detect shared libraries,
8058 *** $file_magic_cmd, produces output that libtool cannot recognize.
8059 *** The result is that libtool may fail to recognize shared libraries
8060 *** as such. This will affect the creation of libtool libraries that
8061 *** depend on shared libraries, but programs linked with such libtool
8062 *** libraries will work regardless of this problem. Nevertheless, you
8063 *** may want to report the problem to your system manager and/or to
8064 *** bug-libtool@gnu.org
8065
8066 _LT_EOF
8067 fi ;;
8068 esac
8069 fi
8070 break
8071 fi
8072 done
8073 IFS="$lt_save_ifs"
8074 MAGIC_CMD="$lt_save_MAGIC_CMD"
8075 ;;
8076 esac
8077 fi
8078
8079 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8080 if test -n "$MAGIC_CMD"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8082 $as_echo "$MAGIC_CMD" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8086 fi
8087
8088
8089 else
8090 MAGIC_CMD=:
8091 fi
8092 fi
8093
8094 fi
8095 ;;
8096 esac
8097
8098 # Use C for the default configuration in the libtool script
8099
8100 lt_save_CC="$CC"
8101 ac_ext=c
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8106
8107
8108 # Source file extension for C test sources.
8109 ac_ext=c
8110
8111 # Object file extension for compiled C test sources.
8112 objext=o
8113 objext=$objext
8114
8115 # Code to be used in simple compile tests
8116 lt_simple_compile_test_code="int some_variable = 0;"
8117
8118 # Code to be used in simple link tests
8119 lt_simple_link_test_code='int main(){return(0);}'
8120
8121
8122
8123
8124
8125
8126
8127 # If no C compiler was specified, use CC.
8128 LTCC=${LTCC-"$CC"}
8129
8130 # If no C compiler flags were specified, use CFLAGS.
8131 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8132
8133 # Allow CC to be a program name with arguments.
8134 compiler=$CC
8135
8136 # Save the default compiler, since it gets overwritten when the other
8137 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8138 compiler_DEFAULT=$CC
8139
8140 # save warnings/boilerplate of simple test code
8141 ac_outfile=conftest.$ac_objext
8142 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8143 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8144 _lt_compiler_boilerplate=`cat conftest.err`
8145 $RM conftest*
8146
8147 ac_outfile=conftest.$ac_objext
8148 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8149 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8150 _lt_linker_boilerplate=`cat conftest.err`
8151 $RM -r conftest*
8152
8153
8154 if test -n "$compiler"; then
8155
8156 lt_prog_compiler_no_builtin_flag=
8157
8158 if test "$GCC" = yes; then
8159 case $cc_basename in
8160 nvcc*)
8161 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8162 *)
8163 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8164 esac
8165
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8167 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8168 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 lt_cv_prog_compiler_rtti_exceptions=no
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8174 lt_compiler_flag="-fno-rtti -fno-exceptions"
8175 # Insert the option either (1) after the last *FLAGS variable, or
8176 # (2) before a word containing "conftest.", or (3) at the end.
8177 # Note that $ac_compile itself does not contain backslashes and begins
8178 # with a dollar sign (not a hyphen), so the echo should work correctly.
8179 # The option is referenced via a variable to avoid confusing sed.
8180 lt_compile=`echo "$ac_compile" | $SED \
8181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8183 -e 's:$: $lt_compiler_flag:'`
8184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8185 (eval "$lt_compile" 2>conftest.err)
8186 ac_status=$?
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 if (exit $ac_status) && test -s "$ac_outfile"; then
8190 # The compiler can only warn and ignore the option if not recognized
8191 # So say no if there are warnings other than the usual output.
8192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8193 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8194 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8195 lt_cv_prog_compiler_rtti_exceptions=yes
8196 fi
8197 fi
8198 $RM conftest*
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8202 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8203
8204 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8205 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8206 else
8207 :
8208 fi
8209
8210 fi
8211
8212
8213
8214
8215
8216
8217 lt_prog_compiler_wl=
8218 lt_prog_compiler_pic=
8219 lt_prog_compiler_static=
8220
8221
8222 if test "$GCC" = yes; then
8223 lt_prog_compiler_wl='-Wl,'
8224 lt_prog_compiler_static='-static'
8225
8226 case $host_os in
8227 aix*)
8228 # All AIX code is PIC.
8229 if test "$host_cpu" = ia64; then
8230 # AIX 5 now supports IA64 processor
8231 lt_prog_compiler_static='-Bstatic'
8232 fi
8233 ;;
8234
8235 amigaos*)
8236 case $host_cpu in
8237 powerpc)
8238 # see comment about AmigaOS4 .so support
8239 lt_prog_compiler_pic='-fPIC'
8240 ;;
8241 m68k)
8242 # FIXME: we need at least 68020 code to build shared libraries, but
8243 # adding the `-m68020' flag to GCC prevents building anything better,
8244 # like `-m68040'.
8245 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8246 ;;
8247 esac
8248 ;;
8249
8250 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8251 # PIC is the default for these OSes.
8252 ;;
8253
8254 mingw* | cygwin* | pw32* | os2* | cegcc*)
8255 # This hack is so that the source file can tell whether it is being
8256 # built for inclusion in a dll (and should export symbols for example).
8257 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8258 # (--disable-auto-import) libraries
8259 lt_prog_compiler_pic='-DDLL_EXPORT'
8260 ;;
8261
8262 darwin* | rhapsody*)
8263 # PIC is the default on this platform
8264 # Common symbols not allowed in MH_DYLIB files
8265 lt_prog_compiler_pic='-fno-common'
8266 ;;
8267
8268 haiku*)
8269 # PIC is the default for Haiku.
8270 # The "-static" flag exists, but is broken.
8271 lt_prog_compiler_static=
8272 ;;
8273
8274 hpux*)
8275 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8276 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8277 # sets the default TLS model and affects inlining.
8278 case $host_cpu in
8279 hppa*64*)
8280 # +Z the default
8281 ;;
8282 *)
8283 lt_prog_compiler_pic='-fPIC'
8284 ;;
8285 esac
8286 ;;
8287
8288 interix[3-9]*)
8289 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8290 # Instead, we relocate shared libraries at runtime.
8291 ;;
8292
8293 msdosdjgpp*)
8294 # Just because we use GCC doesn't mean we suddenly get shared libraries
8295 # on systems that don't support them.
8296 lt_prog_compiler_can_build_shared=no
8297 enable_shared=no
8298 ;;
8299
8300 *nto* | *qnx*)
8301 # QNX uses GNU C++, but need to define -shared option too, otherwise
8302 # it will coredump.
8303 lt_prog_compiler_pic='-fPIC -shared'
8304 ;;
8305
8306 sysv4*MP*)
8307 if test -d /usr/nec; then
8308 lt_prog_compiler_pic=-Kconform_pic
8309 fi
8310 ;;
8311
8312 *)
8313 lt_prog_compiler_pic='-fPIC'
8314 ;;
8315 esac
8316
8317 case $cc_basename in
8318 nvcc*) # Cuda Compiler Driver 2.2
8319 lt_prog_compiler_wl='-Xlinker '
8320 lt_prog_compiler_pic='-Xcompiler -fPIC'
8321 ;;
8322 esac
8323 else
8324 # PORTME Check for flag to pass linker flags through the system compiler.
8325 case $host_os in
8326 aix*)
8327 lt_prog_compiler_wl='-Wl,'
8328 if test "$host_cpu" = ia64; then
8329 # AIX 5 now supports IA64 processor
8330 lt_prog_compiler_static='-Bstatic'
8331 else
8332 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8333 fi
8334 ;;
8335
8336 mingw* | cygwin* | pw32* | os2* | cegcc*)
8337 # This hack is so that the source file can tell whether it is being
8338 # built for inclusion in a dll (and should export symbols for example).
8339 lt_prog_compiler_pic='-DDLL_EXPORT'
8340 ;;
8341
8342 hpux9* | hpux10* | hpux11*)
8343 lt_prog_compiler_wl='-Wl,'
8344 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8345 # not for PA HP-UX.
8346 case $host_cpu in
8347 hppa*64*|ia64*)
8348 # +Z the default
8349 ;;
8350 *)
8351 lt_prog_compiler_pic='+Z'
8352 ;;
8353 esac
8354 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8355 lt_prog_compiler_static='${wl}-a ${wl}archive'
8356 ;;
8357
8358 irix5* | irix6* | nonstopux*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # PIC (with -KPIC) is the default.
8361 lt_prog_compiler_static='-non_shared'
8362 ;;
8363
8364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8365 case $cc_basename in
8366 # old Intel for x86_64 which still supported -KPIC.
8367 ecc*)
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-static'
8371 ;;
8372 # icc used to be incompatible with GCC.
8373 # ICC 10 doesn't accept -KPIC any more.
8374 icc* | ifort*)
8375 lt_prog_compiler_wl='-Wl,'
8376 lt_prog_compiler_pic='-fPIC'
8377 lt_prog_compiler_static='-static'
8378 ;;
8379 # Lahey Fortran 8.1.
8380 lf95*)
8381 lt_prog_compiler_wl='-Wl,'
8382 lt_prog_compiler_pic='--shared'
8383 lt_prog_compiler_static='--static'
8384 ;;
8385 nagfor*)
8386 # NAG Fortran compiler
8387 lt_prog_compiler_wl='-Wl,-Wl,,'
8388 lt_prog_compiler_pic='-PIC'
8389 lt_prog_compiler_static='-Bstatic'
8390 ;;
8391 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8392 # Portland Group compilers (*not* the Pentium gcc compiler,
8393 # which looks to be a dead project)
8394 lt_prog_compiler_wl='-Wl,'
8395 lt_prog_compiler_pic='-fpic'
8396 lt_prog_compiler_static='-Bstatic'
8397 ;;
8398 ccc*)
8399 lt_prog_compiler_wl='-Wl,'
8400 # All Alpha code is PIC.
8401 lt_prog_compiler_static='-non_shared'
8402 ;;
8403 xl* | bgxl* | bgf* | mpixl*)
8404 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_pic='-qpic'
8407 lt_prog_compiler_static='-qstaticlink'
8408 ;;
8409 *)
8410 case `$CC -V 2>&1 | sed 5q` in
8411 *Sun\ F* | *Sun*Fortran*)
8412 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8413 lt_prog_compiler_pic='-KPIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 lt_prog_compiler_wl=''
8416 ;;
8417 *Sun\ C*)
8418 # Sun C 5.9
8419 lt_prog_compiler_pic='-KPIC'
8420 lt_prog_compiler_static='-Bstatic'
8421 lt_prog_compiler_wl='-Wl,'
8422 ;;
8423 esac
8424 ;;
8425 esac
8426 ;;
8427
8428 newsos6)
8429 lt_prog_compiler_pic='-KPIC'
8430 lt_prog_compiler_static='-Bstatic'
8431 ;;
8432
8433 *nto* | *qnx*)
8434 # QNX uses GNU C++, but need to define -shared option too, otherwise
8435 # it will coredump.
8436 lt_prog_compiler_pic='-fPIC -shared'
8437 ;;
8438
8439 osf3* | osf4* | osf5*)
8440 lt_prog_compiler_wl='-Wl,'
8441 # All OSF/1 code is PIC.
8442 lt_prog_compiler_static='-non_shared'
8443 ;;
8444
8445 rdos*)
8446 lt_prog_compiler_static='-non_shared'
8447 ;;
8448
8449 solaris*)
8450 lt_prog_compiler_pic='-KPIC'
8451 lt_prog_compiler_static='-Bstatic'
8452 case $cc_basename in
8453 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8454 lt_prog_compiler_wl='-Qoption ld ';;
8455 *)
8456 lt_prog_compiler_wl='-Wl,';;
8457 esac
8458 ;;
8459
8460 sunos4*)
8461 lt_prog_compiler_wl='-Qoption ld '
8462 lt_prog_compiler_pic='-PIC'
8463 lt_prog_compiler_static='-Bstatic'
8464 ;;
8465
8466 sysv4 | sysv4.2uw2* | sysv4.3*)
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_pic='-KPIC'
8469 lt_prog_compiler_static='-Bstatic'
8470 ;;
8471
8472 sysv4*MP*)
8473 if test -d /usr/nec ;then
8474 lt_prog_compiler_pic='-Kconform_pic'
8475 lt_prog_compiler_static='-Bstatic'
8476 fi
8477 ;;
8478
8479 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8480 lt_prog_compiler_wl='-Wl,'
8481 lt_prog_compiler_pic='-KPIC'
8482 lt_prog_compiler_static='-Bstatic'
8483 ;;
8484
8485 unicos*)
8486 lt_prog_compiler_wl='-Wl,'
8487 lt_prog_compiler_can_build_shared=no
8488 ;;
8489
8490 uts4*)
8491 lt_prog_compiler_pic='-pic'
8492 lt_prog_compiler_static='-Bstatic'
8493 ;;
8494
8495 *)
8496 lt_prog_compiler_can_build_shared=no
8497 ;;
8498 esac
8499 fi
8500
8501 case $host_os in
8502 # For platforms which do not support PIC, -DPIC is meaningless:
8503 *djgpp*)
8504 lt_prog_compiler_pic=
8505 ;;
8506 *)
8507 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8508 ;;
8509 esac
8510
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8512 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8513 if ${lt_cv_prog_compiler_pic+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8519 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8520 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8521
8522 #
8523 # Check to make sure the PIC flag actually works.
8524 #
8525 if test -n "$lt_prog_compiler_pic"; then
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8527 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8528 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 lt_cv_prog_compiler_pic_works=no
8532 ac_outfile=conftest.$ac_objext
8533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8534 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8535 # Insert the option either (1) after the last *FLAGS variable, or
8536 # (2) before a word containing "conftest.", or (3) at the end.
8537 # Note that $ac_compile itself does not contain backslashes and begins
8538 # with a dollar sign (not a hyphen), so the echo should work correctly.
8539 # The option is referenced via a variable to avoid confusing sed.
8540 lt_compile=`echo "$ac_compile" | $SED \
8541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543 -e 's:$: $lt_compiler_flag:'`
8544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8545 (eval "$lt_compile" 2>conftest.err)
8546 ac_status=$?
8547 cat conftest.err >&5
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 if (exit $ac_status) && test -s "$ac_outfile"; then
8550 # The compiler can only warn and ignore the option if not recognized
8551 # So say no if there are warnings other than the usual output.
8552 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8555 lt_cv_prog_compiler_pic_works=yes
8556 fi
8557 fi
8558 $RM conftest*
8559
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8562 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8563
8564 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8565 case $lt_prog_compiler_pic in
8566 "" | " "*) ;;
8567 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8568 esac
8569 else
8570 lt_prog_compiler_pic=
8571 lt_prog_compiler_can_build_shared=no
8572 fi
8573
8574 fi
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586 #
8587 # Check to make sure the static flag actually works.
8588 #
8589 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8591 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8592 if ${lt_cv_prog_compiler_static_works+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 lt_cv_prog_compiler_static_works=no
8596 save_LDFLAGS="$LDFLAGS"
8597 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8598 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8600 # The linker can only warn and ignore the option if not recognized
8601 # So say no if there are warnings
8602 if test -s conftest.err; then
8603 # Append any errors to the config.log.
8604 cat conftest.err 1>&5
8605 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607 if diff conftest.exp conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_static_works=yes
8609 fi
8610 else
8611 lt_cv_prog_compiler_static_works=yes
8612 fi
8613 fi
8614 $RM -r conftest*
8615 LDFLAGS="$save_LDFLAGS"
8616
8617 fi
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8619 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8620
8621 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8622 :
8623 else
8624 lt_prog_compiler_static=
8625 fi
8626
8627
8628
8629
8630
8631
8632
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8635 if ${lt_cv_prog_compiler_c_o+:} false; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 lt_cv_prog_compiler_c_o=no
8639 $RM -r conftest 2>/dev/null
8640 mkdir conftest
8641 cd conftest
8642 mkdir out
8643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8644
8645 lt_compiler_flag="-o out/conftest2.$ac_objext"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>out/conftest.err)
8656 ac_status=$?
8657 cat out/conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660 then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_c_o=yes
8667 fi
8668 fi
8669 chmod u+w . 2>&5
8670 $RM conftest*
8671 # SGI C++ compiler will create directory out/ii_files/ for
8672 # template instantiation
8673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8674 $RM out/* && rmdir out
8675 cd ..
8676 $RM -r conftest
8677 $RM conftest*
8678
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8682
8683
8684
8685
8686
8687
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8690 if ${lt_cv_prog_compiler_c_o+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 lt_cv_prog_compiler_c_o=no
8694 $RM -r conftest 2>/dev/null
8695 mkdir conftest
8696 cd conftest
8697 mkdir out
8698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8699
8700 lt_compiler_flag="-o out/conftest2.$ac_objext"
8701 # Insert the option either (1) after the last *FLAGS variable, or
8702 # (2) before a word containing "conftest.", or (3) at the end.
8703 # Note that $ac_compile itself does not contain backslashes and begins
8704 # with a dollar sign (not a hyphen), so the echo should work correctly.
8705 lt_compile=`echo "$ac_compile" | $SED \
8706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8708 -e 's:$: $lt_compiler_flag:'`
8709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8710 (eval "$lt_compile" 2>out/conftest.err)
8711 ac_status=$?
8712 cat out/conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8715 then
8716 # The compiler can only warn and ignore the option if not recognized
8717 # So say no if there are warnings
8718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8721 lt_cv_prog_compiler_c_o=yes
8722 fi
8723 fi
8724 chmod u+w . 2>&5
8725 $RM conftest*
8726 # SGI C++ compiler will create directory out/ii_files/ for
8727 # template instantiation
8728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8729 $RM out/* && rmdir out
8730 cd ..
8731 $RM -r conftest
8732 $RM conftest*
8733
8734 fi
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8736 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8737
8738
8739
8740
8741 hard_links="nottested"
8742 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8743 # do not overwrite the value of need_locks provided by the user
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8745 $as_echo_n "checking if we can lock with hard links... " >&6; }
8746 hard_links=yes
8747 $RM conftest*
8748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8749 touch conftest.a
8750 ln conftest.a conftest.b 2>&5 || hard_links=no
8751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8753 $as_echo "$hard_links" >&6; }
8754 if test "$hard_links" = no; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8756 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8757 need_locks=warn
8758 fi
8759 else
8760 need_locks=no
8761 fi
8762
8763
8764
8765
8766
8767
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8769 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8770
8771 runpath_var=
8772 allow_undefined_flag=
8773 always_export_symbols=no
8774 archive_cmds=
8775 archive_expsym_cmds=
8776 compiler_needs_object=no
8777 enable_shared_with_static_runtimes=no
8778 export_dynamic_flag_spec=
8779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8780 hardcode_automatic=no
8781 hardcode_direct=no
8782 hardcode_direct_absolute=no
8783 hardcode_libdir_flag_spec=
8784 hardcode_libdir_flag_spec_ld=
8785 hardcode_libdir_separator=
8786 hardcode_minus_L=no
8787 hardcode_shlibpath_var=unsupported
8788 inherit_rpath=no
8789 link_all_deplibs=unknown
8790 module_cmds=
8791 module_expsym_cmds=
8792 old_archive_from_new_cmds=
8793 old_archive_from_expsyms_cmds=
8794 thread_safe_flag_spec=
8795 whole_archive_flag_spec=
8796 # include_expsyms should be a list of space-separated symbols to be *always*
8797 # included in the symbol list
8798 include_expsyms=
8799 # exclude_expsyms can be an extended regexp of symbols to exclude
8800 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8801 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8802 # as well as any symbol that contains `d'.
8803 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8804 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8805 # platforms (ab)use it in PIC code, but their linkers get confused if
8806 # the symbol is explicitly referenced. Since portable code cannot
8807 # rely on this symbol name, it's probably fine to never include it in
8808 # preloaded symbol tables.
8809 # Exclude shared library initialization/finalization symbols.
8810 extract_expsyms_cmds=
8811
8812 case $host_os in
8813 cygwin* | mingw* | pw32* | cegcc*)
8814 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8815 # When not using gcc, we currently assume that we are using
8816 # Microsoft Visual C++.
8817 if test "$GCC" != yes; then
8818 with_gnu_ld=no
8819 fi
8820 ;;
8821 interix*)
8822 # we just hope/assume this is gcc and not c89 (= MSVC++)
8823 with_gnu_ld=yes
8824 ;;
8825 openbsd*)
8826 with_gnu_ld=no
8827 ;;
8828 esac
8829
8830 ld_shlibs=yes
8831
8832 # On some targets, GNU ld is compatible enough with the native linker
8833 # that we're better off using the native interface for both.
8834 lt_use_gnu_ld_interface=no
8835 if test "$with_gnu_ld" = yes; then
8836 case $host_os in
8837 aix*)
8838 # The AIX port of GNU ld has always aspired to compatibility
8839 # with the native linker. However, as the warning in the GNU ld
8840 # block says, versions before 2.19.5* couldn't really create working
8841 # shared libraries, regardless of the interface used.
8842 case `$LD -v 2>&1` in
8843 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8844 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8845 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8846 *)
8847 lt_use_gnu_ld_interface=yes
8848 ;;
8849 esac
8850 ;;
8851 *)
8852 lt_use_gnu_ld_interface=yes
8853 ;;
8854 esac
8855 fi
8856
8857 if test "$lt_use_gnu_ld_interface" = yes; then
8858 # If archive_cmds runs LD, not CC, wlarc should be empty
8859 wlarc='${wl}'
8860
8861 # Set some defaults for GNU ld with shared library support. These
8862 # are reset later if shared libraries are not supported. Putting them
8863 # here allows them to be overridden if necessary.
8864 runpath_var=LD_RUN_PATH
8865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866 export_dynamic_flag_spec='${wl}--export-dynamic'
8867 # ancient GNU ld didn't support --whole-archive et. al.
8868 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8869 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8870 else
8871 whole_archive_flag_spec=
8872 fi
8873 supports_anon_versioning=no
8874 case `$LD -v 2>&1` in
8875 *GNU\ gold*) supports_anon_versioning=yes ;;
8876 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8877 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8878 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8879 *\ 2.11.*) ;; # other 2.11 versions
8880 *) supports_anon_versioning=yes ;;
8881 esac
8882
8883 # See if GNU ld supports shared libraries.
8884 case $host_os in
8885 aix[3-9]*)
8886 # On AIX/PPC, the GNU linker is very broken
8887 if test "$host_cpu" != ia64; then
8888 ld_shlibs=no
8889 cat <<_LT_EOF 1>&2
8890
8891 *** Warning: the GNU linker, at least up to release 2.19, is reported
8892 *** to be unable to reliably create shared libraries on AIX.
8893 *** Therefore, libtool is disabling shared libraries support. If you
8894 *** really care for shared libraries, you may want to install binutils
8895 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8896 *** You will then need to restart the configuration process.
8897
8898 _LT_EOF
8899 fi
8900 ;;
8901
8902 amigaos*)
8903 case $host_cpu in
8904 powerpc)
8905 # see comment about AmigaOS4 .so support
8906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907 archive_expsym_cmds=''
8908 ;;
8909 m68k)
8910 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8911 hardcode_libdir_flag_spec='-L$libdir'
8912 hardcode_minus_L=yes
8913 ;;
8914 esac
8915 ;;
8916
8917 beos*)
8918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919 allow_undefined_flag=unsupported
8920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8921 # support --undefined. This deserves some investigation. FIXME
8922 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8923 else
8924 ld_shlibs=no
8925 fi
8926 ;;
8927
8928 cygwin* | mingw* | pw32* | cegcc*)
8929 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8930 # as there is no search path for DLLs.
8931 hardcode_libdir_flag_spec='-L$libdir'
8932 export_dynamic_flag_spec='${wl}--export-all-symbols'
8933 allow_undefined_flag=unsupported
8934 always_export_symbols=no
8935 enable_shared_with_static_runtimes=yes
8936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8937 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8938
8939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8941 # If the export-symbols file already is a .def file (1st line
8942 # is EXPORTS), use it as is; otherwise, prepend...
8943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8944 cp $export_symbols $output_objdir/$soname.def;
8945 else
8946 echo EXPORTS > $output_objdir/$soname.def;
8947 cat $export_symbols >> $output_objdir/$soname.def;
8948 fi~
8949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8950 else
8951 ld_shlibs=no
8952 fi
8953 ;;
8954
8955 haiku*)
8956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8957 link_all_deplibs=yes
8958 ;;
8959
8960 interix[3-9]*)
8961 hardcode_direct=no
8962 hardcode_shlibpath_var=no
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 export_dynamic_flag_spec='${wl}-E'
8965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8966 # Instead, shared libraries are loaded at an image base (0x10000000 by
8967 # default) and relocated if they conflict, which is a slow very memory
8968 # consuming and fragmenting process. To avoid this, we pick a random,
8969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8972 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8973 ;;
8974
8975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8976 tmp_diet=no
8977 if test "$host_os" = linux-dietlibc; then
8978 case $cc_basename in
8979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8980 esac
8981 fi
8982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8983 && test "$tmp_diet" = no
8984 then
8985 tmp_addflag=' $pic_flag'
8986 tmp_sharedflag='-shared'
8987 case $cc_basename,$host_cpu in
8988 pgcc*) # Portland Group C compiler
8989 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8990 tmp_addflag=' $pic_flag'
8991 ;;
8992 pgf77* | pgf90* | pgf95* | pgfortran*)
8993 # Portland Group f77 and f90 compilers
8994 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8995 tmp_addflag=' $pic_flag -Mnomain' ;;
8996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8997 tmp_addflag=' -i_dynamic' ;;
8998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8999 tmp_addflag=' -i_dynamic -nofor_main' ;;
9000 ifc* | ifort*) # Intel Fortran compiler
9001 tmp_addflag=' -nofor_main' ;;
9002 lf95*) # Lahey Fortran 8.1
9003 whole_archive_flag_spec=
9004 tmp_sharedflag='--shared' ;;
9005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9006 tmp_sharedflag='-qmkshrobj'
9007 tmp_addflag= ;;
9008 nvcc*) # Cuda Compiler Driver 2.2
9009 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9010 compiler_needs_object=yes
9011 ;;
9012 esac
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C*) # Sun C 5.9
9015 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9016 compiler_needs_object=yes
9017 tmp_sharedflag='-G' ;;
9018 *Sun\ F*) # Sun Fortran 8.3
9019 tmp_sharedflag='-G' ;;
9020 esac
9021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9022
9023 if test "x$supports_anon_versioning" = xyes; then
9024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9026 echo "local: *; };" >> $output_objdir/$libname.ver~
9027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9028 fi
9029
9030 case $cc_basename in
9031 xlf* | bgf* | bgxlf* | mpixlf*)
9032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9034 hardcode_libdir_flag_spec=
9035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9036 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9037 if test "x$supports_anon_versioning" = xyes; then
9038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9040 echo "local: *; };" >> $output_objdir/$libname.ver~
9041 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9042 fi
9043 ;;
9044 esac
9045 else
9046 ld_shlibs=no
9047 fi
9048 ;;
9049
9050 netbsd*)
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9053 wlarc=
9054 else
9055 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9057 fi
9058 ;;
9059
9060 solaris*)
9061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9062 ld_shlibs=no
9063 cat <<_LT_EOF 1>&2
9064
9065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066 *** create shared libraries on Solaris systems. Therefore, libtool
9067 *** is disabling shared libraries support. We urge you to upgrade GNU
9068 *** binutils to release 2.9.1 or newer. Another option is to modify
9069 *** your PATH or compiler configuration so that the native linker is
9070 *** used, and then restart.
9071
9072 _LT_EOF
9073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080
9081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9082 case `$LD -v 2>&1` in
9083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9084 ld_shlibs=no
9085 cat <<_LT_EOF 1>&2
9086
9087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9088 *** reliably create shared libraries on SCO systems. Therefore, libtool
9089 *** is disabling shared libraries support. We urge you to upgrade GNU
9090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9091 *** your PATH or compiler configuration so that the native linker is
9092 *** used, and then restart.
9093
9094 _LT_EOF
9095 ;;
9096 *)
9097 # For security reasons, it is highly recommended that you always
9098 # use absolute paths for naming shared libraries, and exclude the
9099 # DT_RUNPATH tag from executables and libraries. But doing so
9100 # requires that you compile everything twice, which is a pain.
9101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 else
9106 ld_shlibs=no
9107 fi
9108 ;;
9109 esac
9110 ;;
9111
9112 sunos4*)
9113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9114 wlarc=
9115 hardcode_direct=yes
9116 hardcode_shlibpath_var=no
9117 ;;
9118
9119 *)
9120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123 else
9124 ld_shlibs=no
9125 fi
9126 ;;
9127 esac
9128
9129 if test "$ld_shlibs" = no; then
9130 runpath_var=
9131 hardcode_libdir_flag_spec=
9132 export_dynamic_flag_spec=
9133 whole_archive_flag_spec=
9134 fi
9135 else
9136 # PORTME fill in a description of your system's linker (not GNU ld)
9137 case $host_os in
9138 aix3*)
9139 allow_undefined_flag=unsupported
9140 always_export_symbols=yes
9141 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9142 # Note: this linker hardcodes the directories in LIBPATH if there
9143 # are no directories specified by -L.
9144 hardcode_minus_L=yes
9145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9146 # Neither direct hardcoding nor static linking is supported with a
9147 # broken collect2.
9148 hardcode_direct=unsupported
9149 fi
9150 ;;
9151
9152 aix[4-9]*)
9153 if test "$host_cpu" = ia64; then
9154 # On IA64, the linker does run time linking by default, so we don't
9155 # have to do anything special.
9156 aix_use_runtimelinking=no
9157 exp_sym_flag='-Bexport'
9158 no_entry_flag=""
9159 else
9160 # If we're using GNU nm, then we don't want the "-C" option.
9161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9162 # Also, AIX nm treats weak defined symbols like other global
9163 # defined symbols, whereas GNU nm marks them as "W".
9164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9165 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9166 else
9167 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9168 fi
9169 aix_use_runtimelinking=no
9170
9171 # Test if we are trying to use run time linking or normal
9172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9173 # need to do runtime linking.
9174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9175 for ld_flag in $LDFLAGS; do
9176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9177 aix_use_runtimelinking=yes
9178 break
9179 fi
9180 done
9181 ;;
9182 esac
9183
9184 exp_sym_flag='-bexport'
9185 no_entry_flag='-bnoentry'
9186 fi
9187
9188 # When large executables or shared objects are built, AIX ld can
9189 # have problems creating the table of contents. If linking a library
9190 # or program results in "error TOC overflow" add -mminimal-toc to
9191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9193
9194 archive_cmds=''
9195 hardcode_direct=yes
9196 hardcode_direct_absolute=yes
9197 hardcode_libdir_separator=':'
9198 link_all_deplibs=yes
9199 file_list_spec='${wl}-f,'
9200
9201 if test "$GCC" = yes; then
9202 case $host_os in aix4.[012]|aix4.[012].*)
9203 # We only want to do this on AIX 4.2 and lower, the check
9204 # below for broken collect2 doesn't work under 4.3+
9205 collect2name=`${CC} -print-prog-name=collect2`
9206 if test -f "$collect2name" &&
9207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9208 then
9209 # We have reworked collect2
9210 :
9211 else
9212 # We have old collect2
9213 hardcode_direct=unsupported
9214 # It fails to find uninstalled libraries when the uninstalled
9215 # path is not listed in the libpath. Setting hardcode_minus_L
9216 # to unsupported forces relinking
9217 hardcode_minus_L=yes
9218 hardcode_libdir_flag_spec='-L$libdir'
9219 hardcode_libdir_separator=
9220 fi
9221 ;;
9222 esac
9223 shared_flag='-shared'
9224 if test "$aix_use_runtimelinking" = yes; then
9225 shared_flag="$shared_flag "'${wl}-G'
9226 fi
9227 else
9228 # not using gcc
9229 if test "$host_cpu" = ia64; then
9230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9231 # chokes on -Wl,-G. The following line is correct:
9232 shared_flag='-G'
9233 else
9234 if test "$aix_use_runtimelinking" = yes; then
9235 shared_flag='${wl}-G'
9236 else
9237 shared_flag='${wl}-bM:SRE'
9238 fi
9239 fi
9240 fi
9241
9242 export_dynamic_flag_spec='${wl}-bexpall'
9243 # It seems that -bexpall does not export symbols beginning with
9244 # underscore (_), so it is better to generate a list of symbols to export.
9245 always_export_symbols=yes
9246 if test "$aix_use_runtimelinking" = yes; then
9247 # Warning - without using the other runtime loading flags (-brtl),
9248 # -berok will link without error, but may produce a broken library.
9249 allow_undefined_flag='-berok'
9250 # Determine the default libpath from the value encoded in an
9251 # empty executable.
9252 if test "${lt_cv_aix_libpath+set}" = set; then
9253 aix_libpath=$lt_cv_aix_libpath
9254 else
9255 if ${lt_cv_aix_libpath_+:} false; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260
9261 int
9262 main ()
9263 {
9264
9265 ;
9266 return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270
9271 lt_aix_libpath_sed='
9272 /Import File Strings/,/^$/ {
9273 /^0/ {
9274 s/^0 *\([^ ]*\) *$/\1/
9275 p
9276 }
9277 }'
9278 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9279 # Check for a 64-bit object if we didn't find anything.
9280 if test -z "$lt_cv_aix_libpath_"; then
9281 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9282 fi
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 if test -z "$lt_cv_aix_libpath_"; then
9287 lt_cv_aix_libpath_="/usr/lib:/lib"
9288 fi
9289
9290 fi
9291
9292 aix_libpath=$lt_cv_aix_libpath_
9293 fi
9294
9295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9296 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9297 else
9298 if test "$host_cpu" = ia64; then
9299 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9300 allow_undefined_flag="-z nodefs"
9301 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9302 else
9303 # Determine the default libpath from the value encoded in an
9304 # empty executable.
9305 if test "${lt_cv_aix_libpath+set}" = set; then
9306 aix_libpath=$lt_cv_aix_libpath
9307 else
9308 if ${lt_cv_aix_libpath_+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9313
9314 int
9315 main ()
9316 {
9317
9318 ;
9319 return 0;
9320 }
9321 _ACEOF
9322 if ac_fn_c_try_link "$LINENO"; then :
9323
9324 lt_aix_libpath_sed='
9325 /Import File Strings/,/^$/ {
9326 /^0/ {
9327 s/^0 *\([^ ]*\) *$/\1/
9328 p
9329 }
9330 }'
9331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9332 # Check for a 64-bit object if we didn't find anything.
9333 if test -z "$lt_cv_aix_libpath_"; then
9334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9335 fi
9336 fi
9337 rm -f core conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9339 if test -z "$lt_cv_aix_libpath_"; then
9340 lt_cv_aix_libpath_="/usr/lib:/lib"
9341 fi
9342
9343 fi
9344
9345 aix_libpath=$lt_cv_aix_libpath_
9346 fi
9347
9348 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9349 # Warning - without using the other run time loading flags,
9350 # -berok will link without error, but may produce a broken library.
9351 no_undefined_flag=' ${wl}-bernotok'
9352 allow_undefined_flag=' ${wl}-berok'
9353 if test "$with_gnu_ld" = yes; then
9354 # We only use this code for GNU lds that support --whole-archive.
9355 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9356 else
9357 # Exported symbols can be pulled into shared objects from archives
9358 whole_archive_flag_spec='$convenience'
9359 fi
9360 archive_cmds_need_lc=yes
9361 # This is similar to how AIX traditionally builds its shared libraries.
9362 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9363 fi
9364 fi
9365 ;;
9366
9367 amigaos*)
9368 case $host_cpu in
9369 powerpc)
9370 # see comment about AmigaOS4 .so support
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds=''
9373 ;;
9374 m68k)
9375 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9376 hardcode_libdir_flag_spec='-L$libdir'
9377 hardcode_minus_L=yes
9378 ;;
9379 esac
9380 ;;
9381
9382 bsdi[45]*)
9383 export_dynamic_flag_spec=-rdynamic
9384 ;;
9385
9386 cygwin* | mingw* | pw32* | cegcc*)
9387 # When not using gcc, we currently assume that we are using
9388 # Microsoft Visual C++.
9389 # hardcode_libdir_flag_spec is actually meaningless, as there is
9390 # no search path for DLLs.
9391 case $cc_basename in
9392 cl*)
9393 # Native MSVC
9394 hardcode_libdir_flag_spec=' '
9395 allow_undefined_flag=unsupported
9396 always_export_symbols=yes
9397 file_list_spec='@'
9398 # Tell ltmain to make .lib files, not .a files.
9399 libext=lib
9400 # Tell ltmain to make .dll files, not .so files.
9401 shrext_cmds=".dll"
9402 # FIXME: Setting linknames here is a bad hack.
9403 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9404 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9405 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9406 else
9407 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9408 fi~
9409 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9410 linknames='
9411 # The linker will not automatically build a static lib if we build a DLL.
9412 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9413 enable_shared_with_static_runtimes=yes
9414 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9415 # Don't use ranlib
9416 old_postinstall_cmds='chmod 644 $oldlib'
9417 postlink_cmds='lt_outputfile="@OUTPUT@"~
9418 lt_tool_outputfile="@TOOL_OUTPUT@"~
9419 case $lt_outputfile in
9420 *.exe|*.EXE) ;;
9421 *)
9422 lt_outputfile="$lt_outputfile.exe"
9423 lt_tool_outputfile="$lt_tool_outputfile.exe"
9424 ;;
9425 esac~
9426 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9427 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9428 $RM "$lt_outputfile.manifest";
9429 fi'
9430 ;;
9431 *)
9432 # Assume MSVC wrapper
9433 hardcode_libdir_flag_spec=' '
9434 allow_undefined_flag=unsupported
9435 # Tell ltmain to make .lib files, not .a files.
9436 libext=lib
9437 # Tell ltmain to make .dll files, not .so files.
9438 shrext_cmds=".dll"
9439 # FIXME: Setting linknames here is a bad hack.
9440 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9441 # The linker will automatically build a .lib file if we build a DLL.
9442 old_archive_from_new_cmds='true'
9443 # FIXME: Should let the user specify the lib program.
9444 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9445 enable_shared_with_static_runtimes=yes
9446 ;;
9447 esac
9448 ;;
9449
9450 darwin* | rhapsody*)
9451
9452
9453 archive_cmds_need_lc=no
9454 hardcode_direct=no
9455 hardcode_automatic=yes
9456 hardcode_shlibpath_var=unsupported
9457 if test "$lt_cv_ld_force_load" = "yes"; then
9458 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9459 else
9460 whole_archive_flag_spec=''
9461 fi
9462 link_all_deplibs=yes
9463 allow_undefined_flag="$_lt_dar_allow_undefined"
9464 case $cc_basename in
9465 ifort*) _lt_dar_can_shared=yes ;;
9466 *) _lt_dar_can_shared=$GCC ;;
9467 esac
9468 if test "$_lt_dar_can_shared" = "yes"; then
9469 output_verbose_link_cmd=func_echo_all
9470 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9471 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9472 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9473 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9474
9475 else
9476 ld_shlibs=no
9477 fi
9478
9479 ;;
9480
9481 dgux*)
9482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 hardcode_libdir_flag_spec='-L$libdir'
9484 hardcode_shlibpath_var=no
9485 ;;
9486
9487 freebsd1*)
9488 ld_shlibs=no
9489 ;;
9490
9491 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9492 # support. Future versions do this automatically, but an explicit c++rt0.o
9493 # does not break anything, and helps significantly (at the cost of a little
9494 # extra space).
9495 freebsd2.2*)
9496 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9497 hardcode_libdir_flag_spec='-R$libdir'
9498 hardcode_direct=yes
9499 hardcode_shlibpath_var=no
9500 ;;
9501
9502 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9503 freebsd2*)
9504 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_direct=yes
9506 hardcode_minus_L=yes
9507 hardcode_shlibpath_var=no
9508 ;;
9509
9510 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9511 freebsd* | dragonfly*)
9512 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513 hardcode_libdir_flag_spec='-R$libdir'
9514 hardcode_direct=yes
9515 hardcode_shlibpath_var=no
9516 ;;
9517
9518 hpux9*)
9519 if test "$GCC" = yes; then
9520 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9521 else
9522 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9523 fi
9524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9525 hardcode_libdir_separator=:
9526 hardcode_direct=yes
9527
9528 # hardcode_minus_L: Not really in the search PATH,
9529 # but as the default location of the library.
9530 hardcode_minus_L=yes
9531 export_dynamic_flag_spec='${wl}-E'
9532 ;;
9533
9534 hpux10*)
9535 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9536 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9537 else
9538 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9539 fi
9540 if test "$with_gnu_ld" = no; then
9541 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9542 hardcode_libdir_flag_spec_ld='+b $libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_direct=yes
9545 hardcode_direct_absolute=yes
9546 export_dynamic_flag_spec='${wl}-E'
9547 # hardcode_minus_L: Not really in the search PATH,
9548 # but as the default location of the library.
9549 hardcode_minus_L=yes
9550 fi
9551 ;;
9552
9553 hpux11*)
9554 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9555 case $host_cpu in
9556 hppa*64*)
9557 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558 ;;
9559 ia64*)
9560 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9561 ;;
9562 *)
9563 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9564 ;;
9565 esac
9566 else
9567 case $host_cpu in
9568 hppa*64*)
9569 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9570 ;;
9571 ia64*)
9572 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9573 ;;
9574 *)
9575
9576 # Older versions of the 11.00 compiler do not understand -b yet
9577 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9579 $as_echo_n "checking if $CC understands -b... " >&6; }
9580 if ${lt_cv_prog_compiler__b+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 lt_cv_prog_compiler__b=no
9584 save_LDFLAGS="$LDFLAGS"
9585 LDFLAGS="$LDFLAGS -b"
9586 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9587 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9588 # The linker can only warn and ignore the option if not recognized
9589 # So say no if there are warnings
9590 if test -s conftest.err; then
9591 # Append any errors to the config.log.
9592 cat conftest.err 1>&5
9593 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9594 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9595 if diff conftest.exp conftest.er2 >/dev/null; then
9596 lt_cv_prog_compiler__b=yes
9597 fi
9598 else
9599 lt_cv_prog_compiler__b=yes
9600 fi
9601 fi
9602 $RM -r conftest*
9603 LDFLAGS="$save_LDFLAGS"
9604
9605 fi
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9607 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9608
9609 if test x"$lt_cv_prog_compiler__b" = xyes; then
9610 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9611 else
9612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9613 fi
9614
9615 ;;
9616 esac
9617 fi
9618 if test "$with_gnu_ld" = no; then
9619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9620 hardcode_libdir_separator=:
9621
9622 case $host_cpu in
9623 hppa*64*|ia64*)
9624 hardcode_direct=no
9625 hardcode_shlibpath_var=no
9626 ;;
9627 *)
9628 hardcode_direct=yes
9629 hardcode_direct_absolute=yes
9630 export_dynamic_flag_spec='${wl}-E'
9631
9632 # hardcode_minus_L: Not really in the search PATH,
9633 # but as the default location of the library.
9634 hardcode_minus_L=yes
9635 ;;
9636 esac
9637 fi
9638 ;;
9639
9640 irix5* | irix6* | nonstopux*)
9641 if test "$GCC" = yes; then
9642 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9643 # Try to use the -exported_symbol ld option, if it does not
9644 # work, assume that -exports_file does not work either and
9645 # implicitly export all symbols.
9646 # This should be the same for all languages, so no per-tag cache variable.
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9648 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9649 if ${lt_cv_irix_exported_symbol+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 save_LDFLAGS="$LDFLAGS"
9653 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 int foo (void) { return 0; }
9657 _ACEOF
9658 if ac_fn_c_try_link "$LINENO"; then :
9659 lt_cv_irix_exported_symbol=yes
9660 else
9661 lt_cv_irix_exported_symbol=no
9662 fi
9663 rm -f core conftest.err conftest.$ac_objext \
9664 conftest$ac_exeext conftest.$ac_ext
9665 LDFLAGS="$save_LDFLAGS"
9666 fi
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9668 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9669 if test "$lt_cv_irix_exported_symbol" = yes; then
9670 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9671 fi
9672 else
9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9674 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9675 fi
9676 archive_cmds_need_lc='no'
9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9678 hardcode_libdir_separator=:
9679 inherit_rpath=yes
9680 link_all_deplibs=yes
9681 ;;
9682
9683 netbsd*)
9684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9686 else
9687 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9688 fi
9689 hardcode_libdir_flag_spec='-R$libdir'
9690 hardcode_direct=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 newsos6)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_direct=yes
9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698 hardcode_libdir_separator=:
9699 hardcode_shlibpath_var=no
9700 ;;
9701
9702 *nto* | *qnx*)
9703 ;;
9704
9705 openbsd*)
9706 if test -f /usr/libexec/ld.so; then
9707 hardcode_direct=yes
9708 hardcode_shlibpath_var=no
9709 hardcode_direct_absolute=yes
9710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9714 export_dynamic_flag_spec='${wl}-E'
9715 else
9716 case $host_os in
9717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719 hardcode_libdir_flag_spec='-R$libdir'
9720 ;;
9721 *)
9722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9724 ;;
9725 esac
9726 fi
9727 else
9728 ld_shlibs=no
9729 fi
9730 ;;
9731
9732 os2*)
9733 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_minus_L=yes
9735 allow_undefined_flag=unsupported
9736 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9737 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9738 ;;
9739
9740 osf3*)
9741 if test "$GCC" = yes; then
9742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9743 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9744 else
9745 allow_undefined_flag=' -expect_unresolved \*'
9746 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9747 fi
9748 archive_cmds_need_lc='no'
9749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750 hardcode_libdir_separator=:
9751 ;;
9752
9753 osf4* | osf5*) # as osf3* with the addition of -msym flag
9754 if test "$GCC" = yes; then
9755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9756 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9758 else
9759 allow_undefined_flag=' -expect_unresolved \*'
9760 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9761 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9762 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9763
9764 # Both c and cxx compiler support -rpath directly
9765 hardcode_libdir_flag_spec='-rpath $libdir'
9766 fi
9767 archive_cmds_need_lc='no'
9768 hardcode_libdir_separator=:
9769 ;;
9770
9771 solaris*)
9772 no_undefined_flag=' -z defs'
9773 if test "$GCC" = yes; then
9774 wlarc='${wl}'
9775 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9777 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9778 else
9779 case `$CC -V 2>&1` in
9780 *"Compilers 5.0"*)
9781 wlarc=''
9782 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9785 ;;
9786 *)
9787 wlarc='${wl}'
9788 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9790 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9791 ;;
9792 esac
9793 fi
9794 hardcode_libdir_flag_spec='-R$libdir'
9795 hardcode_shlibpath_var=no
9796 case $host_os in
9797 solaris2.[0-5] | solaris2.[0-5].*) ;;
9798 *)
9799 # The compiler driver will combine and reorder linker options,
9800 # but understands `-z linker_flag'. GCC discards it without `$wl',
9801 # but is careful enough not to reorder.
9802 # Supported since Solaris 2.6 (maybe 2.5.1?)
9803 if test "$GCC" = yes; then
9804 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9805 else
9806 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9807 fi
9808 ;;
9809 esac
9810 link_all_deplibs=yes
9811 ;;
9812
9813 sunos4*)
9814 if test "x$host_vendor" = xsequent; then
9815 # Use $CC to link under sequent, because it throws in some extra .o
9816 # files that make .init and .fini sections work.
9817 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9818 else
9819 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9820 fi
9821 hardcode_libdir_flag_spec='-L$libdir'
9822 hardcode_direct=yes
9823 hardcode_minus_L=yes
9824 hardcode_shlibpath_var=no
9825 ;;
9826
9827 sysv4)
9828 case $host_vendor in
9829 sni)
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_direct=yes # is this really true???
9832 ;;
9833 siemens)
9834 ## LD is ld it makes a PLAMLIB
9835 ## CC just makes a GrossModule.
9836 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9837 reload_cmds='$CC -r -o $output$reload_objs'
9838 hardcode_direct=no
9839 ;;
9840 motorola)
9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9842 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9843 ;;
9844 esac
9845 runpath_var='LD_RUN_PATH'
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 sysv4.3*)
9850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9851 hardcode_shlibpath_var=no
9852 export_dynamic_flag_spec='-Bexport'
9853 ;;
9854
9855 sysv4*MP*)
9856 if test -d /usr/nec; then
9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_shlibpath_var=no
9859 runpath_var=LD_RUN_PATH
9860 hardcode_runpath_var=yes
9861 ld_shlibs=yes
9862 fi
9863 ;;
9864
9865 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9866 no_undefined_flag='${wl}-z,text'
9867 archive_cmds_need_lc=no
9868 hardcode_shlibpath_var=no
9869 runpath_var='LD_RUN_PATH'
9870
9871 if test "$GCC" = yes; then
9872 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9874 else
9875 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9877 fi
9878 ;;
9879
9880 sysv5* | sco3.2v5* | sco5v6*)
9881 # Note: We can NOT use -z defs as we might desire, because we do not
9882 # link with -lc, and that would cause any symbols used from libc to
9883 # always be unresolved, which means just about no library would
9884 # ever link correctly. If we're not using GNU ld we use -z text
9885 # though, which does catch some bad symbols but isn't as heavy-handed
9886 # as -z defs.
9887 no_undefined_flag='${wl}-z,text'
9888 allow_undefined_flag='${wl}-z,nodefs'
9889 archive_cmds_need_lc=no
9890 hardcode_shlibpath_var=no
9891 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9892 hardcode_libdir_separator=':'
9893 link_all_deplibs=yes
9894 export_dynamic_flag_spec='${wl}-Bexport'
9895 runpath_var='LD_RUN_PATH'
9896
9897 if test "$GCC" = yes; then
9898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9900 else
9901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9903 fi
9904 ;;
9905
9906 uts4*)
9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_libdir_flag_spec='-L$libdir'
9909 hardcode_shlibpath_var=no
9910 ;;
9911
9912 *)
9913 ld_shlibs=no
9914 ;;
9915 esac
9916
9917 if test x$host_vendor = xsni; then
9918 case $host in
9919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9920 export_dynamic_flag_spec='${wl}-Blargedynsym'
9921 ;;
9922 esac
9923 fi
9924 fi
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9927 $as_echo "$ld_shlibs" >&6; }
9928 test "$ld_shlibs" = no && can_build_shared=no
9929
9930 with_gnu_ld=$with_gnu_ld
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946 #
9947 # Do we need to explicitly link libc?
9948 #
9949 case "x$archive_cmds_need_lc" in
9950 x|xyes)
9951 # Assume -lc should be added
9952 archive_cmds_need_lc=yes
9953
9954 if test "$enable_shared" = yes && test "$GCC" = yes; then
9955 case $archive_cmds in
9956 *'~'*)
9957 # FIXME: we may have to deal with multi-command sequences.
9958 ;;
9959 '$CC '*)
9960 # Test whether the compiler implicitly links with -lc since on some
9961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9962 # to ld, don't add -lc before -lgcc.
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9964 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9965 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 $RM conftest*
9969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9970
9971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9972 (eval $ac_compile) 2>&5
9973 ac_status=$?
9974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9975 test $ac_status = 0; } 2>conftest.err; then
9976 soname=conftest
9977 lib=conftest
9978 libobjs=conftest.$ac_objext
9979 deplibs=
9980 wl=$lt_prog_compiler_wl
9981 pic_flag=$lt_prog_compiler_pic
9982 compiler_flags=-v
9983 linker_flags=-v
9984 verstring=
9985 output_objdir=.
9986 libname=conftest
9987 lt_save_allow_undefined_flag=$allow_undefined_flag
9988 allow_undefined_flag=
9989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9990 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9991 ac_status=$?
9992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9993 test $ac_status = 0; }
9994 then
9995 lt_cv_archive_cmds_need_lc=no
9996 else
9997 lt_cv_archive_cmds_need_lc=yes
9998 fi
9999 allow_undefined_flag=$lt_save_allow_undefined_flag
10000 else
10001 cat conftest.err 1>&5
10002 fi
10003 $RM conftest*
10004
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10007 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10008 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10009 ;;
10010 esac
10011 fi
10012 ;;
10013 esac
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10172 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10173
10174 if test "$GCC" = yes; then
10175 case $host_os in
10176 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10177 *) lt_awk_arg="/^libraries:/" ;;
10178 esac
10179 case $host_os in
10180 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10181 *) lt_sed_strip_eq="s,=/,/,g" ;;
10182 esac
10183 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10184 case $lt_search_path_spec in
10185 *\;*)
10186 # if the path contains ";" then we assume it to be the separator
10187 # otherwise default to the standard path separator (i.e. ":") - it is
10188 # assumed that no part of a normal pathname contains ";" but that should
10189 # okay in the real world where ";" in dirpaths is itself problematic.
10190 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10191 ;;
10192 *)
10193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10194 ;;
10195 esac
10196 # Ok, now we have the path, separated by spaces, we can step through it
10197 # and add multilib dir if necessary.
10198 lt_tmp_lt_search_path_spec=
10199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10200 for lt_sys_path in $lt_search_path_spec; do
10201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10203 else
10204 test -d "$lt_sys_path" && \
10205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10206 fi
10207 done
10208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10209 BEGIN {RS=" "; FS="/|\n";} {
10210 lt_foo="";
10211 lt_count=0;
10212 for (lt_i = NF; lt_i > 0; lt_i--) {
10213 if ($lt_i != "" && $lt_i != ".") {
10214 if ($lt_i == "..") {
10215 lt_count++;
10216 } else {
10217 if (lt_count == 0) {
10218 lt_foo="/" $lt_i lt_foo;
10219 } else {
10220 lt_count--;
10221 }
10222 }
10223 }
10224 }
10225 if (lt_foo != "") { lt_freq[lt_foo]++; }
10226 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10227 }'`
10228 # AWK program above erroneously prepends '/' to C:/dos/paths
10229 # for these hosts.
10230 case $host_os in
10231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10232 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10233 esac
10234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10235 else
10236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10237 fi
10238 library_names_spec=
10239 libname_spec='lib$name'
10240 soname_spec=
10241 shrext_cmds=".so"
10242 postinstall_cmds=
10243 postuninstall_cmds=
10244 finish_cmds=
10245 finish_eval=
10246 shlibpath_var=
10247 shlibpath_overrides_runpath=unknown
10248 version_type=none
10249 dynamic_linker="$host_os ld.so"
10250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10251 need_lib_prefix=unknown
10252 hardcode_into_libs=no
10253
10254 # when you set need_version to no, make sure it does not cause -set_version
10255 # flags to be left without arguments
10256 need_version=unknown
10257
10258 case $host_os in
10259 aix3*)
10260 version_type=linux
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10262 shlibpath_var=LIBPATH
10263
10264 # AIX 3 has no versioning support, so we append a major version to the name.
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 ;;
10267
10268 aix[4-9]*)
10269 version_type=linux
10270 need_lib_prefix=no
10271 need_version=no
10272 hardcode_into_libs=yes
10273 if test "$host_cpu" = ia64; then
10274 # AIX 5 supports IA64
10275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 else
10278 # With GCC up to 2.95.x, collect2 would create an import file
10279 # for dependence libraries. The import file would start with
10280 # the line `#! .'. This would cause the generated library to
10281 # depend on `.', always an invalid library. This was fixed in
10282 # development snapshots of GCC prior to 3.0.
10283 case $host_os in
10284 aix4 | aix4.[01] | aix4.[01].*)
10285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10286 echo ' yes '
10287 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10288 :
10289 else
10290 can_build_shared=no
10291 fi
10292 ;;
10293 esac
10294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10295 # soname into executable. Probably we can add versioning support to
10296 # collect2, so additional links can be useful in future.
10297 if test "$aix_use_runtimelinking" = yes; then
10298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10299 # instead of lib<name>.a to let people know that these are not
10300 # typical AIX shared libraries.
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 else
10303 # We preserve .a as extension for shared libraries through AIX4.2
10304 # and later when we are not doing run time linking.
10305 library_names_spec='${libname}${release}.a $libname.a'
10306 soname_spec='${libname}${release}${shared_ext}$major'
10307 fi
10308 shlibpath_var=LIBPATH
10309 fi
10310 ;;
10311
10312 amigaos*)
10313 case $host_cpu in
10314 powerpc)
10315 # Since July 2007 AmigaOS4 officially supports .so libraries.
10316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318 ;;
10319 m68k)
10320 library_names_spec='$libname.ixlibrary $libname.a'
10321 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10322 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10323 ;;
10324 esac
10325 ;;
10326
10327 beos*)
10328 library_names_spec='${libname}${shared_ext}'
10329 dynamic_linker="$host_os ld.so"
10330 shlibpath_var=LIBRARY_PATH
10331 ;;
10332
10333 bsdi[45]*)
10334 version_type=linux
10335 need_version=no
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10342 # the default ld.so.conf also contains /usr/contrib/lib and
10343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10344 # libtool to hard-code these into programs
10345 ;;
10346
10347 cygwin* | mingw* | pw32* | cegcc*)
10348 version_type=windows
10349 shrext_cmds=".dll"
10350 need_version=no
10351 need_lib_prefix=no
10352
10353 case $GCC,$cc_basename in
10354 yes,*)
10355 # gcc
10356 library_names_spec='$libname.dll.a'
10357 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10358 postinstall_cmds='base_file=`basename \${file}`~
10359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10360 dldir=$destdir/`dirname \$dlpath`~
10361 test -d \$dldir || mkdir -p \$dldir~
10362 $install_prog $dir/$dlname \$dldir/$dlname~
10363 chmod a+x \$dldir/$dlname~
10364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10366 fi'
10367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10368 dlpath=$dir/\$dldll~
10369 $RM \$dlpath'
10370 shlibpath_overrides_runpath=yes
10371
10372 case $host_os in
10373 cygwin*)
10374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10376
10377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10378 ;;
10379 mingw* | cegcc*)
10380 # MinGW DLLs use traditional 'lib' prefix
10381 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10382 ;;
10383 pw32*)
10384 # pw32 DLLs use 'pw' prefix rather than 'lib'
10385 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10386 ;;
10387 esac
10388 dynamic_linker='Win32 ld.exe'
10389 ;;
10390
10391 *,cl*)
10392 # Native MSVC
10393 libname_spec='$name'
10394 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10395 library_names_spec='${libname}.dll.lib'
10396
10397 case $build_os in
10398 mingw*)
10399 sys_lib_search_path_spec=
10400 lt_save_ifs=$IFS
10401 IFS=';'
10402 for lt_path in $LIB
10403 do
10404 IFS=$lt_save_ifs
10405 # Let DOS variable expansion print the short 8.3 style file name.
10406 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10407 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10408 done
10409 IFS=$lt_save_ifs
10410 # Convert to MSYS style.
10411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10412 ;;
10413 cygwin*)
10414 # Convert to unix form, then to dos form, then back to unix form
10415 # but this time dos style (no spaces!) so that the unix form looks
10416 # like /cygdrive/c/PROGRA~1:/cygdr...
10417 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10418 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10419 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10420 ;;
10421 *)
10422 sys_lib_search_path_spec="$LIB"
10423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10424 # It is most probably a Windows format PATH.
10425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10426 else
10427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10428 fi
10429 # FIXME: find the short name or the path components, as spaces are
10430 # common. (e.g. "Program Files" -> "PROGRA~1")
10431 ;;
10432 esac
10433
10434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10435 postinstall_cmds='base_file=`basename \${file}`~
10436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10437 dldir=$destdir/`dirname \$dlpath`~
10438 test -d \$dldir || mkdir -p \$dldir~
10439 $install_prog $dir/$dlname \$dldir/$dlname'
10440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10441 dlpath=$dir/\$dldll~
10442 $RM \$dlpath'
10443 shlibpath_overrides_runpath=yes
10444 dynamic_linker='Win32 link.exe'
10445 ;;
10446
10447 *)
10448 # Assume MSVC wrapper
10449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10450 dynamic_linker='Win32 ld.exe'
10451 ;;
10452 esac
10453 # FIXME: first we should search . and the directory the executable is in
10454 shlibpath_var=PATH
10455 ;;
10456
10457 darwin* | rhapsody*)
10458 dynamic_linker="$host_os dyld"
10459 version_type=darwin
10460 need_lib_prefix=no
10461 need_version=no
10462 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10463 soname_spec='${libname}${release}${major}$shared_ext'
10464 shlibpath_overrides_runpath=yes
10465 shlibpath_var=DYLD_LIBRARY_PATH
10466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10467
10468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10470 ;;
10471
10472 dgux*)
10473 version_type=linux
10474 need_lib_prefix=no
10475 need_version=no
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10477 soname_spec='${libname}${release}${shared_ext}$major'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 ;;
10480
10481 freebsd1*)
10482 dynamic_linker=no
10483 ;;
10484
10485 freebsd* | dragonfly*)
10486 # DragonFly does not have aout. When/if they implement a new
10487 # versioning mechanism, adjust this.
10488 if test -x /usr/bin/objformat; then
10489 objformat=`/usr/bin/objformat`
10490 else
10491 case $host_os in
10492 freebsd[123]*) objformat=aout ;;
10493 *) objformat=elf ;;
10494 esac
10495 fi
10496 version_type=freebsd-$objformat
10497 case $version_type in
10498 freebsd-elf*)
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10500 need_version=no
10501 need_lib_prefix=no
10502 ;;
10503 freebsd-*)
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10505 need_version=yes
10506 ;;
10507 esac
10508 shlibpath_var=LD_LIBRARY_PATH
10509 case $host_os in
10510 freebsd2*)
10511 shlibpath_overrides_runpath=yes
10512 ;;
10513 freebsd3.[01]* | freebsdelf3.[01]*)
10514 shlibpath_overrides_runpath=yes
10515 hardcode_into_libs=yes
10516 ;;
10517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10519 shlibpath_overrides_runpath=no
10520 hardcode_into_libs=yes
10521 ;;
10522 *) # from 4.6 on, and DragonFly
10523 shlibpath_overrides_runpath=yes
10524 hardcode_into_libs=yes
10525 ;;
10526 esac
10527 ;;
10528
10529 gnu*)
10530 version_type=linux
10531 need_lib_prefix=no
10532 need_version=no
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10534 soname_spec='${libname}${release}${shared_ext}$major'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 hardcode_into_libs=yes
10537 ;;
10538
10539 haiku*)
10540 version_type=linux
10541 need_lib_prefix=no
10542 need_version=no
10543 dynamic_linker="$host_os runtime_loader"
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 shlibpath_var=LIBRARY_PATH
10547 shlibpath_overrides_runpath=yes
10548 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10549 hardcode_into_libs=yes
10550 ;;
10551
10552 hpux9* | hpux10* | hpux11*)
10553 # Give a soname corresponding to the major version so that dld.sl refuses to
10554 # link against other versions.
10555 version_type=sunos
10556 need_lib_prefix=no
10557 need_version=no
10558 case $host_cpu in
10559 ia64*)
10560 shrext_cmds='.so'
10561 hardcode_into_libs=yes
10562 dynamic_linker="$host_os dld.so"
10563 shlibpath_var=LD_LIBRARY_PATH
10564 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566 soname_spec='${libname}${release}${shared_ext}$major'
10567 if test "X$HPUX_IA64_MODE" = X32; then
10568 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10569 else
10570 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10571 fi
10572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10573 ;;
10574 hppa*64*)
10575 shrext_cmds='.sl'
10576 hardcode_into_libs=yes
10577 dynamic_linker="$host_os dld.sl"
10578 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10583 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10584 ;;
10585 *)
10586 shrext_cmds='.sl'
10587 dynamic_linker="$host_os dld.sl"
10588 shlibpath_var=SHLIB_PATH
10589 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 ;;
10593 esac
10594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10595 postinstall_cmds='chmod 555 $lib'
10596 # or fails outright, so override atomically:
10597 install_override_mode=555
10598 ;;
10599
10600 interix[3-9]*)
10601 version_type=linux
10602 need_lib_prefix=no
10603 need_version=no
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=no
10609 hardcode_into_libs=yes
10610 ;;
10611
10612 irix5* | irix6* | nonstopux*)
10613 case $host_os in
10614 nonstopux*) version_type=nonstopux ;;
10615 *)
10616 if test "$lt_cv_prog_gnu_ld" = yes; then
10617 version_type=linux
10618 else
10619 version_type=irix
10620 fi ;;
10621 esac
10622 need_lib_prefix=no
10623 need_version=no
10624 soname_spec='${libname}${release}${shared_ext}$major'
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10626 case $host_os in
10627 irix5* | nonstopux*)
10628 libsuff= shlibsuff=
10629 ;;
10630 *)
10631 case $LD in # libtool.m4 will add one of these switches to LD
10632 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10633 libsuff= shlibsuff= libmagic=32-bit;;
10634 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10635 libsuff=32 shlibsuff=N32 libmagic=N32;;
10636 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10637 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10638 *) libsuff= shlibsuff= libmagic=never-match;;
10639 esac
10640 ;;
10641 esac
10642 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10646 hardcode_into_libs=yes
10647 ;;
10648
10649 # No shared lib support for Linux oldld, aout, or coff.
10650 linux*oldld* | linux*aout* | linux*coff*)
10651 dynamic_linker=no
10652 ;;
10653
10654 # This must be Linux ELF.
10655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10656 version_type=linux
10657 need_lib_prefix=no
10658 need_version=no
10659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10660 soname_spec='${libname}${release}${shared_ext}$major'
10661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=no
10664
10665 # Some binutils ld are patched to set DT_RUNPATH
10666 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10667 $as_echo_n "(cached) " >&6
10668 else
10669 lt_cv_shlibpath_overrides_runpath=no
10670 save_LDFLAGS=$LDFLAGS
10671 save_libdir=$libdir
10672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676
10677 int
10678 main ()
10679 {
10680
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 if ac_fn_c_try_link "$LINENO"; then :
10686 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10687 lt_cv_shlibpath_overrides_runpath=yes
10688 fi
10689 fi
10690 rm -f core conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10692 LDFLAGS=$save_LDFLAGS
10693 libdir=$save_libdir
10694
10695 fi
10696
10697 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10698
10699 # This implies no fast_install, which is unacceptable.
10700 # Some rework will be needed to allow for fast_install
10701 # before this can be enabled.
10702 hardcode_into_libs=yes
10703
10704 # Add ABI-specific directories to the system library path.
10705 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10706
10707 # Append ld.so.conf contents to the search path
10708 if test -f /etc/ld.so.conf; then
10709 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10710 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10711
10712 fi
10713
10714 # We used to test for /lib/ld.so.1 and disable shared libraries on
10715 # powerpc, because MkLinux only supported shared libraries with the
10716 # GNU dynamic linker. Since this was broken with cross compilers,
10717 # most powerpc-linux boxes support dynamic linking these days and
10718 # people can always --disable-shared, the test was removed, and we
10719 # assume the GNU/Linux dynamic linker is in use.
10720 dynamic_linker='GNU/Linux ld.so'
10721 ;;
10722
10723 netbsd*)
10724 version_type=sunos
10725 need_lib_prefix=no
10726 need_version=no
10727 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10730 dynamic_linker='NetBSD (a.out) ld.so'
10731 else
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 dynamic_linker='NetBSD ld.elf_so'
10735 fi
10736 shlibpath_var=LD_LIBRARY_PATH
10737 shlibpath_overrides_runpath=yes
10738 hardcode_into_libs=yes
10739 ;;
10740
10741 newsos6)
10742 version_type=linux
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 shlibpath_var=LD_LIBRARY_PATH
10745 shlibpath_overrides_runpath=yes
10746 ;;
10747
10748 *nto* | *qnx*)
10749 version_type=qnx
10750 need_lib_prefix=no
10751 need_version=no
10752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753 soname_spec='${libname}${release}${shared_ext}$major'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 shlibpath_overrides_runpath=no
10756 hardcode_into_libs=yes
10757 dynamic_linker='ldqnx.so'
10758 ;;
10759
10760 openbsd*)
10761 version_type=sunos
10762 sys_lib_dlsearch_path_spec="/usr/lib"
10763 need_lib_prefix=no
10764 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10765 case $host_os in
10766 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10767 *) need_version=no ;;
10768 esac
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10771 shlibpath_var=LD_LIBRARY_PATH
10772 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10773 case $host_os in
10774 openbsd2.[89] | openbsd2.[89].*)
10775 shlibpath_overrides_runpath=no
10776 ;;
10777 *)
10778 shlibpath_overrides_runpath=yes
10779 ;;
10780 esac
10781 else
10782 shlibpath_overrides_runpath=yes
10783 fi
10784 ;;
10785
10786 os2*)
10787 libname_spec='$name'
10788 shrext_cmds=".dll"
10789 need_lib_prefix=no
10790 library_names_spec='$libname${shared_ext} $libname.a'
10791 dynamic_linker='OS/2 ld.exe'
10792 shlibpath_var=LIBPATH
10793 ;;
10794
10795 osf3* | osf4* | osf5*)
10796 version_type=osf
10797 need_lib_prefix=no
10798 need_version=no
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10803 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10804 ;;
10805
10806 rdos*)
10807 dynamic_linker=no
10808 ;;
10809
10810 solaris*)
10811 version_type=linux
10812 need_lib_prefix=no
10813 need_version=no
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815 soname_spec='${libname}${release}${shared_ext}$major'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 shlibpath_overrides_runpath=yes
10818 hardcode_into_libs=yes
10819 # ldd complains unless libraries are executable
10820 postinstall_cmds='chmod +x $lib'
10821 ;;
10822
10823 sunos4*)
10824 version_type=sunos
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10826 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 shlibpath_overrides_runpath=yes
10829 if test "$with_gnu_ld" = yes; then
10830 need_lib_prefix=no
10831 fi
10832 need_version=yes
10833 ;;
10834
10835 sysv4 | sysv4.3*)
10836 version_type=linux
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 case $host_vendor in
10841 sni)
10842 shlibpath_overrides_runpath=no
10843 need_lib_prefix=no
10844 runpath_var=LD_RUN_PATH
10845 ;;
10846 siemens)
10847 need_lib_prefix=no
10848 ;;
10849 motorola)
10850 need_lib_prefix=no
10851 need_version=no
10852 shlibpath_overrides_runpath=no
10853 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10854 ;;
10855 esac
10856 ;;
10857
10858 sysv4*MP*)
10859 if test -d /usr/nec ;then
10860 version_type=linux
10861 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10862 soname_spec='$libname${shared_ext}.$major'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 fi
10865 ;;
10866
10867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10868 version_type=freebsd-elf
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 hardcode_into_libs=yes
10876 if test "$with_gnu_ld" = yes; then
10877 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10878 else
10879 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10880 case $host_os in
10881 sco3.2v5*)
10882 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10883 ;;
10884 esac
10885 fi
10886 sys_lib_dlsearch_path_spec='/usr/lib'
10887 ;;
10888
10889 tpf*)
10890 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10891 version_type=linux
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=no
10897 hardcode_into_libs=yes
10898 ;;
10899
10900 uts4*)
10901 version_type=linux
10902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903 soname_spec='${libname}${release}${shared_ext}$major'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 ;;
10906
10907 *)
10908 dynamic_linker=no
10909 ;;
10910 esac
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10912 $as_echo "$dynamic_linker" >&6; }
10913 test "$dynamic_linker" = no && can_build_shared=no
10914
10915 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10916 if test "$GCC" = yes; then
10917 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10918 fi
10919
10920 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10921 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10922 fi
10923 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10924 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10925 fi
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11020 hardcode_action=
11021 if test -n "$hardcode_libdir_flag_spec" ||
11022 test -n "$runpath_var" ||
11023 test "X$hardcode_automatic" = "Xyes" ; then
11024
11025 # We can hardcode non-existent directories.
11026 if test "$hardcode_direct" != no &&
11027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11028 # have to relink, otherwise we might link with an installed library
11029 # when we should be linking with a yet-to-be-installed one
11030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11031 test "$hardcode_minus_L" != no; then
11032 # Linking always hardcodes the temporary library directory.
11033 hardcode_action=relink
11034 else
11035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11036 hardcode_action=immediate
11037 fi
11038 else
11039 # We cannot hardcode anything, or else we can only hardcode existing
11040 # directories.
11041 hardcode_action=unsupported
11042 fi
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11044 $as_echo "$hardcode_action" >&6; }
11045
11046 if test "$hardcode_action" = relink ||
11047 test "$inherit_rpath" = yes; then
11048 # Fast installation is not supported
11049 enable_fast_install=no
11050 elif test "$shlibpath_overrides_runpath" = yes ||
11051 test "$enable_shared" = no; then
11052 # Fast installation is not necessary
11053 enable_fast_install=needless
11054 fi
11055
11056
11057
11058
11059
11060
11061 if test "x$enable_dlopen" != xyes; then
11062 enable_dlopen=unknown
11063 enable_dlopen_self=unknown
11064 enable_dlopen_self_static=unknown
11065 else
11066 lt_cv_dlopen=no
11067 lt_cv_dlopen_libs=
11068
11069 case $host_os in
11070 beos*)
11071 lt_cv_dlopen="load_add_on"
11072 lt_cv_dlopen_libs=
11073 lt_cv_dlopen_self=yes
11074 ;;
11075
11076 mingw* | pw32* | cegcc*)
11077 lt_cv_dlopen="LoadLibrary"
11078 lt_cv_dlopen_libs=
11079 ;;
11080
11081 cygwin*)
11082 lt_cv_dlopen="dlopen"
11083 lt_cv_dlopen_libs=
11084 ;;
11085
11086 darwin*)
11087 # if libdl is installed we need to link against it
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11089 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11090 if ${ac_cv_lib_dl_dlopen+:} false; then :
11091 $as_echo_n "(cached) " >&6
11092 else
11093 ac_check_lib_save_LIBS=$LIBS
11094 LIBS="-ldl $LIBS"
11095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11097
11098 /* Override any GCC internal prototype to avoid an error.
11099 Use char because int might match the return type of a GCC
11100 builtin and then its argument prototype would still apply. */
11101 #ifdef __cplusplus
11102 extern "C"
11103 #endif
11104 char dlopen ();
11105 int
11106 main ()
11107 {
11108 return dlopen ();
11109 ;
11110 return 0;
11111 }
11112 _ACEOF
11113 if ac_fn_c_try_link "$LINENO"; then :
11114 ac_cv_lib_dl_dlopen=yes
11115 else
11116 ac_cv_lib_dl_dlopen=no
11117 fi
11118 rm -f core conftest.err conftest.$ac_objext \
11119 conftest$ac_exeext conftest.$ac_ext
11120 LIBS=$ac_check_lib_save_LIBS
11121 fi
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11123 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11124 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11125 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11126 else
11127
11128 lt_cv_dlopen="dyld"
11129 lt_cv_dlopen_libs=
11130 lt_cv_dlopen_self=yes
11131
11132 fi
11133
11134 ;;
11135
11136 *)
11137 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11138 if test "x$ac_cv_func_shl_load" = xyes; then :
11139 lt_cv_dlopen="shl_load"
11140 else
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11142 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11143 if ${ac_cv_lib_dld_shl_load+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-ldld $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11150
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char shl_load ();
11158 int
11159 main ()
11160 {
11161 return shl_load ();
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_dld_shl_load=yes
11168 else
11169 ac_cv_lib_dld_shl_load=no
11170 fi
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11174 fi
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11176 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11177 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11178 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11179 else
11180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11181 if test "x$ac_cv_func_dlopen" = xyes; then :
11182 lt_cv_dlopen="dlopen"
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11186 if ${ac_cv_lib_dl_dlopen+:} false; then :
11187 $as_echo_n "(cached) " >&6
11188 else
11189 ac_check_lib_save_LIBS=$LIBS
11190 LIBS="-ldl $LIBS"
11191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11192 /* end confdefs.h. */
11193
11194 /* Override any GCC internal prototype to avoid an error.
11195 Use char because int might match the return type of a GCC
11196 builtin and then its argument prototype would still apply. */
11197 #ifdef __cplusplus
11198 extern "C"
11199 #endif
11200 char dlopen ();
11201 int
11202 main ()
11203 {
11204 return dlopen ();
11205 ;
11206 return 0;
11207 }
11208 _ACEOF
11209 if ac_fn_c_try_link "$LINENO"; then :
11210 ac_cv_lib_dl_dlopen=yes
11211 else
11212 ac_cv_lib_dl_dlopen=no
11213 fi
11214 rm -f core conftest.err conftest.$ac_objext \
11215 conftest$ac_exeext conftest.$ac_ext
11216 LIBS=$ac_check_lib_save_LIBS
11217 fi
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11219 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11220 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11221 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11224 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11225 if ${ac_cv_lib_svld_dlopen+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-lsvld $LIBS"
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11232
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dlopen ();
11240 int
11241 main ()
11242 {
11243 return dlopen ();
11244 ;
11245 return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_svld_dlopen=yes
11250 else
11251 ac_cv_lib_svld_dlopen=no
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11256 fi
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11258 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11259 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11263 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11264 if ${ac_cv_lib_dld_dld_link+:} false; then :
11265 $as_echo_n "(cached) " >&6
11266 else
11267 ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-ldld $LIBS"
11269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h. */
11271
11272 /* Override any GCC internal prototype to avoid an error.
11273 Use char because int might match the return type of a GCC
11274 builtin and then its argument prototype would still apply. */
11275 #ifdef __cplusplus
11276 extern "C"
11277 #endif
11278 char dld_link ();
11279 int
11280 main ()
11281 {
11282 return dld_link ();
11283 ;
11284 return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_link "$LINENO"; then :
11288 ac_cv_lib_dld_dld_link=yes
11289 else
11290 ac_cv_lib_dld_dld_link=no
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 LIBS=$ac_check_lib_save_LIBS
11295 fi
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11297 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11298 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11299 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11300 fi
11301
11302
11303 fi
11304
11305
11306 fi
11307
11308
11309 fi
11310
11311
11312 fi
11313
11314
11315 fi
11316
11317 ;;
11318 esac
11319
11320 if test "x$lt_cv_dlopen" != xno; then
11321 enable_dlopen=yes
11322 else
11323 enable_dlopen=no
11324 fi
11325
11326 case $lt_cv_dlopen in
11327 dlopen)
11328 save_CPPFLAGS="$CPPFLAGS"
11329 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11330
11331 save_LDFLAGS="$LDFLAGS"
11332 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11333
11334 save_LIBS="$LIBS"
11335 LIBS="$lt_cv_dlopen_libs $LIBS"
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11338 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11339 if ${lt_cv_dlopen_self+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test "$cross_compiling" = yes; then :
11343 lt_cv_dlopen_self=cross
11344 else
11345 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11346 lt_status=$lt_dlunknown
11347 cat > conftest.$ac_ext <<_LT_EOF
11348 #line $LINENO "configure"
11349 #include "confdefs.h"
11350
11351 #if HAVE_DLFCN_H
11352 #include <dlfcn.h>
11353 #endif
11354
11355 #include <stdio.h>
11356
11357 #ifdef RTLD_GLOBAL
11358 # define LT_DLGLOBAL RTLD_GLOBAL
11359 #else
11360 # ifdef DL_GLOBAL
11361 # define LT_DLGLOBAL DL_GLOBAL
11362 # else
11363 # define LT_DLGLOBAL 0
11364 # endif
11365 #endif
11366
11367 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11368 find out it does not work in some platform. */
11369 #ifndef LT_DLLAZY_OR_NOW
11370 # ifdef RTLD_LAZY
11371 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11372 # else
11373 # ifdef DL_LAZY
11374 # define LT_DLLAZY_OR_NOW DL_LAZY
11375 # else
11376 # ifdef RTLD_NOW
11377 # define LT_DLLAZY_OR_NOW RTLD_NOW
11378 # else
11379 # ifdef DL_NOW
11380 # define LT_DLLAZY_OR_NOW DL_NOW
11381 # else
11382 # define LT_DLLAZY_OR_NOW 0
11383 # endif
11384 # endif
11385 # endif
11386 # endif
11387 #endif
11388
11389 /* When -fvisbility=hidden is used, assume the code has been annotated
11390 correspondingly for the symbols needed. */
11391 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11392 int fnord () __attribute__((visibility("default")));
11393 #endif
11394
11395 int fnord () { return 42; }
11396 int main ()
11397 {
11398 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11399 int status = $lt_dlunknown;
11400
11401 if (self)
11402 {
11403 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11404 else
11405 {
11406 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11407 else puts (dlerror ());
11408 }
11409 /* dlclose (self); */
11410 }
11411 else
11412 puts (dlerror ());
11413
11414 return status;
11415 }
11416 _LT_EOF
11417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11418 (eval $ac_link) 2>&5
11419 ac_status=$?
11420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11422 (./conftest; exit; ) >&5 2>/dev/null
11423 lt_status=$?
11424 case x$lt_status in
11425 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11426 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11427 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11428 esac
11429 else :
11430 # compilation failed
11431 lt_cv_dlopen_self=no
11432 fi
11433 fi
11434 rm -fr conftest*
11435
11436
11437 fi
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11439 $as_echo "$lt_cv_dlopen_self" >&6; }
11440
11441 if test "x$lt_cv_dlopen_self" = xyes; then
11442 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11444 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11445 if ${lt_cv_dlopen_self_static+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 if test "$cross_compiling" = yes; then :
11449 lt_cv_dlopen_self_static=cross
11450 else
11451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11452 lt_status=$lt_dlunknown
11453 cat > conftest.$ac_ext <<_LT_EOF
11454 #line $LINENO "configure"
11455 #include "confdefs.h"
11456
11457 #if HAVE_DLFCN_H
11458 #include <dlfcn.h>
11459 #endif
11460
11461 #include <stdio.h>
11462
11463 #ifdef RTLD_GLOBAL
11464 # define LT_DLGLOBAL RTLD_GLOBAL
11465 #else
11466 # ifdef DL_GLOBAL
11467 # define LT_DLGLOBAL DL_GLOBAL
11468 # else
11469 # define LT_DLGLOBAL 0
11470 # endif
11471 #endif
11472
11473 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11474 find out it does not work in some platform. */
11475 #ifndef LT_DLLAZY_OR_NOW
11476 # ifdef RTLD_LAZY
11477 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11478 # else
11479 # ifdef DL_LAZY
11480 # define LT_DLLAZY_OR_NOW DL_LAZY
11481 # else
11482 # ifdef RTLD_NOW
11483 # define LT_DLLAZY_OR_NOW RTLD_NOW
11484 # else
11485 # ifdef DL_NOW
11486 # define LT_DLLAZY_OR_NOW DL_NOW
11487 # else
11488 # define LT_DLLAZY_OR_NOW 0
11489 # endif
11490 # endif
11491 # endif
11492 # endif
11493 #endif
11494
11495 /* When -fvisbility=hidden is used, assume the code has been annotated
11496 correspondingly for the symbols needed. */
11497 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11498 int fnord () __attribute__((visibility("default")));
11499 #endif
11500
11501 int fnord () { return 42; }
11502 int main ()
11503 {
11504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11505 int status = $lt_dlunknown;
11506
11507 if (self)
11508 {
11509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11510 else
11511 {
11512 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11513 else puts (dlerror ());
11514 }
11515 /* dlclose (self); */
11516 }
11517 else
11518 puts (dlerror ());
11519
11520 return status;
11521 }
11522 _LT_EOF
11523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11524 (eval $ac_link) 2>&5
11525 ac_status=$?
11526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11527 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11528 (./conftest; exit; ) >&5 2>/dev/null
11529 lt_status=$?
11530 case x$lt_status in
11531 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11532 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11533 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11534 esac
11535 else :
11536 # compilation failed
11537 lt_cv_dlopen_self_static=no
11538 fi
11539 fi
11540 rm -fr conftest*
11541
11542
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11545 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11546 fi
11547
11548 CPPFLAGS="$save_CPPFLAGS"
11549 LDFLAGS="$save_LDFLAGS"
11550 LIBS="$save_LIBS"
11551 ;;
11552 esac
11553
11554 case $lt_cv_dlopen_self in
11555 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11556 *) enable_dlopen_self=unknown ;;
11557 esac
11558
11559 case $lt_cv_dlopen_self_static in
11560 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11561 *) enable_dlopen_self_static=unknown ;;
11562 esac
11563 fi
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581 striplib=
11582 old_striplib=
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11584 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11585 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11586 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11587 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11590 else
11591 # FIXME - insert some real tests, host_os isn't really good enough
11592 case $host_os in
11593 darwin*)
11594 if test -n "$STRIP" ; then
11595 striplib="$STRIP -x"
11596 old_striplib="$STRIP -S"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598 $as_echo "yes" >&6; }
11599 else
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601 $as_echo "no" >&6; }
11602 fi
11603 ;;
11604 *)
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 ;;
11608 esac
11609 fi
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622 # Report which library types will actually be built
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11624 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11626 $as_echo "$can_build_shared" >&6; }
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11629 $as_echo_n "checking whether to build shared libraries... " >&6; }
11630 test "$can_build_shared" = "no" && enable_shared=no
11631
11632 # On AIX, shared libraries and static libraries use the same namespace, and
11633 # are all built from PIC.
11634 case $host_os in
11635 aix3*)
11636 test "$enable_shared" = yes && enable_static=no
11637 if test -n "$RANLIB"; then
11638 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11639 postinstall_cmds='$RANLIB $lib'
11640 fi
11641 ;;
11642
11643 aix[4-9]*)
11644 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11645 test "$enable_shared" = yes && enable_static=no
11646 fi
11647 ;;
11648 esac
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11650 $as_echo "$enable_shared" >&6; }
11651
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11653 $as_echo_n "checking whether to build static libraries... " >&6; }
11654 # Make sure either enable_shared or enable_static is yes.
11655 test "$enable_shared" = yes || enable_static=yes
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11657 $as_echo "$enable_static" >&6; }
11658
11659
11660
11661
11662 fi
11663 ac_ext=c
11664 ac_cpp='$CPP $CPPFLAGS'
11665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11668
11669 CC="$lt_save_CC"
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683 ac_config_commands="$ac_config_commands libtool"
11684
11685
11686
11687
11688 # Only expand once:
11689
11690
11691
11692
11693
11694 $as_echo "#define _GNU_SOURCE /**/" >>confdefs.h
11695
11696
11697
11698
11699 # Check whether --enable-compile-warnings was given.
11700 if test "${enable_compile_warnings+set}" = set; then :
11701 enableval=$enable_compile_warnings;
11702 else
11703 enable_compile_warnings="maximum"
11704 fi
11705
11706
11707 warnCFLAGS=
11708
11709 common_flags="-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fasynchronous-unwind-tables"
11710
11711 case "$enable_compile_warnings" in
11712 no)
11713 try_compiler_flags=""
11714 ;;
11715 minimum)
11716 try_compiler_flags="-Wall -Wformat -Wformat-security $common_flags"
11717 ;;
11718 yes)
11719 try_compiler_flags="-Wall -Wformat -Wformat-security -Wmissing-prototypes $common_flags"
11720 ;;
11721 maximum|error)
11722 try_compiler_flags="-Wall -Wformat -Wformat-security -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
11723 try_compiler_flags="$try_compiler_flags -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return"
11724 try_compiler_flags="$try_compiler_flags -Wstrict-prototypes -Winline -Wredundant-decls -Wno-sign-compare"
11725 try_compiler_flags="$try_compiler_flags $common_flags"
11726 if test "$enable_compile_warnings" = "error" ; then
11727 try_compiler_flags="$try_compiler_flags -Werror"
11728 fi
11729 ;;
11730 *)
11731 as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
11732 ;;
11733 esac
11734
11735 compiler_flags=
11736 for option in $try_compiler_flags; do
11737 SAVE_CFLAGS="$CFLAGS"
11738 CFLAGS="$CFLAGS $option"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
11740 $as_echo_n "checking whether gcc understands $option... " >&6; }
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11743
11744 int
11745 main ()
11746 {
11747
11748 ;
11749 return 0;
11750 }
11751 _ACEOF
11752 if ac_fn_c_try_link "$LINENO"; then :
11753 has_option=yes
11754 else
11755 has_option=no
11756 fi
11757 rm -f core conftest.err conftest.$ac_objext \
11758 conftest$ac_exeext conftest.$ac_ext
11759 CFLAGS="$SAVE_CFLAGS"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
11761 $as_echo "$has_option" >&6; }
11762 if test $has_option = yes; then
11763 compiler_flags="$compiler_flags $option"
11764 fi
11765 unset has_option
11766 unset SAVE_CFLAGS
11767 done
11768 unset option
11769 unset try_compiler_flags
11770
11771 # Check whether --enable-iso-c was given.
11772 if test "${enable_iso_c+set}" = set; then :
11773 enableval=$enable_iso_c;
11774 else
11775 enable_iso_c=no
11776 fi
11777
11778
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
11780 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
11781 complCFLAGS=
11782 if test "x$enable_iso_c" != "xno"; then
11783 if test "x$GCC" = "xyes"; then
11784 case " $CFLAGS " in
11785 *\ \ -ansi\ \ *) ;;
11786 *) complCFLAGS="$complCFLAGS -ansi" ;;
11787 esac
11788 case " $CFLAGS " in
11789 *\ \ -pedantic\ \ *) ;;
11790 *) complCFLAGS="$complCFLAGS -pedantic" ;;
11791 esac
11792 fi
11793 fi
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
11795 $as_echo "$complCFLAGS" >&6; }
11796
11797 WARN_CFLAGS="$compiler_flags $complCFLAGS"
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11808 if test -n "$ac_tool_prefix"; then
11809 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11810 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 case $PKG_CONFIG in
11817 [\\/]* | ?:[\\/]*)
11818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11819 ;;
11820 *)
11821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822 for as_dir in $PATH
11823 do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11830 break 2
11831 fi
11832 done
11833 done
11834 IFS=$as_save_IFS
11835
11836 ;;
11837 esac
11838 fi
11839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11840 if test -n "$PKG_CONFIG"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11842 $as_echo "$PKG_CONFIG" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847
11848
11849 fi
11850 if test -z "$ac_cv_path_PKG_CONFIG"; then
11851 ac_pt_PKG_CONFIG=$PKG_CONFIG
11852 # Extract the first word of "pkg-config", so it can be a program name with args.
11853 set dummy pkg-config; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 case $ac_pt_PKG_CONFIG in
11860 [\\/]* | ?:[\\/]*)
11861 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11862 ;;
11863 *)
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11866 do
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11874 fi
11875 done
11876 done
11877 IFS=$as_save_IFS
11878
11879 ;;
11880 esac
11881 fi
11882 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11883 if test -n "$ac_pt_PKG_CONFIG"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11885 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 fi
11890
11891 if test "x$ac_pt_PKG_CONFIG" = x; then
11892 PKG_CONFIG=""
11893 else
11894 case $cross_compiling:$ac_tool_warned in
11895 yes:)
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11898 ac_tool_warned=yes ;;
11899 esac
11900 PKG_CONFIG=$ac_pt_PKG_CONFIG
11901 fi
11902 else
11903 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11904 fi
11905
11906 fi
11907 if test -n "$PKG_CONFIG"; then
11908 _pkg_min_version=0.9.0
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11910 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11911 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11913 $as_echo "yes" >&6; }
11914 else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 PKG_CONFIG=""
11918 fi
11919 fi
11920
11921 pkg_failed=no
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVIRT" >&5
11923 $as_echo_n "checking for LIBVIRT... " >&6; }
11924
11925 if test -n "$LIBVIRT_CFLAGS"; then
11926 pkg_cv_LIBVIRT_CFLAGS="$LIBVIRT_CFLAGS"
11927 elif test -n "$PKG_CONFIG"; then
11928 if test -n "$PKG_CONFIG" && \
11929 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= \$LIBVIRT_REQUIRED\""; } >&5
11930 ($PKG_CONFIG --exists --print-errors "libvirt >= $LIBVIRT_REQUIRED") 2>&5
11931 ac_status=$?
11932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11933 test $ac_status = 0; }; then
11934 pkg_cv_LIBVIRT_CFLAGS=`$PKG_CONFIG --cflags "libvirt >= $LIBVIRT_REQUIRED" 2>/dev/null`
11935 else
11936 pkg_failed=yes
11937 fi
11938 else
11939 pkg_failed=untried
11940 fi
11941 if test -n "$LIBVIRT_LIBS"; then
11942 pkg_cv_LIBVIRT_LIBS="$LIBVIRT_LIBS"
11943 elif test -n "$PKG_CONFIG"; then
11944 if test -n "$PKG_CONFIG" && \
11945 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvirt >= \$LIBVIRT_REQUIRED\""; } >&5
11946 ($PKG_CONFIG --exists --print-errors "libvirt >= $LIBVIRT_REQUIRED") 2>&5
11947 ac_status=$?
11948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11949 test $ac_status = 0; }; then
11950 pkg_cv_LIBVIRT_LIBS=`$PKG_CONFIG --libs "libvirt >= $LIBVIRT_REQUIRED" 2>/dev/null`
11951 else
11952 pkg_failed=yes
11953 fi
11954 else
11955 pkg_failed=untried
11956 fi
11957
11958
11959
11960 if test $pkg_failed = yes; then
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962 $as_echo "no" >&6; }
11963
11964 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11965 _pkg_short_errors_supported=yes
11966 else
11967 _pkg_short_errors_supported=no
11968 fi
11969 if test $_pkg_short_errors_supported = yes; then
11970 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libvirt >= $LIBVIRT_REQUIRED" 2>&1`
11971 else
11972 LIBVIRT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libvirt >= $LIBVIRT_REQUIRED" 2>&1`
11973 fi
11974 # Put the nasty error message in config.log where it belongs
11975 echo "$LIBVIRT_PKG_ERRORS" >&5
11976
11977 as_fn_error $? "Package requirements (libvirt >= $LIBVIRT_REQUIRED) were not met:
11978
11979 $LIBVIRT_PKG_ERRORS
11980
11981 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11982 installed software in a non-standard prefix.
11983
11984 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
11985 and LIBVIRT_LIBS to avoid the need to call pkg-config.
11986 See the pkg-config man page for more details." "$LINENO" 5
11987
11988 elif test $pkg_failed = untried; then
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11993 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11994 is in your PATH or set the PKG_CONFIG environment variable to the full
11995 path to pkg-config.
11996
11997 Alternatively, you may set the environment variables LIBVIRT_CFLAGS
11998 and LIBVIRT_LIBS to avoid the need to call pkg-config.
11999 See the pkg-config man page for more details.
12000
12001 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12002 See \`config.log' for more details" "$LINENO" 5; }
12003
12004 else
12005 LIBVIRT_CFLAGS=$pkg_cv_LIBVIRT_CFLAGS
12006 LIBVIRT_LIBS=$pkg_cv_LIBVIRT_LIBS
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12008 $as_echo "yes" >&6; }
12009
12010 fi
12011
12012 pkg_failed=no
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
12014 $as_echo_n "checking for GLIB2... " >&6; }
12015
12016 if test -n "$GLIB2_CFLAGS"; then
12017 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
12018 elif test -n "$PKG_CONFIG"; then
12019 if test -n "$PKG_CONFIG" && \
12020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12021 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; }; then
12025 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12026 else
12027 pkg_failed=yes
12028 fi
12029 else
12030 pkg_failed=untried
12031 fi
12032 if test -n "$GLIB2_LIBS"; then
12033 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
12034 elif test -n "$PKG_CONFIG"; then
12035 if test -n "$PKG_CONFIG" && \
12036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12037 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5
12038 ac_status=$?
12039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12040 test $ac_status = 0; }; then
12041 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12042 else
12043 pkg_failed=yes
12044 fi
12045 else
12046 pkg_failed=untried
12047 fi
12048
12049
12050
12051 if test $pkg_failed = yes; then
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12054
12055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12056 _pkg_short_errors_supported=yes
12057 else
12058 _pkg_short_errors_supported=no
12059 fi
12060 if test $_pkg_short_errors_supported = yes; then
12061 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB2_REQUIRED" 2>&1`
12062 else
12063 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB2_REQUIRED" 2>&1`
12064 fi
12065 # Put the nasty error message in config.log where it belongs
12066 echo "$GLIB2_PKG_ERRORS" >&5
12067
12068 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB2_REQUIRED) were not met:
12069
12070 $GLIB2_PKG_ERRORS
12071
12072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12073 installed software in a non-standard prefix.
12074
12075 Alternatively, you may set the environment variables GLIB2_CFLAGS
12076 and GLIB2_LIBS to avoid the need to call pkg-config.
12077 See the pkg-config man page for more details." "$LINENO" 5
12078
12079 elif test $pkg_failed = untried; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12084 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12085 is in your PATH or set the PKG_CONFIG environment variable to the full
12086 path to pkg-config.
12087
12088 Alternatively, you may set the environment variables GLIB2_CFLAGS
12089 and GLIB2_LIBS to avoid the need to call pkg-config.
12090 See the pkg-config man page for more details.
12091
12092 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12093 See \`config.log' for more details" "$LINENO" 5; }
12094
12095 else
12096 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
12097 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12100
12101 fi
12102
12103 pkg_failed=no
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD2" >&5
12105 $as_echo_n "checking for GTHREAD2... " >&6; }
12106
12107 if test -n "$GTHREAD2_CFLAGS"; then
12108 pkg_cv_GTHREAD2_CFLAGS="$GTHREAD2_CFLAGS"
12109 elif test -n "$PKG_CONFIG"; then
12110 if test -n "$PKG_CONFIG" && \
12111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12112 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= $GLIB2_REQUIRED") 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; }; then
12116 pkg_cv_GTHREAD2_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12117 else
12118 pkg_failed=yes
12119 fi
12120 else
12121 pkg_failed=untried
12122 fi
12123 if test -n "$GTHREAD2_LIBS"; then
12124 pkg_cv_GTHREAD2_LIBS="$GTHREAD2_LIBS"
12125 elif test -n "$PKG_CONFIG"; then
12126 if test -n "$PKG_CONFIG" && \
12127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12128 ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= $GLIB2_REQUIRED") 2>&5
12129 ac_status=$?
12130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131 test $ac_status = 0; }; then
12132 pkg_cv_GTHREAD2_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12133 else
12134 pkg_failed=yes
12135 fi
12136 else
12137 pkg_failed=untried
12138 fi
12139
12140
12141
12142 if test $pkg_failed = yes; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144 $as_echo "no" >&6; }
12145
12146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12147 _pkg_short_errors_supported=yes
12148 else
12149 _pkg_short_errors_supported=no
12150 fi
12151 if test $_pkg_short_errors_supported = yes; then
12152 GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gthread-2.0 >= $GLIB2_REQUIRED" 2>&1`
12153 else
12154 GTHREAD2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gthread-2.0 >= $GLIB2_REQUIRED" 2>&1`
12155 fi
12156 # Put the nasty error message in config.log where it belongs
12157 echo "$GTHREAD2_PKG_ERRORS" >&5
12158
12159 as_fn_error $? "Package requirements (gthread-2.0 >= $GLIB2_REQUIRED) were not met:
12160
12161 $GTHREAD2_PKG_ERRORS
12162
12163 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12164 installed software in a non-standard prefix.
12165
12166 Alternatively, you may set the environment variables GTHREAD2_CFLAGS
12167 and GTHREAD2_LIBS to avoid the need to call pkg-config.
12168 See the pkg-config man page for more details." "$LINENO" 5
12169
12170 elif test $pkg_failed = untried; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12173 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12175 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12176 is in your PATH or set the PKG_CONFIG environment variable to the full
12177 path to pkg-config.
12178
12179 Alternatively, you may set the environment variables GTHREAD2_CFLAGS
12180 and GTHREAD2_LIBS to avoid the need to call pkg-config.
12181 See the pkg-config man page for more details.
12182
12183 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12184 See \`config.log' for more details" "$LINENO" 5; }
12185
12186 else
12187 GTHREAD2_CFLAGS=$pkg_cv_GTHREAD2_CFLAGS
12188 GTHREAD2_LIBS=$pkg_cv_GTHREAD2_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12190 $as_echo "yes" >&6; }
12191
12192 fi
12193
12194 pkg_failed=no
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT2" >&5
12196 $as_echo_n "checking for GOBJECT2... " >&6; }
12197
12198 if test -n "$GOBJECT2_CFLAGS"; then
12199 pkg_cv_GOBJECT2_CFLAGS="$GOBJECT2_CFLAGS"
12200 elif test -n "$PKG_CONFIG"; then
12201 if test -n "$PKG_CONFIG" && \
12202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12203 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GLIB2_REQUIRED") 2>&5
12204 ac_status=$?
12205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12206 test $ac_status = 0; }; then
12207 pkg_cv_GOBJECT2_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12208 else
12209 pkg_failed=yes
12210 fi
12211 else
12212 pkg_failed=untried
12213 fi
12214 if test -n "$GOBJECT2_LIBS"; then
12215 pkg_cv_GOBJECT2_LIBS="$GOBJECT2_LIBS"
12216 elif test -n "$PKG_CONFIG"; then
12217 if test -n "$PKG_CONFIG" && \
12218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12219 ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= $GLIB2_REQUIRED") 2>&5
12220 ac_status=$?
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; }; then
12223 pkg_cv_GOBJECT2_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12224 else
12225 pkg_failed=yes
12226 fi
12227 else
12228 pkg_failed=untried
12229 fi
12230
12231
12232
12233 if test $pkg_failed = yes; then
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12235 $as_echo "no" >&6; }
12236
12237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12238 _pkg_short_errors_supported=yes
12239 else
12240 _pkg_short_errors_supported=no
12241 fi
12242 if test $_pkg_short_errors_supported = yes; then
12243 GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 >= $GLIB2_REQUIRED" 2>&1`
12244 else
12245 GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 >= $GLIB2_REQUIRED" 2>&1`
12246 fi
12247 # Put the nasty error message in config.log where it belongs
12248 echo "$GOBJECT2_PKG_ERRORS" >&5
12249
12250 as_fn_error $? "Package requirements (gobject-2.0 >= $GLIB2_REQUIRED) were not met:
12251
12252 $GOBJECT2_PKG_ERRORS
12253
12254 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12255 installed software in a non-standard prefix.
12256
12257 Alternatively, you may set the environment variables GOBJECT2_CFLAGS
12258 and GOBJECT2_LIBS to avoid the need to call pkg-config.
12259 See the pkg-config man page for more details." "$LINENO" 5
12260
12261 elif test $pkg_failed = untried; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12266 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12267 is in your PATH or set the PKG_CONFIG environment variable to the full
12268 path to pkg-config.
12269
12270 Alternatively, you may set the environment variables GOBJECT2_CFLAGS
12271 and GOBJECT2_LIBS to avoid the need to call pkg-config.
12272 See the pkg-config man page for more details.
12273
12274 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12275 See \`config.log' for more details" "$LINENO" 5; }
12276
12277 else
12278 GOBJECT2_CFLAGS=$pkg_cv_GOBJECT2_CFLAGS
12279 GOBJECT2_LIBS=$pkg_cv_GOBJECT2_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281 $as_echo "yes" >&6; }
12282
12283 fi
12284
12285 pkg_failed=no
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO2" >&5
12287 $as_echo_n "checking for GIO2... " >&6; }
12288
12289 if test -n "$GIO2_CFLAGS"; then
12290 pkg_cv_GIO2_CFLAGS="$GIO2_CFLAGS"
12291 elif test -n "$PKG_CONFIG"; then
12292 if test -n "$PKG_CONFIG" && \
12293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12294 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB2_REQUIRED") 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; }; then
12298 pkg_cv_GIO2_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12299 else
12300 pkg_failed=yes
12301 fi
12302 else
12303 pkg_failed=untried
12304 fi
12305 if test -n "$GIO2_LIBS"; then
12306 pkg_cv_GIO2_LIBS="$GIO2_LIBS"
12307 elif test -n "$PKG_CONFIG"; then
12308 if test -n "$PKG_CONFIG" && \
12309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= \$GLIB2_REQUIRED\""; } >&5
12310 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= $GLIB2_REQUIRED") 2>&5
12311 ac_status=$?
12312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12313 test $ac_status = 0; }; then
12314 pkg_cv_GIO2_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= $GLIB2_REQUIRED" 2>/dev/null`
12315 else
12316 pkg_failed=yes
12317 fi
12318 else
12319 pkg_failed=untried
12320 fi
12321
12322
12323
12324 if test $pkg_failed = yes; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326 $as_echo "no" >&6; }
12327
12328 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12329 _pkg_short_errors_supported=yes
12330 else
12331 _pkg_short_errors_supported=no
12332 fi
12333 if test $_pkg_short_errors_supported = yes; then
12334 GIO2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gio-2.0 >= $GLIB2_REQUIRED" 2>&1`
12335 else
12336 GIO2_PKG_ERRORS=`$PKG_CONFIG --print-errors "gio-2.0 >= $GLIB2_REQUIRED" 2>&1`
12337 fi
12338 # Put the nasty error message in config.log where it belongs
12339 echo "$GIO2_PKG_ERRORS" >&5
12340
12341 as_fn_error $? "Package requirements (gio-2.0 >= $GLIB2_REQUIRED) were not met:
12342
12343 $GIO2_PKG_ERRORS
12344
12345 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12346 installed software in a non-standard prefix.
12347
12348 Alternatively, you may set the environment variables GIO2_CFLAGS
12349 and GIO2_LIBS to avoid the need to call pkg-config.
12350 See the pkg-config man page for more details." "$LINENO" 5
12351
12352 elif test $pkg_failed = untried; then
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354 $as_echo "no" >&6; }
12355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12357 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12358 is in your PATH or set the PKG_CONFIG environment variable to the full
12359 path to pkg-config.
12360
12361 Alternatively, you may set the environment variables GIO2_CFLAGS
12362 and GIO2_LIBS to avoid the need to call pkg-config.
12363 See the pkg-config man page for more details.
12364
12365 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12366 See \`config.log' for more details" "$LINENO" 5; }
12367
12368 else
12369 GIO2_CFLAGS=$pkg_cv_GIO2_CFLAGS
12370 GIO2_LIBS=$pkg_cv_GIO2_LIBS
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12372 $as_echo "yes" >&6; }
12373
12374 fi
12375
12376 pkg_failed=no
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
12378 $as_echo_n "checking for LIBXML2... " >&6; }
12379
12380 if test -n "$LIBXML2_CFLAGS"; then
12381 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
12382 elif test -n "$PKG_CONFIG"; then
12383 if test -n "$PKG_CONFIG" && \
12384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_REQUIRED\""; } >&5
12385 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_REQUIRED") 2>&5
12386 ac_status=$?
12387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12388 test $ac_status = 0; }; then
12389 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML2_REQUIRED" 2>/dev/null`
12390 else
12391 pkg_failed=yes
12392 fi
12393 else
12394 pkg_failed=untried
12395 fi
12396 if test -n "$LIBXML2_LIBS"; then
12397 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
12398 elif test -n "$PKG_CONFIG"; then
12399 if test -n "$PKG_CONFIG" && \
12400 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_REQUIRED\""; } >&5
12401 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_REQUIRED") 2>&5
12402 ac_status=$?
12403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12404 test $ac_status = 0; }; then
12405 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML2_REQUIRED" 2>/dev/null`
12406 else
12407 pkg_failed=yes
12408 fi
12409 else
12410 pkg_failed=untried
12411 fi
12412
12413
12414
12415 if test $pkg_failed = yes; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417 $as_echo "no" >&6; }
12418
12419 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12420 _pkg_short_errors_supported=yes
12421 else
12422 _pkg_short_errors_supported=no
12423 fi
12424 if test $_pkg_short_errors_supported = yes; then
12425 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= $LIBXML2_REQUIRED" 2>&1`
12426 else
12427 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= $LIBXML2_REQUIRED" 2>&1`
12428 fi
12429 # Put the nasty error message in config.log where it belongs
12430 echo "$LIBXML2_PKG_ERRORS" >&5
12431
12432 as_fn_error $? "Package requirements (libxml-2.0 >= $LIBXML2_REQUIRED) were not met:
12433
12434 $LIBXML2_PKG_ERRORS
12435
12436 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12437 installed software in a non-standard prefix.
12438
12439 Alternatively, you may set the environment variables LIBXML2_CFLAGS
12440 and LIBXML2_LIBS to avoid the need to call pkg-config.
12441 See the pkg-config man page for more details." "$LINENO" 5
12442
12443 elif test $pkg_failed = untried; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12448 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12449 is in your PATH or set the PKG_CONFIG environment variable to the full
12450 path to pkg-config.
12451
12452 Alternatively, you may set the environment variables LIBXML2_CFLAGS
12453 and LIBXML2_LIBS to avoid the need to call pkg-config.
12454 See the pkg-config man page for more details.
12455
12456 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12457 See \`config.log' for more details" "$LINENO" 5; }
12458
12459 else
12460 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
12461 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12463 $as_echo "yes" >&6; }
12464
12465 fi
12466
12467
12468
12469 # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12470 set dummy gtkdoc-check; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 case $GTKDOC_CHECK in
12477 [\\/]* | ?:[\\/]*)
12478 ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12479 ;;
12480 *)
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12483 do
12484 IFS=$as_save_IFS
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488 ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12490 break 2
12491 fi
12492 done
12493 done
12494 IFS=$as_save_IFS
12495
12496 ;;
12497 esac
12498 fi
12499 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12500 if test -n "$GTKDOC_CHECK"; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12502 $as_echo "$GTKDOC_CHECK" >&6; }
12503 else
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12505 $as_echo "no" >&6; }
12506 fi
12507
12508
12509 for ac_prog in gtkdoc-rebase
12510 do
12511 # Extract the first word of "$ac_prog", so it can be a program name with args.
12512 set dummy $ac_prog; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 case $GTKDOC_REBASE in
12519 [\\/]* | ?:[\\/]*)
12520 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12521 ;;
12522 *)
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12525 do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12530 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 break 2
12533 fi
12534 done
12535 done
12536 IFS=$as_save_IFS
12537
12538 ;;
12539 esac
12540 fi
12541 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12542 if test -n "$GTKDOC_REBASE"; then
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12544 $as_echo "$GTKDOC_REBASE" >&6; }
12545 else
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12548 fi
12549
12550
12551 test -n "$GTKDOC_REBASE" && break
12552 done
12553 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12554
12555 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12556 set dummy gtkdoc-mkpdf; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 case $GTKDOC_MKPDF in
12563 [\\/]* | ?:[\\/]*)
12564 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12565 ;;
12566 *)
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12577 fi
12578 done
12579 done
12580 IFS=$as_save_IFS
12581
12582 ;;
12583 esac
12584 fi
12585 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12586 if test -n "$GTKDOC_MKPDF"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12588 $as_echo "$GTKDOC_MKPDF" >&6; }
12589 else
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12592 fi
12593
12594
12595
12596
12597 # Check whether --with-html-dir was given.
12598 if test "${with_html_dir+set}" = set; then :
12599 withval=$with_html_dir;
12600 else
12601 with_html_dir='${datadir}/gtk-doc/html'
12602 fi
12603
12604 HTML_DIR="$with_html_dir"
12605
12606
12607 # Check whether --enable-gtk-doc was given.
12608 if test "${enable_gtk_doc+set}" = set; then :
12609 enableval=$enable_gtk_doc;
12610 else
12611 enable_gtk_doc=no
12612 fi
12613
12614
12615 if test x$enable_gtk_doc = xyes; then
12616 if test -n "$PKG_CONFIG" && \
12617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.10\""; } >&5
12618 ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.10") 2>&5
12619 ac_status=$?
12620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12621 test $ac_status = 0; }; then
12622 :
12623 else
12624 as_fn_error $? "You need to have gtk-doc >= 1.10 installed to build $PACKAGE_NAME" "$LINENO" 5
12625 fi
12626 fi
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12629 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12631 $as_echo "$enable_gtk_doc" >&6; }
12632
12633 # Check whether --enable-gtk-doc-html was given.
12634 if test "${enable_gtk_doc_html+set}" = set; then :
12635 enableval=$enable_gtk_doc_html;
12636 else
12637 enable_gtk_doc_html=yes
12638 fi
12639
12640 # Check whether --enable-gtk-doc-pdf was given.
12641 if test "${enable_gtk_doc_pdf+set}" = set; then :
12642 enableval=$enable_gtk_doc_pdf;
12643 else
12644 enable_gtk_doc_pdf=no
12645 fi
12646
12647
12648 if test -z "$GTKDOC_MKPDF"; then
12649 enable_gtk_doc_pdf=no
12650 fi
12651
12652
12653 if test x$enable_gtk_doc = xyes; then
12654 ENABLE_GTK_DOC_TRUE=
12655 ENABLE_GTK_DOC_FALSE='#'
12656 else
12657 ENABLE_GTK_DOC_TRUE='#'
12658 ENABLE_GTK_DOC_FALSE=
12659 fi
12660
12661 if test x$enable_gtk_doc_html = xyes; then
12662 GTK_DOC_BUILD_HTML_TRUE=
12663 GTK_DOC_BUILD_HTML_FALSE='#'
12664 else
12665 GTK_DOC_BUILD_HTML_TRUE='#'
12666 GTK_DOC_BUILD_HTML_FALSE=
12667 fi
12668
12669 if test x$enable_gtk_doc_pdf = xyes; then
12670 GTK_DOC_BUILD_PDF_TRUE=
12671 GTK_DOC_BUILD_PDF_FALSE='#'
12672 else
12673 GTK_DOC_BUILD_PDF_TRUE='#'
12674 GTK_DOC_BUILD_PDF_FALSE=
12675 fi
12676
12677 if test -n "$LIBTOOL"; then
12678 GTK_DOC_USE_LIBTOOL_TRUE=
12679 GTK_DOC_USE_LIBTOOL_FALSE='#'
12680 else
12681 GTK_DOC_USE_LIBTOOL_TRUE='#'
12682 GTK_DOC_USE_LIBTOOL_FALSE=
12683 fi
12684
12685 if test -n "$GTKDOC_REBASE"; then
12686 GTK_DOC_USE_REBASE_TRUE=
12687 GTK_DOC_USE_REBASE_FALSE='#'
12688 else
12689 GTK_DOC_USE_REBASE_TRUE='#'
12690 GTK_DOC_USE_REBASE_FALSE=
12691 fi
12692
12693
12694
12695 CYGWIN_EXTRA_LDFLAGS=
12696 CYGWIN_EXTRA_LIBADD=
12697 CYGWIN_EXTRA_PYTHON_LIBADD=
12698 MINGW_EXTRA_LDFLAGS=
12699 case "$host" in
12700 *-*-cygwin*)
12701 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
12702 CYGWIN_EXTRA_LIBADD="${INTLLIBS}"
12703 if test "x$PYTHON_VERSION" != "x"; then
12704 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
12705 fi
12706 ;;
12707 *-*-mingw*)
12708 MINGW_EXTRA_LDFLAGS="-no-undefined"
12709 ;;
12710 esac
12711
12712
12713
12714
12715
12716
12717 # Check whether --enable-test-coverage was given.
12718 if test "${enable_test_coverage+set}" = set; then :
12719 enableval=$enable_test_coverage; case "${enableval}" in
12720 yes|no) ;;
12721 *) as_fn_error $? "bad value ${enableval} for test-coverage option" "$LINENO" 5 ;;
12722 esac
12723 else
12724 enableval=no
12725 fi
12726
12727 enable_coverage=$enableval
12728
12729 if test "${enable_coverage}" = yes; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fprofile-arcs" >&5
12731 $as_echo_n "checking whether compiler accepts -fprofile-arcs... " >&6; }
12732
12733 ac_save_CFLAGS="$CFLAGS"
12734 CFLAGS="$CFLAGS -fprofile-arcs"
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737
12738 int
12739 main ()
12740 {
12741 int x;
12742 ;
12743 return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_compile "$LINENO"; then :
12747 COMPILER_FLAGS="$COMPILER_FLAGS -fprofile-arcs"
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12749 $as_echo "yes" >&6; }
12750 else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752 $as_echo "no" >&6; }
12753 fi
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12755 CFLAGS="$ac_save_CFLAGS"
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -ftest-coverage" >&5
12758 $as_echo_n "checking whether compiler accepts -ftest-coverage... " >&6; }
12759
12760 ac_save_CFLAGS="$CFLAGS"
12761 CFLAGS="$CFLAGS -ftest-coverage"
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764
12765 int
12766 main ()
12767 {
12768 int x;
12769 ;
12770 return 0;
12771 }
12772 _ACEOF
12773 if ac_fn_c_try_compile "$LINENO"; then :
12774 COMPILER_FLAGS="$COMPILER_FLAGS -ftest-coverage"
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12776 $as_echo "yes" >&6; }
12777 else
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12779 $as_echo "no" >&6; }
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12782 CFLAGS="$ac_save_CFLAGS"
12783
12784 COVERAGE_CFLAGS=$COMPILER_FLAGS
12785
12786 COVERAGE_LDFLAGS=$COMPILER_FLAGS
12787
12788 COMPILER_FLAGS=
12789 fi
12790
12791
12792 # Check whether --with-python was given.
12793 if test "${with_python+set}" = set; then :
12794 withval=$with_python;
12795 else
12796 with_python=yes
12797 fi
12798
12799
12800 PYTHON_VERSION=
12801 PYTHON_INCLUDES=
12802 PYTHON_SITE_PACKAGES=
12803 PYTHON_TESTS=
12804 pythondir=
12805 if test "$with_python" != "no" ; then
12806 if test "$with_python" = "yes" ; then
12807 with_python=""
12808 fi
12809 if test -x "$with_python/bin/python"
12810 then
12811 echo Found python in $with_python/bin/python
12812 PYTHON="$with_python/bin/python"
12813 else
12814 if test -x "$with_python"
12815 then
12816 echo Found python in $with_python
12817 PYTHON="$with_python"
12818 else
12819 if test -x "$PYTHON"
12820 then
12821 echo Found python in environment PYTHON=$PYTHON
12822 with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
12823 else
12824 # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
12825 set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827 $as_echo_n "checking for $ac_word... " >&6; }
12828 if ${ac_cv_path_PYTHON+:} false; then :
12829 $as_echo_n "(cached) " >&6
12830 else
12831 case $PYTHON in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12838 do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847 done
12848 done
12849 IFS=$as_save_IFS
12850
12851 ;;
12852 esac
12853 fi
12854 PYTHON=$ac_cv_path_PYTHON
12855 if test -n "$PYTHON"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12857 $as_echo "$PYTHON" >&6; }
12858 else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860 $as_echo "no" >&6; }
12861 fi
12862
12863
12864 fi
12865 fi
12866 fi
12867 if test "$PYTHON" != ""
12868 then
12869 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
12870 echo Found Python version $PYTHON_VERSION
12871 fi
12872 if test "$PYTHON_VERSION" != ""
12873 then
12874 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
12875 -d $with_python/lib/python$PYTHON_VERSION/site-packages
12876 then
12877 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
12878 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
12879 else
12880 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
12881 then
12882 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
12883 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
12884 else
12885 if test -r /usr/include/python$PYTHON_VERSION/Python.h
12886 then
12887 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
12888 PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages
12889 else
12890 echo could not find python$PYTHON_VERSION/Python.h
12891 fi
12892 fi
12893 if test ! -d "$PYTHON_SITE_PACKAGES"
12894 then
12895 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
12896 fi
12897 fi
12898 fi
12899 if test "$with_python" != ""
12900 then
12901 pythondir='$(PYTHON_SITE_PACKAGES)'
12902 else
12903 pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
12904 fi
12905 else
12906 PYTHON=
12907 fi
12908 if test "$PYTHON_INCLUDES" != ""; then
12909 WITH_PYTHON_TRUE=
12910 WITH_PYTHON_FALSE='#'
12911 else
12912 WITH_PYTHON_TRUE='#'
12913 WITH_PYTHON_FALSE=
12914 fi
12915
12916
12917
12918
12919
12920
12921 # Check whether --enable-introspection was given.
12922 if test "${enable_introspection+set}" = set; then :
12923 enableval=$enable_introspection;
12924 else
12925 enable_introspection=check
12926 fi
12927
12928
12929 if test "x$enable_introspection" != "xno" ; then
12930
12931 pkg_failed=no
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT_INTROSPECTION" >&5
12933 $as_echo_n "checking for GOBJECT_INTROSPECTION... " >&6; }
12934
12935 if test -n "$GOBJECT_INTROSPECTION_CFLAGS"; then
12936 pkg_cv_GOBJECT_INTROSPECTION_CFLAGS="$GOBJECT_INTROSPECTION_CFLAGS"
12937 elif test -n "$PKG_CONFIG"; then
12938 if test -n "$PKG_CONFIG" && \
12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= \$GOBJECT_INTROSPECTION_REQUIRED\""; } >&5
12940 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED") 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; }; then
12944 pkg_cv_GOBJECT_INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>/dev/null`
12945 else
12946 pkg_failed=yes
12947 fi
12948 else
12949 pkg_failed=untried
12950 fi
12951 if test -n "$GOBJECT_INTROSPECTION_LIBS"; then
12952 pkg_cv_GOBJECT_INTROSPECTION_LIBS="$GOBJECT_INTROSPECTION_LIBS"
12953 elif test -n "$PKG_CONFIG"; then
12954 if test -n "$PKG_CONFIG" && \
12955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= \$GOBJECT_INTROSPECTION_REQUIRED\""; } >&5
12956 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED") 2>&5
12957 ac_status=$?
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; }; then
12960 pkg_cv_GOBJECT_INTROSPECTION_LIBS=`$PKG_CONFIG --libs "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>/dev/null`
12961 else
12962 pkg_failed=yes
12963 fi
12964 else
12965 pkg_failed=untried
12966 fi
12967
12968
12969
12970 if test $pkg_failed = yes; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973
12974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12975 _pkg_short_errors_supported=yes
12976 else
12977 _pkg_short_errors_supported=no
12978 fi
12979 if test $_pkg_short_errors_supported = yes; then
12980 GOBJECT_INTROSPECTION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>&1`
12981 else
12982 GOBJECT_INTROSPECTION_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-introspection-1.0 >= $GOBJECT_INTROSPECTION_REQUIRED" 2>&1`
12983 fi
12984 # Put the nasty error message in config.log where it belongs
12985 echo "$GOBJECT_INTROSPECTION_PKG_ERRORS" >&5
12986
12987
12988 if test "x$enable_introspection" = "xcheck"; then
12989 enable_introspection=no
12990 else
12991 as_fn_error $? "gobject-introspection is not available" "$LINENO" 5
12992 fi
12993
12994 elif test $pkg_failed = untried; then
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996 $as_echo "no" >&6; }
12997
12998 if test "x$enable_introspection" = "xcheck"; then
12999 enable_introspection=no
13000 else
13001 as_fn_error $? "gobject-introspection is not available" "$LINENO" 5
13002 fi
13003
13004 else
13005 GOBJECT_INTROSPECTION_CFLAGS=$pkg_cv_GOBJECT_INTROSPECTION_CFLAGS
13006 GOBJECT_INTROSPECTION_LIBS=$pkg_cv_GOBJECT_INTROSPECTION_LIBS
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008 $as_echo "yes" >&6; }
13009 enable_introspection=yes
13010 fi
13011 if test "x$enable_introspection" = "xyes" ; then
13012
13013 $as_echo "#define WITH_GOBJECT_INTROSPECTION 1" >>confdefs.h
13014
13015
13016
13017 G_IR_SCANNER=$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)
13018
13019 G_IR_COMPILER=$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)
13020
13021 fi
13022 fi
13023 if test "x$enable_introspection" = "xyes"; then
13024 WITH_GOBJECT_INTROSPECTION_TRUE=
13025 WITH_GOBJECT_INTROSPECTION_FALSE='#'
13026 else
13027 WITH_GOBJECT_INTROSPECTION_TRUE='#'
13028 WITH_GOBJECT_INTROSPECTION_FALSE=
13029 fi
13030
13031
13032 # Check whether --enable-vala was given.
13033 if test "${enable_vala+set}" = set; then :
13034 enableval=$enable_vala;
13035 else
13036 enable_vala=check
13037 fi
13038
13039 if test "x$enable_introspection" = "xyes" ; then
13040 if test "x$enable_vala" != "xno" ; then
13041 # Extract the first word of "vapigen", so it can be a program name with args.
13042 set dummy vapigen; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if ${ac_cv_path_VAPIGEN+:} false; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 case $VAPIGEN in
13049 [\\/]* | ?:[\\/]*)
13050 ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
13051 ;;
13052 *)
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13060 ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062 break 2
13063 fi
13064 done
13065 done
13066 IFS=$as_save_IFS
13067
13068 test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no"
13069 ;;
13070 esac
13071 fi
13072 VAPIGEN=$ac_cv_path_VAPIGEN
13073 if test -n "$VAPIGEN"; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
13075 $as_echo "$VAPIGEN" >&6; }
13076 else
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13078 $as_echo "no" >&6; }
13079 fi
13080
13081
13082 if test "x$VAPIGEN" == "xno"; then
13083 if test "x$enable_vala" == "xcheck" ; then
13084 enable_vala=no
13085 else
13086 as_fn_error $? "Cannot find the \"vapigen\" binary in your PATH" "$LINENO" 5
13087 fi
13088 fi
13089
13090 fi
13091 if test "x$enable_vala" != "xno" ; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN support for --metadatadir" >&5
13093 $as_echo_n "checking $VAPIGEN support for --metadatadir... " >&6; }
13094 $VAPIGEN --help | grep metadatadir 1>/dev/null 2>&1
13095 if test $? != 0 ; then
13096 if test "x$enable_vala" == "xcheck" ; then
13097 enable_vala=no
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13099 $as_echo "no" >&6; }
13100 else
13101 as_fn_error $? "\"vapigen\" binary in your PATH is too old (< 0.13)" "$LINENO" 5
13102 fi
13103 else
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13105 $as_echo "no" >&6; }
13106 fi
13107 fi
13108 if test "x$enable_vala" = "xcheck" ; then
13109 enable_vala=yes
13110 fi
13111 fi
13112 if test "x$enable_vala" = "xyes"; then
13113 WITH_VALA_TRUE=
13114 WITH_VALA_FALSE='#'
13115 else
13116 WITH_VALA_TRUE='#'
13117 WITH_VALA_FALSE=
13118 fi
13119
13120
13121 ac_config_files="$ac_config_files Makefile libvirt-glib/Makefile libvirt-gconfig/Makefile libvirt-gconfig/tests/Makefile libvirt-gobject/Makefile examples/Makefile python/Makefile vapi/Makefile docs/Makefile docs/libvirt-glib/Makefile docs/libvirt-gobject/Makefile docs/libvirt-gconfig/Makefile libvirt-glib-1.0.pc libvirt-gconfig-1.0.pc libvirt-gobject-1.0.pc libvirt-glib.spec mingw32-libvirt-glib.spec"
13122
13123 cat >confcache <<\_ACEOF
13124 # This file is a shell script that caches the results of configure
13125 # tests run on this system so they can be shared between configure
13126 # scripts and configure runs, see configure's option --config-cache.
13127 # It is not useful on other systems. If it contains results you don't
13128 # want to keep, you may remove or edit it.
13129 #
13130 # config.status only pays attention to the cache file if you give it
13131 # the --recheck option to rerun configure.
13132 #
13133 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13134 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13135 # following values.
13136
13137 _ACEOF
13138
13139 # The following way of writing the cache mishandles newlines in values,
13140 # but we know of no workaround that is simple, portable, and efficient.
13141 # So, we kill variables containing newlines.
13142 # Ultrix sh set writes to stderr and can't be redirected directly,
13143 # and sets the high bit in the cache file unless we assign to the vars.
13144 (
13145 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13146 eval ac_val=\$$ac_var
13147 case $ac_val in #(
13148 *${as_nl}*)
13149 case $ac_var in #(
13150 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13151 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13152 esac
13153 case $ac_var in #(
13154 _ | IFS | as_nl) ;; #(
13155 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13156 *) { eval $ac_var=; unset $ac_var;} ;;
13157 esac ;;
13158 esac
13159 done
13160
13161 (set) 2>&1 |
13162 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13163 *${as_nl}ac_space=\ *)
13164 # `set' does not quote correctly, so add quotes: double-quote
13165 # substitution turns \\\\ into \\, and sed turns \\ into \.
13166 sed -n \
13167 "s/'/'\\\\''/g;
13168 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13169 ;; #(
13170 *)
13171 # `set' quotes correctly as required by POSIX, so do not add quotes.
13172 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13173 ;;
13174 esac |
13175 sort
13176 ) |
13177 sed '
13178 /^ac_cv_env_/b end
13179 t clear
13180 :clear
13181 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13182 t end
13183 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13184 :end' >>confcache
13185 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13186 if test -w "$cache_file"; then
13187 if test "x$cache_file" != "x/dev/null"; then
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13189 $as_echo "$as_me: updating cache $cache_file" >&6;}
13190 if test ! -f "$cache_file" || test -h "$cache_file"; then
13191 cat confcache >"$cache_file"
13192 else
13193 case $cache_file in #(
13194 */* | ?:*)
13195 mv -f confcache "$cache_file"$$ &&
13196 mv -f "$cache_file"$$ "$cache_file" ;; #(
13197 *)
13198 mv -f confcache "$cache_file" ;;
13199 esac
13200 fi
13201 fi
13202 else
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13204 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13205 fi
13206 fi
13207 rm -f confcache
13208
13209 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13210 # Let make expand exec_prefix.
13211 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13212
13213 DEFS=-DHAVE_CONFIG_H
13214
13215 ac_libobjs=
13216 ac_ltlibobjs=
13217 U=
13218 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13219 # 1. Remove the extension, and $U if already installed.
13220 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13221 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13222 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13223 # will be set to the directory where LIBOBJS objects are built.
13224 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13225 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13226 done
13227 LIBOBJS=$ac_libobjs
13228
13229 LTLIBOBJS=$ac_ltlibobjs
13230
13231
13232 if test -n "$EXEEXT"; then
13233 am__EXEEXT_TRUE=
13234 am__EXEEXT_FALSE='#'
13235 else
13236 am__EXEEXT_TRUE='#'
13237 am__EXEEXT_FALSE=
13238 fi
13239
13240 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13241 as_fn_error $? "conditional \"AMDEP\" was never defined.
13242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13243 fi
13244 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13245 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13247 fi
13248 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13249 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13251 fi
13252 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13253 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13255 fi
13256 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13257 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13259 fi
13260 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13261 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13263 fi
13264 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13265 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13267 fi
13268 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
13269 as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
13270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13271 fi
13272 if test -z "${WITH_GOBJECT_INTROSPECTION_TRUE}" && test -z "${WITH_GOBJECT_INTROSPECTION_FALSE}"; then
13273 as_fn_error $? "conditional \"WITH_GOBJECT_INTROSPECTION\" was never defined.
13274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13275 fi
13276 if test -z "${WITH_VALA_TRUE}" && test -z "${WITH_VALA_FALSE}"; then
13277 as_fn_error $? "conditional \"WITH_VALA\" was never defined.
13278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13279 fi
13280
13281 : "${CONFIG_STATUS=./config.status}"
13282 ac_write_fail=0
13283 ac_clean_files_save=$ac_clean_files
13284 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13286 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13287 as_write_fail=0
13288 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13289 #! $SHELL
13290 # Generated by $as_me.
13291 # Run this file to recreate the current configuration.
13292 # Compiler output produced by configure, useful for debugging
13293 # configure, is in config.log if it exists.
13294
13295 debug=false
13296 ac_cs_recheck=false
13297 ac_cs_silent=false
13298
13299 SHELL=\${CONFIG_SHELL-$SHELL}
13300 export SHELL
13301 _ASEOF
13302 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13303 ## -------------------- ##
13304 ## M4sh Initialization. ##
13305 ## -------------------- ##
13306
13307 # Be more Bourne compatible
13308 DUALCASE=1; export DUALCASE # for MKS sh
13309 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13310 emulate sh
13311 NULLCMD=:
13312 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13313 # is contrary to our usage. Disable this feature.
13314 alias -g '${1+"$@"}'='"$@"'
13315 setopt NO_GLOB_SUBST
13316 else
13317 case `(set -o) 2>/dev/null` in #(
13318 *posix*) :
13319 set -o posix ;; #(
13320 *) :
13321 ;;
13322 esac
13323 fi
13324
13325
13326 as_nl='
13327 '
13328 export as_nl
13329 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13330 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13331 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13332 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13333 # Prefer a ksh shell builtin over an external printf program on Solaris,
13334 # but without wasting forks for bash or zsh.
13335 if test -z "$BASH_VERSION$ZSH_VERSION" \
13336 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13337 as_echo='print -r --'
13338 as_echo_n='print -rn --'
13339 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13340 as_echo='printf %s\n'
13341 as_echo_n='printf %s'
13342 else
13343 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13344 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13345 as_echo_n='/usr/ucb/echo -n'
13346 else
13347 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13348 as_echo_n_body='eval
13349 arg=$1;
13350 case $arg in #(
13351 *"$as_nl"*)
13352 expr "X$arg" : "X\\(.*\\)$as_nl";
13353 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13354 esac;
13355 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13356 '
13357 export as_echo_n_body
13358 as_echo_n='sh -c $as_echo_n_body as_echo'
13359 fi
13360 export as_echo_body
13361 as_echo='sh -c $as_echo_body as_echo'
13362 fi
13363
13364 # The user is always right.
13365 if test "${PATH_SEPARATOR+set}" != set; then
13366 PATH_SEPARATOR=:
13367 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13368 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13369 PATH_SEPARATOR=';'
13370 }
13371 fi
13372
13373
13374 # IFS
13375 # We need space, tab and new line, in precisely that order. Quoting is
13376 # there to prevent editors from complaining about space-tab.
13377 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13378 # splitting by setting IFS to empty value.)
13379 IFS=" "" $as_nl"
13380
13381 # Find who we are. Look in the path if we contain no directory separator.
13382 as_myself=
13383 case $0 in #((
13384 *[\\/]* ) as_myself=$0 ;;
13385 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386 for as_dir in $PATH
13387 do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13391 done
13392 IFS=$as_save_IFS
13393
13394 ;;
13395 esac
13396 # We did not find ourselves, most probably we were run as `sh COMMAND'
13397 # in which case we are not to be found in the path.
13398 if test "x$as_myself" = x; then
13399 as_myself=$0
13400 fi
13401 if test ! -f "$as_myself"; then
13402 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13403 exit 1
13404 fi
13405
13406 # Unset variables that we do not need and which cause bugs (e.g. in
13407 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13408 # suppresses any "Segmentation fault" message there. '((' could
13409 # trigger a bug in pdksh 5.2.14.
13410 for as_var in BASH_ENV ENV MAIL MAILPATH
13411 do eval test x\${$as_var+set} = xset \
13412 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13413 done
13414 PS1='$ '
13415 PS2='> '
13416 PS4='+ '
13417
13418 # NLS nuisances.
13419 LC_ALL=C
13420 export LC_ALL
13421 LANGUAGE=C
13422 export LANGUAGE
13423
13424 # CDPATH.
13425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13426
13427
13428 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13429 # ----------------------------------------
13430 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13431 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13432 # script with STATUS, using 1 if that was 0.
13433 as_fn_error ()
13434 {
13435 as_status=$1; test $as_status -eq 0 && as_status=1
13436 if test "$4"; then
13437 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13438 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13439 fi
13440 $as_echo "$as_me: error: $2" >&2
13441 as_fn_exit $as_status
13442 } # as_fn_error
13443
13444
13445 # as_fn_set_status STATUS
13446 # -----------------------
13447 # Set $? to STATUS, without forking.
13448 as_fn_set_status ()
13449 {
13450 return $1
13451 } # as_fn_set_status
13452
13453 # as_fn_exit STATUS
13454 # -----------------
13455 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13456 as_fn_exit ()
13457 {
13458 set +e
13459 as_fn_set_status $1
13460 exit $1
13461 } # as_fn_exit
13462
13463 # as_fn_unset VAR
13464 # ---------------
13465 # Portably unset VAR.
13466 as_fn_unset ()
13467 {
13468 { eval $1=; unset $1;}
13469 }
13470 as_unset=as_fn_unset
13471 # as_fn_append VAR VALUE
13472 # ----------------------
13473 # Append the text in VALUE to the end of the definition contained in VAR. Take
13474 # advantage of any shell optimizations that allow amortized linear growth over
13475 # repeated appends, instead of the typical quadratic growth present in naive
13476 # implementations.
13477 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13478 eval 'as_fn_append ()
13479 {
13480 eval $1+=\$2
13481 }'
13482 else
13483 as_fn_append ()
13484 {
13485 eval $1=\$$1\$2
13486 }
13487 fi # as_fn_append
13488
13489 # as_fn_arith ARG...
13490 # ------------------
13491 # Perform arithmetic evaluation on the ARGs, and store the result in the
13492 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13493 # must be portable across $(()) and expr.
13494 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13495 eval 'as_fn_arith ()
13496 {
13497 as_val=$(( $* ))
13498 }'
13499 else
13500 as_fn_arith ()
13501 {
13502 as_val=`expr "$@" || test $? -eq 1`
13503 }
13504 fi # as_fn_arith
13505
13506
13507 if expr a : '\(a\)' >/dev/null 2>&1 &&
13508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13509 as_expr=expr
13510 else
13511 as_expr=false
13512 fi
13513
13514 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13515 as_basename=basename
13516 else
13517 as_basename=false
13518 fi
13519
13520 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13521 as_dirname=dirname
13522 else
13523 as_dirname=false
13524 fi
13525
13526 as_me=`$as_basename -- "$0" ||
13527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13528 X"$0" : 'X\(//\)$' \| \
13529 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13530 $as_echo X/"$0" |
13531 sed '/^.*\/\([^/][^/]*\)\/*$/{
13532 s//\1/
13533 q
13534 }
13535 /^X\/\(\/\/\)$/{
13536 s//\1/
13537 q
13538 }
13539 /^X\/\(\/\).*/{
13540 s//\1/
13541 q
13542 }
13543 s/.*/./; q'`
13544
13545 # Avoid depending upon Character Ranges.
13546 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13547 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13548 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13549 as_cr_digits='0123456789'
13550 as_cr_alnum=$as_cr_Letters$as_cr_digits
13551
13552 ECHO_C= ECHO_N= ECHO_T=
13553 case `echo -n x` in #(((((
13554 -n*)
13555 case `echo 'xy\c'` in
13556 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13557 xy) ECHO_C='\c';;
13558 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13559 ECHO_T=' ';;
13560 esac;;
13561 *)
13562 ECHO_N='-n';;
13563 esac
13564
13565 rm -f conf$$ conf$$.exe conf$$.file
13566 if test -d conf$$.dir; then
13567 rm -f conf$$.dir/conf$$.file
13568 else
13569 rm -f conf$$.dir
13570 mkdir conf$$.dir 2>/dev/null
13571 fi
13572 if (echo >conf$$.file) 2>/dev/null; then
13573 if ln -s conf$$.file conf$$ 2>/dev/null; then
13574 as_ln_s='ln -s'
13575 # ... but there are two gotchas:
13576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13578 # In both cases, we have to default to `cp -p'.
13579 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13580 as_ln_s='cp -p'
13581 elif ln conf$$.file conf$$ 2>/dev/null; then
13582 as_ln_s=ln
13583 else
13584 as_ln_s='cp -p'
13585 fi
13586 else
13587 as_ln_s='cp -p'
13588 fi
13589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13590 rmdir conf$$.dir 2>/dev/null
13591
13592
13593 # as_fn_mkdir_p
13594 # -------------
13595 # Create "$as_dir" as a directory, including parents if necessary.
13596 as_fn_mkdir_p ()
13597 {
13598
13599 case $as_dir in #(
13600 -*) as_dir=./$as_dir;;
13601 esac
13602 test -d "$as_dir" || eval $as_mkdir_p || {
13603 as_dirs=
13604 while :; do
13605 case $as_dir in #(
13606 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13607 *) as_qdir=$as_dir;;
13608 esac
13609 as_dirs="'$as_qdir' $as_dirs"
13610 as_dir=`$as_dirname -- "$as_dir" ||
13611 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13612 X"$as_dir" : 'X\(//\)[^/]' \| \
13613 X"$as_dir" : 'X\(//\)$' \| \
13614 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13615 $as_echo X"$as_dir" |
13616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13617 s//\1/
13618 q
13619 }
13620 /^X\(\/\/\)[^/].*/{
13621 s//\1/
13622 q
13623 }
13624 /^X\(\/\/\)$/{
13625 s//\1/
13626 q
13627 }
13628 /^X\(\/\).*/{
13629 s//\1/
13630 q
13631 }
13632 s/.*/./; q'`
13633 test -d "$as_dir" && break
13634 done
13635 test -z "$as_dirs" || eval "mkdir $as_dirs"
13636 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13637
13638
13639 } # as_fn_mkdir_p
13640 if mkdir -p . 2>/dev/null; then
13641 as_mkdir_p='mkdir -p "$as_dir"'
13642 else
13643 test -d ./-p && rmdir ./-p
13644 as_mkdir_p=false
13645 fi
13646
13647 if test -x / >/dev/null 2>&1; then
13648 as_test_x='test -x'
13649 else
13650 if ls -dL / >/dev/null 2>&1; then
13651 as_ls_L_option=L
13652 else
13653 as_ls_L_option=
13654 fi
13655 as_test_x='
13656 eval sh -c '\''
13657 if test -d "$1"; then
13658 test -d "$1/.";
13659 else
13660 case $1 in #(
13661 -*)set "./$1";;
13662 esac;
13663 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13664 ???[sx]*):;;*)false;;esac;fi
13665 '\'' sh
13666 '
13667 fi
13668 as_executable_p=$as_test_x
13669
13670 # Sed expression to map a string onto a valid CPP name.
13671 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13672
13673 # Sed expression to map a string onto a valid variable name.
13674 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13675
13676
13677 exec 6>&1
13678 ## ----------------------------------- ##
13679 ## Main body of $CONFIG_STATUS script. ##
13680 ## ----------------------------------- ##
13681 _ASEOF
13682 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13683
13684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13685 # Save the log message, to keep $0 and so on meaningful, and to
13686 # report actual input values of CONFIG_FILES etc. instead of their
13687 # values after options handling.
13688 ac_log="
13689 This file was extended by libvirt-glib $as_me 0.0.1, which was
13690 generated by GNU Autoconf 2.68. Invocation command line was
13691
13692 CONFIG_FILES = $CONFIG_FILES
13693 CONFIG_HEADERS = $CONFIG_HEADERS
13694 CONFIG_LINKS = $CONFIG_LINKS
13695 CONFIG_COMMANDS = $CONFIG_COMMANDS
13696 $ $0 $@
13697
13698 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13699 "
13700
13701 _ACEOF
13702
13703 case $ac_config_files in *"
13704 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13705 esac
13706
13707 case $ac_config_headers in *"
13708 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13709 esac
13710
13711
13712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13713 # Files that config.status was made for.
13714 config_files="$ac_config_files"
13715 config_headers="$ac_config_headers"
13716 config_commands="$ac_config_commands"
13717
13718 _ACEOF
13719
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721 ac_cs_usage="\
13722 \`$as_me' instantiates files and other configuration actions
13723 from templates according to the current configuration. Unless the files
13724 and actions are specified as TAGs, all are instantiated by default.
13725
13726 Usage: $0 [OPTION]... [TAG]...
13727
13728 -h, --help print this help, then exit
13729 -V, --version print version number and configuration settings, then exit
13730 --config print configuration, then exit
13731 -q, --quiet, --silent
13732 do not print progress messages
13733 -d, --debug don't remove temporary files
13734 --recheck update $as_me by reconfiguring in the same conditions
13735 --file=FILE[:TEMPLATE]
13736 instantiate the configuration file FILE
13737 --header=FILE[:TEMPLATE]
13738 instantiate the configuration header FILE
13739
13740 Configuration files:
13741 $config_files
13742
13743 Configuration headers:
13744 $config_headers
13745
13746 Configuration commands:
13747 $config_commands
13748
13749 Report bugs to the package provider."
13750
13751 _ACEOF
13752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13753 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13754 ac_cs_version="\\
13755 libvirt-glib config.status 0.0.1
13756 configured by $0, generated by GNU Autoconf 2.68,
13757 with options \\"\$ac_cs_config\\"
13758
13759 Copyright (C) 2010 Free Software Foundation, Inc.
13760 This config.status script is free software; the Free Software Foundation
13761 gives unlimited permission to copy, distribute and modify it."
13762
13763 ac_pwd='$ac_pwd'
13764 srcdir='$srcdir'
13765 INSTALL='$INSTALL'
13766 MKDIR_P='$MKDIR_P'
13767 AWK='$AWK'
13768 test -n "\$AWK" || AWK=awk
13769 _ACEOF
13770
13771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13772 # The default lists apply if the user does not specify any file.
13773 ac_need_defaults=:
13774 while test $# != 0
13775 do
13776 case $1 in
13777 --*=?*)
13778 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13779 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13780 ac_shift=:
13781 ;;
13782 --*=)
13783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13784 ac_optarg=
13785 ac_shift=:
13786 ;;
13787 *)
13788 ac_option=$1
13789 ac_optarg=$2
13790 ac_shift=shift
13791 ;;
13792 esac
13793
13794 case $ac_option in
13795 # Handling of the options.
13796 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13797 ac_cs_recheck=: ;;
13798 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13799 $as_echo "$ac_cs_version"; exit ;;
13800 --config | --confi | --conf | --con | --co | --c )
13801 $as_echo "$ac_cs_config"; exit ;;
13802 --debug | --debu | --deb | --de | --d | -d )
13803 debug=: ;;
13804 --file | --fil | --fi | --f )
13805 $ac_shift
13806 case $ac_optarg in
13807 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13808 '') as_fn_error $? "missing file argument" ;;
13809 esac
13810 as_fn_append CONFIG_FILES " '$ac_optarg'"
13811 ac_need_defaults=false;;
13812 --header | --heade | --head | --hea )
13813 $ac_shift
13814 case $ac_optarg in
13815 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13816 esac
13817 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13818 ac_need_defaults=false;;
13819 --he | --h)
13820 # Conflict between --help and --header
13821 as_fn_error $? "ambiguous option: \`$1'
13822 Try \`$0 --help' for more information.";;
13823 --help | --hel | -h )
13824 $as_echo "$ac_cs_usage"; exit ;;
13825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13827 ac_cs_silent=: ;;
13828
13829 # This is an error.
13830 -*) as_fn_error $? "unrecognized option: \`$1'
13831 Try \`$0 --help' for more information." ;;
13832
13833 *) as_fn_append ac_config_targets " $1"
13834 ac_need_defaults=false ;;
13835
13836 esac
13837 shift
13838 done
13839
13840 ac_configure_extra_args=
13841
13842 if $ac_cs_silent; then
13843 exec 6>/dev/null
13844 ac_configure_extra_args="$ac_configure_extra_args --silent"
13845 fi
13846
13847 _ACEOF
13848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13849 if \$ac_cs_recheck; then
13850 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13851 shift
13852 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13853 CONFIG_SHELL='$SHELL'
13854 export CONFIG_SHELL
13855 exec "\$@"
13856 fi
13857
13858 _ACEOF
13859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13860 exec 5>>config.log
13861 {
13862 echo
13863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13864 ## Running $as_me. ##
13865 _ASBOX
13866 $as_echo "$ac_log"
13867 } >&5
13868
13869 _ACEOF
13870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13871 #
13872 # INIT-COMMANDS
13873 #
13874 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13875
13876
13877 # The HP-UX ksh and POSIX shell print the target directory to stdout
13878 # if CDPATH is set.
13879 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13880
13881 sed_quote_subst='$sed_quote_subst'
13882 double_quote_subst='$double_quote_subst'
13883 delay_variable_subst='$delay_variable_subst'
13884 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13885 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13886 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13887 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13888 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13889 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13890 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13891 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13892 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13893 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13894 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13895 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13896 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13897 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13898 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13899 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13900 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13901 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13902 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13903 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13904 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13905 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13906 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13907 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13908 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13909 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13910 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13911 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13912 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13913 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13914 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13915 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13916 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13917 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13918 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13919 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13920 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13921 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13922 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13923 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13924 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13925 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13926 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13927 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13928 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13929 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13930 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13931 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13932 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13933 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13934 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13935 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13936 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13937 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13938 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13939 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13940 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13941 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13942 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13943 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13944 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13945 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13946 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13947 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13948 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13949 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13950 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13951 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13952 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13953 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13954 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13955 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13956 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13957 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13958 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13959 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13960 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13961 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13962 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13963 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13964 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13965 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13966 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13967 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13968 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13969 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13970 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13971 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13972 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13973 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13974 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13975 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13976 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13977 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13978 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13979 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13980 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13981 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13982 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13983 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13984 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13985 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13986 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13987 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13988 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13989 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13990 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13991 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13992 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13993 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13994 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13995 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13996 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13997 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13998 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13999 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14000 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14001 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14002 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14003 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14004 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14005 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14006 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14007 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14008 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14009 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14010 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14011 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14012 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14013 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14014 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14015
14016 LTCC='$LTCC'
14017 LTCFLAGS='$LTCFLAGS'
14018 compiler='$compiler_DEFAULT'
14019
14020 # A function that is used when there is no print builtin or printf.
14021 func_fallback_echo ()
14022 {
14023 eval 'cat <<_LTECHO_EOF
14024 \$1
14025 _LTECHO_EOF'
14026 }
14027
14028 # Quote evaled strings.
14029 for var in AS \
14030 DLLTOOL \
14031 OBJDUMP \
14032 SHELL \
14033 ECHO \
14034 SED \
14035 GREP \
14036 EGREP \
14037 FGREP \
14038 LD \
14039 NM \
14040 LN_S \
14041 lt_SP2NL \
14042 lt_NL2SP \
14043 reload_flag \
14044 deplibs_check_method \
14045 file_magic_cmd \
14046 file_magic_glob \
14047 want_nocaseglob \
14048 sharedlib_from_linklib_cmd \
14049 AR \
14050 AR_FLAGS \
14051 archiver_list_spec \
14052 STRIP \
14053 RANLIB \
14054 CC \
14055 CFLAGS \
14056 compiler \
14057 lt_cv_sys_global_symbol_pipe \
14058 lt_cv_sys_global_symbol_to_cdecl \
14059 lt_cv_sys_global_symbol_to_c_name_address \
14060 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14061 nm_file_list_spec \
14062 lt_prog_compiler_no_builtin_flag \
14063 lt_prog_compiler_pic \
14064 lt_prog_compiler_wl \
14065 lt_prog_compiler_static \
14066 lt_cv_prog_compiler_c_o \
14067 need_locks \
14068 MANIFEST_TOOL \
14069 DSYMUTIL \
14070 NMEDIT \
14071 LIPO \
14072 OTOOL \
14073 OTOOL64 \
14074 shrext_cmds \
14075 export_dynamic_flag_spec \
14076 whole_archive_flag_spec \
14077 compiler_needs_object \
14078 with_gnu_ld \
14079 allow_undefined_flag \
14080 no_undefined_flag \
14081 hardcode_libdir_flag_spec \
14082 hardcode_libdir_flag_spec_ld \
14083 hardcode_libdir_separator \
14084 exclude_expsyms \
14085 include_expsyms \
14086 file_list_spec \
14087 variables_saved_for_relink \
14088 libname_spec \
14089 library_names_spec \
14090 soname_spec \
14091 install_override_mode \
14092 finish_eval \
14093 old_striplib \
14094 striplib; do
14095 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14096 *[\\\\\\\`\\"\\\$]*)
14097 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14098 ;;
14099 *)
14100 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14101 ;;
14102 esac
14103 done
14104
14105 # Double-quote double-evaled strings.
14106 for var in reload_cmds \
14107 old_postinstall_cmds \
14108 old_postuninstall_cmds \
14109 old_archive_cmds \
14110 extract_expsyms_cmds \
14111 old_archive_from_new_cmds \
14112 old_archive_from_expsyms_cmds \
14113 archive_cmds \
14114 archive_expsym_cmds \
14115 module_cmds \
14116 module_expsym_cmds \
14117 export_symbols_cmds \
14118 prelink_cmds \
14119 postlink_cmds \
14120 postinstall_cmds \
14121 postuninstall_cmds \
14122 finish_cmds \
14123 sys_lib_search_path_spec \
14124 sys_lib_dlsearch_path_spec; do
14125 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14126 *[\\\\\\\`\\"\\\$]*)
14127 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14128 ;;
14129 *)
14130 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14131 ;;
14132 esac
14133 done
14134
14135 ac_aux_dir='$ac_aux_dir'
14136 xsi_shell='$xsi_shell'
14137 lt_shell_append='$lt_shell_append'
14138
14139 # See if we are running on zsh, and set the options which allow our
14140 # commands through without removal of \ escapes INIT.
14141 if test -n "\${ZSH_VERSION+set}" ; then
14142 setopt NO_GLOB_SUBST
14143 fi
14144
14145
14146 PACKAGE='$PACKAGE'
14147 VERSION='$VERSION'
14148 TIMESTAMP='$TIMESTAMP'
14149 RM='$RM'
14150 ofile='$ofile'
14151
14152
14153
14154
14155 _ACEOF
14156
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158
14159 # Handling of arguments.
14160 for ac_config_target in $ac_config_targets
14161 do
14162 case $ac_config_target in
14163 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14164 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14165 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14166 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14167 "libvirt-glib/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-glib/Makefile" ;;
14168 "libvirt-gconfig/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig/Makefile" ;;
14169 "libvirt-gconfig/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig/tests/Makefile" ;;
14170 "libvirt-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES libvirt-gobject/Makefile" ;;
14171 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14172 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
14173 "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;;
14174 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14175 "docs/libvirt-glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-glib/Makefile" ;;
14176 "docs/libvirt-gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gobject/Makefile" ;;
14177 "docs/libvirt-gconfig/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libvirt-gconfig/Makefile" ;;
14178 "libvirt-glib-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-glib-1.0.pc" ;;
14179 "libvirt-gconfig-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gconfig-1.0.pc" ;;
14180 "libvirt-gobject-1.0.pc") CONFIG_FILES="$CONFIG_FILES libvirt-gobject-1.0.pc" ;;
14181 "libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES libvirt-glib.spec" ;;
14182 "mingw32-libvirt-glib.spec") CONFIG_FILES="$CONFIG_FILES mingw32-libvirt-glib.spec" ;;
14183
14184 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14185 esac
14186 done
14187
14188
14189 # If the user did not use the arguments to specify the items to instantiate,
14190 # then the envvar interface is used. Set only those that are not.
14191 # We use the long form for the default assignment because of an extremely
14192 # bizarre bug on SunOS 4.1.3.
14193 if $ac_need_defaults; then
14194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14197 fi
14198
14199 # Have a temporary directory for convenience. Make it in the build tree
14200 # simply because there is no reason against having it here, and in addition,
14201 # creating and moving files from /tmp can sometimes cause problems.
14202 # Hook for its removal unless debugging.
14203 # Note that there is a small window in which the directory will not be cleaned:
14204 # after its creation but before its name has been assigned to `$tmp'.
14205 $debug ||
14206 {
14207 tmp= ac_tmp=
14208 trap 'exit_status=$?
14209 : "${ac_tmp:=$tmp}"
14210 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14211 ' 0
14212 trap 'as_fn_exit 1' 1 2 13 15
14213 }
14214 # Create a (secure) tmp directory for tmp files.
14215
14216 {
14217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14218 test -d "$tmp"
14219 } ||
14220 {
14221 tmp=./conf$$-$RANDOM
14222 (umask 077 && mkdir "$tmp")
14223 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14224 ac_tmp=$tmp
14225
14226 # Set up the scripts for CONFIG_FILES section.
14227 # No need to generate them if there are no CONFIG_FILES.
14228 # This happens for instance with `./config.status config.h'.
14229 if test -n "$CONFIG_FILES"; then
14230
14231
14232 ac_cr=`echo X | tr X '\015'`
14233 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14234 # But we know of no other shell where ac_cr would be empty at this
14235 # point, so we can use a bashism as a fallback.
14236 if test "x$ac_cr" = x; then
14237 eval ac_cr=\$\'\\r\'
14238 fi
14239 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14240 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14241 ac_cs_awk_cr='\\r'
14242 else
14243 ac_cs_awk_cr=$ac_cr
14244 fi
14245
14246 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14247 _ACEOF
14248
14249
14250 {
14251 echo "cat >conf$$subs.awk <<_ACEOF" &&
14252 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14253 echo "_ACEOF"
14254 } >conf$$subs.sh ||
14255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14257 ac_delim='%!_!# '
14258 for ac_last_try in false false false false false :; do
14259 . ./conf$$subs.sh ||
14260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14261
14262 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14263 if test $ac_delim_n = $ac_delim_num; then
14264 break
14265 elif $ac_last_try; then
14266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14267 else
14268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14269 fi
14270 done
14271 rm -f conf$$subs.sh
14272
14273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14274 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14275 _ACEOF
14276 sed -n '
14277 h
14278 s/^/S["/; s/!.*/"]=/
14279 p
14280 g
14281 s/^[^!]*!//
14282 :repl
14283 t repl
14284 s/'"$ac_delim"'$//
14285 t delim
14286 :nl
14287 h
14288 s/\(.\{148\}\)..*/\1/
14289 t more1
14290 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14291 p
14292 n
14293 b repl
14294 :more1
14295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14296 p
14297 g
14298 s/.\{148\}//
14299 t nl
14300 :delim
14301 h
14302 s/\(.\{148\}\)..*/\1/
14303 t more2
14304 s/["\\]/\\&/g; s/^/"/; s/$/"/
14305 p
14306 b
14307 :more2
14308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14309 p
14310 g
14311 s/.\{148\}//
14312 t delim
14313 ' <conf$$subs.awk | sed '
14314 /^[^""]/{
14315 N
14316 s/\n//
14317 }
14318 ' >>$CONFIG_STATUS || ac_write_fail=1
14319 rm -f conf$$subs.awk
14320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14321 _ACAWK
14322 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14323 for (key in S) S_is_set[key] = 1
14324 FS = ""
14325
14326 }
14327 {
14328 line = $ 0
14329 nfields = split(line, field, "@")
14330 substed = 0
14331 len = length(field[1])
14332 for (i = 2; i < nfields; i++) {
14333 key = field[i]
14334 keylen = length(key)
14335 if (S_is_set[key]) {
14336 value = S[key]
14337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14338 len += length(value) + length(field[++i])
14339 substed = 1
14340 } else
14341 len += 1 + keylen
14342 }
14343
14344 print line
14345 }
14346
14347 _ACAWK
14348 _ACEOF
14349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14350 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14352 else
14353 cat
14354 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14355 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14356 _ACEOF
14357
14358 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14359 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14360 # trailing colons and then remove the whole line if VPATH becomes empty
14361 # (actually we leave an empty line to preserve line numbers).
14362 if test "x$srcdir" = x.; then
14363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14364 h
14365 s///
14366 s/^/:/
14367 s/[ ]*$/:/
14368 s/:\$(srcdir):/:/g
14369 s/:\${srcdir}:/:/g
14370 s/:@srcdir@:/:/g
14371 s/^:*//
14372 s/:*$//
14373 x
14374 s/\(=[ ]*\).*/\1/
14375 G
14376 s/\n//
14377 s/^[^=]*=[ ]*$//
14378 }'
14379 fi
14380
14381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14382 fi # test -n "$CONFIG_FILES"
14383
14384 # Set up the scripts for CONFIG_HEADERS section.
14385 # No need to generate them if there are no CONFIG_HEADERS.
14386 # This happens for instance with `./config.status Makefile'.
14387 if test -n "$CONFIG_HEADERS"; then
14388 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14389 BEGIN {
14390 _ACEOF
14391
14392 # Transform confdefs.h into an awk script `defines.awk', embedded as
14393 # here-document in config.status, that substitutes the proper values into
14394 # config.h.in to produce config.h.
14395
14396 # Create a delimiter string that does not exist in confdefs.h, to ease
14397 # handling of long lines.
14398 ac_delim='%!_!# '
14399 for ac_last_try in false false :; do
14400 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14401 if test -z "$ac_tt"; then
14402 break
14403 elif $ac_last_try; then
14404 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14405 else
14406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14407 fi
14408 done
14409
14410 # For the awk script, D is an array of macro values keyed by name,
14411 # likewise P contains macro parameters if any. Preserve backslash
14412 # newline sequences.
14413
14414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14415 sed -n '
14416 s/.\{148\}/&'"$ac_delim"'/g
14417 t rset
14418 :rset
14419 s/^[ ]*#[ ]*define[ ][ ]*/ /
14420 t def
14421 d
14422 :def
14423 s/\\$//
14424 t bsnl
14425 s/["\\]/\\&/g
14426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14427 D["\1"]=" \3"/p
14428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14429 d
14430 :bsnl
14431 s/["\\]/\\&/g
14432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14433 D["\1"]=" \3\\\\\\n"\\/p
14434 t cont
14435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14436 t cont
14437 d
14438 :cont
14439 n
14440 s/.\{148\}/&'"$ac_delim"'/g
14441 t clear
14442 :clear
14443 s/\\$//
14444 t bsnlc
14445 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14446 d
14447 :bsnlc
14448 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14449 b cont
14450 ' <confdefs.h | sed '
14451 s/'"$ac_delim"'/"\\\
14452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14453
14454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14455 for (key in D) D_is_set[key] = 1
14456 FS = ""
14457 }
14458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14459 line = \$ 0
14460 split(line, arg, " ")
14461 if (arg[1] == "#") {
14462 defundef = arg[2]
14463 mac1 = arg[3]
14464 } else {
14465 defundef = substr(arg[1], 2)
14466 mac1 = arg[2]
14467 }
14468 split(mac1, mac2, "(") #)
14469 macro = mac2[1]
14470 prefix = substr(line, 1, index(line, defundef) - 1)
14471 if (D_is_set[macro]) {
14472 # Preserve the white space surrounding the "#".
14473 print prefix "define", macro P[macro] D[macro]
14474 next
14475 } else {
14476 # Replace #undef with comments. This is necessary, for example,
14477 # in the case of _POSIX_SOURCE, which is predefined and required
14478 # on some systems where configure will not decide to define it.
14479 if (defundef == "undef") {
14480 print "/*", prefix defundef, macro, "*/"
14481 next
14482 }
14483 }
14484 }
14485 { print }
14486 _ACAWK
14487 _ACEOF
14488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14489 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14490 fi # test -n "$CONFIG_HEADERS"
14491
14492
14493 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14494 shift
14495 for ac_tag
14496 do
14497 case $ac_tag in
14498 :[FHLC]) ac_mode=$ac_tag; continue;;
14499 esac
14500 case $ac_mode$ac_tag in
14501 :[FHL]*:*);;
14502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14503 :[FH]-) ac_tag=-:-;;
14504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14505 esac
14506 ac_save_IFS=$IFS
14507 IFS=:
14508 set x $ac_tag
14509 IFS=$ac_save_IFS
14510 shift
14511 ac_file=$1
14512 shift
14513
14514 case $ac_mode in
14515 :L) ac_source=$1;;
14516 :[FH])
14517 ac_file_inputs=
14518 for ac_f
14519 do
14520 case $ac_f in
14521 -) ac_f="$ac_tmp/stdin";;
14522 *) # Look for the file first in the build tree, then in the source tree
14523 # (if the path is not absolute). The absolute path cannot be DOS-style,
14524 # because $ac_f cannot contain `:'.
14525 test -f "$ac_f" ||
14526 case $ac_f in
14527 [\\/$]*) false;;
14528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14529 esac ||
14530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14531 esac
14532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14533 as_fn_append ac_file_inputs " '$ac_f'"
14534 done
14535
14536 # Let's still pretend it is `configure' which instantiates (i.e., don't
14537 # use $as_me), people would be surprised to read:
14538 # /* config.h. Generated by config.status. */
14539 configure_input='Generated from '`
14540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14541 `' by configure.'
14542 if test x"$ac_file" != x-; then
14543 configure_input="$ac_file. $configure_input"
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14545 $as_echo "$as_me: creating $ac_file" >&6;}
14546 fi
14547 # Neutralize special characters interpreted by sed in replacement strings.
14548 case $configure_input in #(
14549 *\&* | *\|* | *\\* )
14550 ac_sed_conf_input=`$as_echo "$configure_input" |
14551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14552 *) ac_sed_conf_input=$configure_input;;
14553 esac
14554
14555 case $ac_tag in
14556 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14558 esac
14559 ;;
14560 esac
14561
14562 ac_dir=`$as_dirname -- "$ac_file" ||
14563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14564 X"$ac_file" : 'X\(//\)[^/]' \| \
14565 X"$ac_file" : 'X\(//\)$' \| \
14566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14567 $as_echo X"$ac_file" |
14568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14569 s//\1/
14570 q
14571 }
14572 /^X\(\/\/\)[^/].*/{
14573 s//\1/
14574 q
14575 }
14576 /^X\(\/\/\)$/{
14577 s//\1/
14578 q
14579 }
14580 /^X\(\/\).*/{
14581 s//\1/
14582 q
14583 }
14584 s/.*/./; q'`
14585 as_dir="$ac_dir"; as_fn_mkdir_p
14586 ac_builddir=.
14587
14588 case "$ac_dir" in
14589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14590 *)
14591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14592 # A ".." for each directory in $ac_dir_suffix.
14593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14594 case $ac_top_builddir_sub in
14595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14597 esac ;;
14598 esac
14599 ac_abs_top_builddir=$ac_pwd
14600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14601 # for backward compatibility:
14602 ac_top_builddir=$ac_top_build_prefix
14603
14604 case $srcdir in
14605 .) # We are building in place.
14606 ac_srcdir=.
14607 ac_top_srcdir=$ac_top_builddir_sub
14608 ac_abs_top_srcdir=$ac_pwd ;;
14609 [\\/]* | ?:[\\/]* ) # Absolute name.
14610 ac_srcdir=$srcdir$ac_dir_suffix;
14611 ac_top_srcdir=$srcdir
14612 ac_abs_top_srcdir=$srcdir ;;
14613 *) # Relative name.
14614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14615 ac_top_srcdir=$ac_top_build_prefix$srcdir
14616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14617 esac
14618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14619
14620
14621 case $ac_mode in
14622 :F)
14623 #
14624 # CONFIG_FILE
14625 #
14626
14627 case $INSTALL in
14628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14630 esac
14631 ac_MKDIR_P=$MKDIR_P
14632 case $MKDIR_P in
14633 [\\/$]* | ?:[\\/]* ) ;;
14634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14635 esac
14636 _ACEOF
14637
14638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639 # If the template does not know about datarootdir, expand it.
14640 # FIXME: This hack should be removed a few years after 2.60.
14641 ac_datarootdir_hack=; ac_datarootdir_seen=
14642 ac_sed_dataroot='
14643 /datarootdir/ {
14644 p
14645 q
14646 }
14647 /@datadir@/p
14648 /@docdir@/p
14649 /@infodir@/p
14650 /@localedir@/p
14651 /@mandir@/p'
14652 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14653 *datarootdir*) ac_datarootdir_seen=yes;;
14654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14656 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14657 _ACEOF
14658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659 ac_datarootdir_hack='
14660 s&@datadir@&$datadir&g
14661 s&@docdir@&$docdir&g
14662 s&@infodir@&$infodir&g
14663 s&@localedir@&$localedir&g
14664 s&@mandir@&$mandir&g
14665 s&\\\${datarootdir}&$datarootdir&g' ;;
14666 esac
14667 _ACEOF
14668
14669 # Neutralize VPATH when `$srcdir' = `.'.
14670 # Shell code in configure.ac might set extrasub.
14671 # FIXME: do we really want to maintain this feature?
14672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14673 ac_sed_extra="$ac_vpsub
14674 $extrasub
14675 _ACEOF
14676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14677 :t
14678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14679 s|@configure_input@|$ac_sed_conf_input|;t t
14680 s&@top_builddir@&$ac_top_builddir_sub&;t t
14681 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14682 s&@srcdir@&$ac_srcdir&;t t
14683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14684 s&@top_srcdir@&$ac_top_srcdir&;t t
14685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14686 s&@builddir@&$ac_builddir&;t t
14687 s&@abs_builddir@&$ac_abs_builddir&;t t
14688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14689 s&@INSTALL@&$ac_INSTALL&;t t
14690 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14691 $ac_datarootdir_hack
14692 "
14693 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14695
14696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14701 which seems to be undefined. Please make sure it is defined" >&5
14702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14703 which seems to be undefined. Please make sure it is defined" >&2;}
14704
14705 rm -f "$ac_tmp/stdin"
14706 case $ac_file in
14707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14709 esac \
14710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14711 ;;
14712 :H)
14713 #
14714 # CONFIG_HEADER
14715 #
14716 if test x"$ac_file" != x-; then
14717 {
14718 $as_echo "/* $configure_input */" \
14719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14720 } >"$ac_tmp/config.h" \
14721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14725 else
14726 rm -f "$ac_file"
14727 mv "$ac_tmp/config.h" "$ac_file" \
14728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14729 fi
14730 else
14731 $as_echo "/* $configure_input */" \
14732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14733 || as_fn_error $? "could not create -" "$LINENO" 5
14734 fi
14735 # Compute "$ac_file"'s index in $config_headers.
14736 _am_arg="$ac_file"
14737 _am_stamp_count=1
14738 for _am_header in $config_headers :; do
14739 case $_am_header in
14740 $_am_arg | $_am_arg:* )
14741 break ;;
14742 * )
14743 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14744 esac
14745 done
14746 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14747 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14748 X"$_am_arg" : 'X\(//\)[^/]' \| \
14749 X"$_am_arg" : 'X\(//\)$' \| \
14750 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14751 $as_echo X"$_am_arg" |
14752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14753 s//\1/
14754 q
14755 }
14756 /^X\(\/\/\)[^/].*/{
14757 s//\1/
14758 q
14759 }
14760 /^X\(\/\/\)$/{
14761 s//\1/
14762 q
14763 }
14764 /^X\(\/\).*/{
14765 s//\1/
14766 q
14767 }
14768 s/.*/./; q'`/stamp-h$_am_stamp_count
14769 ;;
14770
14771 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14772 $as_echo "$as_me: executing $ac_file commands" >&6;}
14773 ;;
14774 esac
14775
14776
14777 case $ac_file$ac_mode in
14778 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14779 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14780 # are listed without --file. Let's play safe and only enable the eval
14781 # if we detect the quoting.
14782 case $CONFIG_FILES in
14783 *\'*) eval set x "$CONFIG_FILES" ;;
14784 *) set x $CONFIG_FILES ;;
14785 esac
14786 shift
14787 for mf
14788 do
14789 # Strip MF so we end up with the name of the file.
14790 mf=`echo "$mf" | sed -e 's/:.*$//'`
14791 # Check whether this is an Automake generated Makefile or not.
14792 # We used to match only the files named `Makefile.in', but
14793 # some people rename them; so instead we look at the file content.
14794 # Grep'ing the first line is not enough: some people post-process
14795 # each Makefile.in and add a new line on top of each file to say so.
14796 # Grep'ing the whole file is not good either: AIX grep has a line
14797 # limit of 2048, but all sed's we know have understand at least 4000.
14798 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14799 dirpart=`$as_dirname -- "$mf" ||
14800 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14801 X"$mf" : 'X\(//\)[^/]' \| \
14802 X"$mf" : 'X\(//\)$' \| \
14803 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14804 $as_echo X"$mf" |
14805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14806 s//\1/
14807 q
14808 }
14809 /^X\(\/\/\)[^/].*/{
14810 s//\1/
14811 q
14812 }
14813 /^X\(\/\/\)$/{
14814 s//\1/
14815 q
14816 }
14817 /^X\(\/\).*/{
14818 s//\1/
14819 q
14820 }
14821 s/.*/./; q'`
14822 else
14823 continue
14824 fi
14825 # Extract the definition of DEPDIR, am__include, and am__quote
14826 # from the Makefile without running `make'.
14827 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14828 test -z "$DEPDIR" && continue
14829 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14830 test -z "am__include" && continue
14831 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14832 # When using ansi2knr, U may be empty or an underscore; expand it
14833 U=`sed -n 's/^U = //p' < "$mf"`
14834 # Find all dependency output files, they are included files with
14835 # $(DEPDIR) in their names. We invoke sed twice because it is the
14836 # simplest approach to changing $(DEPDIR) to its actual value in the
14837 # expansion.
14838 for file in `sed -n "
14839 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14840 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14841 # Make sure the directory exists.
14842 test -f "$dirpart/$file" && continue
14843 fdir=`$as_dirname -- "$file" ||
14844 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14845 X"$file" : 'X\(//\)[^/]' \| \
14846 X"$file" : 'X\(//\)$' \| \
14847 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14848 $as_echo X"$file" |
14849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14850 s//\1/
14851 q
14852 }
14853 /^X\(\/\/\)[^/].*/{
14854 s//\1/
14855 q
14856 }
14857 /^X\(\/\/\)$/{
14858 s//\1/
14859 q
14860 }
14861 /^X\(\/\).*/{
14862 s//\1/
14863 q
14864 }
14865 s/.*/./; q'`
14866 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14867 # echo "creating $dirpart/$file"
14868 echo '# dummy' > "$dirpart/$file"
14869 done
14870 done
14871 }
14872 ;;
14873 "libtool":C)
14874
14875 # See if we are running on zsh, and set the options which allow our
14876 # commands through without removal of \ escapes.
14877 if test -n "${ZSH_VERSION+set}" ; then
14878 setopt NO_GLOB_SUBST
14879 fi
14880
14881 cfgfile="${ofile}T"
14882 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14883 $RM "$cfgfile"
14884
14885 cat <<_LT_EOF >> "$cfgfile"
14886 #! $SHELL
14887
14888 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14889 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14892 #
14893 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14894 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14895 # Inc.
14896 # Written by Gordon Matzigkeit, 1996
14897 #
14898 # This file is part of GNU Libtool.
14899 #
14900 # GNU Libtool is free software; you can redistribute it and/or
14901 # modify it under the terms of the GNU General Public License as
14902 # published by the Free Software Foundation; either version 2 of
14903 # the License, or (at your option) any later version.
14904 #
14905 # As a special exception to the GNU General Public License,
14906 # if you distribute this file as part of a program or library that
14907 # is built using GNU Libtool, you may include this file under the
14908 # same distribution terms that you use for the rest of that program.
14909 #
14910 # GNU Libtool is distributed in the hope that it will be useful,
14911 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14912 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14913 # GNU General Public License for more details.
14914 #
14915 # You should have received a copy of the GNU General Public License
14916 # along with GNU Libtool; see the file COPYING. If not, a copy
14917 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14918 # obtained by writing to the Free Software Foundation, Inc.,
14919 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14920
14921
14922 # The names of the tagged configurations supported by this script.
14923 available_tags=""
14924
14925 # ### BEGIN LIBTOOL CONFIG
14926
14927 # Assembler program.
14928 AS=$lt_AS
14929
14930 # DLL creation program.
14931 DLLTOOL=$lt_DLLTOOL
14932
14933 # Object dumper program.
14934 OBJDUMP=$lt_OBJDUMP
14935
14936 # Which release of libtool.m4 was used?
14937 macro_version=$macro_version
14938 macro_revision=$macro_revision
14939
14940 # Whether or not to build shared libraries.
14941 build_libtool_libs=$enable_shared
14942
14943 # Whether or not to build static libraries.
14944 build_old_libs=$enable_static
14945
14946 # What type of objects to build.
14947 pic_mode=$pic_mode
14948
14949 # Whether or not to optimize for fast installation.
14950 fast_install=$enable_fast_install
14951
14952 # Shell to use when invoking shell scripts.
14953 SHELL=$lt_SHELL
14954
14955 # An echo program that protects backslashes.
14956 ECHO=$lt_ECHO
14957
14958 # The host system.
14959 host_alias=$host_alias
14960 host=$host
14961 host_os=$host_os
14962
14963 # The build system.
14964 build_alias=$build_alias
14965 build=$build
14966 build_os=$build_os
14967
14968 # A sed program that does not truncate output.
14969 SED=$lt_SED
14970
14971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14972 Xsed="\$SED -e 1s/^X//"
14973
14974 # A grep program that handles long lines.
14975 GREP=$lt_GREP
14976
14977 # An ERE matcher.
14978 EGREP=$lt_EGREP
14979
14980 # A literal string matcher.
14981 FGREP=$lt_FGREP
14982
14983 # A BSD- or MS-compatible name lister.
14984 NM=$lt_NM
14985
14986 # Whether we need soft or hard links.
14987 LN_S=$lt_LN_S
14988
14989 # What is the maximum length of a command?
14990 max_cmd_len=$max_cmd_len
14991
14992 # Object file suffix (normally "o").
14993 objext=$ac_objext
14994
14995 # Executable file suffix (normally "").
14996 exeext=$exeext
14997
14998 # whether the shell understands "unset".
14999 lt_unset=$lt_unset
15000
15001 # turn spaces into newlines.
15002 SP2NL=$lt_lt_SP2NL
15003
15004 # turn newlines into spaces.
15005 NL2SP=$lt_lt_NL2SP
15006
15007 # convert \$build file names to \$host format.
15008 to_host_file_cmd=$lt_cv_to_host_file_cmd
15009
15010 # convert \$build files to toolchain format.
15011 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15012
15013 # Method to check whether dependent libraries are shared objects.
15014 deplibs_check_method=$lt_deplibs_check_method
15015
15016 # Command to use when deplibs_check_method = "file_magic".
15017 file_magic_cmd=$lt_file_magic_cmd
15018
15019 # How to find potential files when deplibs_check_method = "file_magic".
15020 file_magic_glob=$lt_file_magic_glob
15021
15022 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15023 want_nocaseglob=$lt_want_nocaseglob
15024
15025 # Command to associate shared and link libraries.
15026 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15027
15028 # The archiver.
15029 AR=$lt_AR
15030
15031 # Flags to create an archive.
15032 AR_FLAGS=$lt_AR_FLAGS
15033
15034 # How to feed a file listing to the archiver.
15035 archiver_list_spec=$lt_archiver_list_spec
15036
15037 # A symbol stripping program.
15038 STRIP=$lt_STRIP
15039
15040 # Commands used to install an old-style archive.
15041 RANLIB=$lt_RANLIB
15042 old_postinstall_cmds=$lt_old_postinstall_cmds
15043 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15044
15045 # Whether to use a lock for old archive extraction.
15046 lock_old_archive_extraction=$lock_old_archive_extraction
15047
15048 # A C compiler.
15049 LTCC=$lt_CC
15050
15051 # LTCC compiler flags.
15052 LTCFLAGS=$lt_CFLAGS
15053
15054 # Take the output of nm and produce a listing of raw symbols and C names.
15055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15056
15057 # Transform the output of nm in a proper C declaration.
15058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15059
15060 # Transform the output of nm in a C name address pair.
15061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15062
15063 # Transform the output of nm in a C name address pair when lib prefix is needed.
15064 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15065
15066 # Specify filename containing input files for \$NM.
15067 nm_file_list_spec=$lt_nm_file_list_spec
15068
15069 # The root where to search for dependent libraries,and in which our libraries should be installed.
15070 lt_sysroot=$lt_sysroot
15071
15072 # The name of the directory that contains temporary libtool files.
15073 objdir=$objdir
15074
15075 # Used to examine libraries when file_magic_cmd begins with "file".
15076 MAGIC_CMD=$MAGIC_CMD
15077
15078 # Must we lock files when doing compilation?
15079 need_locks=$lt_need_locks
15080
15081 # Manifest tool.
15082 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15083
15084 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15085 DSYMUTIL=$lt_DSYMUTIL
15086
15087 # Tool to change global to local symbols on Mac OS X.
15088 NMEDIT=$lt_NMEDIT
15089
15090 # Tool to manipulate fat objects and archives on Mac OS X.
15091 LIPO=$lt_LIPO
15092
15093 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15094 OTOOL=$lt_OTOOL
15095
15096 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15097 OTOOL64=$lt_OTOOL64
15098
15099 # Old archive suffix (normally "a").
15100 libext=$libext
15101
15102 # Shared library suffix (normally ".so").
15103 shrext_cmds=$lt_shrext_cmds
15104
15105 # The commands to extract the exported symbol list from a shared archive.
15106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15107
15108 # Variables whose values should be saved in libtool wrapper scripts and
15109 # restored at link time.
15110 variables_saved_for_relink=$lt_variables_saved_for_relink
15111
15112 # Do we need the "lib" prefix for modules?
15113 need_lib_prefix=$need_lib_prefix
15114
15115 # Do we need a version for libraries?
15116 need_version=$need_version
15117
15118 # Library versioning type.
15119 version_type=$version_type
15120
15121 # Shared library runtime path variable.
15122 runpath_var=$runpath_var
15123
15124 # Shared library path variable.
15125 shlibpath_var=$shlibpath_var
15126
15127 # Is shlibpath searched before the hard-coded library search path?
15128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15129
15130 # Format of library name prefix.
15131 libname_spec=$lt_libname_spec
15132
15133 # List of archive names. First name is the real one, the rest are links.
15134 # The last name is the one that the linker finds with -lNAME
15135 library_names_spec=$lt_library_names_spec
15136
15137 # The coded name of the library, if different from the real name.
15138 soname_spec=$lt_soname_spec
15139
15140 # Permission mode override for installation of shared libraries.
15141 install_override_mode=$lt_install_override_mode
15142
15143 # Command to use after installation of a shared archive.
15144 postinstall_cmds=$lt_postinstall_cmds
15145
15146 # Command to use after uninstallation of a shared archive.
15147 postuninstall_cmds=$lt_postuninstall_cmds
15148
15149 # Commands used to finish a libtool library installation in a directory.
15150 finish_cmds=$lt_finish_cmds
15151
15152 # As "finish_cmds", except a single script fragment to be evaled but
15153 # not shown.
15154 finish_eval=$lt_finish_eval
15155
15156 # Whether we should hardcode library paths into libraries.
15157 hardcode_into_libs=$hardcode_into_libs
15158
15159 # Compile-time system search path for libraries.
15160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15161
15162 # Run-time system search path for libraries.
15163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15164
15165 # Whether dlopen is supported.
15166 dlopen_support=$enable_dlopen
15167
15168 # Whether dlopen of programs is supported.
15169 dlopen_self=$enable_dlopen_self
15170
15171 # Whether dlopen of statically linked programs is supported.
15172 dlopen_self_static=$enable_dlopen_self_static
15173
15174 # Commands to strip libraries.
15175 old_striplib=$lt_old_striplib
15176 striplib=$lt_striplib
15177
15178
15179 # The linker used to build libraries.
15180 LD=$lt_LD
15181
15182 # How to create reloadable object files.
15183 reload_flag=$lt_reload_flag
15184 reload_cmds=$lt_reload_cmds
15185
15186 # Commands used to build an old-style archive.
15187 old_archive_cmds=$lt_old_archive_cmds
15188
15189 # A language specific compiler.
15190 CC=$lt_compiler
15191
15192 # Is the compiler the GNU compiler?
15193 with_gcc=$GCC
15194
15195 # Compiler flag to turn off builtin functions.
15196 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15197
15198 # Additional compiler flags for building library objects.
15199 pic_flag=$lt_lt_prog_compiler_pic
15200
15201 # How to pass a linker flag through the compiler.
15202 wl=$lt_lt_prog_compiler_wl
15203
15204 # Compiler flag to prevent dynamic linking.
15205 link_static_flag=$lt_lt_prog_compiler_static
15206
15207 # Does compiler simultaneously support -c and -o options?
15208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15209
15210 # Whether or not to add -lc for building shared libraries.
15211 build_libtool_need_lc=$archive_cmds_need_lc
15212
15213 # Whether or not to disallow shared libs when runtime libs are static.
15214 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15215
15216 # Compiler flag to allow reflexive dlopens.
15217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15218
15219 # Compiler flag to generate shared objects directly from archives.
15220 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15221
15222 # Whether the compiler copes with passing no objects directly.
15223 compiler_needs_object=$lt_compiler_needs_object
15224
15225 # Create an old-style archive from a shared archive.
15226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15227
15228 # Create a temporary old-style archive to link instead of a shared archive.
15229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15230
15231 # Commands used to build a shared archive.
15232 archive_cmds=$lt_archive_cmds
15233 archive_expsym_cmds=$lt_archive_expsym_cmds
15234
15235 # Commands used to build a loadable module if different from building
15236 # a shared archive.
15237 module_cmds=$lt_module_cmds
15238 module_expsym_cmds=$lt_module_expsym_cmds
15239
15240 # Whether we are building with GNU ld or not.
15241 with_gnu_ld=$lt_with_gnu_ld
15242
15243 # Flag that allows shared libraries with undefined symbols to be built.
15244 allow_undefined_flag=$lt_allow_undefined_flag
15245
15246 # Flag that enforces no undefined symbols.
15247 no_undefined_flag=$lt_no_undefined_flag
15248
15249 # Flag to hardcode \$libdir into a binary during linking.
15250 # This must work even if \$libdir does not exist
15251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15252
15253 # If ld is used when linking, flag to hardcode \$libdir into a binary
15254 # during linking. This must work even if \$libdir does not exist.
15255 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15256
15257 # Whether we need a single "-rpath" flag with a separated argument.
15258 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15259
15260 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15261 # DIR into the resulting binary.
15262 hardcode_direct=$hardcode_direct
15263
15264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15265 # DIR into the resulting binary and the resulting library dependency is
15266 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15267 # library is relocated.
15268 hardcode_direct_absolute=$hardcode_direct_absolute
15269
15270 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15271 # into the resulting binary.
15272 hardcode_minus_L=$hardcode_minus_L
15273
15274 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15275 # into the resulting binary.
15276 hardcode_shlibpath_var=$hardcode_shlibpath_var
15277
15278 # Set to "yes" if building a shared library automatically hardcodes DIR
15279 # into the library and all subsequent libraries and executables linked
15280 # against it.
15281 hardcode_automatic=$hardcode_automatic
15282
15283 # Set to yes if linker adds runtime paths of dependent libraries
15284 # to runtime path list.
15285 inherit_rpath=$inherit_rpath
15286
15287 # Whether libtool must link a program against all its dependency libraries.
15288 link_all_deplibs=$link_all_deplibs
15289
15290 # Set to "yes" if exported symbols are required.
15291 always_export_symbols=$always_export_symbols
15292
15293 # The commands to list exported symbols.
15294 export_symbols_cmds=$lt_export_symbols_cmds
15295
15296 # Symbols that should not be listed in the preloaded symbols.
15297 exclude_expsyms=$lt_exclude_expsyms
15298
15299 # Symbols that must always be exported.
15300 include_expsyms=$lt_include_expsyms
15301
15302 # Commands necessary for linking programs (against libraries) with templates.
15303 prelink_cmds=$lt_prelink_cmds
15304
15305 # Commands necessary for finishing linking programs.
15306 postlink_cmds=$lt_postlink_cmds
15307
15308 # Specify filename containing input files.
15309 file_list_spec=$lt_file_list_spec
15310
15311 # How to hardcode a shared library path into an executable.
15312 hardcode_action=$hardcode_action
15313
15314 # ### END LIBTOOL CONFIG
15315
15316 _LT_EOF
15317
15318 case $host_os in
15319 aix3*)
15320 cat <<\_LT_EOF >> "$cfgfile"
15321 # AIX sometimes has problems with the GCC collect2 program. For some
15322 # reason, if we set the COLLECT_NAMES environment variable, the problems
15323 # vanish in a puff of smoke.
15324 if test "X${COLLECT_NAMES+set}" != Xset; then
15325 COLLECT_NAMES=
15326 export COLLECT_NAMES
15327 fi
15328 _LT_EOF
15329 ;;
15330 esac
15331
15332
15333 ltmain="$ac_aux_dir/ltmain.sh"
15334
15335
15336 # We use sed instead of cat because bash on DJGPP gets confused if
15337 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15338 # text mode, it properly converts lines to CR/LF. This bash problem
15339 # is reportedly fixed, but why not run on old versions too?
15340 sed '$q' "$ltmain" >> "$cfgfile" \
15341 || (rm -f "$cfgfile"; exit 1)
15342
15343 if test x"$xsi_shell" = xyes; then
15344 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15345 func_dirname ()\
15346 {\
15347 \ case ${1} in\
15348 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15349 \ * ) func_dirname_result="${3}" ;;\
15350 \ esac\
15351 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15352 && mv -f "$cfgfile.tmp" "$cfgfile" \
15353 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15354 test 0 -eq $? || _lt_function_replace_fail=:
15355
15356
15357 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15358 func_basename ()\
15359 {\
15360 \ func_basename_result="${1##*/}"\
15361 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15362 && mv -f "$cfgfile.tmp" "$cfgfile" \
15363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15364 test 0 -eq $? || _lt_function_replace_fail=:
15365
15366
15367 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15368 func_dirname_and_basename ()\
15369 {\
15370 \ case ${1} in\
15371 \ */*) func_dirname_result="${1%/*}${2}" ;;\
15372 \ * ) func_dirname_result="${3}" ;;\
15373 \ esac\
15374 \ func_basename_result="${1##*/}"\
15375 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15376 && mv -f "$cfgfile.tmp" "$cfgfile" \
15377 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15378 test 0 -eq $? || _lt_function_replace_fail=:
15379
15380
15381 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15382 func_stripname ()\
15383 {\
15384 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15385 \ # positional parameters, so assign one to ordinary parameter first.\
15386 \ func_stripname_result=${3}\
15387 \ func_stripname_result=${func_stripname_result#"${1}"}\
15388 \ func_stripname_result=${func_stripname_result%"${2}"}\
15389 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15390 && mv -f "$cfgfile.tmp" "$cfgfile" \
15391 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15392 test 0 -eq $? || _lt_function_replace_fail=:
15393
15394
15395 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15396 func_split_long_opt ()\
15397 {\
15398 \ func_split_long_opt_name=${1%%=*}\
15399 \ func_split_long_opt_arg=${1#*=}\
15400 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15401 && mv -f "$cfgfile.tmp" "$cfgfile" \
15402 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15403 test 0 -eq $? || _lt_function_replace_fail=:
15404
15405
15406 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15407 func_split_short_opt ()\
15408 {\
15409 \ func_split_short_opt_arg=${1#??}\
15410 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15411 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15412 && mv -f "$cfgfile.tmp" "$cfgfile" \
15413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15414 test 0 -eq $? || _lt_function_replace_fail=:
15415
15416
15417 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15418 func_lo2o ()\
15419 {\
15420 \ case ${1} in\
15421 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15422 \ *) func_lo2o_result=${1} ;;\
15423 \ esac\
15424 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15425 && mv -f "$cfgfile.tmp" "$cfgfile" \
15426 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15427 test 0 -eq $? || _lt_function_replace_fail=:
15428
15429
15430 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15431 func_xform ()\
15432 {\
15433 func_xform_result=${1%.*}.lo\
15434 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15435 && mv -f "$cfgfile.tmp" "$cfgfile" \
15436 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15437 test 0 -eq $? || _lt_function_replace_fail=:
15438
15439
15440 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15441 func_arith ()\
15442 {\
15443 func_arith_result=$(( $* ))\
15444 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15445 && mv -f "$cfgfile.tmp" "$cfgfile" \
15446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15447 test 0 -eq $? || _lt_function_replace_fail=:
15448
15449
15450 sed -e '/^func_len ()$/,/^} # func_len /c\
15451 func_len ()\
15452 {\
15453 func_len_result=${#1}\
15454 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15455 && mv -f "$cfgfile.tmp" "$cfgfile" \
15456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15457 test 0 -eq $? || _lt_function_replace_fail=:
15458
15459 fi
15460
15461 if test x"$lt_shell_append" = xyes; then
15462 sed -e '/^func_append ()$/,/^} # func_append /c\
15463 func_append ()\
15464 {\
15465 eval "${1}+=\\${2}"\
15466 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15467 && mv -f "$cfgfile.tmp" "$cfgfile" \
15468 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15469 test 0 -eq $? || _lt_function_replace_fail=:
15470
15471
15472 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15473 func_append_quoted ()\
15474 {\
15475 \ func_quote_for_eval "${2}"\
15476 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15477 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15478 && mv -f "$cfgfile.tmp" "$cfgfile" \
15479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15480 test 0 -eq $? || _lt_function_replace_fail=:
15481
15482
15483 # Save a `func_append' function call where possible by direct use of '+='
15484 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15485 && mv -f "$cfgfile.tmp" "$cfgfile" \
15486 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15487 test 0 -eq $? || _lt_function_replace_fail=:
15488 else
15489 # Save a `func_append' function call even when '+=' is not available
15490 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15491 && mv -f "$cfgfile.tmp" "$cfgfile" \
15492 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15493 test 0 -eq $? || _lt_function_replace_fail=:
15494 fi
15495
15496 if test x"$_lt_function_replace_fail" = x":"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15498 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15499 fi
15500
15501
15502 mv -f "$cfgfile" "$ofile" ||
15503 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15504 chmod +x "$ofile"
15505
15506 ;;
15507
15508 esac
15509 done # for ac_tag
15510
15511
15512 as_fn_exit 0
15513 _ACEOF
15514 ac_clean_files=$ac_clean_files_save
15515
15516 test $ac_write_fail = 0 ||
15517 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15518
15519
15520 # configure is writing to config.log, and then calls config.status.
15521 # config.status does its own redirection, appending to config.log.
15522 # Unfortunately, on DOS this fails, as config.log is still kept open
15523 # by configure, so config.status won't be able to write to it; its
15524 # output is simply discarded. So we exec the FD to /dev/null,
15525 # effectively closing config.log, so it can be properly (re)opened and
15526 # appended to by config.status. When coming back to configure, we
15527 # need to make the FD available again.
15528 if test "$no_create" != yes; then
15529 ac_cs_success=:
15530 ac_config_status_args=
15531 test "$silent" = yes &&
15532 ac_config_status_args="$ac_config_status_args --quiet"
15533 exec 5>/dev/null
15534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15535 exec 5>>config.log
15536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15537 # would make configure fail if this is the last instruction.
15538 $ac_cs_success || as_fn_exit 1
15539 fi
15540 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15542 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15543 fi
15544
99
1010 AM_SILENT_RULES([yes])
1111
12 LIBVIRT_REQUIRED=0.5.0
12 LIBVIRT_REQUIRED=0.9.4
1313 GLIB2_REQUIRED=2.10.0
1414 GOBJECT2_REQUIRED=2.10.0
1515 GIO_REQUIRED=2.10.0
4848 PKG_CHECK_MODULES(GOBJECT2, gobject-2.0 >= $GLIB2_REQUIRED)
4949 PKG_CHECK_MODULES(GIO2, gio-2.0 >= $GLIB2_REQUIRED)
5050 PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= $LIBXML2_REQUIRED)
51
52 GTK_DOC_CHECK([1.10],[--flavour no-tmpl])
5153
5254 dnl Extra link-time flags for Cygwin.
5355 dnl Copied from libxml2 configure.in, but I removed mingw changes
197199 fi
198200 AM_CONDITIONAL([WITH_GOBJECT_INTROSPECTION], [test "x$enable_introspection" = "xyes"])
199201
202 AC_ARG_ENABLE([vala],
203 AS_HELP_STRING([--enable-vala], [enable Vala binding generation]),
204 [], [enable_vala=check])
205 if test "x$enable_introspection" = "xyes" ; then
206 if test "x$enable_vala" != "xno" ; then
207 AC_PATH_PROG(VAPIGEN, vapigen, no)
208 if test "x$VAPIGEN" == "xno"; then
209 if test "x$enable_vala" == "xcheck" ; then
210 enable_vala=no
211 else
212 AC_MSG_ERROR([Cannot find the "vapigen" binary in your PATH])
213 fi
214 fi
215 AC_SUBST(VAPIGEN)
216 fi
217 if test "x$enable_vala" != "xno" ; then
218 AC_MSG_CHECKING([$VAPIGEN support for --metadatadir])
219 $VAPIGEN --help | grep metadatadir 1>/dev/null 2>&1
220 if test $? != 0 ; then
221 if test "x$enable_vala" == "xcheck" ; then
222 enable_vala=no
223 AC_MSG_RESULT([no])
224 else
225 AC_MSG_ERROR(["vapigen" binary in your PATH is too old (< 0.13)])
226 fi
227 else
228 AC_MSG_RESULT([no])
229 fi
230 fi
231 if test "x$enable_vala" = "xcheck" ; then
232 enable_vala=yes
233 fi
234 fi
235 AM_CONDITIONAL([WITH_VALA], [test "x$enable_vala" = "xyes"])
236
200237 AC_OUTPUT(Makefile
201238 libvirt-glib/Makefile
202239 libvirt-gconfig/Makefile
240 libvirt-gconfig/tests/Makefile
203241 libvirt-gobject/Makefile
204242 examples/Makefile
205243 python/Makefile
244 vapi/Makefile
245 docs/Makefile
246 docs/libvirt-glib/Makefile
247 docs/libvirt-gobject/Makefile
248 docs/libvirt-gconfig/Makefile
206249 libvirt-glib-1.0.pc
207250 libvirt-gconfig-1.0.pc
208251 libvirt-gobject-1.0.pc
0 SUBDIRS = libvirt-glib libvirt-gobject libvirt-gconfig
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 VPATH = @srcdir@
17 pkgdatadir = $(datadir)/@PACKAGE@
18 pkgincludedir = $(includedir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkglibexecdir = $(libexecdir)/@PACKAGE@
21 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22 install_sh_DATA = $(install_sh) -c -m 644
23 install_sh_PROGRAM = $(install_sh) -c
24 install_sh_SCRIPT = $(install_sh) -c
25 INSTALL_HEADER = $(INSTALL_DATA)
26 transform = $(program_transform_name)
27 NORMAL_INSTALL = :
28 PRE_INSTALL = :
29 POST_INSTALL = :
30 NORMAL_UNINSTALL = :
31 PRE_UNINSTALL = :
32 POST_UNINSTALL = :
33 build_triplet = @build@
34 host_triplet = @host@
35 subdir = docs
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_HEADER = $(top_builddir)/config.h
44 CONFIG_CLEAN_FILES =
45 CONFIG_CLEAN_VPATH_FILES =
46 AM_V_GEN = $(am__v_GEN_$(V))
47 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
48 am__v_GEN_0 = @echo " GEN " $@;
49 AM_V_at = $(am__v_at_$(V))
50 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
51 am__v_at_0 = @
52 SOURCES =
53 DIST_SOURCES =
54 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
55 html-recursive info-recursive install-data-recursive \
56 install-dvi-recursive install-exec-recursive \
57 install-html-recursive install-info-recursive \
58 install-pdf-recursive install-ps-recursive install-recursive \
59 installcheck-recursive installdirs-recursive pdf-recursive \
60 ps-recursive uninstall-recursive
61 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
62 distclean-recursive maintainer-clean-recursive
63 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
64 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
65 distdir
66 ETAGS = etags
67 CTAGS = ctags
68 DIST_SUBDIRS = $(SUBDIRS)
69 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
70 am__relativize = \
71 dir0=`pwd`; \
72 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
73 sed_rest='s,^[^/]*/*,,'; \
74 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
75 sed_butlast='s,/*[^/]*$$,,'; \
76 while test -n "$$dir1"; do \
77 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
78 if test "$$first" != "."; then \
79 if test "$$first" = ".."; then \
80 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
81 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
82 else \
83 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
84 if test "$$first2" = "$$first"; then \
85 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
86 else \
87 dir2="../$$dir2"; \
88 fi; \
89 dir0="$$dir0"/"$$first"; \
90 fi; \
91 fi; \
92 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
93 done; \
94 reldir="$$dir2"
95 ACLOCAL = @ACLOCAL@
96 AMTAR = @AMTAR@
97 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
98 AR = @AR@
99 AS = @AS@
100 AUTOCONF = @AUTOCONF@
101 AUTOHEADER = @AUTOHEADER@
102 AUTOMAKE = @AUTOMAKE@
103 AWK = @AWK@
104 CC = @CC@
105 CCDEPMODE = @CCDEPMODE@
106 CFLAGS = @CFLAGS@
107 COMPILER_FLAGS = @COMPILER_FLAGS@
108 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
109 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
110 CPP = @CPP@
111 CPPFLAGS = @CPPFLAGS@
112 CYGPATH_W = @CYGPATH_W@
113 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
114 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
115 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
116 DEFS = @DEFS@
117 DEPDIR = @DEPDIR@
118 DLLTOOL = @DLLTOOL@
119 DSYMUTIL = @DSYMUTIL@
120 DUMPBIN = @DUMPBIN@
121 ECHO_C = @ECHO_C@
122 ECHO_N = @ECHO_N@
123 ECHO_T = @ECHO_T@
124 EGREP = @EGREP@
125 EXEEXT = @EXEEXT@
126 FGREP = @FGREP@
127 GIO2_CFLAGS = @GIO2_CFLAGS@
128 GIO2_LIBS = @GIO2_LIBS@
129 GLIB2_CFLAGS = @GLIB2_CFLAGS@
130 GLIB2_LIBS = @GLIB2_LIBS@
131 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
132 GOBJECT2_LIBS = @GOBJECT2_LIBS@
133 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
134 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
135 GREP = @GREP@
136 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
137 GTHREAD2_LIBS = @GTHREAD2_LIBS@
138 GTKDOC_CHECK = @GTKDOC_CHECK@
139 GTKDOC_MKPDF = @GTKDOC_MKPDF@
140 GTKDOC_REBASE = @GTKDOC_REBASE@
141 G_IR_COMPILER = @G_IR_COMPILER@
142 G_IR_SCANNER = @G_IR_SCANNER@
143 HTML_DIR = @HTML_DIR@
144 INSTALL = @INSTALL@
145 INSTALL_DATA = @INSTALL_DATA@
146 INSTALL_PROGRAM = @INSTALL_PROGRAM@
147 INSTALL_SCRIPT = @INSTALL_SCRIPT@
148 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
149 LD = @LD@
150 LDFLAGS = @LDFLAGS@
151 LIBOBJS = @LIBOBJS@
152 LIBS = @LIBS@
153 LIBTOOL = @LIBTOOL@
154 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
155 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
156 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
157 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
158 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
159 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
160 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
161 LIBVIRT_LIBS = @LIBVIRT_LIBS@
162 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
163 LIBXML2_LIBS = @LIBXML2_LIBS@
164 LIPO = @LIPO@
165 LN_S = @LN_S@
166 LTLIBOBJS = @LTLIBOBJS@
167 MAKEINFO = @MAKEINFO@
168 MANIFEST_TOOL = @MANIFEST_TOOL@
169 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
170 MKDIR_P = @MKDIR_P@
171 NM = @NM@
172 NMEDIT = @NMEDIT@
173 OBJDUMP = @OBJDUMP@
174 OBJEXT = @OBJEXT@
175 OTOOL = @OTOOL@
176 OTOOL64 = @OTOOL64@
177 PACKAGE = @PACKAGE@
178 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
179 PACKAGE_NAME = @PACKAGE_NAME@
180 PACKAGE_STRING = @PACKAGE_STRING@
181 PACKAGE_TARNAME = @PACKAGE_TARNAME@
182 PACKAGE_URL = @PACKAGE_URL@
183 PACKAGE_VERSION = @PACKAGE_VERSION@
184 PATH_SEPARATOR = @PATH_SEPARATOR@
185 PKG_CONFIG = @PKG_CONFIG@
186 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
187 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
188 PYTHON = @PYTHON@
189 PYTHON_INCLUDES = @PYTHON_INCLUDES@
190 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
191 PYTHON_VERSION = @PYTHON_VERSION@
192 RANLIB = @RANLIB@
193 SED = @SED@
194 SET_MAKE = @SET_MAKE@
195 SHELL = @SHELL@
196 STRIP = @STRIP@
197 VAPIGEN = @VAPIGEN@
198 VERSION = @VERSION@
199 WARN_CFLAGS = @WARN_CFLAGS@
200 abs_builddir = @abs_builddir@
201 abs_srcdir = @abs_srcdir@
202 abs_top_builddir = @abs_top_builddir@
203 abs_top_srcdir = @abs_top_srcdir@
204 ac_ct_AR = @ac_ct_AR@
205 ac_ct_CC = @ac_ct_CC@
206 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
207 am__include = @am__include@
208 am__leading_dot = @am__leading_dot@
209 am__quote = @am__quote@
210 am__tar = @am__tar@
211 am__untar = @am__untar@
212 bindir = @bindir@
213 build = @build@
214 build_alias = @build_alias@
215 build_cpu = @build_cpu@
216 build_os = @build_os@
217 build_vendor = @build_vendor@
218 builddir = @builddir@
219 datadir = @datadir@
220 datarootdir = @datarootdir@
221 docdir = @docdir@
222 dvidir = @dvidir@
223 exec_prefix = @exec_prefix@
224 host = @host@
225 host_alias = @host_alias@
226 host_cpu = @host_cpu@
227 host_os = @host_os@
228 host_vendor = @host_vendor@
229 htmldir = @htmldir@
230 includedir = @includedir@
231 infodir = @infodir@
232 install_sh = @install_sh@
233 libdir = @libdir@
234 libexecdir = @libexecdir@
235 localedir = @localedir@
236 localstatedir = @localstatedir@
237 mandir = @mandir@
238 mkdir_p = @mkdir_p@
239 oldincludedir = @oldincludedir@
240 pdfdir = @pdfdir@
241 prefix = @prefix@
242 program_transform_name = @program_transform_name@
243 psdir = @psdir@
244 pythondir = @pythondir@
245 sbindir = @sbindir@
246 sharedstatedir = @sharedstatedir@
247 srcdir = @srcdir@
248 sysconfdir = @sysconfdir@
249 target_alias = @target_alias@
250 top_build_prefix = @top_build_prefix@
251 top_builddir = @top_builddir@
252 top_srcdir = @top_srcdir@
253 SUBDIRS = libvirt-glib libvirt-gobject libvirt-gconfig
254 all: all-recursive
255
256 .SUFFIXES:
257 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
258 @for dep in $?; do \
259 case '$(am__configure_deps)' in \
260 *$$dep*) \
261 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
262 && { if test -f $@; then exit 0; else break; fi; }; \
263 exit 1;; \
264 esac; \
265 done; \
266 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
267 $(am__cd) $(top_srcdir) && \
268 $(AUTOMAKE) --gnu docs/Makefile
269 .PRECIOUS: Makefile
270 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
271 @case '$?' in \
272 *config.status*) \
273 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
274 *) \
275 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
276 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
277 esac;
278
279 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
280 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
281
282 $(top_srcdir)/configure: $(am__configure_deps)
283 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
284 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
285 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
286 $(am__aclocal_m4_deps):
287
288 mostlyclean-libtool:
289 -rm -f *.lo
290
291 clean-libtool:
292 -rm -rf .libs _libs
293
294 # This directory's subdirectories are mostly independent; you can cd
295 # into them and run `make' without going through this Makefile.
296 # To change the values of `make' variables: instead of editing Makefiles,
297 # (1) if the variable is set in `config.status', edit `config.status'
298 # (which will cause the Makefiles to be regenerated when you run `make');
299 # (2) otherwise, pass the desired values on the `make' command line.
300 $(RECURSIVE_TARGETS):
301 @fail= failcom='exit 1'; \
302 for f in x $$MAKEFLAGS; do \
303 case $$f in \
304 *=* | --[!k]*);; \
305 *k*) failcom='fail=yes';; \
306 esac; \
307 done; \
308 dot_seen=no; \
309 target=`echo $@ | sed s/-recursive//`; \
310 list='$(SUBDIRS)'; for subdir in $$list; do \
311 echo "Making $$target in $$subdir"; \
312 if test "$$subdir" = "."; then \
313 dot_seen=yes; \
314 local_target="$$target-am"; \
315 else \
316 local_target="$$target"; \
317 fi; \
318 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
319 || eval $$failcom; \
320 done; \
321 if test "$$dot_seen" = "no"; then \
322 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
323 fi; test -z "$$fail"
324
325 $(RECURSIVE_CLEAN_TARGETS):
326 @fail= failcom='exit 1'; \
327 for f in x $$MAKEFLAGS; do \
328 case $$f in \
329 *=* | --[!k]*);; \
330 *k*) failcom='fail=yes';; \
331 esac; \
332 done; \
333 dot_seen=no; \
334 case "$@" in \
335 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
336 *) list='$(SUBDIRS)' ;; \
337 esac; \
338 rev=''; for subdir in $$list; do \
339 if test "$$subdir" = "."; then :; else \
340 rev="$$subdir $$rev"; \
341 fi; \
342 done; \
343 rev="$$rev ."; \
344 target=`echo $@ | sed s/-recursive//`; \
345 for subdir in $$rev; do \
346 echo "Making $$target in $$subdir"; \
347 if test "$$subdir" = "."; then \
348 local_target="$$target-am"; \
349 else \
350 local_target="$$target"; \
351 fi; \
352 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
353 || eval $$failcom; \
354 done && test -z "$$fail"
355 tags-recursive:
356 list='$(SUBDIRS)'; for subdir in $$list; do \
357 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
358 done
359 ctags-recursive:
360 list='$(SUBDIRS)'; for subdir in $$list; do \
361 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
362 done
363
364 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 mkid -fID $$unique
372 tags: TAGS
373
374 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
375 $(TAGS_FILES) $(LISP)
376 set x; \
377 here=`pwd`; \
378 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
379 include_option=--etags-include; \
380 empty_fix=.; \
381 else \
382 include_option=--include; \
383 empty_fix=; \
384 fi; \
385 list='$(SUBDIRS)'; for subdir in $$list; do \
386 if test "$$subdir" = .; then :; else \
387 test ! -f $$subdir/TAGS || \
388 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
389 fi; \
390 done; \
391 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
392 unique=`for i in $$list; do \
393 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
394 done | \
395 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
396 END { if (nonempty) { for (i in files) print i; }; }'`; \
397 shift; \
398 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
399 test -n "$$unique" || unique=$$empty_fix; \
400 if test $$# -gt 0; then \
401 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
402 "$$@" $$unique; \
403 else \
404 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
405 $$unique; \
406 fi; \
407 fi
408 ctags: CTAGS
409 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
410 $(TAGS_FILES) $(LISP)
411 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
412 unique=`for i in $$list; do \
413 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
414 done | \
415 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
416 END { if (nonempty) { for (i in files) print i; }; }'`; \
417 test -z "$(CTAGS_ARGS)$$unique" \
418 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
419 $$unique
420
421 GTAGS:
422 here=`$(am__cd) $(top_builddir) && pwd` \
423 && $(am__cd) $(top_srcdir) \
424 && gtags -i $(GTAGS_ARGS) "$$here"
425
426 distclean-tags:
427 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
428
429 distdir: $(DISTFILES)
430 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
431 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
432 list='$(DISTFILES)'; \
433 dist_files=`for file in $$list; do echo $$file; done | \
434 sed -e "s|^$$srcdirstrip/||;t" \
435 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
436 case $$dist_files in \
437 */*) $(MKDIR_P) `echo "$$dist_files" | \
438 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
439 sort -u` ;; \
440 esac; \
441 for file in $$dist_files; do \
442 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
443 if test -d $$d/$$file; then \
444 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
445 if test -d "$(distdir)/$$file"; then \
446 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
447 fi; \
448 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
449 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
450 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
451 fi; \
452 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
453 else \
454 test -f "$(distdir)/$$file" \
455 || cp -p $$d/$$file "$(distdir)/$$file" \
456 || exit 1; \
457 fi; \
458 done
459 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
460 if test "$$subdir" = .; then :; else \
461 test -d "$(distdir)/$$subdir" \
462 || $(MKDIR_P) "$(distdir)/$$subdir" \
463 || exit 1; \
464 fi; \
465 done
466 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
467 if test "$$subdir" = .; then :; else \
468 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
469 $(am__relativize); \
470 new_distdir=$$reldir; \
471 dir1=$$subdir; dir2="$(top_distdir)"; \
472 $(am__relativize); \
473 new_top_distdir=$$reldir; \
474 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
475 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
476 ($(am__cd) $$subdir && \
477 $(MAKE) $(AM_MAKEFLAGS) \
478 top_distdir="$$new_top_distdir" \
479 distdir="$$new_distdir" \
480 am__remove_distdir=: \
481 am__skip_length_check=: \
482 am__skip_mode_fix=: \
483 distdir) \
484 || exit 1; \
485 fi; \
486 done
487 check-am: all-am
488 check: check-recursive
489 all-am: Makefile
490 installdirs: installdirs-recursive
491 installdirs-am:
492 install: install-recursive
493 install-exec: install-exec-recursive
494 install-data: install-data-recursive
495 uninstall: uninstall-recursive
496
497 install-am: all-am
498 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
499
500 installcheck: installcheck-recursive
501 install-strip:
502 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
503 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
504 `test -z '$(STRIP)' || \
505 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
506 mostlyclean-generic:
507
508 clean-generic:
509
510 distclean-generic:
511 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
512 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
513
514 maintainer-clean-generic:
515 @echo "This command is intended for maintainers to use"
516 @echo "it deletes files that may require special tools to rebuild."
517 clean: clean-recursive
518
519 clean-am: clean-generic clean-libtool mostlyclean-am
520
521 distclean: distclean-recursive
522 -rm -f Makefile
523 distclean-am: clean-am distclean-generic distclean-tags
524
525 dvi: dvi-recursive
526
527 dvi-am:
528
529 html: html-recursive
530
531 html-am:
532
533 info: info-recursive
534
535 info-am:
536
537 install-data-am:
538
539 install-dvi: install-dvi-recursive
540
541 install-dvi-am:
542
543 install-exec-am:
544
545 install-html: install-html-recursive
546
547 install-html-am:
548
549 install-info: install-info-recursive
550
551 install-info-am:
552
553 install-man:
554
555 install-pdf: install-pdf-recursive
556
557 install-pdf-am:
558
559 install-ps: install-ps-recursive
560
561 install-ps-am:
562
563 installcheck-am:
564
565 maintainer-clean: maintainer-clean-recursive
566 -rm -f Makefile
567 maintainer-clean-am: distclean-am maintainer-clean-generic
568
569 mostlyclean: mostlyclean-recursive
570
571 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
572
573 pdf: pdf-recursive
574
575 pdf-am:
576
577 ps: ps-recursive
578
579 ps-am:
580
581 uninstall-am:
582
583 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
584 install-am install-strip tags-recursive
585
586 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
587 all all-am check check-am clean clean-generic clean-libtool \
588 ctags ctags-recursive distclean distclean-generic \
589 distclean-libtool distclean-tags distdir dvi dvi-am html \
590 html-am info info-am install install-am install-data \
591 install-data-am install-dvi install-dvi-am install-exec \
592 install-exec-am install-html install-html-am install-info \
593 install-info-am install-man install-pdf install-pdf-am \
594 install-ps install-ps-am install-strip installcheck \
595 installcheck-am installdirs installdirs-am maintainer-clean \
596 maintainer-clean-generic mostlyclean mostlyclean-generic \
597 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
598 uninstall uninstall-am
599
600
601 # Tell versions [3.59,3.63) of GNU make to not export all variables.
602 # Otherwise a system limit (for SysV at least) may be exceeded.
603 .NOEXPORT:
0 <?xml version="1.0"?>
1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
3 [
4 <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
5 ]>
6 <book id="index">
7 <bookinfo>
8 <title>Libvirt-gconfig Reference Manual</title>
9 </bookinfo>
10
11 <chapter>
12 <title>Libvirt-gconfig</title>
13 <xi:include href="xml/libvirt-gconfig-object.xml"/>
14 <xi:include href="xml/libvirt-gconfig-domain.xml"/>
15 <xi:include href="xml/libvirt-gconfig-domain-snapshot.xml"/>
16 <xi:include href="xml/libvirt-gconfig-interface.xml"/>
17 <xi:include href="xml/libvirt-gconfig-network-filter.xml"/>
18 <xi:include href="xml/libvirt-gconfig-network.xml"/>
19 <xi:include href="xml/libvirt-gconfig-node-device.xml"/>
20 <xi:include href="xml/libvirt-gconfig-secret.xml"/>
21 <xi:include href="xml/libvirt-gconfig-storage-pool.xml"/>
22 <xi:include href="xml/libvirt-gconfig-storage-vol.xml"/>
23 <xi:include href="xml/libvirt-gconfig-capabilities.xml"/>
24 </chapter>
25 <chapter id="object-tree">
26 <title>Object Hierarchy</title>
27 <xi:include href="xml/tree_index.sgml"/>
28 </chapter>
29 <index id="api-index-full">
30 <title>API Index</title>
31 <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
32 </index>
33
34 <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
35 </book>
0
1 DOC_MODULE=Libvirt-gconfig
2
3 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
4
5 # Must not use $(top_srcdir) since gtkdoc-scan runs
6 # from the srcdir already, not the builddir
7 DOC_SOURCE_DIR=../../libvirt-gconfig
8
9 SCANGOBJ_OPTIONS=
10
11 SCAN_OPTIONS=--rebuild-sections --rebuild-types
12
13 MKDB_OPTIONS=--sgml-mode --output-format=xml
14
15 MKTMPL_OPTIONS=
16
17 MKHTML_OPTIONS=
18
19 FIXXREF_OPTIONS=
20
21 HFILE_GLOB=$(top_srcdir)/libvirt-gconfig/*.h
22 CFILE_GLOB=$(top_srcdir)/libvirt-gconfig/*.c
23
24 IGNORE_HFILES=
25
26 HTML_IMAGES=
27
28 content_files=
29
30 expand_content_files=
31
32 GTKDOC_CFLAGS= \
33 $(GOBJECT2_CFLAGS) \
34 $(LIBXML2_CFLAGS)
35 GTKDOC_LIBS = \
36 $(GOBJECT2_LIBS) \
37 $(LIBXML2_LIBS) \
38 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la
39
40 include $(top_srcdir)/gtk-doc.make
41
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 # -*- mode: makefile -*-
18
19 ####################################
20 # Everything below here is generic #
21 ####################################
22 VPATH = @srcdir@
23 pkgdatadir = $(datadir)/@PACKAGE@
24 pkgincludedir = $(includedir)/@PACKAGE@
25 pkglibdir = $(libdir)/@PACKAGE@
26 pkglibexecdir = $(libexecdir)/@PACKAGE@
27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
28 install_sh_DATA = $(install_sh) -c -m 644
29 install_sh_PROGRAM = $(install_sh) -c
30 install_sh_SCRIPT = $(install_sh) -c
31 INSTALL_HEADER = $(INSTALL_DATA)
32 transform = $(program_transform_name)
33 NORMAL_INSTALL = :
34 PRE_INSTALL = :
35 POST_INSTALL = :
36 NORMAL_UNINSTALL = :
37 PRE_UNINSTALL = :
38 POST_UNINSTALL = :
39 build_triplet = @build@
40 host_triplet = @host@
41 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
42 $(top_srcdir)/gtk-doc.make
43 subdir = docs/libvirt-gconfig
44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
46 $(top_srcdir)/configure.ac
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_HEADER = $(top_builddir)/config.h
51 CONFIG_CLEAN_FILES =
52 CONFIG_CLEAN_VPATH_FILES =
53 AM_V_GEN = $(am__v_GEN_$(V))
54 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
55 am__v_GEN_0 = @echo " GEN " $@;
56 AM_V_at = $(am__v_at_$(V))
57 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
58 am__v_at_0 = @
59 SOURCES =
60 DIST_SOURCES =
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMTAR = @AMTAR@
64 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
65 AR = @AR@
66 AS = @AS@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 COMPILER_FLAGS = @COMPILER_FLAGS@
75 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
76 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
77 CPP = @CPP@
78 CPPFLAGS = @CPPFLAGS@
79 CYGPATH_W = @CYGPATH_W@
80 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
81 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
82 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
83 DEFS = @DEFS@
84 DEPDIR = @DEPDIR@
85 DLLTOOL = @DLLTOOL@
86 DSYMUTIL = @DSYMUTIL@
87 DUMPBIN = @DUMPBIN@
88 ECHO_C = @ECHO_C@
89 ECHO_N = @ECHO_N@
90 ECHO_T = @ECHO_T@
91 EGREP = @EGREP@
92 EXEEXT = @EXEEXT@
93 FGREP = @FGREP@
94 GIO2_CFLAGS = @GIO2_CFLAGS@
95 GIO2_LIBS = @GIO2_LIBS@
96 GLIB2_CFLAGS = @GLIB2_CFLAGS@
97 GLIB2_LIBS = @GLIB2_LIBS@
98 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
99 GOBJECT2_LIBS = @GOBJECT2_LIBS@
100 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
101 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
102 GREP = @GREP@
103 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
104 GTHREAD2_LIBS = @GTHREAD2_LIBS@
105 GTKDOC_CHECK = @GTKDOC_CHECK@
106 GTKDOC_MKPDF = @GTKDOC_MKPDF@
107 GTKDOC_REBASE = @GTKDOC_REBASE@
108 G_IR_COMPILER = @G_IR_COMPILER@
109 G_IR_SCANNER = @G_IR_SCANNER@
110 HTML_DIR = @HTML_DIR@
111 INSTALL = @INSTALL@
112 INSTALL_DATA = @INSTALL_DATA@
113 INSTALL_PROGRAM = @INSTALL_PROGRAM@
114 INSTALL_SCRIPT = @INSTALL_SCRIPT@
115 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
116 LD = @LD@
117 LDFLAGS = @LDFLAGS@
118 LIBOBJS = @LIBOBJS@
119 LIBS = @LIBS@
120 LIBTOOL = @LIBTOOL@
121 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
122 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
123 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
124 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
125 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
126 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
127 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
128 LIBVIRT_LIBS = @LIBVIRT_LIBS@
129 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
130 LIBXML2_LIBS = @LIBXML2_LIBS@
131 LIPO = @LIPO@
132 LN_S = @LN_S@
133 LTLIBOBJS = @LTLIBOBJS@
134 MAKEINFO = @MAKEINFO@
135 MANIFEST_TOOL = @MANIFEST_TOOL@
136 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
137 MKDIR_P = @MKDIR_P@
138 NM = @NM@
139 NMEDIT = @NMEDIT@
140 OBJDUMP = @OBJDUMP@
141 OBJEXT = @OBJEXT@
142 OTOOL = @OTOOL@
143 OTOOL64 = @OTOOL64@
144 PACKAGE = @PACKAGE@
145 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
146 PACKAGE_NAME = @PACKAGE_NAME@
147 PACKAGE_STRING = @PACKAGE_STRING@
148 PACKAGE_TARNAME = @PACKAGE_TARNAME@
149 PACKAGE_URL = @PACKAGE_URL@
150 PACKAGE_VERSION = @PACKAGE_VERSION@
151 PATH_SEPARATOR = @PATH_SEPARATOR@
152 PKG_CONFIG = @PKG_CONFIG@
153 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
154 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
155 PYTHON = @PYTHON@
156 PYTHON_INCLUDES = @PYTHON_INCLUDES@
157 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
158 PYTHON_VERSION = @PYTHON_VERSION@
159 RANLIB = @RANLIB@
160 SED = @SED@
161 SET_MAKE = @SET_MAKE@
162 SHELL = @SHELL@
163 STRIP = @STRIP@
164 VAPIGEN = @VAPIGEN@
165 VERSION = @VERSION@
166 WARN_CFLAGS = @WARN_CFLAGS@
167 abs_builddir = @abs_builddir@
168 abs_srcdir = @abs_srcdir@
169 abs_top_builddir = @abs_top_builddir@
170 abs_top_srcdir = @abs_top_srcdir@
171 ac_ct_AR = @ac_ct_AR@
172 ac_ct_CC = @ac_ct_CC@
173 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
174 am__include = @am__include@
175 am__leading_dot = @am__leading_dot@
176 am__quote = @am__quote@
177 am__tar = @am__tar@
178 am__untar = @am__untar@
179 bindir = @bindir@
180 build = @build@
181 build_alias = @build_alias@
182 build_cpu = @build_cpu@
183 build_os = @build_os@
184 build_vendor = @build_vendor@
185 builddir = @builddir@
186 datadir = @datadir@
187 datarootdir = @datarootdir@
188 docdir = @docdir@
189 dvidir = @dvidir@
190 exec_prefix = @exec_prefix@
191 host = @host@
192 host_alias = @host_alias@
193 host_cpu = @host_cpu@
194 host_os = @host_os@
195 host_vendor = @host_vendor@
196 htmldir = @htmldir@
197 includedir = @includedir@
198 infodir = @infodir@
199 install_sh = @install_sh@
200 libdir = @libdir@
201 libexecdir = @libexecdir@
202 localedir = @localedir@
203 localstatedir = @localstatedir@
204 mandir = @mandir@
205 mkdir_p = @mkdir_p@
206 oldincludedir = @oldincludedir@
207 pdfdir = @pdfdir@
208 prefix = @prefix@
209 program_transform_name = @program_transform_name@
210 psdir = @psdir@
211 pythondir = @pythondir@
212 sbindir = @sbindir@
213 sharedstatedir = @sharedstatedir@
214 srcdir = @srcdir@
215 sysconfdir = @sysconfdir@
216 target_alias = @target_alias@
217 top_build_prefix = @top_build_prefix@
218 top_builddir = @top_builddir@
219 top_srcdir = @top_srcdir@
220 DOC_MODULE = Libvirt-gconfig
221 DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
222
223 # Must not use $(top_srcdir) since gtkdoc-scan runs
224 # from the srcdir already, not the builddir
225 DOC_SOURCE_DIR = ../../libvirt-gconfig
226 SCANGOBJ_OPTIONS =
227 SCAN_OPTIONS = --rebuild-sections --rebuild-types
228 MKDB_OPTIONS = --sgml-mode --output-format=xml
229 MKTMPL_OPTIONS =
230 MKHTML_OPTIONS =
231 FIXXREF_OPTIONS =
232 HFILE_GLOB = $(top_srcdir)/libvirt-gconfig/*.h
233 CFILE_GLOB = $(top_srcdir)/libvirt-gconfig/*.c
234 IGNORE_HFILES =
235 HTML_IMAGES =
236 content_files =
237 expand_content_files =
238 GTKDOC_CFLAGS = \
239 $(GOBJECT2_CFLAGS) \
240 $(LIBXML2_CFLAGS)
241
242 GTKDOC_LIBS = \
243 $(GOBJECT2_LIBS) \
244 $(LIBXML2_LIBS) \
245 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la
246
247 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
248 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
249 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
250 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
251 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN =
252 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute
253
254 # We set GPATH here; this gives us semantics for GNU make
255 # which are more like other make's VPATH, when it comes to
256 # whether a source that is a target of one rule is then
257 # searched for in VPATH/GPATH.
258 #
259 GPATH = $(srcdir)
260 TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
261 SETUP_FILES = \
262 $(content_files) \
263 $(DOC_MAIN_SGML_FILE) \
264 $(DOC_MODULE)-sections.txt \
265 $(DOC_MODULE)-overrides.txt
266
267 EXTRA_DIST = \
268 $(HTML_IMAGES) \
269 $(SETUP_FILES)
270
271 DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \
272 html-build.stamp pdf-build.stamp \
273 sgml.stamp html.stamp pdf.stamp
274
275 SCANOBJ_FILES = \
276 $(DOC_MODULE).args \
277 $(DOC_MODULE).hierarchy \
278 $(DOC_MODULE).interfaces \
279 $(DOC_MODULE).prerequisites \
280 $(DOC_MODULE).signals
281
282 REPORT_FILES = \
283 $(DOC_MODULE)-undocumented.txt \
284 $(DOC_MODULE)-undeclared.txt \
285 $(DOC_MODULE)-unused.txt
286
287 CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
288 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP =
289 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp
290 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP =
291 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp
292 all: all-am
293
294 .SUFFIXES:
295 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps)
296 @for dep in $?; do \
297 case '$(am__configure_deps)' in \
298 *$$dep*) \
299 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
300 && { if test -f $@; then exit 0; else break; fi; }; \
301 exit 1;; \
302 esac; \
303 done; \
304 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/libvirt-gconfig/Makefile'; \
305 $(am__cd) $(top_srcdir) && \
306 $(AUTOMAKE) --gnu docs/libvirt-gconfig/Makefile
307 .PRECIOUS: Makefile
308 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
309 @case '$?' in \
310 *config.status*) \
311 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
312 *) \
313 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
314 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
315 esac;
316
317 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
318 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
319
320 $(top_srcdir)/configure: $(am__configure_deps)
321 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
322 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
323 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
324 $(am__aclocal_m4_deps):
325
326 mostlyclean-libtool:
327 -rm -f *.lo
328
329 clean-libtool:
330 -rm -rf .libs _libs
331 tags: TAGS
332 TAGS:
333
334 ctags: CTAGS
335 CTAGS:
336
337
338 distdir: $(DISTFILES)
339 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
340 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
341 list='$(DISTFILES)'; \
342 dist_files=`for file in $$list; do echo $$file; done | \
343 sed -e "s|^$$srcdirstrip/||;t" \
344 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
345 case $$dist_files in \
346 */*) $(MKDIR_P) `echo "$$dist_files" | \
347 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
348 sort -u` ;; \
349 esac; \
350 for file in $$dist_files; do \
351 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
352 if test -d $$d/$$file; then \
353 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
354 if test -d "$(distdir)/$$file"; then \
355 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
356 fi; \
357 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
358 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
359 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
360 fi; \
361 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
362 else \
363 test -f "$(distdir)/$$file" \
364 || cp -p $$d/$$file "$(distdir)/$$file" \
365 || exit 1; \
366 fi; \
367 done
368 $(MAKE) $(AM_MAKEFLAGS) \
369 top_distdir="$(top_distdir)" distdir="$(distdir)" \
370 dist-hook
371 check-am: all-am
372 check: check-am
373 all-am: Makefile all-local
374 installdirs:
375 install: install-am
376 install-exec: install-exec-am
377 install-data: install-data-am
378 uninstall: uninstall-am
379
380 install-am: all-am
381 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
382
383 installcheck: installcheck-am
384 install-strip:
385 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
386 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
387 `test -z '$(STRIP)' || \
388 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
389 mostlyclean-generic:
390
391 clean-generic:
392 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
393
394 distclean-generic:
395 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
396 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
397
398 maintainer-clean-generic:
399 @echo "This command is intended for maintainers to use"
400 @echo "it deletes files that may require special tools to rebuild."
401 clean: clean-am
402
403 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
404
405 distclean: distclean-am
406 -rm -f Makefile
407 distclean-am: clean-am distclean-generic distclean-local
408
409 dvi: dvi-am
410
411 dvi-am:
412
413 html: html-am
414
415 html-am:
416
417 info: info-am
418
419 info-am:
420
421 install-data-am: install-data-local
422
423 install-dvi: install-dvi-am
424
425 install-dvi-am:
426
427 install-exec-am:
428
429 install-html: install-html-am
430
431 install-html-am:
432
433 install-info: install-info-am
434
435 install-info-am:
436
437 install-man:
438
439 install-pdf: install-pdf-am
440
441 install-pdf-am:
442
443 install-ps: install-ps-am
444
445 install-ps-am:
446
447 installcheck-am:
448
449 maintainer-clean: maintainer-clean-am
450 -rm -f Makefile
451 maintainer-clean-am: distclean-am maintainer-clean-generic \
452 maintainer-clean-local
453
454 mostlyclean: mostlyclean-am
455
456 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
457
458 pdf: pdf-am
459
460 pdf-am:
461
462 ps: ps-am
463
464 ps-am:
465
466 uninstall-am: uninstall-local
467
468 .MAKE: install-am install-strip
469
470 .PHONY: all all-am all-local check check-am clean clean-generic \
471 clean-libtool clean-local dist-hook distclean \
472 distclean-generic distclean-libtool distclean-local distdir \
473 dvi dvi-am html html-am info info-am install install-am \
474 install-data install-data-am install-data-local install-dvi \
475 install-dvi-am install-exec install-exec-am install-html \
476 install-html-am install-info install-info-am install-man \
477 install-pdf install-pdf-am install-ps install-ps-am \
478 install-strip installcheck installcheck-am installdirs \
479 maintainer-clean maintainer-clean-generic \
480 maintainer-clean-local mostlyclean mostlyclean-generic \
481 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
482 uninstall-local
483
484
485 @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
486 @ENABLE_GTK_DOC_FALSE@all-local:
487
488 docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
489
490 $(REPORT_FILES): sgml-build.stamp
491
492 #### setup ####
493
494 setup-build.stamp:
495 -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
496 echo ' DOC Preparing build'; \
497 files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
498 if test "x$$files" != "x" ; then \
499 for file in $$files ; do \
500 test -f $(abs_srcdir)/$$file && \
501 cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
502 done; \
503 fi; \
504 fi
505 @touch setup-build.stamp
506
507 #### scan ####
508
509 scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
510 @echo ' DOC Scanning header files'
511 @_source_dir='' ; \
512 for i in $(DOC_SOURCE_DIR) ; do \
513 _source_dir="$${_source_dir} --source-dir=$$i" ; \
514 done ; \
515 gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
516 @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
517 echo " DOC Introspecting gobjects"; \
518 scanobj_options=""; \
519 gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \
520 if test "$(?)" = "0"; then \
521 if test "x$(V)" = "x1"; then \
522 scanobj_options="--verbose"; \
523 fi; \
524 fi; \
525 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
526 gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
527 else \
528 for i in $(SCANOBJ_FILES) ; do \
529 test -f $$i || touch $$i ; \
530 done \
531 fi
532 @touch scan-build.stamp
533
534 $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
535 @true
536
537 #### xml ####
538
539 sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
540 @echo ' DOC Building XML'
541 @_source_dir='' ; \
542 for i in $(DOC_SOURCE_DIR) ; do \
543 _source_dir="$${_source_dir} --source-dir=$$i" ; \
544 done ; \
545 gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
546 @touch sgml-build.stamp
547
548 sgml.stamp: sgml-build.stamp
549 @true
550
551 #### html ####
552
553 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
554 @echo ' DOC Building HTML'
555 @rm -rf html
556 @mkdir html
557 @mkhtml_options=""; \
558 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \
559 if test "$(?)" = "0"; then \
560 if test "x$(V)" = "x1"; then \
561 mkhtml_options="$$mkhtml_options --verbose"; \
562 fi; \
563 fi; \
564 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
565 if test "$(?)" = "0"; then \
566 mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \
567 fi; \
568 cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
569 -@test "x$(HTML_IMAGES)" = "x" || \
570 for file in $(HTML_IMAGES) ; do \
571 if test -f $(abs_srcdir)/$$file ; then \
572 cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
573 fi; \
574 if test -f $(abs_builddir)/$$file ; then \
575 cp $(abs_builddir)/$$file $(abs_builddir)/html; \
576 fi; \
577 done;
578 @echo ' DOC Fixing cross-references'
579 @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
580 @touch html-build.stamp
581
582 #### pdf ####
583
584 pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
585 @echo ' DOC Building PDF'
586 @rm -f $(DOC_MODULE).pdf
587 @mkpdf_options=""; \
588 gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \
589 if test "$(?)" = "0"; then \
590 if test "x$(V)" = "x1"; then \
591 mkpdf_options="$$mkpdf_options --verbose"; \
592 fi; \
593 fi; \
594 if test "x$(HTML_IMAGES)" != "x"; then \
595 for img in $(HTML_IMAGES); do \
596 part=`dirname $$img`; \
597 echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \
598 if test $$? != 0; then \
599 mkpdf_options="$$mkpdf_options --imgdir=$$part"; \
600 fi; \
601 done; \
602 fi; \
603 gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
604 @touch pdf-build.stamp
605
606 ##############
607
608 clean-local:
609 @rm -f *~ *.bak
610 @rm -rf .libs
611
612 distclean-local:
613 @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
614 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
615 @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
616 rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \
617 fi
618
619 maintainer-clean-local: clean
620 @rm -rf xml html
621
622 install-data-local:
623 @installfiles=`echo $(builddir)/html/*`; \
624 if test "$$installfiles" = '$(builddir)/html/*'; \
625 then echo 1>&2 'Nothing to install' ; \
626 else \
627 if test -n "$(DOC_MODULE_VERSION)"; then \
628 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
629 else \
630 installdir="$(DESTDIR)$(TARGET_DIR)"; \
631 fi; \
632 $(mkinstalldirs) $${installdir} ; \
633 for i in $$installfiles; do \
634 echo ' $(INSTALL_DATA) '$$i ; \
635 $(INSTALL_DATA) $$i $${installdir}; \
636 done; \
637 if test -n "$(DOC_MODULE_VERSION)"; then \
638 mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
639 $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
640 fi; \
641 $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
642 fi
643
644 uninstall-local:
645 @if test -n "$(DOC_MODULE_VERSION)"; then \
646 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
647 else \
648 installdir="$(DESTDIR)$(TARGET_DIR)"; \
649 fi; \
650 rm -rf $${installdir}
651
652 #
653 # Require gtk-doc when making dist
654 #
655 @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc:
656 @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc:
657 @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist"
658 @ENABLE_GTK_DOC_FALSE@ @false
659
660 dist-hook: dist-check-gtkdoc dist-hook-local
661 @mkdir $(distdir)/html
662 @cp ./html/* $(distdir)/html
663 @-cp ./$(DOC_MODULE).pdf $(distdir)/
664 @-cp ./$(DOC_MODULE).types $(distdir)/
665 @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/
666 @cd $(distdir) && rm -f $(DISTCLEANFILES)
667 @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
668
669 .PHONY : dist-hook-local docs
670
671 # Tell versions [3.59,3.63) of GNU make to not export all variables.
672 # Otherwise a system limit (for SysV at least) may be exceeded.
673 .NOEXPORT:
0 <?xml version="1.0" encoding="utf-8" standalone="no"?>
1 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-gconfig Reference Manual" link="index.html" author="" name="Libvirt-gconfig">
3 <chapters>
4 <sub name="Libvirt-gconfig" link="ch01.html"/>
5 <sub name="Object Hierarchy" link="object-tree.html"/>
6 <sub name="API Index" link="api-index-full.html"/>
7 </chapters>
8 <functions/>
9 </book>
0 <?xml version="1.0" encoding="utf-8" standalone="no"?>
1 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-gconfig Reference Manual" link="index.html" author="" name="Libvirt-gconfig" version="2" language="c">
3 <chapters>
4 <sub name="Libvirt-gconfig" link="ch01.html"/>
5 <sub name="Object Hierarchy" link="object-tree.html"/>
6 <sub name="API Index" link="api-index-full.html"/>
7 </chapters>
8 <functions/>
9 </book>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>API Index</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gconfig Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-gconfig Reference Manual">
8 <link rel="prev" href="object-tree.html" title="Object Hierarchy">
9 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
10 <link rel="stylesheet" href="style.css" type="text/css">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
14 <td><a accesskey="p" href="object-tree.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
15 <td> </td>
16 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
17 <th width="100%" align="center">Libvirt-gconfig Reference Manual</th>
18 <td> </td>
19 </tr></table>
20 <div class="index">
21 <div class="titlepage"><div><div><h2 class="title">
22 <a name="api-index-full"></a>API Index</h2></div></div></div>
23 <a name="idx"></a>
24 </div>
25 <div class="footer">
26 <hr>
27 Generated by GTK-Doc V1.17</div>
28 </body>
29 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-gconfig</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gconfig Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-gconfig Reference Manual">
8 <link rel="prev" href="index.html" title="Libvirt-gconfig Reference Manual">
9 <link rel="next" href="object-tree.html" title="Object Hierarchy">
10 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-gconfig Reference Manual</th>
19 <td><a accesskey="n" href="object-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20 </tr></table>
21 <div class="chapter">
22 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id406188"></a>Libvirt-gconfig</h2></div></div></div>
24 <span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span>
25 </div>
26 <div class="footer">
27 <hr>
28 Generated by GTK-Doc V1.17</div>
29 </body>
30 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-gconfig Reference Manual</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gconfig Reference Manual">
7 <link rel="next" href="ch01.html" title="Libvirt-gconfig">
8 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
9 <link rel="stylesheet" href="style.css" type="text/css">
10 </head>
11 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12 <div class="book">
13 <div class="titlepage">
14 <div><div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Libvirt-gconfig Reference Manual</p></th></tr></table></div></div>
15 <hr>
16 </div>
17 <div class="toc"><dl>
18 <dt><span class="chapter"><a href="ch01.html">Libvirt-gconfig</a></span></dt>
19 <dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt>
20 <dt><span class="index"><a href="api-index-full.html">API Index</a></span></dt>
21 </dl></div>
22 </div>
23 <div class="footer">
24 <hr>
25 Generated by GTK-Doc V1.17</div>
26 </body>
27 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Object Hierarchy</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gconfig Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-gconfig Reference Manual">
8 <link rel="prev" href="ch01.html" title="Libvirt-gconfig">
9 <link rel="next" href="api-index-full.html" title="API Index">
10 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-gconfig Reference Manual</th>
19 <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20 </tr></table>
21 <div class="chapter">
22 <div class="titlepage"><div><div><h2 class="title">
23 <a name="object-tree"></a>Object Hierarchy</h2></div></div></div>
24 <pre class="screen">
25 </pre>
26 </div>
27 <div class="footer">
28 <hr>
29 Generated by GTK-Doc V1.17</div>
30 </body>
31 </html>
0 .synopsis, .classsynopsis
1 {
2 /* tango:aluminium 1/2 */
3 background: #eeeeec;
4 border: solid 1px #d3d7cf;
5 padding: 0.5em;
6 }
7 .programlisting
8 {
9 /* tango:sky blue 0/1 */
10 background: #e6f3ff;
11 border: solid 1px #729fcf;
12 padding: 0.5em;
13 }
14 .variablelist
15 {
16 padding: 4px;
17 margin-left: 3em;
18 }
19 .variablelist td:first-child
20 {
21 vertical-align: top;
22 }
23
24 @media screen {
25 sup a.footnote
26 {
27 position: relative;
28 top: 0em ! important;
29
30 }
31 /* this is needed so that the local anchors are displayed below the naviagtion */
32 div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name]
33 {
34 display: inline-block;
35 position: relative;
36 top:-5em;
37 }
38 /* this seems to be a bug in the xsl style sheets when generating indexes */
39 div.index div.index
40 {
41 top: 0em;
42 }
43 /* make space for the fixed navigation bar and add space at the bottom so that
44 * link targets appear somewhat close to top
45 */
46 body
47 {
48 padding-top: 3.2em;
49 padding-bottom: 20em;
50 }
51 /* style and size the navigation bar */
52 table.navigation#top
53 {
54 position: fixed;
55 /* tango:scarlet red 0/1 */
56 background: #ffe6e6;
57 border: solid 1px #ef2929;
58 margin-top: 0;
59 margin-bottom: 0;
60 top: 0;
61 left: 0;
62 height: 3em;
63 z-index: 10;
64 }
65 .navigation a, .navigation a:visited
66 {
67 /* tango:scarlet red 3 */
68 color: #a40000;
69 }
70 .navigation a:hover
71 {
72 /* tango:scarlet red 1 */
73 color: #ef2929;
74 }
75 td.shortcuts
76 {
77 /* tango:scarlet red 1 */
78 color: #ef2929;
79 font-size: 80%;
80 white-space: nowrap;
81 }
82 }
83 @media print {
84 table.navigation {
85 visibility: collapse;
86 display: none;
87 }
88 div.titlepage table.navigation {
89 visibility: visible;
90 display: table;
91 /* tango:scarlet red 0/1 */
92 background: #ffe6e6;
93 border: solid 1px #ef2929;
94 margin-top: 0;
95 margin-bottom: 0;
96 top: 0;
97 left: 0;
98 height: 3em;
99 }
100 }
101
102 .navigation .title
103 {
104 font-size: 200%;
105 }
106
107 div.gallery-float
108 {
109 float: left;
110 padding: 10px;
111 }
112 div.gallery-float img
113 {
114 border-style: none;
115 }
116 div.gallery-spacer
117 {
118 clear: both;
119 }
120
121 a, a:visited
122 {
123 text-decoration: none;
124 /* tango:sky blue 2 */
125 color: #3465a4;
126 }
127 a:hover
128 {
129 text-decoration: underline;
130 /* tango:sky blue 1 */
131 color: #729fcf;
132 }
133
134 div.table table
135 {
136 border-collapse: collapse;
137 border-spacing: 0px;
138 /* tango:aluminium 3 */
139 border: solid 1px #babdb6;
140 }
141
142 div.table table td, div.table table th
143 {
144 /* tango:aluminium 3 */
145 border: solid 1px #babdb6;
146 padding: 3px;
147 vertical-align: top;
148 }
149
150 div.table table th
151 {
152 /* tango:aluminium 2 */
153 background-color: #d3d7cf;
154 }
155
156 hr
157 {
158 /* tango:aluminium 3 */
159 color: #babdb6;
160 background: #babdb6;
161 border: none 0px;
162 height: 1px;
163 clear: both;
164 }
165
166 .footer
167 {
168 padding-top: 3.5em;
169 /* tango:aluminium 3 */
170 color: #babdb6;
171 text-align: center;
172 font-size: 80%;
173 }
174
175 .warning
176 {
177 /* tango:orange 0/1 */
178 background: #ffeed9;
179 border-color: #ffb04f;
180 }
181 .note
182 {
183 /* tango:chameleon 0/0.5 */
184 background: #d8ffb2;
185 border-color: #abf562;
186 }
187 .note, .warning
188 {
189 padding: 0.5em;
190 border-width: 1px;
191 border-style: solid;
192 }
193 .note h3, .warning h3
194 {
195 margin-top: 0.0em
196 }
197 .note p, .warning p
198 {
199 margin-bottom: 0.0em
200 }
201
202 /* blob links */
203 h2 .extralinks, h3 .extralinks
204 {
205 float: right;
206 /* tango:aluminium 3 */
207 color: #babdb6;
208 font-size: 80%;
209 font-weight: normal;
210 }
211
212 .annotation
213 {
214 /* tango:aluminium 5 */
215 color: #555753;
216 font-size: 80%;
217 font-weight: normal;
218 }
219
220 /* code listings */
221
222 .listing_code .programlisting .cbracket { color: #a40000; } /* tango: scarlet red 3 */
223 .listing_code .programlisting .comment { color: #a1a39d; } /* tango: aluminium 4 */
224 .listing_code .programlisting .function { color: #000000; font-weight: bold; }
225 .listing_code .programlisting .function a { color: #11326b; font-weight: bold; } /* tango: sky blue 4 */
226 .listing_code .programlisting .keyword { color: #4e9a06; } /* tango: chameleon 3 */
227 .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */
228 .listing_code .programlisting .normal { color: #000000; }
229 .listing_code .programlisting .number { color: #75507b; } /* tango: plum 2 */
230 .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */
231 .listing_code .programlisting .string { color: #c17d11; } /* tango: chocolate 2 */
232 .listing_code .programlisting .type { color: #000000; }
233 .listing_code .programlisting .type a { color: #11326b; } /* tango: sky blue 4 */
234 .listing_code .programlisting .symbol { color: #ce5c00; } /* tango: orange 3 */
235
236 .listing_frame {
237 /* tango:sky blue 1 */
238 border: solid 1px #729fcf;
239 padding: 0px;
240 }
241
242 .listing_lines, .listing_code {
243 margin-top: 0px;
244 margin-bottom: 0px;
245 padding: 0.5em;
246 }
247 .listing_lines {
248 /* tango:sky blue 0.5 */
249 background: #a6c5e3;
250 /* tango:aluminium 6 */
251 color: #2e3436;
252 }
253 .listing_code {
254 /* tango:sky blue 0 */
255 background: #e6f3ff;
256 }
257 .listing_code .programlisting {
258 /* override from previous */
259 border: none 0px;
260 padding: 0px;
261 }
262 .listing_lines pre, .listing_code pre {
263 margin: 0px;
264 }
265
0 <?xml version="1.0"?>
1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
3 [
4 <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
5 ]>
6 <book id="index">
7 <bookinfo>
8 <title>Libvirt-glib Reference Manual</title>
9 </bookinfo>
10
11 <chapter>
12 <title>Libvirt-glib</title>
13 <xi:include href="xml/libvirt-glib-main.xml"/>
14 <xi:include href="xml/libvirt-glib-error.xml"/>
15 <xi:include href="xml/libvirt-glib-event.xml"/>
16 </chapter>
17 <chapter id="object-tree">
18 <title>Object Hierarchy</title>
19 <xi:include href="xml/tree_index.sgml"/>
20 </chapter>
21 <index id="api-index-full">
22 <title>API Index</title>
23 <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
24 </index>
25
26 <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
27 </book>
0
1 DOC_MODULE=Libvirt-glib
2
3 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
4
5 # Must not use $(top_srcdir) since gtkdoc-scan runs
6 # from the srcdir already, not the builddir
7 DOC_SOURCE_DIR=../../libvirt-glib
8
9 SCANGOBJ_OPTIONS=
10
11 SCAN_OPTIONS=--rebuild-sections --rebuild-types
12
13 MKDB_OPTIONS=--sgml-mode --output-format=xml
14
15 MKTMPL_OPTIONS=
16
17 MKHTML_OPTIONS=
18
19 FIXXREF_OPTIONS=
20
21 HFILE_GLOB=$(top_srcdir)/libvirt-glib/*.h
22 CFILE_GLOB=$(top_srcdir)/libvirt-glib/*.c
23
24 IGNORE_HFILES=
25
26 HTML_IMAGES=
27
28 content_files=
29
30 expand_content_files=
31
32 GTKDOC_CFLAGS= \
33 $(LIBVIRT_CFLAGS) \
34 $(GLIB2_CFLAGS) \
35 $(GTHREAD2_CFLAGS)
36 GTKDOC_LIBS = \
37 $(LIBVIRT_LIBS) \
38 $(GLIB2_LIBS) \
39 $(GTHREAD2_LIBS) \
40 $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la
41
42 include $(top_srcdir)/gtk-doc.make
43
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 # -*- mode: makefile -*-
18
19 ####################################
20 # Everything below here is generic #
21 ####################################
22 VPATH = @srcdir@
23 pkgdatadir = $(datadir)/@PACKAGE@
24 pkgincludedir = $(includedir)/@PACKAGE@
25 pkglibdir = $(libdir)/@PACKAGE@
26 pkglibexecdir = $(libexecdir)/@PACKAGE@
27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
28 install_sh_DATA = $(install_sh) -c -m 644
29 install_sh_PROGRAM = $(install_sh) -c
30 install_sh_SCRIPT = $(install_sh) -c
31 INSTALL_HEADER = $(INSTALL_DATA)
32 transform = $(program_transform_name)
33 NORMAL_INSTALL = :
34 PRE_INSTALL = :
35 POST_INSTALL = :
36 NORMAL_UNINSTALL = :
37 PRE_UNINSTALL = :
38 POST_UNINSTALL = :
39 build_triplet = @build@
40 host_triplet = @host@
41 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
42 $(top_srcdir)/gtk-doc.make
43 subdir = docs/libvirt-glib
44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
46 $(top_srcdir)/configure.ac
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_HEADER = $(top_builddir)/config.h
51 CONFIG_CLEAN_FILES =
52 CONFIG_CLEAN_VPATH_FILES =
53 AM_V_GEN = $(am__v_GEN_$(V))
54 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
55 am__v_GEN_0 = @echo " GEN " $@;
56 AM_V_at = $(am__v_at_$(V))
57 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
58 am__v_at_0 = @
59 SOURCES =
60 DIST_SOURCES =
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMTAR = @AMTAR@
64 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
65 AR = @AR@
66 AS = @AS@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 COMPILER_FLAGS = @COMPILER_FLAGS@
75 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
76 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
77 CPP = @CPP@
78 CPPFLAGS = @CPPFLAGS@
79 CYGPATH_W = @CYGPATH_W@
80 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
81 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
82 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
83 DEFS = @DEFS@
84 DEPDIR = @DEPDIR@
85 DLLTOOL = @DLLTOOL@
86 DSYMUTIL = @DSYMUTIL@
87 DUMPBIN = @DUMPBIN@
88 ECHO_C = @ECHO_C@
89 ECHO_N = @ECHO_N@
90 ECHO_T = @ECHO_T@
91 EGREP = @EGREP@
92 EXEEXT = @EXEEXT@
93 FGREP = @FGREP@
94 GIO2_CFLAGS = @GIO2_CFLAGS@
95 GIO2_LIBS = @GIO2_LIBS@
96 GLIB2_CFLAGS = @GLIB2_CFLAGS@
97 GLIB2_LIBS = @GLIB2_LIBS@
98 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
99 GOBJECT2_LIBS = @GOBJECT2_LIBS@
100 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
101 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
102 GREP = @GREP@
103 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
104 GTHREAD2_LIBS = @GTHREAD2_LIBS@
105 GTKDOC_CHECK = @GTKDOC_CHECK@
106 GTKDOC_MKPDF = @GTKDOC_MKPDF@
107 GTKDOC_REBASE = @GTKDOC_REBASE@
108 G_IR_COMPILER = @G_IR_COMPILER@
109 G_IR_SCANNER = @G_IR_SCANNER@
110 HTML_DIR = @HTML_DIR@
111 INSTALL = @INSTALL@
112 INSTALL_DATA = @INSTALL_DATA@
113 INSTALL_PROGRAM = @INSTALL_PROGRAM@
114 INSTALL_SCRIPT = @INSTALL_SCRIPT@
115 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
116 LD = @LD@
117 LDFLAGS = @LDFLAGS@
118 LIBOBJS = @LIBOBJS@
119 LIBS = @LIBS@
120 LIBTOOL = @LIBTOOL@
121 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
122 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
123 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
124 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
125 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
126 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
127 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
128 LIBVIRT_LIBS = @LIBVIRT_LIBS@
129 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
130 LIBXML2_LIBS = @LIBXML2_LIBS@
131 LIPO = @LIPO@
132 LN_S = @LN_S@
133 LTLIBOBJS = @LTLIBOBJS@
134 MAKEINFO = @MAKEINFO@
135 MANIFEST_TOOL = @MANIFEST_TOOL@
136 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
137 MKDIR_P = @MKDIR_P@
138 NM = @NM@
139 NMEDIT = @NMEDIT@
140 OBJDUMP = @OBJDUMP@
141 OBJEXT = @OBJEXT@
142 OTOOL = @OTOOL@
143 OTOOL64 = @OTOOL64@
144 PACKAGE = @PACKAGE@
145 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
146 PACKAGE_NAME = @PACKAGE_NAME@
147 PACKAGE_STRING = @PACKAGE_STRING@
148 PACKAGE_TARNAME = @PACKAGE_TARNAME@
149 PACKAGE_URL = @PACKAGE_URL@
150 PACKAGE_VERSION = @PACKAGE_VERSION@
151 PATH_SEPARATOR = @PATH_SEPARATOR@
152 PKG_CONFIG = @PKG_CONFIG@
153 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
154 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
155 PYTHON = @PYTHON@
156 PYTHON_INCLUDES = @PYTHON_INCLUDES@
157 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
158 PYTHON_VERSION = @PYTHON_VERSION@
159 RANLIB = @RANLIB@
160 SED = @SED@
161 SET_MAKE = @SET_MAKE@
162 SHELL = @SHELL@
163 STRIP = @STRIP@
164 VAPIGEN = @VAPIGEN@
165 VERSION = @VERSION@
166 WARN_CFLAGS = @WARN_CFLAGS@
167 abs_builddir = @abs_builddir@
168 abs_srcdir = @abs_srcdir@
169 abs_top_builddir = @abs_top_builddir@
170 abs_top_srcdir = @abs_top_srcdir@
171 ac_ct_AR = @ac_ct_AR@
172 ac_ct_CC = @ac_ct_CC@
173 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
174 am__include = @am__include@
175 am__leading_dot = @am__leading_dot@
176 am__quote = @am__quote@
177 am__tar = @am__tar@
178 am__untar = @am__untar@
179 bindir = @bindir@
180 build = @build@
181 build_alias = @build_alias@
182 build_cpu = @build_cpu@
183 build_os = @build_os@
184 build_vendor = @build_vendor@
185 builddir = @builddir@
186 datadir = @datadir@
187 datarootdir = @datarootdir@
188 docdir = @docdir@
189 dvidir = @dvidir@
190 exec_prefix = @exec_prefix@
191 host = @host@
192 host_alias = @host_alias@
193 host_cpu = @host_cpu@
194 host_os = @host_os@
195 host_vendor = @host_vendor@
196 htmldir = @htmldir@
197 includedir = @includedir@
198 infodir = @infodir@
199 install_sh = @install_sh@
200 libdir = @libdir@
201 libexecdir = @libexecdir@
202 localedir = @localedir@
203 localstatedir = @localstatedir@
204 mandir = @mandir@
205 mkdir_p = @mkdir_p@
206 oldincludedir = @oldincludedir@
207 pdfdir = @pdfdir@
208 prefix = @prefix@
209 program_transform_name = @program_transform_name@
210 psdir = @psdir@
211 pythondir = @pythondir@
212 sbindir = @sbindir@
213 sharedstatedir = @sharedstatedir@
214 srcdir = @srcdir@
215 sysconfdir = @sysconfdir@
216 target_alias = @target_alias@
217 top_build_prefix = @top_build_prefix@
218 top_builddir = @top_builddir@
219 top_srcdir = @top_srcdir@
220 DOC_MODULE = Libvirt-glib
221 DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
222
223 # Must not use $(top_srcdir) since gtkdoc-scan runs
224 # from the srcdir already, not the builddir
225 DOC_SOURCE_DIR = ../../libvirt-glib
226 SCANGOBJ_OPTIONS =
227 SCAN_OPTIONS = --rebuild-sections --rebuild-types
228 MKDB_OPTIONS = --sgml-mode --output-format=xml
229 MKTMPL_OPTIONS =
230 MKHTML_OPTIONS =
231 FIXXREF_OPTIONS =
232 HFILE_GLOB = $(top_srcdir)/libvirt-glib/*.h
233 CFILE_GLOB = $(top_srcdir)/libvirt-glib/*.c
234 IGNORE_HFILES =
235 HTML_IMAGES =
236 content_files =
237 expand_content_files =
238 GTKDOC_CFLAGS = \
239 $(LIBVIRT_CFLAGS) \
240 $(GLIB2_CFLAGS) \
241 $(GTHREAD2_CFLAGS)
242
243 GTKDOC_LIBS = \
244 $(LIBVIRT_LIBS) \
245 $(GLIB2_LIBS) \
246 $(GTHREAD2_LIBS) \
247 $(top_builddir)/libvirt-glib/libvirt-glib-1.0.la
248
249 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
250 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
251 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
252 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
253 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN =
254 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute
255
256 # We set GPATH here; this gives us semantics for GNU make
257 # which are more like other make's VPATH, when it comes to
258 # whether a source that is a target of one rule is then
259 # searched for in VPATH/GPATH.
260 #
261 GPATH = $(srcdir)
262 TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
263 SETUP_FILES = \
264 $(content_files) \
265 $(DOC_MAIN_SGML_FILE) \
266 $(DOC_MODULE)-sections.txt \
267 $(DOC_MODULE)-overrides.txt
268
269 EXTRA_DIST = \
270 $(HTML_IMAGES) \
271 $(SETUP_FILES)
272
273 DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \
274 html-build.stamp pdf-build.stamp \
275 sgml.stamp html.stamp pdf.stamp
276
277 SCANOBJ_FILES = \
278 $(DOC_MODULE).args \
279 $(DOC_MODULE).hierarchy \
280 $(DOC_MODULE).interfaces \
281 $(DOC_MODULE).prerequisites \
282 $(DOC_MODULE).signals
283
284 REPORT_FILES = \
285 $(DOC_MODULE)-undocumented.txt \
286 $(DOC_MODULE)-undeclared.txt \
287 $(DOC_MODULE)-unused.txt
288
289 CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
290 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP =
291 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp
292 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP =
293 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp
294 all: all-am
295
296 .SUFFIXES:
297 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps)
298 @for dep in $?; do \
299 case '$(am__configure_deps)' in \
300 *$$dep*) \
301 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
302 && { if test -f $@; then exit 0; else break; fi; }; \
303 exit 1;; \
304 esac; \
305 done; \
306 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/libvirt-glib/Makefile'; \
307 $(am__cd) $(top_srcdir) && \
308 $(AUTOMAKE) --gnu docs/libvirt-glib/Makefile
309 .PRECIOUS: Makefile
310 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
311 @case '$?' in \
312 *config.status*) \
313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
314 *) \
315 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
316 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
317 esac;
318
319 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
321
322 $(top_srcdir)/configure: $(am__configure_deps)
323 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
324 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
325 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
326 $(am__aclocal_m4_deps):
327
328 mostlyclean-libtool:
329 -rm -f *.lo
330
331 clean-libtool:
332 -rm -rf .libs _libs
333 tags: TAGS
334 TAGS:
335
336 ctags: CTAGS
337 CTAGS:
338
339
340 distdir: $(DISTFILES)
341 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
342 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
343 list='$(DISTFILES)'; \
344 dist_files=`for file in $$list; do echo $$file; done | \
345 sed -e "s|^$$srcdirstrip/||;t" \
346 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
347 case $$dist_files in \
348 */*) $(MKDIR_P) `echo "$$dist_files" | \
349 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
350 sort -u` ;; \
351 esac; \
352 for file in $$dist_files; do \
353 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
354 if test -d $$d/$$file; then \
355 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
356 if test -d "$(distdir)/$$file"; then \
357 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
358 fi; \
359 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
360 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
361 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
362 fi; \
363 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
364 else \
365 test -f "$(distdir)/$$file" \
366 || cp -p $$d/$$file "$(distdir)/$$file" \
367 || exit 1; \
368 fi; \
369 done
370 $(MAKE) $(AM_MAKEFLAGS) \
371 top_distdir="$(top_distdir)" distdir="$(distdir)" \
372 dist-hook
373 check-am: all-am
374 check: check-am
375 all-am: Makefile all-local
376 installdirs:
377 install: install-am
378 install-exec: install-exec-am
379 install-data: install-data-am
380 uninstall: uninstall-am
381
382 install-am: all-am
383 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
384
385 installcheck: installcheck-am
386 install-strip:
387 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
388 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
389 `test -z '$(STRIP)' || \
390 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
391 mostlyclean-generic:
392
393 clean-generic:
394 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
395
396 distclean-generic:
397 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
398 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
399
400 maintainer-clean-generic:
401 @echo "This command is intended for maintainers to use"
402 @echo "it deletes files that may require special tools to rebuild."
403 clean: clean-am
404
405 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
406
407 distclean: distclean-am
408 -rm -f Makefile
409 distclean-am: clean-am distclean-generic distclean-local
410
411 dvi: dvi-am
412
413 dvi-am:
414
415 html: html-am
416
417 html-am:
418
419 info: info-am
420
421 info-am:
422
423 install-data-am: install-data-local
424
425 install-dvi: install-dvi-am
426
427 install-dvi-am:
428
429 install-exec-am:
430
431 install-html: install-html-am
432
433 install-html-am:
434
435 install-info: install-info-am
436
437 install-info-am:
438
439 install-man:
440
441 install-pdf: install-pdf-am
442
443 install-pdf-am:
444
445 install-ps: install-ps-am
446
447 install-ps-am:
448
449 installcheck-am:
450
451 maintainer-clean: maintainer-clean-am
452 -rm -f Makefile
453 maintainer-clean-am: distclean-am maintainer-clean-generic \
454 maintainer-clean-local
455
456 mostlyclean: mostlyclean-am
457
458 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
459
460 pdf: pdf-am
461
462 pdf-am:
463
464 ps: ps-am
465
466 ps-am:
467
468 uninstall-am: uninstall-local
469
470 .MAKE: install-am install-strip
471
472 .PHONY: all all-am all-local check check-am clean clean-generic \
473 clean-libtool clean-local dist-hook distclean \
474 distclean-generic distclean-libtool distclean-local distdir \
475 dvi dvi-am html html-am info info-am install install-am \
476 install-data install-data-am install-data-local install-dvi \
477 install-dvi-am install-exec install-exec-am install-html \
478 install-html-am install-info install-info-am install-man \
479 install-pdf install-pdf-am install-ps install-ps-am \
480 install-strip installcheck installcheck-am installdirs \
481 maintainer-clean maintainer-clean-generic \
482 maintainer-clean-local mostlyclean mostlyclean-generic \
483 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
484 uninstall-local
485
486
487 @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
488 @ENABLE_GTK_DOC_FALSE@all-local:
489
490 docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
491
492 $(REPORT_FILES): sgml-build.stamp
493
494 #### setup ####
495
496 setup-build.stamp:
497 -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
498 echo ' DOC Preparing build'; \
499 files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
500 if test "x$$files" != "x" ; then \
501 for file in $$files ; do \
502 test -f $(abs_srcdir)/$$file && \
503 cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
504 done; \
505 fi; \
506 fi
507 @touch setup-build.stamp
508
509 #### scan ####
510
511 scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
512 @echo ' DOC Scanning header files'
513 @_source_dir='' ; \
514 for i in $(DOC_SOURCE_DIR) ; do \
515 _source_dir="$${_source_dir} --source-dir=$$i" ; \
516 done ; \
517 gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
518 @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
519 echo " DOC Introspecting gobjects"; \
520 scanobj_options=""; \
521 gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \
522 if test "$(?)" = "0"; then \
523 if test "x$(V)" = "x1"; then \
524 scanobj_options="--verbose"; \
525 fi; \
526 fi; \
527 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
528 gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
529 else \
530 for i in $(SCANOBJ_FILES) ; do \
531 test -f $$i || touch $$i ; \
532 done \
533 fi
534 @touch scan-build.stamp
535
536 $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
537 @true
538
539 #### xml ####
540
541 sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
542 @echo ' DOC Building XML'
543 @_source_dir='' ; \
544 for i in $(DOC_SOURCE_DIR) ; do \
545 _source_dir="$${_source_dir} --source-dir=$$i" ; \
546 done ; \
547 gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
548 @touch sgml-build.stamp
549
550 sgml.stamp: sgml-build.stamp
551 @true
552
553 #### html ####
554
555 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
556 @echo ' DOC Building HTML'
557 @rm -rf html
558 @mkdir html
559 @mkhtml_options=""; \
560 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \
561 if test "$(?)" = "0"; then \
562 if test "x$(V)" = "x1"; then \
563 mkhtml_options="$$mkhtml_options --verbose"; \
564 fi; \
565 fi; \
566 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
567 if test "$(?)" = "0"; then \
568 mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \
569 fi; \
570 cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
571 -@test "x$(HTML_IMAGES)" = "x" || \
572 for file in $(HTML_IMAGES) ; do \
573 if test -f $(abs_srcdir)/$$file ; then \
574 cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
575 fi; \
576 if test -f $(abs_builddir)/$$file ; then \
577 cp $(abs_builddir)/$$file $(abs_builddir)/html; \
578 fi; \
579 done;
580 @echo ' DOC Fixing cross-references'
581 @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
582 @touch html-build.stamp
583
584 #### pdf ####
585
586 pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
587 @echo ' DOC Building PDF'
588 @rm -f $(DOC_MODULE).pdf
589 @mkpdf_options=""; \
590 gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \
591 if test "$(?)" = "0"; then \
592 if test "x$(V)" = "x1"; then \
593 mkpdf_options="$$mkpdf_options --verbose"; \
594 fi; \
595 fi; \
596 if test "x$(HTML_IMAGES)" != "x"; then \
597 for img in $(HTML_IMAGES); do \
598 part=`dirname $$img`; \
599 echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \
600 if test $$? != 0; then \
601 mkpdf_options="$$mkpdf_options --imgdir=$$part"; \
602 fi; \
603 done; \
604 fi; \
605 gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
606 @touch pdf-build.stamp
607
608 ##############
609
610 clean-local:
611 @rm -f *~ *.bak
612 @rm -rf .libs
613
614 distclean-local:
615 @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
616 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
617 @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
618 rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \
619 fi
620
621 maintainer-clean-local: clean
622 @rm -rf xml html
623
624 install-data-local:
625 @installfiles=`echo $(builddir)/html/*`; \
626 if test "$$installfiles" = '$(builddir)/html/*'; \
627 then echo 1>&2 'Nothing to install' ; \
628 else \
629 if test -n "$(DOC_MODULE_VERSION)"; then \
630 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
631 else \
632 installdir="$(DESTDIR)$(TARGET_DIR)"; \
633 fi; \
634 $(mkinstalldirs) $${installdir} ; \
635 for i in $$installfiles; do \
636 echo ' $(INSTALL_DATA) '$$i ; \
637 $(INSTALL_DATA) $$i $${installdir}; \
638 done; \
639 if test -n "$(DOC_MODULE_VERSION)"; then \
640 mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
641 $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
642 fi; \
643 $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
644 fi
645
646 uninstall-local:
647 @if test -n "$(DOC_MODULE_VERSION)"; then \
648 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
649 else \
650 installdir="$(DESTDIR)$(TARGET_DIR)"; \
651 fi; \
652 rm -rf $${installdir}
653
654 #
655 # Require gtk-doc when making dist
656 #
657 @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc:
658 @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc:
659 @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist"
660 @ENABLE_GTK_DOC_FALSE@ @false
661
662 dist-hook: dist-check-gtkdoc dist-hook-local
663 @mkdir $(distdir)/html
664 @cp ./html/* $(distdir)/html
665 @-cp ./$(DOC_MODULE).pdf $(distdir)/
666 @-cp ./$(DOC_MODULE).types $(distdir)/
667 @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/
668 @cd $(distdir) && rm -f $(DISTCLEANFILES)
669 @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
670
671 .PHONY : dist-hook-local docs
672
673 # Tell versions [3.59,3.63) of GNU make to not export all variables.
674 # Otherwise a system limit (for SysV at least) may be exceeded.
675 .NOEXPORT:
0 <?xml version="1.0" encoding="utf-8" standalone="no"?>
1 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-glib Reference Manual" link="index.html" author="" name="Libvirt-glib">
3 <chapters>
4 <sub name="Libvirt-glib" link="ch01.html"/>
5 <sub name="Object Hierarchy" link="object-tree.html"/>
6 <sub name="API Index" link="api-index-full.html"/>
7 </chapters>
8 <functions/>
9 </book>
0 <?xml version="1.0" encoding="utf-8" standalone="no"?>
1 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-glib Reference Manual" link="index.html" author="" name="Libvirt-glib" version="2" language="c">
3 <chapters>
4 <sub name="Libvirt-glib" link="ch01.html"/>
5 <sub name="Object Hierarchy" link="object-tree.html"/>
6 <sub name="API Index" link="api-index-full.html"/>
7 </chapters>
8 <functions/>
9 </book>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>API Index</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-glib Reference Manual">
8 <link rel="prev" href="object-tree.html" title="Object Hierarchy">
9 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
10 <link rel="stylesheet" href="style.css" type="text/css">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
14 <td><a accesskey="p" href="object-tree.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
15 <td> </td>
16 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
17 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
18 <td> </td>
19 </tr></table>
20 <div class="index">
21 <div class="titlepage"><div><div><h2 class="title">
22 <a name="api-index-full"></a>API Index</h2></div></div></div>
23 <a name="idx"></a>
24 </div>
25 <div class="footer">
26 <hr>
27 Generated by GTK-Doc V1.17</div>
28 </body>
29 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-glib</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-glib Reference Manual">
8 <link rel="prev" href="index.html" title="Libvirt-glib Reference Manual">
9 <link rel="next" href="object-tree.html" title="Object Hierarchy">
10 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
19 <td><a accesskey="n" href="object-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20 </tr></table>
21 <div class="chapter">
22 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id375025"></a>Libvirt-glib</h2></div></div></div>
24 <span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span>
25 </div>
26 <div class="footer">
27 <hr>
28 Generated by GTK-Doc V1.17</div>
29 </body>
30 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-glib Reference Manual</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="next" href="ch01.html" title="Libvirt-glib">
8 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
9 <link rel="stylesheet" href="style.css" type="text/css">
10 </head>
11 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12 <div class="book">
13 <div class="titlepage">
14 <div><div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Libvirt-glib Reference Manual</p></th></tr></table></div></div>
15 <hr>
16 </div>
17 <div class="toc"><dl>
18 <dt><span class="chapter"><a href="ch01.html">Libvirt-glib</a></span></dt>
19 <dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt>
20 <dt><span class="index"><a href="api-index-full.html">API Index</a></span></dt>
21 </dl></div>
22 </div>
23 <div class="footer">
24 <hr>
25 Generated by GTK-Doc V1.17</div>
26 </body>
27 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Object Hierarchy</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-glib Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-glib Reference Manual">
8 <link rel="prev" href="ch01.html" title="Libvirt-glib">
9 <link rel="next" href="api-index-full.html" title="API Index">
10 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-glib Reference Manual</th>
19 <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20 </tr></table>
21 <div class="chapter">
22 <div class="titlepage"><div><div><h2 class="title">
23 <a name="object-tree"></a>Object Hierarchy</h2></div></div></div>
24 <pre class="screen">
25 </pre>
26 </div>
27 <div class="footer">
28 <hr>
29 Generated by GTK-Doc V1.17</div>
30 </body>
31 </html>
0 .synopsis, .classsynopsis
1 {
2 /* tango:aluminium 1/2 */
3 background: #eeeeec;
4 border: solid 1px #d3d7cf;
5 padding: 0.5em;
6 }
7 .programlisting
8 {
9 /* tango:sky blue 0/1 */
10 background: #e6f3ff;
11 border: solid 1px #729fcf;
12 padding: 0.5em;
13 }
14 .variablelist
15 {
16 padding: 4px;
17 margin-left: 3em;
18 }
19 .variablelist td:first-child
20 {
21 vertical-align: top;
22 }
23
24 @media screen {
25 sup a.footnote
26 {
27 position: relative;
28 top: 0em ! important;
29
30 }
31 /* this is needed so that the local anchors are displayed below the naviagtion */
32 div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name]
33 {
34 display: inline-block;
35 position: relative;
36 top:-5em;
37 }
38 /* this seems to be a bug in the xsl style sheets when generating indexes */
39 div.index div.index
40 {
41 top: 0em;
42 }
43 /* make space for the fixed navigation bar and add space at the bottom so that
44 * link targets appear somewhat close to top
45 */
46 body
47 {
48 padding-top: 3.2em;
49 padding-bottom: 20em;
50 }
51 /* style and size the navigation bar */
52 table.navigation#top
53 {
54 position: fixed;
55 /* tango:scarlet red 0/1 */
56 background: #ffe6e6;
57 border: solid 1px #ef2929;
58 margin-top: 0;
59 margin-bottom: 0;
60 top: 0;
61 left: 0;
62 height: 3em;
63 z-index: 10;
64 }
65 .navigation a, .navigation a:visited
66 {
67 /* tango:scarlet red 3 */
68 color: #a40000;
69 }
70 .navigation a:hover
71 {
72 /* tango:scarlet red 1 */
73 color: #ef2929;
74 }
75 td.shortcuts
76 {
77 /* tango:scarlet red 1 */
78 color: #ef2929;
79 font-size: 80%;
80 white-space: nowrap;
81 }
82 }
83 @media print {
84 table.navigation {
85 visibility: collapse;
86 display: none;
87 }
88 div.titlepage table.navigation {
89 visibility: visible;
90 display: table;
91 /* tango:scarlet red 0/1 */
92 background: #ffe6e6;
93 border: solid 1px #ef2929;
94 margin-top: 0;
95 margin-bottom: 0;
96 top: 0;
97 left: 0;
98 height: 3em;
99 }
100 }
101
102 .navigation .title
103 {
104 font-size: 200%;
105 }
106
107 div.gallery-float
108 {
109 float: left;
110 padding: 10px;
111 }
112 div.gallery-float img
113 {
114 border-style: none;
115 }
116 div.gallery-spacer
117 {
118 clear: both;
119 }
120
121 a, a:visited
122 {
123 text-decoration: none;
124 /* tango:sky blue 2 */
125 color: #3465a4;
126 }
127 a:hover
128 {
129 text-decoration: underline;
130 /* tango:sky blue 1 */
131 color: #729fcf;
132 }
133
134 div.table table
135 {
136 border-collapse: collapse;
137 border-spacing: 0px;
138 /* tango:aluminium 3 */
139 border: solid 1px #babdb6;
140 }
141
142 div.table table td, div.table table th
143 {
144 /* tango:aluminium 3 */
145 border: solid 1px #babdb6;
146 padding: 3px;
147 vertical-align: top;
148 }
149
150 div.table table th
151 {
152 /* tango:aluminium 2 */
153 background-color: #d3d7cf;
154 }
155
156 hr
157 {
158 /* tango:aluminium 3 */
159 color: #babdb6;
160 background: #babdb6;
161 border: none 0px;
162 height: 1px;
163 clear: both;
164 }
165
166 .footer
167 {
168 padding-top: 3.5em;
169 /* tango:aluminium 3 */
170 color: #babdb6;
171 text-align: center;
172 font-size: 80%;
173 }
174
175 .warning
176 {
177 /* tango:orange 0/1 */
178 background: #ffeed9;
179 border-color: #ffb04f;
180 }
181 .note
182 {
183 /* tango:chameleon 0/0.5 */
184 background: #d8ffb2;
185 border-color: #abf562;
186 }
187 .note, .warning
188 {
189 padding: 0.5em;
190 border-width: 1px;
191 border-style: solid;
192 }
193 .note h3, .warning h3
194 {
195 margin-top: 0.0em
196 }
197 .note p, .warning p
198 {
199 margin-bottom: 0.0em
200 }
201
202 /* blob links */
203 h2 .extralinks, h3 .extralinks
204 {
205 float: right;
206 /* tango:aluminium 3 */
207 color: #babdb6;
208 font-size: 80%;
209 font-weight: normal;
210 }
211
212 .annotation
213 {
214 /* tango:aluminium 5 */
215 color: #555753;
216 font-size: 80%;
217 font-weight: normal;
218 }
219
220 /* code listings */
221
222 .listing_code .programlisting .cbracket { color: #a40000; } /* tango: scarlet red 3 */
223 .listing_code .programlisting .comment { color: #a1a39d; } /* tango: aluminium 4 */
224 .listing_code .programlisting .function { color: #000000; font-weight: bold; }
225 .listing_code .programlisting .function a { color: #11326b; font-weight: bold; } /* tango: sky blue 4 */
226 .listing_code .programlisting .keyword { color: #4e9a06; } /* tango: chameleon 3 */
227 .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */
228 .listing_code .programlisting .normal { color: #000000; }
229 .listing_code .programlisting .number { color: #75507b; } /* tango: plum 2 */
230 .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */
231 .listing_code .programlisting .string { color: #c17d11; } /* tango: chocolate 2 */
232 .listing_code .programlisting .type { color: #000000; }
233 .listing_code .programlisting .type a { color: #11326b; } /* tango: sky blue 4 */
234 .listing_code .programlisting .symbol { color: #ce5c00; } /* tango: orange 3 */
235
236 .listing_frame {
237 /* tango:sky blue 1 */
238 border: solid 1px #729fcf;
239 padding: 0px;
240 }
241
242 .listing_lines, .listing_code {
243 margin-top: 0px;
244 margin-bottom: 0px;
245 padding: 0.5em;
246 }
247 .listing_lines {
248 /* tango:sky blue 0.5 */
249 background: #a6c5e3;
250 /* tango:aluminium 6 */
251 color: #2e3436;
252 }
253 .listing_code {
254 /* tango:sky blue 0 */
255 background: #e6f3ff;
256 }
257 .listing_code .programlisting {
258 /* override from previous */
259 border: none 0px;
260 padding: 0px;
261 }
262 .listing_lines pre, .listing_code pre {
263 margin: 0px;
264 }
265
0 <?xml version="1.0"?>
1 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
3 [
4 <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
5 ]>
6 <book id="index">
7 <bookinfo>
8 <title>Libvirt-gobject Reference Manual</title>
9 </bookinfo>
10
11 <chapter>
12 <title>Libvirt-gobject</title>
13 <xi:include href="xml/libvirt-gobject-connection.xml"/>
14 <xi:include href="xml/libvirt-gobject-domain.xml"/>
15 <xi:include href="xml/libvirt-gobject-domain-snapshot.xml"/>
16 <xi:include href="xml/libvirt-gobject-interface.xml"/>
17 <xi:include href="xml/libvirt-gobject-manager.xml"/>
18 <xi:include href="xml/libvirt-gobject-network-filter.xml"/>
19 <xi:include href="xml/libvirt-gobject-network.xml"/>
20 <xi:include href="xml/libvirt-gobject-node-device.xml"/>
21 <xi:include href="xml/libvirt-gobject-secret.xml"/>
22 <xi:include href="xml/libvirt-gobject-storage-pool.xml"/>
23 <xi:include href="xml/libvirt-gobject-storage-vol.xml"/>
24 <xi:include href="xml/libvirt-gobject-stream.xml"/>
25 </chapter>
26 <chapter id="object-tree">
27 <title>Object Hierarchy</title>
28 <xi:include href="xml/tree_index.sgml"/>
29 </chapter>
30 <index id="api-index-full">
31 <title>API Index</title>
32 <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
33 </index>
34
35 <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
36 </book>
0 <SECTION>
1 <FILE>libvirt-gobject-enums</FILE>
2 GVIR_TYPE_DOMAIN_STATE
3 gvir_domain_state_get_type
4 </SECTION>
5
0 gvir_domain_state_get_type
0
1 DOC_MODULE=Libvirt-gobject
2
3 DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
4
5 # Must not use $(top_srcdir) since gtkdoc-scan runs
6 # from the srcdir already, not the builddir
7 DOC_SOURCE_DIR=../../libvirt-gobject
8
9 SCANGOBJ_OPTIONS=
10
11 SCAN_OPTIONS=--rebuild-sections --rebuild-types
12
13 MKDB_OPTIONS=--sgml-mode --output-format=xml
14
15 MKTMPL_OPTIONS=
16
17 MKHTML_OPTIONS=
18
19 FIXXREF_OPTIONS=
20
21 HFILE_GLOB=$(top_srcdir)/libvirt-gobject/*.h
22 CFILE_GLOB=$(top_srcdir)/libvirt-gobject/*.c
23
24 IGNORE_HFILES=
25
26 HTML_IMAGES=
27
28 content_files=
29
30 expand_content_files=
31
32 GTKDOC_CFLAGS= \
33 $(LIBVIRT_CFLAGS) \
34 $(GOBJECT2_CFLAGS) \
35 $(GIO2_CFLAGS)
36 GTKDOC_LIBS = \
37 $(LIBVIRT_LIBS) \
38 $(GOBJECT2_LIBS) \
39 $(GIO2_LIBS) \
40 $(top_builddir)/libvirt-gobject/libvirt-gobject-1.0.la
41
42 include $(top_srcdir)/gtk-doc.make
43
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 # -*- mode: makefile -*-
18
19 ####################################
20 # Everything below here is generic #
21 ####################################
22 VPATH = @srcdir@
23 pkgdatadir = $(datadir)/@PACKAGE@
24 pkgincludedir = $(includedir)/@PACKAGE@
25 pkglibdir = $(libdir)/@PACKAGE@
26 pkglibexecdir = $(libexecdir)/@PACKAGE@
27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
28 install_sh_DATA = $(install_sh) -c -m 644
29 install_sh_PROGRAM = $(install_sh) -c
30 install_sh_SCRIPT = $(install_sh) -c
31 INSTALL_HEADER = $(INSTALL_DATA)
32 transform = $(program_transform_name)
33 NORMAL_INSTALL = :
34 PRE_INSTALL = :
35 POST_INSTALL = :
36 NORMAL_UNINSTALL = :
37 PRE_UNINSTALL = :
38 POST_UNINSTALL = :
39 build_triplet = @build@
40 host_triplet = @host@
41 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
42 $(top_srcdir)/gtk-doc.make
43 subdir = docs/libvirt-gobject
44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
45 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
46 $(top_srcdir)/configure.ac
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_HEADER = $(top_builddir)/config.h
51 CONFIG_CLEAN_FILES =
52 CONFIG_CLEAN_VPATH_FILES =
53 AM_V_GEN = $(am__v_GEN_$(V))
54 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
55 am__v_GEN_0 = @echo " GEN " $@;
56 AM_V_at = $(am__v_at_$(V))
57 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
58 am__v_at_0 = @
59 SOURCES =
60 DIST_SOURCES =
61 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62 ACLOCAL = @ACLOCAL@
63 AMTAR = @AMTAR@
64 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
65 AR = @AR@
66 AS = @AS@
67 AUTOCONF = @AUTOCONF@
68 AUTOHEADER = @AUTOHEADER@
69 AUTOMAKE = @AUTOMAKE@
70 AWK = @AWK@
71 CC = @CC@
72 CCDEPMODE = @CCDEPMODE@
73 CFLAGS = @CFLAGS@
74 COMPILER_FLAGS = @COMPILER_FLAGS@
75 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
76 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
77 CPP = @CPP@
78 CPPFLAGS = @CPPFLAGS@
79 CYGPATH_W = @CYGPATH_W@
80 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
81 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
82 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
83 DEFS = @DEFS@
84 DEPDIR = @DEPDIR@
85 DLLTOOL = @DLLTOOL@
86 DSYMUTIL = @DSYMUTIL@
87 DUMPBIN = @DUMPBIN@
88 ECHO_C = @ECHO_C@
89 ECHO_N = @ECHO_N@
90 ECHO_T = @ECHO_T@
91 EGREP = @EGREP@
92 EXEEXT = @EXEEXT@
93 FGREP = @FGREP@
94 GIO2_CFLAGS = @GIO2_CFLAGS@
95 GIO2_LIBS = @GIO2_LIBS@
96 GLIB2_CFLAGS = @GLIB2_CFLAGS@
97 GLIB2_LIBS = @GLIB2_LIBS@
98 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
99 GOBJECT2_LIBS = @GOBJECT2_LIBS@
100 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
101 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
102 GREP = @GREP@
103 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
104 GTHREAD2_LIBS = @GTHREAD2_LIBS@
105 GTKDOC_CHECK = @GTKDOC_CHECK@
106 GTKDOC_MKPDF = @GTKDOC_MKPDF@
107 GTKDOC_REBASE = @GTKDOC_REBASE@
108 G_IR_COMPILER = @G_IR_COMPILER@
109 G_IR_SCANNER = @G_IR_SCANNER@
110 HTML_DIR = @HTML_DIR@
111 INSTALL = @INSTALL@
112 INSTALL_DATA = @INSTALL_DATA@
113 INSTALL_PROGRAM = @INSTALL_PROGRAM@
114 INSTALL_SCRIPT = @INSTALL_SCRIPT@
115 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
116 LD = @LD@
117 LDFLAGS = @LDFLAGS@
118 LIBOBJS = @LIBOBJS@
119 LIBS = @LIBS@
120 LIBTOOL = @LIBTOOL@
121 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
122 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
123 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
124 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
125 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
126 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
127 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
128 LIBVIRT_LIBS = @LIBVIRT_LIBS@
129 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
130 LIBXML2_LIBS = @LIBXML2_LIBS@
131 LIPO = @LIPO@
132 LN_S = @LN_S@
133 LTLIBOBJS = @LTLIBOBJS@
134 MAKEINFO = @MAKEINFO@
135 MANIFEST_TOOL = @MANIFEST_TOOL@
136 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
137 MKDIR_P = @MKDIR_P@
138 NM = @NM@
139 NMEDIT = @NMEDIT@
140 OBJDUMP = @OBJDUMP@
141 OBJEXT = @OBJEXT@
142 OTOOL = @OTOOL@
143 OTOOL64 = @OTOOL64@
144 PACKAGE = @PACKAGE@
145 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
146 PACKAGE_NAME = @PACKAGE_NAME@
147 PACKAGE_STRING = @PACKAGE_STRING@
148 PACKAGE_TARNAME = @PACKAGE_TARNAME@
149 PACKAGE_URL = @PACKAGE_URL@
150 PACKAGE_VERSION = @PACKAGE_VERSION@
151 PATH_SEPARATOR = @PATH_SEPARATOR@
152 PKG_CONFIG = @PKG_CONFIG@
153 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
154 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
155 PYTHON = @PYTHON@
156 PYTHON_INCLUDES = @PYTHON_INCLUDES@
157 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
158 PYTHON_VERSION = @PYTHON_VERSION@
159 RANLIB = @RANLIB@
160 SED = @SED@
161 SET_MAKE = @SET_MAKE@
162 SHELL = @SHELL@
163 STRIP = @STRIP@
164 VAPIGEN = @VAPIGEN@
165 VERSION = @VERSION@
166 WARN_CFLAGS = @WARN_CFLAGS@
167 abs_builddir = @abs_builddir@
168 abs_srcdir = @abs_srcdir@
169 abs_top_builddir = @abs_top_builddir@
170 abs_top_srcdir = @abs_top_srcdir@
171 ac_ct_AR = @ac_ct_AR@
172 ac_ct_CC = @ac_ct_CC@
173 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
174 am__include = @am__include@
175 am__leading_dot = @am__leading_dot@
176 am__quote = @am__quote@
177 am__tar = @am__tar@
178 am__untar = @am__untar@
179 bindir = @bindir@
180 build = @build@
181 build_alias = @build_alias@
182 build_cpu = @build_cpu@
183 build_os = @build_os@
184 build_vendor = @build_vendor@
185 builddir = @builddir@
186 datadir = @datadir@
187 datarootdir = @datarootdir@
188 docdir = @docdir@
189 dvidir = @dvidir@
190 exec_prefix = @exec_prefix@
191 host = @host@
192 host_alias = @host_alias@
193 host_cpu = @host_cpu@
194 host_os = @host_os@
195 host_vendor = @host_vendor@
196 htmldir = @htmldir@
197 includedir = @includedir@
198 infodir = @infodir@
199 install_sh = @install_sh@
200 libdir = @libdir@
201 libexecdir = @libexecdir@
202 localedir = @localedir@
203 localstatedir = @localstatedir@
204 mandir = @mandir@
205 mkdir_p = @mkdir_p@
206 oldincludedir = @oldincludedir@
207 pdfdir = @pdfdir@
208 prefix = @prefix@
209 program_transform_name = @program_transform_name@
210 psdir = @psdir@
211 pythondir = @pythondir@
212 sbindir = @sbindir@
213 sharedstatedir = @sharedstatedir@
214 srcdir = @srcdir@
215 sysconfdir = @sysconfdir@
216 target_alias = @target_alias@
217 top_build_prefix = @top_build_prefix@
218 top_builddir = @top_builddir@
219 top_srcdir = @top_srcdir@
220 DOC_MODULE = Libvirt-gobject
221 DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
222
223 # Must not use $(top_srcdir) since gtkdoc-scan runs
224 # from the srcdir already, not the builddir
225 DOC_SOURCE_DIR = ../../libvirt-gobject
226 SCANGOBJ_OPTIONS =
227 SCAN_OPTIONS = --rebuild-sections --rebuild-types
228 MKDB_OPTIONS = --sgml-mode --output-format=xml
229 MKTMPL_OPTIONS =
230 MKHTML_OPTIONS =
231 FIXXREF_OPTIONS =
232 HFILE_GLOB = $(top_srcdir)/libvirt-gobject/*.h
233 CFILE_GLOB = $(top_srcdir)/libvirt-gobject/*.c
234 IGNORE_HFILES =
235 HTML_IMAGES =
236 content_files =
237 expand_content_files =
238 GTKDOC_CFLAGS = \
239 $(LIBVIRT_CFLAGS) \
240 $(GOBJECT2_CFLAGS) \
241 $(GIO2_CFLAGS)
242
243 GTKDOC_LIBS = \
244 $(LIBVIRT_LIBS) \
245 $(GOBJECT2_LIBS) \
246 $(GIO2_LIBS) \
247 $(top_builddir)/libvirt-gobject/libvirt-gobject-1.0.la
248
249 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
250 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
251 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
252 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
253 @GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN =
254 @GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute
255
256 # We set GPATH here; this gives us semantics for GNU make
257 # which are more like other make's VPATH, when it comes to
258 # whether a source that is a target of one rule is then
259 # searched for in VPATH/GPATH.
260 #
261 GPATH = $(srcdir)
262 TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
263 SETUP_FILES = \
264 $(content_files) \
265 $(DOC_MAIN_SGML_FILE) \
266 $(DOC_MODULE)-sections.txt \
267 $(DOC_MODULE)-overrides.txt
268
269 EXTRA_DIST = \
270 $(HTML_IMAGES) \
271 $(SETUP_FILES)
272
273 DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \
274 html-build.stamp pdf-build.stamp \
275 sgml.stamp html.stamp pdf.stamp
276
277 SCANOBJ_FILES = \
278 $(DOC_MODULE).args \
279 $(DOC_MODULE).hierarchy \
280 $(DOC_MODULE).interfaces \
281 $(DOC_MODULE).prerequisites \
282 $(DOC_MODULE).signals
283
284 REPORT_FILES = \
285 $(DOC_MODULE)-undocumented.txt \
286 $(DOC_MODULE)-undeclared.txt \
287 $(DOC_MODULE)-unused.txt
288
289 CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
290 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP =
291 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp
292 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP =
293 @ENABLE_GTK_DOC_TRUE@@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp
294 all: all-am
295
296 .SUFFIXES:
297 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps)
298 @for dep in $?; do \
299 case '$(am__configure_deps)' in \
300 *$$dep*) \
301 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
302 && { if test -f $@; then exit 0; else break; fi; }; \
303 exit 1;; \
304 esac; \
305 done; \
306 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/libvirt-gobject/Makefile'; \
307 $(am__cd) $(top_srcdir) && \
308 $(AUTOMAKE) --gnu docs/libvirt-gobject/Makefile
309 .PRECIOUS: Makefile
310 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
311 @case '$?' in \
312 *config.status*) \
313 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
314 *) \
315 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
316 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
317 esac;
318
319 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
321
322 $(top_srcdir)/configure: $(am__configure_deps)
323 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
324 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
325 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
326 $(am__aclocal_m4_deps):
327
328 mostlyclean-libtool:
329 -rm -f *.lo
330
331 clean-libtool:
332 -rm -rf .libs _libs
333 tags: TAGS
334 TAGS:
335
336 ctags: CTAGS
337 CTAGS:
338
339
340 distdir: $(DISTFILES)
341 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
342 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
343 list='$(DISTFILES)'; \
344 dist_files=`for file in $$list; do echo $$file; done | \
345 sed -e "s|^$$srcdirstrip/||;t" \
346 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
347 case $$dist_files in \
348 */*) $(MKDIR_P) `echo "$$dist_files" | \
349 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
350 sort -u` ;; \
351 esac; \
352 for file in $$dist_files; do \
353 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
354 if test -d $$d/$$file; then \
355 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
356 if test -d "$(distdir)/$$file"; then \
357 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
358 fi; \
359 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
360 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
361 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
362 fi; \
363 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
364 else \
365 test -f "$(distdir)/$$file" \
366 || cp -p $$d/$$file "$(distdir)/$$file" \
367 || exit 1; \
368 fi; \
369 done
370 $(MAKE) $(AM_MAKEFLAGS) \
371 top_distdir="$(top_distdir)" distdir="$(distdir)" \
372 dist-hook
373 check-am: all-am
374 check: check-am
375 all-am: Makefile all-local
376 installdirs:
377 install: install-am
378 install-exec: install-exec-am
379 install-data: install-data-am
380 uninstall: uninstall-am
381
382 install-am: all-am
383 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
384
385 installcheck: installcheck-am
386 install-strip:
387 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
388 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
389 `test -z '$(STRIP)' || \
390 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
391 mostlyclean-generic:
392
393 clean-generic:
394 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
395
396 distclean-generic:
397 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
398 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
399
400 maintainer-clean-generic:
401 @echo "This command is intended for maintainers to use"
402 @echo "it deletes files that may require special tools to rebuild."
403 clean: clean-am
404
405 clean-am: clean-generic clean-libtool clean-local mostlyclean-am
406
407 distclean: distclean-am
408 -rm -f Makefile
409 distclean-am: clean-am distclean-generic distclean-local
410
411 dvi: dvi-am
412
413 dvi-am:
414
415 html: html-am
416
417 html-am:
418
419 info: info-am
420
421 info-am:
422
423 install-data-am: install-data-local
424
425 install-dvi: install-dvi-am
426
427 install-dvi-am:
428
429 install-exec-am:
430
431 install-html: install-html-am
432
433 install-html-am:
434
435 install-info: install-info-am
436
437 install-info-am:
438
439 install-man:
440
441 install-pdf: install-pdf-am
442
443 install-pdf-am:
444
445 install-ps: install-ps-am
446
447 install-ps-am:
448
449 installcheck-am:
450
451 maintainer-clean: maintainer-clean-am
452 -rm -f Makefile
453 maintainer-clean-am: distclean-am maintainer-clean-generic \
454 maintainer-clean-local
455
456 mostlyclean: mostlyclean-am
457
458 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
459
460 pdf: pdf-am
461
462 pdf-am:
463
464 ps: ps-am
465
466 ps-am:
467
468 uninstall-am: uninstall-local
469
470 .MAKE: install-am install-strip
471
472 .PHONY: all all-am all-local check check-am clean clean-generic \
473 clean-libtool clean-local dist-hook distclean \
474 distclean-generic distclean-libtool distclean-local distdir \
475 dvi dvi-am html html-am info info-am install install-am \
476 install-data install-data-am install-data-local install-dvi \
477 install-dvi-am install-exec install-exec-am install-html \
478 install-html-am install-info install-info-am install-man \
479 install-pdf install-pdf-am install-ps install-ps-am \
480 install-strip installcheck installcheck-am installdirs \
481 maintainer-clean maintainer-clean-generic \
482 maintainer-clean-local mostlyclean mostlyclean-generic \
483 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
484 uninstall-local
485
486
487 @ENABLE_GTK_DOC_TRUE@all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
488 @ENABLE_GTK_DOC_FALSE@all-local:
489
490 docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
491
492 $(REPORT_FILES): sgml-build.stamp
493
494 #### setup ####
495
496 setup-build.stamp:
497 -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
498 echo ' DOC Preparing build'; \
499 files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
500 if test "x$$files" != "x" ; then \
501 for file in $$files ; do \
502 test -f $(abs_srcdir)/$$file && \
503 cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
504 done; \
505 fi; \
506 fi
507 @touch setup-build.stamp
508
509 #### scan ####
510
511 scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
512 @echo ' DOC Scanning header files'
513 @_source_dir='' ; \
514 for i in $(DOC_SOURCE_DIR) ; do \
515 _source_dir="$${_source_dir} --source-dir=$$i" ; \
516 done ; \
517 gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
518 @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
519 echo " DOC Introspecting gobjects"; \
520 scanobj_options=""; \
521 gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \
522 if test "$(?)" = "0"; then \
523 if test "x$(V)" = "x1"; then \
524 scanobj_options="--verbose"; \
525 fi; \
526 fi; \
527 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
528 gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
529 else \
530 for i in $(SCANOBJ_FILES) ; do \
531 test -f $$i || touch $$i ; \
532 done \
533 fi
534 @touch scan-build.stamp
535
536 $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
537 @true
538
539 #### xml ####
540
541 sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
542 @echo ' DOC Building XML'
543 @_source_dir='' ; \
544 for i in $(DOC_SOURCE_DIR) ; do \
545 _source_dir="$${_source_dir} --source-dir=$$i" ; \
546 done ; \
547 gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
548 @touch sgml-build.stamp
549
550 sgml.stamp: sgml-build.stamp
551 @true
552
553 #### html ####
554
555 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
556 @echo ' DOC Building HTML'
557 @rm -rf html
558 @mkdir html
559 @mkhtml_options=""; \
560 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \
561 if test "$(?)" = "0"; then \
562 if test "x$(V)" = "x1"; then \
563 mkhtml_options="$$mkhtml_options --verbose"; \
564 fi; \
565 fi; \
566 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
567 if test "$(?)" = "0"; then \
568 mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \
569 fi; \
570 cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
571 -@test "x$(HTML_IMAGES)" = "x" || \
572 for file in $(HTML_IMAGES) ; do \
573 if test -f $(abs_srcdir)/$$file ; then \
574 cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
575 fi; \
576 if test -f $(abs_builddir)/$$file ; then \
577 cp $(abs_builddir)/$$file $(abs_builddir)/html; \
578 fi; \
579 done;
580 @echo ' DOC Fixing cross-references'
581 @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
582 @touch html-build.stamp
583
584 #### pdf ####
585
586 pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
587 @echo ' DOC Building PDF'
588 @rm -f $(DOC_MODULE).pdf
589 @mkpdf_options=""; \
590 gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \
591 if test "$(?)" = "0"; then \
592 if test "x$(V)" = "x1"; then \
593 mkpdf_options="$$mkpdf_options --verbose"; \
594 fi; \
595 fi; \
596 if test "x$(HTML_IMAGES)" != "x"; then \
597 for img in $(HTML_IMAGES); do \
598 part=`dirname $$img`; \
599 echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \
600 if test $$? != 0; then \
601 mkpdf_options="$$mkpdf_options --imgdir=$$part"; \
602 fi; \
603 done; \
604 fi; \
605 gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
606 @touch pdf-build.stamp
607
608 ##############
609
610 clean-local:
611 @rm -f *~ *.bak
612 @rm -rf .libs
613
614 distclean-local:
615 @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
616 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
617 @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
618 rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \
619 fi
620
621 maintainer-clean-local: clean
622 @rm -rf xml html
623
624 install-data-local:
625 @installfiles=`echo $(builddir)/html/*`; \
626 if test "$$installfiles" = '$(builddir)/html/*'; \
627 then echo 1>&2 'Nothing to install' ; \
628 else \
629 if test -n "$(DOC_MODULE_VERSION)"; then \
630 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
631 else \
632 installdir="$(DESTDIR)$(TARGET_DIR)"; \
633 fi; \
634 $(mkinstalldirs) $${installdir} ; \
635 for i in $$installfiles; do \
636 echo ' $(INSTALL_DATA) '$$i ; \
637 $(INSTALL_DATA) $$i $${installdir}; \
638 done; \
639 if test -n "$(DOC_MODULE_VERSION)"; then \
640 mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
641 $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
642 fi; \
643 $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
644 fi
645
646 uninstall-local:
647 @if test -n "$(DOC_MODULE_VERSION)"; then \
648 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
649 else \
650 installdir="$(DESTDIR)$(TARGET_DIR)"; \
651 fi; \
652 rm -rf $${installdir}
653
654 #
655 # Require gtk-doc when making dist
656 #
657 @ENABLE_GTK_DOC_TRUE@dist-check-gtkdoc:
658 @ENABLE_GTK_DOC_FALSE@dist-check-gtkdoc:
659 @ENABLE_GTK_DOC_FALSE@ @echo "*** gtk-doc must be installed and enabled in order to make dist"
660 @ENABLE_GTK_DOC_FALSE@ @false
661
662 dist-hook: dist-check-gtkdoc dist-hook-local
663 @mkdir $(distdir)/html
664 @cp ./html/* $(distdir)/html
665 @-cp ./$(DOC_MODULE).pdf $(distdir)/
666 @-cp ./$(DOC_MODULE).types $(distdir)/
667 @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/
668 @cd $(distdir) && rm -f $(DISTCLEANFILES)
669 @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
670
671 .PHONY : dist-hook-local docs
672
673 # Tell versions [3.59,3.63) of GNU make to not export all variables.
674 # Otherwise a system limit (for SysV at least) may be exceeded.
675 .NOEXPORT:
0 <?xml version="1.0" encoding="utf-8" standalone="no"?>
1 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-gobject Reference Manual" link="index.html" author="" name="Libvirt-gobject">
3 <chapters>
4 <sub name="Libvirt-gobject" link="ch01.html"/>
5 <sub name="Object Hierarchy" link="object-tree.html"/>
6 <sub name="API Index" link="api-index-full.html"/>
7 </chapters>
8 <functions/>
9 </book>
0 <?xml version="1.0" encoding="utf-8" standalone="no"?>
1 <!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
2 <book xmlns="http://www.devhelp.net/book" title="Libvirt-gobject Reference Manual" link="index.html" author="" name="Libvirt-gobject" version="2" language="c">
3 <chapters>
4 <sub name="Libvirt-gobject" link="ch01.html"/>
5 <sub name="Object Hierarchy" link="object-tree.html"/>
6 <sub name="API Index" link="api-index-full.html"/>
7 </chapters>
8 <functions/>
9 </book>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>API Index</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gobject Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-gobject Reference Manual">
8 <link rel="prev" href="object-tree.html" title="Object Hierarchy">
9 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
10 <link rel="stylesheet" href="style.css" type="text/css">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
14 <tr valign="middle">
15 <td><a accesskey="p" href="object-tree.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-gobject Reference Manual</th>
19 <td> </td>
20 </tr>
21 <tr><td colspan="5" class="shortcuts">
22 <a class="shortcut" href="#idxD">D</a>
23  | 
24 <a class="shortcut" href="#idxT">T</a>
25 </td></tr>
26 </table>
27 <div class="index">
28 <div class="titlepage"><div><div><h2 class="title">
29 <a name="api-index-full"></a>API Index</h2></div></div></div>
30 <a name="idx"></a><a name="idxD"></a><h3 class="title">D</h3>
31 <dt>
32 gvir_domain_state_get_type, function in libvirt-gobject-enums
33 </dt>
34 <dd></dd>
35 <a name="idxT"></a><h3 class="title">T</h3>
36 <dt>
37 GVIR_TYPE_DOMAIN_STATE, macro in libvirt-gobject-enums
38 </dt>
39 <dd></dd>
40 </div>
41 <div class="footer">
42 <hr>
43 Generated by GTK-Doc V1.17</div>
44 </body>
45 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-gobject</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gobject Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-gobject Reference Manual">
8 <link rel="prev" href="index.html" title="Libvirt-gobject Reference Manual">
9 <link rel="next" href="object-tree.html" title="Object Hierarchy">
10 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-gobject Reference Manual</th>
19 <td><a accesskey="n" href="object-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20 </tr></table>
21 <div class="chapter">
22 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id464659"></a>Libvirt-gobject</h2></div></div></div>
24 <span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span><span style="color: red">&lt;xi:include&gt;&lt;/xi:include&gt;</span>
25 </div>
26 <div class="footer">
27 <hr>
28 Generated by GTK-Doc V1.17</div>
29 </body>
30 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Libvirt-gobject Reference Manual</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gobject Reference Manual">
7 <link rel="next" href="ch01.html" title="Libvirt-gobject">
8 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
9 <link rel="stylesheet" href="style.css" type="text/css">
10 </head>
11 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12 <div class="book">
13 <div class="titlepage">
14 <div><div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Libvirt-gobject Reference Manual</p></th></tr></table></div></div>
15 <hr>
16 </div>
17 <div class="toc"><dl>
18 <dt><span class="chapter"><a href="ch01.html">Libvirt-gobject</a></span></dt>
19 <dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt>
20 <dt><span class="index"><a href="api-index-full.html">API Index</a></span></dt>
21 </dl></div>
22 </div>
23 <div class="footer">
24 <hr>
25 Generated by GTK-Doc V1.17</div>
26 </body>
27 </html>
0 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>Object Hierarchy</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
6 <link rel="home" href="index.html" title="Libvirt-gobject Reference Manual">
7 <link rel="up" href="index.html" title="Libvirt-gobject Reference Manual">
8 <link rel="prev" href="ch01.html" title="Libvirt-gobject">
9 <link rel="next" href="api-index-full.html" title="API Index">
10 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
11 <link rel="stylesheet" href="style.css" type="text/css">
12 </head>
13 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
14 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
15 <td><a accesskey="p" href="ch01.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td> </td>
17 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
18 <th width="100%" align="center">Libvirt-gobject Reference Manual</th>
19 <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20 </tr></table>
21 <div class="chapter">
22 <div class="titlepage"><div><div><h2 class="title">
23 <a name="object-tree"></a>Object Hierarchy</h2></div></div></div>
24 <pre class="screen">
25 </pre>
26 </div>
27 <div class="footer">
28 <hr>
29 Generated by GTK-Doc V1.17</div>
30 </body>
31 </html>
0 .synopsis, .classsynopsis
1 {
2 /* tango:aluminium 1/2 */
3 background: #eeeeec;
4 border: solid 1px #d3d7cf;
5 padding: 0.5em;
6 }
7 .programlisting
8 {
9 /* tango:sky blue 0/1 */
10 background: #e6f3ff;
11 border: solid 1px #729fcf;
12 padding: 0.5em;
13 }
14 .variablelist
15 {
16 padding: 4px;
17 margin-left: 3em;
18 }
19 .variablelist td:first-child
20 {
21 vertical-align: top;
22 }
23
24 @media screen {
25 sup a.footnote
26 {
27 position: relative;
28 top: 0em ! important;
29
30 }
31 /* this is needed so that the local anchors are displayed below the naviagtion */
32 div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name]
33 {
34 display: inline-block;
35 position: relative;
36 top:-5em;
37 }
38 /* this seems to be a bug in the xsl style sheets when generating indexes */
39 div.index div.index
40 {
41 top: 0em;
42 }
43 /* make space for the fixed navigation bar and add space at the bottom so that
44 * link targets appear somewhat close to top
45 */
46 body
47 {
48 padding-top: 3.2em;
49 padding-bottom: 20em;
50 }
51 /* style and size the navigation bar */
52 table.navigation#top
53 {
54 position: fixed;
55 /* tango:scarlet red 0/1 */
56 background: #ffe6e6;
57 border: solid 1px #ef2929;
58 margin-top: 0;
59 margin-bottom: 0;
60 top: 0;
61 left: 0;
62 height: 3em;
63 z-index: 10;
64 }
65 .navigation a, .navigation a:visited
66 {
67 /* tango:scarlet red 3 */
68 color: #a40000;
69 }
70 .navigation a:hover
71 {
72 /* tango:scarlet red 1 */
73 color: #ef2929;
74 }
75 td.shortcuts
76 {
77 /* tango:scarlet red 1 */
78 color: #ef2929;
79 font-size: 80%;
80 white-space: nowrap;
81 }
82 }
83 @media print {
84 table.navigation {
85 visibility: collapse;
86 display: none;
87 }
88 div.titlepage table.navigation {
89 visibility: visible;
90 display: table;
91 /* tango:scarlet red 0/1 */
92 background: #ffe6e6;
93 border: solid 1px #ef2929;
94 margin-top: 0;
95 margin-bottom: 0;
96 top: 0;
97 left: 0;
98 height: 3em;
99 }
100 }
101
102 .navigation .title
103 {
104 font-size: 200%;
105 }
106
107 div.gallery-float
108 {
109 float: left;
110 padding: 10px;
111 }
112 div.gallery-float img
113 {
114 border-style: none;
115 }
116 div.gallery-spacer
117 {
118 clear: both;
119 }
120
121 a, a:visited
122 {
123 text-decoration: none;
124 /* tango:sky blue 2 */
125 color: #3465a4;
126 }
127 a:hover
128 {
129 text-decoration: underline;
130 /* tango:sky blue 1 */
131 color: #729fcf;
132 }
133
134 div.table table
135 {
136 border-collapse: collapse;
137 border-spacing: 0px;
138 /* tango:aluminium 3 */
139 border: solid 1px #babdb6;
140 }
141
142 div.table table td, div.table table th
143 {
144 /* tango:aluminium 3 */
145 border: solid 1px #babdb6;
146 padding: 3px;
147 vertical-align: top;
148 }
149
150 div.table table th
151 {
152 /* tango:aluminium 2 */
153 background-color: #d3d7cf;
154 }
155
156 hr
157 {
158 /* tango:aluminium 3 */
159 color: #babdb6;
160 background: #babdb6;
161 border: none 0px;
162 height: 1px;
163 clear: both;
164 }
165
166 .footer
167 {
168 padding-top: 3.5em;
169 /* tango:aluminium 3 */
170 color: #babdb6;
171 text-align: center;
172 font-size: 80%;
173 }
174
175 .warning
176 {
177 /* tango:orange 0/1 */
178 background: #ffeed9;
179 border-color: #ffb04f;
180 }
181 .note
182 {
183 /* tango:chameleon 0/0.5 */
184 background: #d8ffb2;
185 border-color: #abf562;
186 }
187 .note, .warning
188 {
189 padding: 0.5em;
190 border-width: 1px;
191 border-style: solid;
192 }
193 .note h3, .warning h3
194 {
195 margin-top: 0.0em
196 }
197 .note p, .warning p
198 {
199 margin-bottom: 0.0em
200 }
201
202 /* blob links */
203 h2 .extralinks, h3 .extralinks
204 {
205 float: right;
206 /* tango:aluminium 3 */
207 color: #babdb6;
208 font-size: 80%;
209 font-weight: normal;
210 }
211
212 .annotation
213 {
214 /* tango:aluminium 5 */
215 color: #555753;
216 font-size: 80%;
217 font-weight: normal;
218 }
219
220 /* code listings */
221
222 .listing_code .programlisting .cbracket { color: #a40000; } /* tango: scarlet red 3 */
223 .listing_code .programlisting .comment { color: #a1a39d; } /* tango: aluminium 4 */
224 .listing_code .programlisting .function { color: #000000; font-weight: bold; }
225 .listing_code .programlisting .function a { color: #11326b; font-weight: bold; } /* tango: sky blue 4 */
226 .listing_code .programlisting .keyword { color: #4e9a06; } /* tango: chameleon 3 */
227 .listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */
228 .listing_code .programlisting .normal { color: #000000; }
229 .listing_code .programlisting .number { color: #75507b; } /* tango: plum 2 */
230 .listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */
231 .listing_code .programlisting .string { color: #c17d11; } /* tango: chocolate 2 */
232 .listing_code .programlisting .type { color: #000000; }
233 .listing_code .programlisting .type a { color: #11326b; } /* tango: sky blue 4 */
234 .listing_code .programlisting .symbol { color: #ce5c00; } /* tango: orange 3 */
235
236 .listing_frame {
237 /* tango:sky blue 1 */
238 border: solid 1px #729fcf;
239 padding: 0px;
240 }
241
242 .listing_lines, .listing_code {
243 margin-top: 0px;
244 margin-bottom: 0px;
245 padding: 0.5em;
246 }
247 .listing_lines {
248 /* tango:sky blue 0.5 */
249 background: #a6c5e3;
250 /* tango:aluminium 6 */
251 color: #2e3436;
252 }
253 .listing_code {
254 /* tango:sky blue 0 */
255 background: #e6f3ff;
256 }
257 .listing_code .programlisting {
258 /* override from previous */
259 border: none 0px;
260 padding: 0px;
261 }
262 .listing_lines pre, .listing_code pre {
263 margin: 0px;
264 }
265
1818 $(WARN_CFLAGS) \
1919 $(GLIB2_CFLAGS) \
2020 $(LIBVIRT_CFLAGS) \
21 $(LIBXML2_CFLAGS) \
2122 -I$(top_srcdir)
2223 conn_test_SOURCES = \
2324 conn-test.c
2425 conn_test_LDADD = \
2526 ../libvirt-gobject/libvirt-gobject-1.0.la \
2627 $(LIBVIRT_LIBS) \
27 $(GLIB2_LIBS)
28
28 $(GLIB2_LIBS) \
29 $(GOBJECT2_LIBS)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 noinst_PROGRAMS = event-test$(EXEEXT) conn-test$(EXEEXT)
37 subdir = examples
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_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 CONFIG_CLEAN_VPATH_FILES =
48 PROGRAMS = $(noinst_PROGRAMS)
49 am_conn_test_OBJECTS = conn_test-conn-test.$(OBJEXT)
50 conn_test_OBJECTS = $(am_conn_test_OBJECTS)
51 am__DEPENDENCIES_1 =
52 conn_test_DEPENDENCIES = ../libvirt-gobject/libvirt-gobject-1.0.la \
53 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
54 $(am__DEPENDENCIES_1)
55 AM_V_lt = $(am__v_lt_$(V))
56 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
57 am__v_lt_0 = --silent
58 conn_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
59 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(conn_test_CFLAGS) \
60 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
61 am_event_test_OBJECTS = event_test-event-test.$(OBJEXT)
62 event_test_OBJECTS = $(am_event_test_OBJECTS)
63 event_test_DEPENDENCIES = ../libvirt-glib/libvirt-glib-1.0.la \
64 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
65 event_test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
66 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(event_test_CFLAGS) \
67 $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
68 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
69 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
70 am__depfiles_maybe = depfiles
71 am__mv = mv -f
72 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
73 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
74 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
75 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
76 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
77 $(AM_CFLAGS) $(CFLAGS)
78 AM_V_CC = $(am__v_CC_$(V))
79 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
80 am__v_CC_0 = @echo " CC " $@;
81 AM_V_at = $(am__v_at_$(V))
82 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
83 am__v_at_0 = @
84 CCLD = $(CC)
85 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
86 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
87 $(AM_LDFLAGS) $(LDFLAGS) -o $@
88 AM_V_CCLD = $(am__v_CCLD_$(V))
89 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
90 am__v_CCLD_0 = @echo " CCLD " $@;
91 AM_V_GEN = $(am__v_GEN_$(V))
92 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
93 am__v_GEN_0 = @echo " GEN " $@;
94 SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES)
95 DIST_SOURCES = $(conn_test_SOURCES) $(event_test_SOURCES)
96 ETAGS = etags
97 CTAGS = ctags
98 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
99 ACLOCAL = @ACLOCAL@
100 AMTAR = @AMTAR@
101 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
102 AR = @AR@
103 AS = @AS@
104 AUTOCONF = @AUTOCONF@
105 AUTOHEADER = @AUTOHEADER@
106 AUTOMAKE = @AUTOMAKE@
107 AWK = @AWK@
108 CC = @CC@
109 CCDEPMODE = @CCDEPMODE@
110 CFLAGS = @CFLAGS@
111 COMPILER_FLAGS = @COMPILER_FLAGS@
112 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
113 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
114 CPP = @CPP@
115 CPPFLAGS = @CPPFLAGS@
116 CYGPATH_W = @CYGPATH_W@
117 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
118 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
119 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
120 DEFS = @DEFS@
121 DEPDIR = @DEPDIR@
122 DLLTOOL = @DLLTOOL@
123 DSYMUTIL = @DSYMUTIL@
124 DUMPBIN = @DUMPBIN@
125 ECHO_C = @ECHO_C@
126 ECHO_N = @ECHO_N@
127 ECHO_T = @ECHO_T@
128 EGREP = @EGREP@
129 EXEEXT = @EXEEXT@
130 FGREP = @FGREP@
131 GIO2_CFLAGS = @GIO2_CFLAGS@
132 GIO2_LIBS = @GIO2_LIBS@
133 GLIB2_CFLAGS = @GLIB2_CFLAGS@
134 GLIB2_LIBS = @GLIB2_LIBS@
135 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
136 GOBJECT2_LIBS = @GOBJECT2_LIBS@
137 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
138 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
139 GREP = @GREP@
140 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
141 GTHREAD2_LIBS = @GTHREAD2_LIBS@
142 GTKDOC_CHECK = @GTKDOC_CHECK@
143 GTKDOC_MKPDF = @GTKDOC_MKPDF@
144 GTKDOC_REBASE = @GTKDOC_REBASE@
145 G_IR_COMPILER = @G_IR_COMPILER@
146 G_IR_SCANNER = @G_IR_SCANNER@
147 HTML_DIR = @HTML_DIR@
148 INSTALL = @INSTALL@
149 INSTALL_DATA = @INSTALL_DATA@
150 INSTALL_PROGRAM = @INSTALL_PROGRAM@
151 INSTALL_SCRIPT = @INSTALL_SCRIPT@
152 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
153 LD = @LD@
154 LDFLAGS = @LDFLAGS@
155 LIBOBJS = @LIBOBJS@
156 LIBS = @LIBS@
157 LIBTOOL = @LIBTOOL@
158 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
159 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
160 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
161 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
162 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
163 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
164 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
165 LIBVIRT_LIBS = @LIBVIRT_LIBS@
166 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
167 LIBXML2_LIBS = @LIBXML2_LIBS@
168 LIPO = @LIPO@
169 LN_S = @LN_S@
170 LTLIBOBJS = @LTLIBOBJS@
171 MAKEINFO = @MAKEINFO@
172 MANIFEST_TOOL = @MANIFEST_TOOL@
173 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
174 MKDIR_P = @MKDIR_P@
175 NM = @NM@
176 NMEDIT = @NMEDIT@
177 OBJDUMP = @OBJDUMP@
178 OBJEXT = @OBJEXT@
179 OTOOL = @OTOOL@
180 OTOOL64 = @OTOOL64@
181 PACKAGE = @PACKAGE@
182 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
183 PACKAGE_NAME = @PACKAGE_NAME@
184 PACKAGE_STRING = @PACKAGE_STRING@
185 PACKAGE_TARNAME = @PACKAGE_TARNAME@
186 PACKAGE_URL = @PACKAGE_URL@
187 PACKAGE_VERSION = @PACKAGE_VERSION@
188 PATH_SEPARATOR = @PATH_SEPARATOR@
189 PKG_CONFIG = @PKG_CONFIG@
190 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
191 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
192 PYTHON = @PYTHON@
193 PYTHON_INCLUDES = @PYTHON_INCLUDES@
194 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
195 PYTHON_VERSION = @PYTHON_VERSION@
196 RANLIB = @RANLIB@
197 SED = @SED@
198 SET_MAKE = @SET_MAKE@
199 SHELL = @SHELL@
200 STRIP = @STRIP@
201 VAPIGEN = @VAPIGEN@
202 VERSION = @VERSION@
203 WARN_CFLAGS = @WARN_CFLAGS@
204 abs_builddir = @abs_builddir@
205 abs_srcdir = @abs_srcdir@
206 abs_top_builddir = @abs_top_builddir@
207 abs_top_srcdir = @abs_top_srcdir@
208 ac_ct_AR = @ac_ct_AR@
209 ac_ct_CC = @ac_ct_CC@
210 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
211 am__include = @am__include@
212 am__leading_dot = @am__leading_dot@
213 am__quote = @am__quote@
214 am__tar = @am__tar@
215 am__untar = @am__untar@
216 bindir = @bindir@
217 build = @build@
218 build_alias = @build_alias@
219 build_cpu = @build_cpu@
220 build_os = @build_os@
221 build_vendor = @build_vendor@
222 builddir = @builddir@
223 datadir = @datadir@
224 datarootdir = @datarootdir@
225 docdir = @docdir@
226 dvidir = @dvidir@
227 exec_prefix = @exec_prefix@
228 host = @host@
229 host_alias = @host_alias@
230 host_cpu = @host_cpu@
231 host_os = @host_os@
232 host_vendor = @host_vendor@
233 htmldir = @htmldir@
234 includedir = @includedir@
235 infodir = @infodir@
236 install_sh = @install_sh@
237 libdir = @libdir@
238 libexecdir = @libexecdir@
239 localedir = @localedir@
240 localstatedir = @localstatedir@
241 mandir = @mandir@
242 mkdir_p = @mkdir_p@
243 oldincludedir = @oldincludedir@
244 pdfdir = @pdfdir@
245 prefix = @prefix@
246 program_transform_name = @program_transform_name@
247 psdir = @psdir@
248 pythondir = @pythondir@
249 sbindir = @sbindir@
250 sharedstatedir = @sharedstatedir@
251 srcdir = @srcdir@
252 sysconfdir = @sysconfdir@
253 target_alias = @target_alias@
254 top_build_prefix = @top_build_prefix@
255 top_builddir = @top_builddir@
256 top_srcdir = @top_srcdir@
257 EXTRA_DIST = event-test.py
258 event_test_CFLAGS = \
259 $(WARN_CFLAGS) \
260 $(GLIB2_CFLAGS) \
261 $(LIBVIRT_CFLAGS) \
262 -I$(top_srcdir)
263
264 event_test_SOURCES = \
265 event-test.c
266
267 event_test_LDADD = \
268 ../libvirt-glib/libvirt-glib-1.0.la \
269 $(LIBVIRT_LIBS) \
270 $(GLIB2_LIBS)
271
272 conn_test_CFLAGS = \
273 $(WARN_CFLAGS) \
274 $(GLIB2_CFLAGS) \
275 $(LIBVIRT_CFLAGS) \
276 $(LIBXML2_CFLAGS) \
277 -I$(top_srcdir)
278
279 conn_test_SOURCES = \
280 conn-test.c
281
282 conn_test_LDADD = \
283 ../libvirt-gobject/libvirt-gobject-1.0.la \
284 $(LIBVIRT_LIBS) \
285 $(GLIB2_LIBS) \
286 $(GOBJECT2_LIBS)
287
288 all: all-am
289
290 .SUFFIXES:
291 .SUFFIXES: .c .lo .o .obj
292 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
293 @for dep in $?; do \
294 case '$(am__configure_deps)' in \
295 *$$dep*) \
296 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
297 && { if test -f $@; then exit 0; else break; fi; }; \
298 exit 1;; \
299 esac; \
300 done; \
301 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
302 $(am__cd) $(top_srcdir) && \
303 $(AUTOMAKE) --gnu examples/Makefile
304 .PRECIOUS: Makefile
305 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
306 @case '$?' in \
307 *config.status*) \
308 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
309 *) \
310 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
311 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
312 esac;
313
314 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
315 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
316
317 $(top_srcdir)/configure: $(am__configure_deps)
318 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
319 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
321 $(am__aclocal_m4_deps):
322
323 clean-noinstPROGRAMS:
324 @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
325 echo " rm -f" $$list; \
326 rm -f $$list || exit $$?; \
327 test -n "$(EXEEXT)" || exit 0; \
328 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
329 echo " rm -f" $$list; \
330 rm -f $$list
331 conn-test$(EXEEXT): $(conn_test_OBJECTS) $(conn_test_DEPENDENCIES)
332 @rm -f conn-test$(EXEEXT)
333 $(AM_V_CCLD)$(conn_test_LINK) $(conn_test_OBJECTS) $(conn_test_LDADD) $(LIBS)
334 event-test$(EXEEXT): $(event_test_OBJECTS) $(event_test_DEPENDENCIES)
335 @rm -f event-test$(EXEEXT)
336 $(AM_V_CCLD)$(event_test_LINK) $(event_test_OBJECTS) $(event_test_LDADD) $(LIBS)
337
338 mostlyclean-compile:
339 -rm -f *.$(OBJEXT)
340
341 distclean-compile:
342 -rm -f *.tab.c
343
344 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conn_test-conn-test.Po@am__quote@
345 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/event_test-event-test.Po@am__quote@
346
347 .c.o:
348 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
349 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
350 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
352 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
354
355 .c.obj:
356 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
357 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
358 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
359 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
360 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
361 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
362
363 .c.lo:
364 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
365 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
366 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
367 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
368 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
369 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
370
371 conn_test-conn-test.o: conn-test.c
372 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -MT conn_test-conn-test.o -MD -MP -MF $(DEPDIR)/conn_test-conn-test.Tpo -c -o conn_test-conn-test.o `test -f 'conn-test.c' || echo '$(srcdir)/'`conn-test.c
373 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/conn_test-conn-test.Tpo $(DEPDIR)/conn_test-conn-test.Po
374 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
375 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='conn-test.c' object='conn_test-conn-test.o' libtool=no @AMDEPBACKSLASH@
376 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
377 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -c -o conn_test-conn-test.o `test -f 'conn-test.c' || echo '$(srcdir)/'`conn-test.c
378
379 conn_test-conn-test.obj: conn-test.c
380 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -MT conn_test-conn-test.obj -MD -MP -MF $(DEPDIR)/conn_test-conn-test.Tpo -c -o conn_test-conn-test.obj `if test -f 'conn-test.c'; then $(CYGPATH_W) 'conn-test.c'; else $(CYGPATH_W) '$(srcdir)/conn-test.c'; fi`
381 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/conn_test-conn-test.Tpo $(DEPDIR)/conn_test-conn-test.Po
382 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
383 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='conn-test.c' object='conn_test-conn-test.obj' libtool=no @AMDEPBACKSLASH@
384 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
385 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(conn_test_CFLAGS) $(CFLAGS) -c -o conn_test-conn-test.obj `if test -f 'conn-test.c'; then $(CYGPATH_W) 'conn-test.c'; else $(CYGPATH_W) '$(srcdir)/conn-test.c'; fi`
386
387 event_test-event-test.o: event-test.c
388 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -MT event_test-event-test.o -MD -MP -MF $(DEPDIR)/event_test-event-test.Tpo -c -o event_test-event-test.o `test -f 'event-test.c' || echo '$(srcdir)/'`event-test.c
389 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/event_test-event-test.Tpo $(DEPDIR)/event_test-event-test.Po
390 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
391 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='event-test.c' object='event_test-event-test.o' libtool=no @AMDEPBACKSLASH@
392 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
393 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -c -o event_test-event-test.o `test -f 'event-test.c' || echo '$(srcdir)/'`event-test.c
394
395 event_test-event-test.obj: event-test.c
396 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -MT event_test-event-test.obj -MD -MP -MF $(DEPDIR)/event_test-event-test.Tpo -c -o event_test-event-test.obj `if test -f 'event-test.c'; then $(CYGPATH_W) 'event-test.c'; else $(CYGPATH_W) '$(srcdir)/event-test.c'; fi`
397 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/event_test-event-test.Tpo $(DEPDIR)/event_test-event-test.Po
398 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
399 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='event-test.c' object='event_test-event-test.obj' libtool=no @AMDEPBACKSLASH@
400 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
401 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(event_test_CFLAGS) $(CFLAGS) -c -o event_test-event-test.obj `if test -f 'event-test.c'; then $(CYGPATH_W) 'event-test.c'; else $(CYGPATH_W) '$(srcdir)/event-test.c'; fi`
402
403 mostlyclean-libtool:
404 -rm -f *.lo
405
406 clean-libtool:
407 -rm -rf .libs _libs
408
409 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
410 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
411 unique=`for i in $$list; do \
412 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
413 done | \
414 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
415 END { if (nonempty) { for (i in files) print i; }; }'`; \
416 mkid -fID $$unique
417 tags: TAGS
418
419 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
420 $(TAGS_FILES) $(LISP)
421 set x; \
422 here=`pwd`; \
423 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
424 unique=`for i in $$list; do \
425 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
426 done | \
427 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
428 END { if (nonempty) { for (i in files) print i; }; }'`; \
429 shift; \
430 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
431 test -n "$$unique" || unique=$$empty_fix; \
432 if test $$# -gt 0; then \
433 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
434 "$$@" $$unique; \
435 else \
436 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
437 $$unique; \
438 fi; \
439 fi
440 ctags: CTAGS
441 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
442 $(TAGS_FILES) $(LISP)
443 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
444 unique=`for i in $$list; do \
445 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
446 done | \
447 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
448 END { if (nonempty) { for (i in files) print i; }; }'`; \
449 test -z "$(CTAGS_ARGS)$$unique" \
450 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
451 $$unique
452
453 GTAGS:
454 here=`$(am__cd) $(top_builddir) && pwd` \
455 && $(am__cd) $(top_srcdir) \
456 && gtags -i $(GTAGS_ARGS) "$$here"
457
458 distclean-tags:
459 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
460
461 distdir: $(DISTFILES)
462 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
463 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
464 list='$(DISTFILES)'; \
465 dist_files=`for file in $$list; do echo $$file; done | \
466 sed -e "s|^$$srcdirstrip/||;t" \
467 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
468 case $$dist_files in \
469 */*) $(MKDIR_P) `echo "$$dist_files" | \
470 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
471 sort -u` ;; \
472 esac; \
473 for file in $$dist_files; do \
474 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
475 if test -d $$d/$$file; then \
476 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
477 if test -d "$(distdir)/$$file"; then \
478 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
479 fi; \
480 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
481 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
482 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
483 fi; \
484 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
485 else \
486 test -f "$(distdir)/$$file" \
487 || cp -p $$d/$$file "$(distdir)/$$file" \
488 || exit 1; \
489 fi; \
490 done
491 check-am: all-am
492 check: check-am
493 all-am: Makefile $(PROGRAMS)
494 installdirs:
495 install: install-am
496 install-exec: install-exec-am
497 install-data: install-data-am
498 uninstall: uninstall-am
499
500 install-am: all-am
501 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
502
503 installcheck: installcheck-am
504 install-strip:
505 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
506 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
507 `test -z '$(STRIP)' || \
508 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
509 mostlyclean-generic:
510
511 clean-generic:
512
513 distclean-generic:
514 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
515 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
516
517 maintainer-clean-generic:
518 @echo "This command is intended for maintainers to use"
519 @echo "it deletes files that may require special tools to rebuild."
520 clean: clean-am
521
522 clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
523 mostlyclean-am
524
525 distclean: distclean-am
526 -rm -rf ./$(DEPDIR)
527 -rm -f Makefile
528 distclean-am: clean-am distclean-compile distclean-generic \
529 distclean-tags
530
531 dvi: dvi-am
532
533 dvi-am:
534
535 html: html-am
536
537 html-am:
538
539 info: info-am
540
541 info-am:
542
543 install-data-am:
544
545 install-dvi: install-dvi-am
546
547 install-dvi-am:
548
549 install-exec-am:
550
551 install-html: install-html-am
552
553 install-html-am:
554
555 install-info: install-info-am
556
557 install-info-am:
558
559 install-man:
560
561 install-pdf: install-pdf-am
562
563 install-pdf-am:
564
565 install-ps: install-ps-am
566
567 install-ps-am:
568
569 installcheck-am:
570
571 maintainer-clean: maintainer-clean-am
572 -rm -rf ./$(DEPDIR)
573 -rm -f Makefile
574 maintainer-clean-am: distclean-am maintainer-clean-generic
575
576 mostlyclean: mostlyclean-am
577
578 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
579 mostlyclean-libtool
580
581 pdf: pdf-am
582
583 pdf-am:
584
585 ps: ps-am
586
587 ps-am:
588
589 uninstall-am:
590
591 .MAKE: install-am install-strip
592
593 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
594 clean-libtool clean-noinstPROGRAMS ctags distclean \
595 distclean-compile distclean-generic distclean-libtool \
596 distclean-tags distdir dvi dvi-am html html-am info info-am \
597 install install-am install-data install-data-am install-dvi \
598 install-dvi-am install-exec install-exec-am install-html \
599 install-html-am install-info install-info-am install-man \
600 install-pdf install-pdf-am install-ps install-ps-am \
601 install-strip installcheck installcheck-am installdirs \
602 maintainer-clean maintainer-clean-generic mostlyclean \
603 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
604 pdf pdf-am ps ps-am tags uninstall uninstall-am
605
606
607 # Tell versions [3.59,3.63) of GNU make to not export all variables.
608 # Otherwise a system limit (for SysV at least) may be exceeded.
609 .NOEXPORT:
2626 static void
2727 do_connection_open(GObject *source,
2828 GAsyncResult *res,
29 gpointer opaque)
29 gpointer opaque G_GNUC_UNUSED)
3030 {
3131 GVirConnection *conn = GVIR_CONNECTION(source);
3232 GError *err = NULL;
33 GMainLoop *loop = opaque;
3433
3534 if (!gvir_connection_open_finish(conn, res, &err)) {
3635 g_error("%s", err->message);
3736 }
3837 g_print("Connected to libvirt\n");
38 g_object_unref(conn);
39 }
40
41 static void quit(gpointer data,
42 GObject *where_the_object_was G_GNUC_UNUSED)
43 {
44 GMainLoop *loop = data;
45
3946 g_main_loop_quit(loop);
4047 }
4148
4653
4754 gvir_init_object(&argc, &argv);
4855
49 if (argc != 2)
56 if (argc != 2) {
5057 g_error("syntax: %s URI", argv[0]);
51
52 conn = gvir_connection_new(argv[1]);
58 return 1;
59 }
5360
5461 loop = g_main_loop_new(g_main_context_default(),
5562 TRUE);
5663
57 gvir_connection_open_async(conn, NULL, do_connection_open, loop);
64 conn = gvir_connection_new(argv[1]);
65 g_object_weak_ref(G_OBJECT(conn), quit, loop);
66
5867 gvir_connection_open_async(conn, NULL, do_connection_open, loop);
5968
6069 g_main_loop_run(loop);
6170
71
6272 return 0;
6373 }
6474
+0
-41
examples/conn-test.js less more
0 #!/usr/bin/gjs
1
2 const lv = imports.gi.LibvirtGObject;
3 const gio = imports.gi.Gio;
4 const gtk = imports.gi.Gtk;
5
6 lv.init_object(null, null);
7
8 var conn = new lv.Connection({ uri: "test:///default" })
9 var canc = new gio.Cancellable()
10
11 function done(conn, result, data) {
12 try {
13 conn.open_finish(result)
14
15 print("Opened " + conn.get_uri())
16
17 conn.fetch_domains(null)
18 print ("Fetched")
19 var doms = conn.get_domains()
20 print ("Got " + doms)
21
22 for (var d in doms) {
23 print ("One dom: " + doms[d])
24 print ("Name " + doms[d].get_name())
25 var conf = doms[d].get_config(0)
26 print ("Conf " + conf)
27 var xml = conf.get_doc()
28 print ("XML " + xml)
29 print ("Info " + doms[d].get_info().memory)
30 }
31
32 } finally {
33 gtk.main_quit()
34 }
35 }
36
37 conn.open_async(canc, done, null)
38
39 gtk.main(null, null)
40
+0
-48
examples/conn-test.py less more
0 #!/usr/bin/python
1
2 from gi.repository import LibvirtGObject;
3 from gi.repository import Gio;
4 from gi.repository import Gtk;
5
6 LibvirtGObject.init_object_check(None);
7
8 conn = LibvirtGObject.Connection(uri="test:///default")
9 canc = Gio.Cancellable()
10
11 def done(conn, result, data):
12 try:
13 conn.open_finish(result)
14
15 print("Opened " + conn.get_uri())
16
17 conn.fetch_domains(None)
18 print ("Fetched")
19 doms = conn.get_domains()
20 print ("Got " + str(doms))
21
22 for d in doms:
23 print ("One dom: " + str(d))
24 print ("Name " + d.get_name())
25 conf = d.get_config(0)
26 print ("Conf " + str(conf))
27
28 try:
29 conf.validate()
30
31 print "Document is valid according to %s" % conf.get_schema()
32 except Exception, e:
33 print "Document is not valid according to %s: %s: %s" % (conf.get_schema(), str(e), str(type(e)))
34
35 xml = conf.get_doc()
36 print ("XML " + xml)
37 print ("Info " + str(d.get_info().memory))
38
39 finally:
40 Gtk.main_quit()
41
42
43 conn.open_async(canc, done, None)
44
45 Gtk.main()
46
47
0 # -*- mode: makefile -*-
1
2 ####################################
3 # Everything below here is generic #
4 ####################################
5
6 if GTK_DOC_USE_LIBTOOL
7 GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
8 GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
9 GTKDOC_RUN = $(LIBTOOL) --mode=execute
10 else
11 GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
12 GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
13 GTKDOC_RUN =
14 endif
15
16 # We set GPATH here; this gives us semantics for GNU make
17 # which are more like other make's VPATH, when it comes to
18 # whether a source that is a target of one rule is then
19 # searched for in VPATH/GPATH.
20 #
21 GPATH = $(srcdir)
22
23 TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
24
25 SETUP_FILES = \
26 $(content_files) \
27 $(DOC_MAIN_SGML_FILE) \
28 $(DOC_MODULE)-sections.txt \
29 $(DOC_MODULE)-overrides.txt
30
31 EXTRA_DIST = \
32 $(HTML_IMAGES) \
33 $(SETUP_FILES)
34
35 DOC_STAMPS=setup-build.stamp scan-build.stamp sgml-build.stamp \
36 html-build.stamp pdf-build.stamp \
37 sgml.stamp html.stamp pdf.stamp
38
39 SCANOBJ_FILES = \
40 $(DOC_MODULE).args \
41 $(DOC_MODULE).hierarchy \
42 $(DOC_MODULE).interfaces \
43 $(DOC_MODULE).prerequisites \
44 $(DOC_MODULE).signals
45
46 REPORT_FILES = \
47 $(DOC_MODULE)-undocumented.txt \
48 $(DOC_MODULE)-undeclared.txt \
49 $(DOC_MODULE)-unused.txt
50
51 CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS)
52
53 if ENABLE_GTK_DOC
54 if GTK_DOC_BUILD_HTML
55 HTML_BUILD_STAMP=html-build.stamp
56 else
57 HTML_BUILD_STAMP=
58 endif
59 if GTK_DOC_BUILD_PDF
60 PDF_BUILD_STAMP=pdf-build.stamp
61 else
62 PDF_BUILD_STAMP=
63 endif
64
65 all-local: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
66 else
67 all-local:
68 endif
69
70 docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
71
72 $(REPORT_FILES): sgml-build.stamp
73
74 #### setup ####
75
76 setup-build.stamp:
77 -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
78 echo ' DOC Preparing build'; \
79 files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
80 if test "x$$files" != "x" ; then \
81 for file in $$files ; do \
82 test -f $(abs_srcdir)/$$file && \
83 cp -pu $(abs_srcdir)/$$file $(abs_builddir)/ || true; \
84 done; \
85 fi; \
86 fi
87 @touch setup-build.stamp
88
89
90 #### scan ####
91
92 scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB)
93 @echo ' DOC Scanning header files'
94 @_source_dir='' ; \
95 for i in $(DOC_SOURCE_DIR) ; do \
96 _source_dir="$${_source_dir} --source-dir=$$i" ; \
97 done ; \
98 gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
99 @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
100 echo " DOC Introspecting gobjects"; \
101 scanobj_options=""; \
102 gtkdoc-scangobj 2>&1 --help | grep >/dev/null "\-\-verbose"; \
103 if test "$(?)" = "0"; then \
104 if test "x$(V)" = "x1"; then \
105 scanobj_options="--verbose"; \
106 fi; \
107 fi; \
108 CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
109 gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
110 else \
111 for i in $(SCANOBJ_FILES) ; do \
112 test -f $$i || touch $$i ; \
113 done \
114 fi
115 @touch scan-build.stamp
116
117 $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
118 @true
119
120 #### xml ####
121
122 sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
123 @echo ' DOC Building XML'
124 @_source_dir='' ; \
125 for i in $(DOC_SOURCE_DIR) ; do \
126 _source_dir="$${_source_dir} --source-dir=$$i" ; \
127 done ; \
128 gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
129 @touch sgml-build.stamp
130
131 sgml.stamp: sgml-build.stamp
132 @true
133
134 #### html ####
135
136 html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
137 @echo ' DOC Building HTML'
138 @rm -rf html
139 @mkdir html
140 @mkhtml_options=""; \
141 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-verbose"; \
142 if test "$(?)" = "0"; then \
143 if test "x$(V)" = "x1"; then \
144 mkhtml_options="$$mkhtml_options --verbose"; \
145 fi; \
146 fi; \
147 gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \
148 if test "$(?)" = "0"; then \
149 mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \
150 fi; \
151 cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
152 -@test "x$(HTML_IMAGES)" = "x" || \
153 for file in $(HTML_IMAGES) ; do \
154 if test -f $(abs_srcdir)/$$file ; then \
155 cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
156 fi; \
157 if test -f $(abs_builddir)/$$file ; then \
158 cp $(abs_builddir)/$$file $(abs_builddir)/html; \
159 fi; \
160 done;
161 @echo ' DOC Fixing cross-references'
162 @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
163 @touch html-build.stamp
164
165 #### pdf ####
166
167 pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
168 @echo ' DOC Building PDF'
169 @rm -f $(DOC_MODULE).pdf
170 @mkpdf_options=""; \
171 gtkdoc-mkpdf 2>&1 --help | grep >/dev/null "\-\-verbose"; \
172 if test "$(?)" = "0"; then \
173 if test "x$(V)" = "x1"; then \
174 mkpdf_options="$$mkpdf_options --verbose"; \
175 fi; \
176 fi; \
177 if test "x$(HTML_IMAGES)" != "x"; then \
178 for img in $(HTML_IMAGES); do \
179 part=`dirname $$img`; \
180 echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \
181 if test $$? != 0; then \
182 mkpdf_options="$$mkpdf_options --imgdir=$$part"; \
183 fi; \
184 done; \
185 fi; \
186 gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
187 @touch pdf-build.stamp
188
189 ##############
190
191 clean-local:
192 @rm -f *~ *.bak
193 @rm -rf .libs
194
195 distclean-local:
196 @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
197 $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
198 @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
199 rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \
200 fi
201
202 maintainer-clean-local: clean
203 @rm -rf xml html
204
205 install-data-local:
206 @installfiles=`echo $(builddir)/html/*`; \
207 if test "$$installfiles" = '$(builddir)/html/*'; \
208 then echo 1>&2 'Nothing to install' ; \
209 else \
210 if test -n "$(DOC_MODULE_VERSION)"; then \
211 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
212 else \
213 installdir="$(DESTDIR)$(TARGET_DIR)"; \
214 fi; \
215 $(mkinstalldirs) $${installdir} ; \
216 for i in $$installfiles; do \
217 echo ' $(INSTALL_DATA) '$$i ; \
218 $(INSTALL_DATA) $$i $${installdir}; \
219 done; \
220 if test -n "$(DOC_MODULE_VERSION)"; then \
221 mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
222 $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
223 fi; \
224 $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
225 fi
226
227 uninstall-local:
228 @if test -n "$(DOC_MODULE_VERSION)"; then \
229 installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
230 else \
231 installdir="$(DESTDIR)$(TARGET_DIR)"; \
232 fi; \
233 rm -rf $${installdir}
234
235 #
236 # Require gtk-doc when making dist
237 #
238 if ENABLE_GTK_DOC
239 dist-check-gtkdoc:
240 else
241 dist-check-gtkdoc:
242 @echo "*** gtk-doc must be installed and enabled in order to make dist"
243 @false
244 endif
245
246 dist-hook: dist-check-gtkdoc dist-hook-local
247 @mkdir $(distdir)/html
248 @cp ./html/* $(distdir)/html
249 @-cp ./$(DOC_MODULE).pdf $(distdir)/
250 @-cp ./$(DOC_MODULE).types $(distdir)/
251 @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/
252 @cd $(distdir) && rm -f $(DISTCLEANFILES)
253 @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
254
255 .PHONY : dist-hook-local docs
0 SUBDIRS = . tests
01
12 EXTRA_DIST = libvirt-gconfig.sym
23
89 libvirt-gconfig-capabilities.h \
910 libvirt-gconfig-domain.h \
1011 libvirt-gconfig-domain-snapshot.h \
12 libvirt-gconfig-helpers.h \
1113 libvirt-gconfig-interface.h \
1214 libvirt-gconfig-network.h \
1315 libvirt-gconfig-network-filter.h \
1517 libvirt-gconfig-secret.h \
1618 libvirt-gconfig-storage-pool.h \
1719 libvirt-gconfig-storage-vol.h
20 noinst_HEADERS = \
21 libvirt-gconfig-helpers-private.h
1822 GCONFIG_SOURCE_FILES = \
1923 libvirt-gconfig-object.c \
2024 libvirt-gconfig-capabilities.c \
2125 libvirt-gconfig-domain.c \
2226 libvirt-gconfig-domain-snapshot.c \
27 libvirt-gconfig-helpers.c \
2328 libvirt-gconfig-interface.c \
2429 libvirt-gconfig-network.c \
2530 libvirt-gconfig-network-filter.c \
6974 --output $@ \
7075 -I$(top_srcdir) \
7176 -I$(top_builddir) \
77 $(LIBXML2_CFLAGS) \
7278 --verbose \
7379 --pkg=gobject-2.0 \
80 --c-include="libvirt-gconfig/libvirt-gconfig.h" \
81 --pkg-export=libvirt-gconfig-1.0 \
7482 $(srcdir)/libvirt-gconfig.h \
7583 $(GCONFIG_SOURCE_FILES:%=$(srcdir)/%) \
7684 $(GCONFIG_HEADER_FILES:%=$(srcdir)/%)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 pkglibdir = $(libdir)/@PACKAGE@
23 pkglibexecdir = $(libexecdir)/@PACKAGE@
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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 build_triplet = @build@
37 host_triplet = @host@
38 subdir = libvirt-gconfig
39 DIST_COMMON = $(libvirt_gconfig_1_0_la_HEADERS) $(noinst_HEADERS) \
40 $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
43 $(top_srcdir)/configure.ac
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
51 am__vpath_adj = case $$p in \
52 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
53 *) f=$$p;; \
54 esac;
55 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
56 am__install_max = 40
57 am__nobase_strip_setup = \
58 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
59 am__nobase_strip = \
60 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
61 am__nobase_list = $(am__nobase_strip_setup); \
62 for p in $$list; do echo "$$p $$p"; done | \
63 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
64 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
65 if (++n[$$2] == $(am__install_max)) \
66 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
67 END { for (dir in files) print dir, files[dir] }'
68 am__base_list = \
69 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
70 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
71 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \
72 "$(DESTDIR)$(typelibsdir)" \
73 "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)"
74 LTLIBRARIES = $(lib_LTLIBRARIES)
75 am__DEPENDENCIES_1 =
76 am__objects_1 =
77 am__objects_2 = $(am__objects_1)
78 am__objects_3 = libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo \
79 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo \
80 libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo \
81 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo \
82 libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo \
83 libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo \
84 libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo \
85 libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo \
86 libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo \
87 libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo \
88 libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo \
89 libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo
90 am_libvirt_gconfig_1_0_la_OBJECTS = $(am__objects_2) $(am__objects_3)
91 libvirt_gconfig_1_0_la_OBJECTS = $(am_libvirt_gconfig_1_0_la_OBJECTS)
92 AM_V_lt = $(am__v_lt_$(V))
93 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
94 am__v_lt_0 = --silent
95 libvirt_gconfig_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
96 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
97 $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) \
98 $(libvirt_gconfig_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
99 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
100 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
101 am__depfiles_maybe = depfiles
102 am__mv = mv -f
103 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
104 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
105 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
106 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
107 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
108 $(AM_CFLAGS) $(CFLAGS)
109 AM_V_CC = $(am__v_CC_$(V))
110 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
111 am__v_CC_0 = @echo " CC " $@;
112 AM_V_at = $(am__v_at_$(V))
113 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
114 am__v_at_0 = @
115 CCLD = $(CC)
116 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
117 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
118 $(AM_LDFLAGS) $(LDFLAGS) -o $@
119 AM_V_CCLD = $(am__v_CCLD_$(V))
120 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
121 am__v_CCLD_0 = @echo " CCLD " $@;
122 AM_V_GEN = $(am__v_GEN_$(V))
123 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
124 am__v_GEN_0 = @echo " GEN " $@;
125 SOURCES = $(libvirt_gconfig_1_0_la_SOURCES)
126 DIST_SOURCES = $(libvirt_gconfig_1_0_la_SOURCES)
127 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
128 html-recursive info-recursive install-data-recursive \
129 install-dvi-recursive install-exec-recursive \
130 install-html-recursive install-info-recursive \
131 install-pdf-recursive install-ps-recursive install-recursive \
132 installcheck-recursive installdirs-recursive pdf-recursive \
133 ps-recursive uninstall-recursive
134 DATA = $(gir_DATA) $(typelibs_DATA)
135 HEADERS = $(libvirt_gconfig_1_0_la_HEADERS) $(noinst_HEADERS)
136 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
137 distclean-recursive maintainer-clean-recursive
138 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
139 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
140 distdir
141 ETAGS = etags
142 CTAGS = ctags
143 DIST_SUBDIRS = $(SUBDIRS)
144 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
145 am__relativize = \
146 dir0=`pwd`; \
147 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
148 sed_rest='s,^[^/]*/*,,'; \
149 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
150 sed_butlast='s,/*[^/]*$$,,'; \
151 while test -n "$$dir1"; do \
152 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
153 if test "$$first" != "."; then \
154 if test "$$first" = ".."; then \
155 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
156 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
157 else \
158 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
159 if test "$$first2" = "$$first"; then \
160 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
161 else \
162 dir2="../$$dir2"; \
163 fi; \
164 dir0="$$dir0"/"$$first"; \
165 fi; \
166 fi; \
167 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
168 done; \
169 reldir="$$dir2"
170 ACLOCAL = @ACLOCAL@
171 AMTAR = @AMTAR@
172 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
173 AR = @AR@
174 AS = @AS@
175 AUTOCONF = @AUTOCONF@
176 AUTOHEADER = @AUTOHEADER@
177 AUTOMAKE = @AUTOMAKE@
178 AWK = @AWK@
179 CC = @CC@
180 CCDEPMODE = @CCDEPMODE@
181 CFLAGS = @CFLAGS@
182 COMPILER_FLAGS = @COMPILER_FLAGS@
183 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
184 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
185 CPP = @CPP@
186 CPPFLAGS = @CPPFLAGS@
187 CYGPATH_W = @CYGPATH_W@
188 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
189 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
190 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
191 DEFS = @DEFS@
192 DEPDIR = @DEPDIR@
193 DLLTOOL = @DLLTOOL@
194 DSYMUTIL = @DSYMUTIL@
195 DUMPBIN = @DUMPBIN@
196 ECHO_C = @ECHO_C@
197 ECHO_N = @ECHO_N@
198 ECHO_T = @ECHO_T@
199 EGREP = @EGREP@
200 EXEEXT = @EXEEXT@
201 FGREP = @FGREP@
202 GIO2_CFLAGS = @GIO2_CFLAGS@
203 GIO2_LIBS = @GIO2_LIBS@
204 GLIB2_CFLAGS = @GLIB2_CFLAGS@
205 GLIB2_LIBS = @GLIB2_LIBS@
206 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
207 GOBJECT2_LIBS = @GOBJECT2_LIBS@
208 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
209 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
210 GREP = @GREP@
211 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
212 GTHREAD2_LIBS = @GTHREAD2_LIBS@
213 GTKDOC_CHECK = @GTKDOC_CHECK@
214 GTKDOC_MKPDF = @GTKDOC_MKPDF@
215 GTKDOC_REBASE = @GTKDOC_REBASE@
216 G_IR_COMPILER = @G_IR_COMPILER@
217 G_IR_SCANNER = @G_IR_SCANNER@
218 HTML_DIR = @HTML_DIR@
219 INSTALL = @INSTALL@
220 INSTALL_DATA = @INSTALL_DATA@
221 INSTALL_PROGRAM = @INSTALL_PROGRAM@
222 INSTALL_SCRIPT = @INSTALL_SCRIPT@
223 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
224 LD = @LD@
225 LDFLAGS = @LDFLAGS@
226 LIBOBJS = @LIBOBJS@
227 LIBS = @LIBS@
228 LIBTOOL = @LIBTOOL@
229 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
230 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
231 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
232 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
233 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
234 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
235 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
236 LIBVIRT_LIBS = @LIBVIRT_LIBS@
237 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
238 LIBXML2_LIBS = @LIBXML2_LIBS@
239 LIPO = @LIPO@
240 LN_S = @LN_S@
241 LTLIBOBJS = @LTLIBOBJS@
242 MAKEINFO = @MAKEINFO@
243 MANIFEST_TOOL = @MANIFEST_TOOL@
244 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
245 MKDIR_P = @MKDIR_P@
246 NM = @NM@
247 NMEDIT = @NMEDIT@
248 OBJDUMP = @OBJDUMP@
249 OBJEXT = @OBJEXT@
250 OTOOL = @OTOOL@
251 OTOOL64 = @OTOOL64@
252 PACKAGE = @PACKAGE@
253 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
254 PACKAGE_NAME = @PACKAGE_NAME@
255 PACKAGE_STRING = @PACKAGE_STRING@
256 PACKAGE_TARNAME = @PACKAGE_TARNAME@
257 PACKAGE_URL = @PACKAGE_URL@
258 PACKAGE_VERSION = @PACKAGE_VERSION@
259 PATH_SEPARATOR = @PATH_SEPARATOR@
260 PKG_CONFIG = @PKG_CONFIG@
261 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
262 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
263 PYTHON = @PYTHON@
264 PYTHON_INCLUDES = @PYTHON_INCLUDES@
265 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
266 PYTHON_VERSION = @PYTHON_VERSION@
267 RANLIB = @RANLIB@
268 SED = @SED@
269 SET_MAKE = @SET_MAKE@
270 SHELL = @SHELL@
271 STRIP = @STRIP@
272 VAPIGEN = @VAPIGEN@
273 VERSION = @VERSION@
274 WARN_CFLAGS = @WARN_CFLAGS@
275 abs_builddir = @abs_builddir@
276 abs_srcdir = @abs_srcdir@
277 abs_top_builddir = @abs_top_builddir@
278 abs_top_srcdir = @abs_top_srcdir@
279 ac_ct_AR = @ac_ct_AR@
280 ac_ct_CC = @ac_ct_CC@
281 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
282 am__include = @am__include@
283 am__leading_dot = @am__leading_dot@
284 am__quote = @am__quote@
285 am__tar = @am__tar@
286 am__untar = @am__untar@
287 bindir = @bindir@
288 build = @build@
289 build_alias = @build_alias@
290 build_cpu = @build_cpu@
291 build_os = @build_os@
292 build_vendor = @build_vendor@
293 builddir = @builddir@
294 datadir = @datadir@
295 datarootdir = @datarootdir@
296 docdir = @docdir@
297 dvidir = @dvidir@
298 exec_prefix = @exec_prefix@
299 host = @host@
300 host_alias = @host_alias@
301 host_cpu = @host_cpu@
302 host_os = @host_os@
303 host_vendor = @host_vendor@
304 htmldir = @htmldir@
305 includedir = @includedir@
306 infodir = @infodir@
307 install_sh = @install_sh@
308 libdir = @libdir@
309 libexecdir = @libexecdir@
310 localedir = @localedir@
311 localstatedir = @localstatedir@
312 mandir = @mandir@
313 mkdir_p = @mkdir_p@
314 oldincludedir = @oldincludedir@
315 pdfdir = @pdfdir@
316 prefix = @prefix@
317 program_transform_name = @program_transform_name@
318 psdir = @psdir@
319 pythondir = @pythondir@
320 sbindir = @sbindir@
321 sharedstatedir = @sharedstatedir@
322 srcdir = @srcdir@
323 sysconfdir = @sysconfdir@
324 target_alias = @target_alias@
325 top_build_prefix = @top_build_prefix@
326 top_builddir = @top_builddir@
327 top_srcdir = @top_srcdir@
328 SUBDIRS = . tests
329 EXTRA_DIST = libvirt-gconfig.sym
330 lib_LTLIBRARIES = libvirt-gconfig-1.0.la
331 GCONFIG_HEADER_FILES = \
332 libvirt-gconfig.h \
333 libvirt-gconfig-object.h \
334 libvirt-gconfig-capabilities.h \
335 libvirt-gconfig-domain.h \
336 libvirt-gconfig-domain-snapshot.h \
337 libvirt-gconfig-helpers.h \
338 libvirt-gconfig-interface.h \
339 libvirt-gconfig-network.h \
340 libvirt-gconfig-network-filter.h \
341 libvirt-gconfig-node-device.h \
342 libvirt-gconfig-secret.h \
343 libvirt-gconfig-storage-pool.h \
344 libvirt-gconfig-storage-vol.h
345
346 noinst_HEADERS = \
347 libvirt-gconfig-helpers-private.h
348
349 GCONFIG_SOURCE_FILES = \
350 libvirt-gconfig-object.c \
351 libvirt-gconfig-capabilities.c \
352 libvirt-gconfig-domain.c \
353 libvirt-gconfig-domain-snapshot.c \
354 libvirt-gconfig-helpers.c \
355 libvirt-gconfig-interface.c \
356 libvirt-gconfig-network.c \
357 libvirt-gconfig-network-filter.c \
358 libvirt-gconfig-node-device.c \
359 libvirt-gconfig-secret.c \
360 libvirt-gconfig-storage-pool.c \
361 libvirt-gconfig-storage-vol.c
362
363 libvirt_gconfig_1_0_ladir = $(includedir)/libvirt-gconfig-1.0/libvirt-gconfig
364 libvirt_gconfig_1_0_la_HEADERS = \
365 $(GCONFIG_HEADER_FILES)
366
367 libvirt_gconfig_1_0_la_SOURCES = \
368 $(libvirt_gconfig_1_0_la_HEADERS) \
369 $(GCONFIG_SOURCE_FILES)
370
371 libvirt_gconfig_1_0_la_CFLAGS = \
372 -DDATADIR="\"$(datadir)\"" \
373 -DLIBVIRT_GCONFIG_BUILD \
374 $(COVERAGE_CFLAGS) \
375 -I$(top_srcdir) \
376 $(GOBJECT2_CFLAGS) \
377 $(LIBXML2_CFLAGS) \
378 $(WARN_CFLAGS)
379
380 libvirt_gconfig_1_0_la_LIBADD = \
381 $(GOBJECT2_LIBS) \
382 $(LIBXML2_LIBS) \
383 $(CYGWIN_EXTRA_LIBADD)
384
385 libvirt_gconfig_1_0_la_DEPENDENCIES = \
386 libvirt-gconfig.sym
387
388 libvirt_gconfig_1_0_la_LDFLAGS = \
389 $(COVERAGE_CFLAGS:-f%=-Wc,f%) \
390 $(CYGWIN_EXTRA_LDFLAGS) $(MINGW_EXTRA_LDFLAGS) \
391 -Wl,--version-script=$(srcdir)/libvirt-gconfig.sym \
392 -version-info $(LIBVIRT_GLIB_VERSION_INFO)
393
394 @WITH_GOBJECT_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0
395 @WITH_GOBJECT_INTROSPECTION_TRUE@gir_DATA = LibvirtGConfig-1.0.gir
396 @WITH_GOBJECT_INTROSPECTION_TRUE@typelibsdir = $(libdir)/girepository-1.0
397 @WITH_GOBJECT_INTROSPECTION_TRUE@typelibs_DATA = LibvirtGConfig-1.0.typelib
398 @WITH_GOBJECT_INTROSPECTION_TRUE@CLEANFILES = $(gir_DATA) $(typelibs_DATA)
399 all: all-recursive
400
401 .SUFFIXES:
402 .SUFFIXES: .c .lo .o .obj
403 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
404 @for dep in $?; do \
405 case '$(am__configure_deps)' in \
406 *$$dep*) \
407 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
408 && { if test -f $@; then exit 0; else break; fi; }; \
409 exit 1;; \
410 esac; \
411 done; \
412 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libvirt-gconfig/Makefile'; \
413 $(am__cd) $(top_srcdir) && \
414 $(AUTOMAKE) --gnu libvirt-gconfig/Makefile
415 .PRECIOUS: Makefile
416 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
417 @case '$?' in \
418 *config.status*) \
419 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
420 *) \
421 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
422 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
423 esac;
424
425 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
426 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
427
428 $(top_srcdir)/configure: $(am__configure_deps)
429 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
430 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
431 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
432 $(am__aclocal_m4_deps):
433 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
434 @$(NORMAL_INSTALL)
435 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
436 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
437 list2=; for p in $$list; do \
438 if test -f $$p; then \
439 list2="$$list2 $$p"; \
440 else :; fi; \
441 done; \
442 test -z "$$list2" || { \
443 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
444 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
445 }
446
447 uninstall-libLTLIBRARIES:
448 @$(NORMAL_UNINSTALL)
449 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
450 for p in $$list; do \
451 $(am__strip_dir) \
452 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
453 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
454 done
455
456 clean-libLTLIBRARIES:
457 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
458 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
459 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
460 test "$$dir" != "$$p" || dir=.; \
461 echo "rm -f \"$${dir}/so_locations\""; \
462 rm -f "$${dir}/so_locations"; \
463 done
464 libvirt-gconfig-1.0.la: $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_DEPENDENCIES)
465 $(AM_V_CCLD)$(libvirt_gconfig_1_0_la_LINK) -rpath $(libdir) $(libvirt_gconfig_1_0_la_OBJECTS) $(libvirt_gconfig_1_0_la_LIBADD) $(LIBS)
466
467 mostlyclean-compile:
468 -rm -f *.$(OBJEXT)
469
470 distclean-compile:
471 -rm -f *.tab.c
472
473 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Plo@am__quote@
474 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Plo@am__quote@
475 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Plo@am__quote@
476 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Plo@am__quote@
477 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Plo@am__quote@
478 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Plo@am__quote@
479 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Plo@am__quote@
480 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Plo@am__quote@
481 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Plo@am__quote@
482 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Plo@am__quote@
483 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Plo@am__quote@
484 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Plo@am__quote@
485
486 .c.o:
487 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
488 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
489 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
490 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
491 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
492 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
493
494 .c.obj:
495 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
496 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
497 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
498 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
499 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
500 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
501
502 .c.lo:
503 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
504 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
505 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
506 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
507 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
508 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
509
510 libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo: libvirt-gconfig-object.c
511 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo `test -f 'libvirt-gconfig-object.c' || echo '$(srcdir)/'`libvirt-gconfig-object.c
512 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-object.Plo
513 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
514 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-object.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo' libtool=yes @AMDEPBACKSLASH@
515 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
516 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-object.lo `test -f 'libvirt-gconfig-object.c' || echo '$(srcdir)/'`libvirt-gconfig-object.c
517
518 libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo: libvirt-gconfig-capabilities.c
519 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo `test -f 'libvirt-gconfig-capabilities.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities.c
520 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.Plo
521 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
522 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-capabilities.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo' libtool=yes @AMDEPBACKSLASH@
523 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
524 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-capabilities.lo `test -f 'libvirt-gconfig-capabilities.c' || echo '$(srcdir)/'`libvirt-gconfig-capabilities.c
525
526 libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo: libvirt-gconfig-domain.c
527 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo `test -f 'libvirt-gconfig-domain.c' || echo '$(srcdir)/'`libvirt-gconfig-domain.c
528 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain.Plo
529 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
530 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-domain.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo' libtool=yes @AMDEPBACKSLASH@
531 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
532 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain.lo `test -f 'libvirt-gconfig-domain.c' || echo '$(srcdir)/'`libvirt-gconfig-domain.c
533
534 libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo: libvirt-gconfig-domain-snapshot.c
535 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo `test -f 'libvirt-gconfig-domain-snapshot.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-snapshot.c
536 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.Plo
537 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
538 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-domain-snapshot.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo' libtool=yes @AMDEPBACKSLASH@
539 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
540 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-domain-snapshot.lo `test -f 'libvirt-gconfig-domain-snapshot.c' || echo '$(srcdir)/'`libvirt-gconfig-domain-snapshot.c
541
542 libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo: libvirt-gconfig-helpers.c
543 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo `test -f 'libvirt-gconfig-helpers.c' || echo '$(srcdir)/'`libvirt-gconfig-helpers.c
544 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.Plo
545 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
546 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-helpers.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo' libtool=yes @AMDEPBACKSLASH@
547 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
548 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-helpers.lo `test -f 'libvirt-gconfig-helpers.c' || echo '$(srcdir)/'`libvirt-gconfig-helpers.c
549
550 libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo: libvirt-gconfig-interface.c
551 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo `test -f 'libvirt-gconfig-interface.c' || echo '$(srcdir)/'`libvirt-gconfig-interface.c
552 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-interface.Plo
553 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
554 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-interface.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo' libtool=yes @AMDEPBACKSLASH@
555 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
556 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-interface.lo `test -f 'libvirt-gconfig-interface.c' || echo '$(srcdir)/'`libvirt-gconfig-interface.c
557
558 libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo: libvirt-gconfig-network.c
559 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo `test -f 'libvirt-gconfig-network.c' || echo '$(srcdir)/'`libvirt-gconfig-network.c
560 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network.Plo
561 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
562 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-network.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo' libtool=yes @AMDEPBACKSLASH@
563 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
564 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network.lo `test -f 'libvirt-gconfig-network.c' || echo '$(srcdir)/'`libvirt-gconfig-network.c
565
566 libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo: libvirt-gconfig-network-filter.c
567 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo `test -f 'libvirt-gconfig-network-filter.c' || echo '$(srcdir)/'`libvirt-gconfig-network-filter.c
568 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.Plo
569 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
570 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-network-filter.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo' libtool=yes @AMDEPBACKSLASH@
571 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
572 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-network-filter.lo `test -f 'libvirt-gconfig-network-filter.c' || echo '$(srcdir)/'`libvirt-gconfig-network-filter.c
573
574 libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo: libvirt-gconfig-node-device.c
575 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo `test -f 'libvirt-gconfig-node-device.c' || echo '$(srcdir)/'`libvirt-gconfig-node-device.c
576 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.Plo
577 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
578 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-node-device.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo' libtool=yes @AMDEPBACKSLASH@
579 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
580 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-node-device.lo `test -f 'libvirt-gconfig-node-device.c' || echo '$(srcdir)/'`libvirt-gconfig-node-device.c
581
582 libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo: libvirt-gconfig-secret.c
583 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo `test -f 'libvirt-gconfig-secret.c' || echo '$(srcdir)/'`libvirt-gconfig-secret.c
584 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-secret.Plo
585 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
586 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-secret.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo' libtool=yes @AMDEPBACKSLASH@
587 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
588 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-secret.lo `test -f 'libvirt-gconfig-secret.c' || echo '$(srcdir)/'`libvirt-gconfig-secret.c
589
590 libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo: libvirt-gconfig-storage-pool.c
591 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo `test -f 'libvirt-gconfig-storage-pool.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool.c
592 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.Plo
593 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
594 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-storage-pool.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo' libtool=yes @AMDEPBACKSLASH@
595 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
596 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-pool.lo `test -f 'libvirt-gconfig-storage-pool.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-pool.c
597
598 libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo: libvirt-gconfig-storage-vol.c
599 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo -MD -MP -MF $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Tpo -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo `test -f 'libvirt-gconfig-storage-vol.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol.c
600 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Tpo $(DEPDIR)/libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.Plo
601 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
602 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gconfig-storage-vol.c' object='libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo' libtool=yes @AMDEPBACKSLASH@
603 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
604 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gconfig_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gconfig_1_0_la-libvirt-gconfig-storage-vol.lo `test -f 'libvirt-gconfig-storage-vol.c' || echo '$(srcdir)/'`libvirt-gconfig-storage-vol.c
605
606 mostlyclean-libtool:
607 -rm -f *.lo
608
609 clean-libtool:
610 -rm -rf .libs _libs
611 install-girDATA: $(gir_DATA)
612 @$(NORMAL_INSTALL)
613 test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)"
614 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
615 for p in $$list; do \
616 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
617 echo "$$d$$p"; \
618 done | $(am__base_list) | \
619 while read files; do \
620 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \
621 $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \
622 done
623
624 uninstall-girDATA:
625 @$(NORMAL_UNINSTALL)
626 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
627 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
628 test -n "$$files" || exit 0; \
629 echo " ( cd '$(DESTDIR)$(girdir)' && rm -f" $$files ")"; \
630 cd "$(DESTDIR)$(girdir)" && rm -f $$files
631 install-typelibsDATA: $(typelibs_DATA)
632 @$(NORMAL_INSTALL)
633 test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)"
634 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
635 for p in $$list; do \
636 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
637 echo "$$d$$p"; \
638 done | $(am__base_list) | \
639 while read files; do \
640 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibsdir)'"; \
641 $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibsdir)" || exit $$?; \
642 done
643
644 uninstall-typelibsDATA:
645 @$(NORMAL_UNINSTALL)
646 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
647 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
648 test -n "$$files" || exit 0; \
649 echo " ( cd '$(DESTDIR)$(typelibsdir)' && rm -f" $$files ")"; \
650 cd "$(DESTDIR)$(typelibsdir)" && rm -f $$files
651 install-libvirt_gconfig_1_0_laHEADERS: $(libvirt_gconfig_1_0_la_HEADERS)
652 @$(NORMAL_INSTALL)
653 test -z "$(libvirt_gconfig_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)"
654 @list='$(libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \
655 for p in $$list; do \
656 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
657 echo "$$d$$p"; \
658 done | $(am__base_list) | \
659 while read files; do \
660 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)'"; \
661 $(INSTALL_HEADER) $$files "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" || exit $$?; \
662 done
663
664 uninstall-libvirt_gconfig_1_0_laHEADERS:
665 @$(NORMAL_UNINSTALL)
666 @list='$(libvirt_gconfig_1_0_la_HEADERS)'; test -n "$(libvirt_gconfig_1_0_ladir)" || list=; \
667 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
668 test -n "$$files" || exit 0; \
669 echo " ( cd '$(DESTDIR)$(libvirt_gconfig_1_0_ladir)' && rm -f" $$files ")"; \
670 cd "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)" && rm -f $$files
671
672 # This directory's subdirectories are mostly independent; you can cd
673 # into them and run `make' without going through this Makefile.
674 # To change the values of `make' variables: instead of editing Makefiles,
675 # (1) if the variable is set in `config.status', edit `config.status'
676 # (which will cause the Makefiles to be regenerated when you run `make');
677 # (2) otherwise, pass the desired values on the `make' command line.
678 $(RECURSIVE_TARGETS):
679 @fail= failcom='exit 1'; \
680 for f in x $$MAKEFLAGS; do \
681 case $$f in \
682 *=* | --[!k]*);; \
683 *k*) failcom='fail=yes';; \
684 esac; \
685 done; \
686 dot_seen=no; \
687 target=`echo $@ | sed s/-recursive//`; \
688 list='$(SUBDIRS)'; for subdir in $$list; do \
689 echo "Making $$target in $$subdir"; \
690 if test "$$subdir" = "."; then \
691 dot_seen=yes; \
692 local_target="$$target-am"; \
693 else \
694 local_target="$$target"; \
695 fi; \
696 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
697 || eval $$failcom; \
698 done; \
699 if test "$$dot_seen" = "no"; then \
700 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
701 fi; test -z "$$fail"
702
703 $(RECURSIVE_CLEAN_TARGETS):
704 @fail= failcom='exit 1'; \
705 for f in x $$MAKEFLAGS; do \
706 case $$f in \
707 *=* | --[!k]*);; \
708 *k*) failcom='fail=yes';; \
709 esac; \
710 done; \
711 dot_seen=no; \
712 case "$@" in \
713 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
714 *) list='$(SUBDIRS)' ;; \
715 esac; \
716 rev=''; for subdir in $$list; do \
717 if test "$$subdir" = "."; then :; else \
718 rev="$$subdir $$rev"; \
719 fi; \
720 done; \
721 rev="$$rev ."; \
722 target=`echo $@ | sed s/-recursive//`; \
723 for subdir in $$rev; do \
724 echo "Making $$target in $$subdir"; \
725 if test "$$subdir" = "."; then \
726 local_target="$$target-am"; \
727 else \
728 local_target="$$target"; \
729 fi; \
730 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
731 || eval $$failcom; \
732 done && test -z "$$fail"
733 tags-recursive:
734 list='$(SUBDIRS)'; for subdir in $$list; do \
735 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
736 done
737 ctags-recursive:
738 list='$(SUBDIRS)'; for subdir in $$list; do \
739 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
740 done
741
742 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
743 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
744 unique=`for i in $$list; do \
745 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
746 done | \
747 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
748 END { if (nonempty) { for (i in files) print i; }; }'`; \
749 mkid -fID $$unique
750 tags: TAGS
751
752 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
753 $(TAGS_FILES) $(LISP)
754 set x; \
755 here=`pwd`; \
756 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
757 include_option=--etags-include; \
758 empty_fix=.; \
759 else \
760 include_option=--include; \
761 empty_fix=; \
762 fi; \
763 list='$(SUBDIRS)'; for subdir in $$list; do \
764 if test "$$subdir" = .; then :; else \
765 test ! -f $$subdir/TAGS || \
766 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
767 fi; \
768 done; \
769 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
770 unique=`for i in $$list; do \
771 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
772 done | \
773 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
774 END { if (nonempty) { for (i in files) print i; }; }'`; \
775 shift; \
776 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
777 test -n "$$unique" || unique=$$empty_fix; \
778 if test $$# -gt 0; then \
779 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
780 "$$@" $$unique; \
781 else \
782 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
783 $$unique; \
784 fi; \
785 fi
786 ctags: CTAGS
787 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
788 $(TAGS_FILES) $(LISP)
789 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
790 unique=`for i in $$list; do \
791 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
792 done | \
793 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
794 END { if (nonempty) { for (i in files) print i; }; }'`; \
795 test -z "$(CTAGS_ARGS)$$unique" \
796 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
797 $$unique
798
799 GTAGS:
800 here=`$(am__cd) $(top_builddir) && pwd` \
801 && $(am__cd) $(top_srcdir) \
802 && gtags -i $(GTAGS_ARGS) "$$here"
803
804 distclean-tags:
805 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
806
807 distdir: $(DISTFILES)
808 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
809 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
810 list='$(DISTFILES)'; \
811 dist_files=`for file in $$list; do echo $$file; done | \
812 sed -e "s|^$$srcdirstrip/||;t" \
813 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
814 case $$dist_files in \
815 */*) $(MKDIR_P) `echo "$$dist_files" | \
816 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
817 sort -u` ;; \
818 esac; \
819 for file in $$dist_files; do \
820 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
821 if test -d $$d/$$file; then \
822 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
823 if test -d "$(distdir)/$$file"; then \
824 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
825 fi; \
826 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
827 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
828 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
829 fi; \
830 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
831 else \
832 test -f "$(distdir)/$$file" \
833 || cp -p $$d/$$file "$(distdir)/$$file" \
834 || exit 1; \
835 fi; \
836 done
837 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
838 if test "$$subdir" = .; then :; else \
839 test -d "$(distdir)/$$subdir" \
840 || $(MKDIR_P) "$(distdir)/$$subdir" \
841 || exit 1; \
842 fi; \
843 done
844 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
845 if test "$$subdir" = .; then :; else \
846 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
847 $(am__relativize); \
848 new_distdir=$$reldir; \
849 dir1=$$subdir; dir2="$(top_distdir)"; \
850 $(am__relativize); \
851 new_top_distdir=$$reldir; \
852 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
853 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
854 ($(am__cd) $$subdir && \
855 $(MAKE) $(AM_MAKEFLAGS) \
856 top_distdir="$$new_top_distdir" \
857 distdir="$$new_distdir" \
858 am__remove_distdir=: \
859 am__skip_length_check=: \
860 am__skip_mode_fix=: \
861 distdir) \
862 || exit 1; \
863 fi; \
864 done
865 check-am: all-am
866 check: check-recursive
867 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
868 installdirs: installdirs-recursive
869 installdirs-am:
870 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibsdir)" "$(DESTDIR)$(libvirt_gconfig_1_0_ladir)"; do \
871 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
872 done
873 install: install-recursive
874 install-exec: install-exec-recursive
875 install-data: install-data-recursive
876 uninstall: uninstall-recursive
877
878 install-am: all-am
879 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
880
881 installcheck: installcheck-recursive
882 install-strip:
883 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
884 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
885 `test -z '$(STRIP)' || \
886 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
887 mostlyclean-generic:
888
889 clean-generic:
890 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
891
892 distclean-generic:
893 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
894 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
895
896 maintainer-clean-generic:
897 @echo "This command is intended for maintainers to use"
898 @echo "it deletes files that may require special tools to rebuild."
899 clean: clean-recursive
900
901 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
902 mostlyclean-am
903
904 distclean: distclean-recursive
905 -rm -rf ./$(DEPDIR)
906 -rm -f Makefile
907 distclean-am: clean-am distclean-compile distclean-generic \
908 distclean-tags
909
910 dvi: dvi-recursive
911
912 dvi-am:
913
914 html: html-recursive
915
916 html-am:
917
918 info: info-recursive
919
920 info-am:
921
922 install-data-am: install-girDATA install-libvirt_gconfig_1_0_laHEADERS \
923 install-typelibsDATA
924
925 install-dvi: install-dvi-recursive
926
927 install-dvi-am:
928
929 install-exec-am: install-libLTLIBRARIES
930
931 install-html: install-html-recursive
932
933 install-html-am:
934
935 install-info: install-info-recursive
936
937 install-info-am:
938
939 install-man:
940
941 install-pdf: install-pdf-recursive
942
943 install-pdf-am:
944
945 install-ps: install-ps-recursive
946
947 install-ps-am:
948
949 installcheck-am:
950
951 maintainer-clean: maintainer-clean-recursive
952 -rm -rf ./$(DEPDIR)
953 -rm -f Makefile
954 maintainer-clean-am: distclean-am maintainer-clean-generic
955
956 mostlyclean: mostlyclean-recursive
957
958 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
959 mostlyclean-libtool
960
961 pdf: pdf-recursive
962
963 pdf-am:
964
965 ps: ps-recursive
966
967 ps-am:
968
969 uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \
970 uninstall-libvirt_gconfig_1_0_laHEADERS uninstall-typelibsDATA
971
972 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
973 install-am install-strip tags-recursive
974
975 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
976 all all-am check check-am clean clean-generic \
977 clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
978 distclean distclean-compile distclean-generic \
979 distclean-libtool distclean-tags distdir dvi dvi-am html \
980 html-am info info-am install install-am install-data \
981 install-data-am install-dvi install-dvi-am install-exec \
982 install-exec-am install-girDATA install-html install-html-am \
983 install-info install-info-am install-libLTLIBRARIES \
984 install-libvirt_gconfig_1_0_laHEADERS install-man install-pdf \
985 install-pdf-am install-ps install-ps-am install-strip \
986 install-typelibsDATA installcheck installcheck-am installdirs \
987 installdirs-am maintainer-clean maintainer-clean-generic \
988 mostlyclean mostlyclean-compile mostlyclean-generic \
989 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
990 uninstall uninstall-am uninstall-girDATA \
991 uninstall-libLTLIBRARIES \
992 uninstall-libvirt_gconfig_1_0_laHEADERS uninstall-typelibsDATA
993
994
995 @WITH_GOBJECT_INTROSPECTION_TRUE@LibvirtGConfig-1.0.gir: libvirt-gconfig-1.0.la $(G_IR_SCANNER) Makefile.am
996 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(AM_V_GEN)$(G_IR_SCANNER) \
997 @WITH_GOBJECT_INTROSPECTION_TRUE@ --quiet \
998 @WITH_GOBJECT_INTROSPECTION_TRUE@ --warn-all \
999 @WITH_GOBJECT_INTROSPECTION_TRUE@ --namespace LibvirtGConfig \
1000 @WITH_GOBJECT_INTROSPECTION_TRUE@ --nsversion 1.0 \
1001 @WITH_GOBJECT_INTROSPECTION_TRUE@ --include GObject-2.0 \
1002 @WITH_GOBJECT_INTROSPECTION_TRUE@ --identifier-prefix=GVirConfig \
1003 @WITH_GOBJECT_INTROSPECTION_TRUE@ --symbol-prefix=gvir \
1004 @WITH_GOBJECT_INTROSPECTION_TRUE@ --library=$(builddir)/libvirt-gconfig-1.0.la \
1005 @WITH_GOBJECT_INTROSPECTION_TRUE@ --output $@ \
1006 @WITH_GOBJECT_INTROSPECTION_TRUE@ -I$(top_srcdir) \
1007 @WITH_GOBJECT_INTROSPECTION_TRUE@ -I$(top_builddir) \
1008 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(LIBXML2_CFLAGS) \
1009 @WITH_GOBJECT_INTROSPECTION_TRUE@ --verbose \
1010 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg=gobject-2.0 \
1011 @WITH_GOBJECT_INTROSPECTION_TRUE@ --c-include="libvirt-gconfig/libvirt-gconfig.h" \
1012 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg-export=libvirt-gconfig-1.0 \
1013 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(srcdir)/libvirt-gconfig.h \
1014 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(GCONFIG_SOURCE_FILES:%=$(srcdir)/%) \
1015 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(GCONFIG_HEADER_FILES:%=$(srcdir)/%)
1016
1017 @WITH_GOBJECT_INTROSPECTION_TRUE@%.typelib: %.gir
1018 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(AM_V_GEN)$(G_IR_COMPILER) \
1019 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(builddir) \
1020 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(girdir) \
1021 @WITH_GOBJECT_INTROSPECTION_TRUE@ -o $@ $<
1022
1023 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1024 # Otherwise a system limit (for SysV at least) may be exceeded.
1025 .NOEXPORT:
6060 }
6161
6262
63 GVirConfigCapabilities *gvir_config_capabilities_new(const gchar *xml)
63 GVirConfigCapabilities *gvir_config_capabilities_new(void)
6464 {
65 return GVIR_CONFIG_CAPABILITIES(g_object_new(GVIR_TYPE_CONFIG_CAPABILITIES,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/capability.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 /* FIXME: what is the XML root of the capability node? I suspect it is
68 * either 'guest' or 'host' */
69 object = gvir_config_object_new(GVIR_TYPE_CONFIG_CAPABILITIES,
70 "capabilities",
71 DATADIR "/libvirt/schemas/capability.rng");
72 return GVIR_CONFIG_CAPABILITIES(object);
6973 }
74
75 GVirConfigCapabilities *gvir_config_capabilities_new_from_xml(const gchar *xml,
76 GError **error)
77 {
78 GVirConfigObject *object;
79
80 /* FIXME: what is the XML root of the capability node? I suspect it is
81 * either 'guest' or 'host' */
82 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_CAPABILITIES,
83 "capabilities",
84 DATADIR "/libvirt/schemas/capability.rng",
85 xml, error);
86 return GVIR_CONFIG_CAPABILITIES(object);
87 }
5858
5959 GType gvir_config_capabilities_get_type(void);
6060
61 GVirConfigCapabilities *gvir_config_capabilities_new(const gchar *xml);
61 GVirConfigCapabilities *gvir_config_capabilities_new(void);
62 GVirConfigCapabilities *gvir_config_capabilities_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
6060 }
6161
6262
63 GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new(const gchar *xml)
63 GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new(void)
6464 {
65 return GVIR_CONFIG_DOMAIN_SNAPSHOT(g_object_new(GVIR_TYPE_CONFIG_DOMAIN_SNAPSHOT,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/domainsnapshot.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_DOMAIN_SNAPSHOT,
68 "domainsnapshot",
69 DATADIR "/libvirt/schemas/domainsnapshot.rng");
70 return GVIR_CONFIG_DOMAIN_SNAPSHOT(object);
6971 }
72
73 GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_DOMAIN_SNAPSHOT,
79 "domainsnapshot",
80 DATADIR "/libvirt/schemas/domainsnapshot.rng",
81 xml, error);
82 return GVIR_CONFIG_DOMAIN_SNAPSHOT(object);
83 }
5858
5959 GType gvir_config_domain_snapshot_get_type(void);
6060
61 GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new(const gchar *xml);
61 GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new(void);
62 GVirConfigDomainSnapshot *gvir_config_domain_snapshot_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
2525 #include <string.h>
2626
2727 #include "libvirt-gconfig/libvirt-gconfig.h"
28 #include "libvirt-gconfig/libvirt-gconfig-helpers-private.h"
2829
2930 extern gboolean debugFlag;
3031
4041
4142 G_DEFINE_TYPE(GVirConfigDomain, gvir_config_domain, GVIR_TYPE_CONFIG_OBJECT);
4243
44 enum {
45 PROP_0,
46 PROP_NAME,
47 PROP_MEMORY,
48 PROP_FEATURES
49 };
50
51 static void gvir_config_domain_get_property(GObject *object,
52 guint prop_id,
53 GValue *value,
54 GParamSpec *pspec)
55 {
56 GVirConfigDomain *domain = GVIR_CONFIG_DOMAIN(object);
57
58 switch (prop_id) {
59 case PROP_NAME:
60 g_value_take_string(value, gvir_config_domain_get_name(domain));
61 break;
62 case PROP_MEMORY:
63 g_value_set_uint64(value, gvir_config_domain_get_memory(domain));
64 break;
65 case PROP_FEATURES:
66 g_value_take_boxed(value, gvir_config_domain_get_features(domain));
67 break;
68
69 default:
70 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
71 }
72 }
73
74 static void gvir_config_domain_set_property(GObject *object,
75 guint prop_id,
76 const GValue *value,
77 GParamSpec *pspec)
78 {
79 GVirConfigDomain *domain = GVIR_CONFIG_DOMAIN(object);
80
81 switch (prop_id) {
82 case PROP_NAME:
83 gvir_config_domain_set_name(domain, g_value_get_string(value));
84 break;
85 case PROP_MEMORY:
86 gvir_config_domain_set_memory(domain, g_value_get_uint64(value));
87 break;
88 case PROP_FEATURES:
89 gvir_config_domain_set_features(domain, g_value_get_boxed(value));
90 break;
91 default:
92 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
93 }
94 }
95
4396
4497 static void gvir_config_domain_class_init(GVirConfigDomainClass *klass)
4598 {
99 GObjectClass *object_class = G_OBJECT_CLASS(klass);
46100
47101 g_type_class_add_private(klass, sizeof(GVirConfigDomainPrivate));
102
103 object_class->get_property = gvir_config_domain_get_property;
104 object_class->set_property = gvir_config_domain_set_property;
105
106 g_object_class_install_property(object_class,
107 PROP_NAME,
108 g_param_spec_string("name",
109 "Name",
110 "Domain Name",
111 NULL,
112 G_PARAM_READWRITE |
113 G_PARAM_STATIC_STRINGS));
114 g_object_class_install_property(object_class,
115 PROP_MEMORY,
116 g_param_spec_uint64("memory",
117 "Memory",
118 "Maximum Guest Memory (in kilobytes)",
119 0, G_MAXUINT64,
120 0,
121 G_PARAM_READWRITE |
122 G_PARAM_STATIC_STRINGS));
123 g_object_class_install_property(object_class,
124 PROP_FEATURES,
125 g_param_spec_boxed("features",
126 "Features",
127 "Hypervisor Features",
128 G_TYPE_STRV,
129 G_PARAM_READWRITE |
130 G_PARAM_STATIC_STRINGS));
48131 }
49132
50133
60143 }
61144
62145
63 GVirConfigDomain *gvir_config_domain_new(const gchar *xml)
64 {
65 return GVIR_CONFIG_DOMAIN(g_object_new(GVIR_TYPE_CONFIG_DOMAIN,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/domain.rng",
68 NULL));
69 }
146 GVirConfigDomain *gvir_config_domain_new_from_xml(const gchar *xml,
147 GError **error)
148 {
149 GVirConfigObject *object;
150
151 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_DOMAIN,
152 "domain",
153 DATADIR "/libvirt/schemas/domain.rng",
154 xml, error);
155 return GVIR_CONFIG_DOMAIN(object);
156 }
157
158 GVirConfigDomain *gvir_config_domain_new(void)
159 {
160 GVirConfigObject *object;
161
162 object = gvir_config_object_new(GVIR_TYPE_CONFIG_DOMAIN,
163 "domain",
164 DATADIR "/libvirt/schemas/domain.rng");
165 return GVIR_CONFIG_DOMAIN(object);
166 }
167
168 char *gvir_config_domain_get_name(GVirConfigDomain *domain)
169 {
170 return gvir_config_object_get_node_content(GVIR_CONFIG_OBJECT(domain),
171 "name");
172 }
173
174 void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name)
175 {
176 gvir_config_object_set_node_content(GVIR_CONFIG_OBJECT(domain),
177 "name", name);
178 g_object_notify(G_OBJECT(domain), "name");
179 }
180
181 guint64 gvir_config_domain_get_memory(GVirConfigDomain *domain)
182 {
183 return gvir_config_object_get_node_content_uint64(GVIR_CONFIG_OBJECT(domain),
184 "memory");
185 }
186
187 void gvir_config_domain_set_memory(GVirConfigDomain *domain, guint64 memory)
188 {
189 gvir_config_object_set_node_content_uint64(GVIR_CONFIG_OBJECT(domain),
190 "memory", memory);
191 g_object_notify(G_OBJECT(domain), "memory");
192 }
193
194 /**
195 * gvir_config_domain_get_features:
196 * Returns: (transfer full):
197 */
198 GStrv gvir_config_domain_get_features(GVirConfigDomain *domain)
199 {
200 GPtrArray *features;
201 xmlNodePtr parent_node;
202 xmlNodePtr node;
203 xmlNodePtr it;
204
205 parent_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(domain));
206 if (parent_node == NULL)
207 return NULL;
208
209 node = gvir_config_xml_get_element(parent_node, "features", NULL);
210 if (node == NULL)
211 return NULL;
212
213 features = g_ptr_array_new();
214 for (it = node->children; it != NULL; it = it->next) {
215 g_ptr_array_add(features, g_strdup((char *)it->name));
216 }
217 g_ptr_array_add(features, NULL);
218
219 return (GStrv)g_ptr_array_free(features, FALSE);
220 }
221
222 void gvir_config_domain_set_features(GVirConfigDomain *domain,
223 const GStrv features)
224 {
225 xmlNodePtr parent_node;
226 xmlNodePtr features_node;
227 xmlNodePtr old_node;
228 GStrv it;
229
230 parent_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(domain));
231 features_node = xmlNewDocNode(parent_node->doc, NULL,
232 (xmlChar *)"features", NULL);
233 for (it = features; *it != NULL; it++) {
234 xmlNodePtr node;
235
236 node = xmlNewDocNode(parent_node->doc, NULL, (xmlChar *)*it, NULL);
237 xmlAddChild(features_node, node);
238 }
239
240 old_node = gvir_config_xml_get_element(parent_node, "features", NULL);
241 if (old_node) {
242 old_node = xmlReplaceNode(old_node, features_node);
243 xmlFreeNode(old_node);
244 } else {
245 xmlAddChild(parent_node, features_node);
246 }
247 g_object_notify(G_OBJECT(domain), "features");
248 }
5858
5959 GType gvir_config_domain_get_type(void);
6060
61 GVirConfigDomain *gvir_config_domain_new(const gchar *xml);
61 GVirConfigDomain *gvir_config_domain_new_from_xml(const gchar *xml, GError **error);
62 GVirConfigDomain *gvir_config_domain_new(void);
63
64 char *gvir_config_domain_get_name(GVirConfigDomain *domain);
65 void gvir_config_domain_set_name(GVirConfigDomain *domain, const char *name);
66 guint64 gvir_config_domain_get_memory(GVirConfigDomain *domain);
67 void gvir_config_domain_set_memory(GVirConfigDomain *domain, guint64 memory);
68 GStrv gvir_config_domain_get_features(GVirConfigDomain *domain);
69 void gvir_config_domain_set_features(GVirConfigDomain *domain,
70 const GStrv features);
71
6272
6373 G_END_DECLS
6474
0 /*
1 * libvirt-gconfig-helpers.h: various GVirConfig helpers
2 *
3 * Copyright (C) 2010, 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Daniel P. Berrange <berrange@redhat.com>
20 * Christophe Fergeau <cfergeau@gmail.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_HELPERS_PRIVATE_H__
28 #define __LIBVIRT_GCONFIG_HELPERS_PRIVATE_H__
29
30 G_BEGIN_DECLS
31
32 GError *gvir_xml_error_new(GQuark domain, gint code,
33 const gchar *format, ...);
34 xmlNodePtr gvir_config_xml_parse(const char *xml,
35 const char *root_node,
36 GError **err);
37 xmlNode * gvir_config_xml_get_element (xmlNode *node, ...);
38 xmlChar * gvir_config_xml_get_child_element_content (xmlNode *node,
39 const char *child_name);
40 char *gvir_config_xml_get_child_element_content_glib (xmlNode *node,
41 const char *child_name);
42 G_END_DECLS
43
44 #endif /* __LIBVIRT_GCONFIG_HELPERS_PRIVATE_H__ */
0 /*
1 * libvirt-gconfig-helpers.c: various GVirConfig helpers
2 *
3 * Copyright (C) 2010, 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Daniel P. Berrange <berrange@redhat.com>
20 * Christophe Fergeau <cfergeau@gmail.com>
21 */
22
23 #include <config.h>
24
25 #include <string.h>
26
27 #include <libxml/xmlerror.h>
28
29 #include "libvirt-gconfig/libvirt-gconfig.h"
30 #include "libvirt-gconfig/libvirt-gconfig-helpers-private.h"
31
32 GQuark
33 gvir_config_object_error_quark(void)
34 {
35 return g_quark_from_static_string("gvir-config-object");
36 }
37
38 static GError *gvir_xml_error_new_literal(GQuark domain,
39 gint code,
40 const gchar *message)
41 {
42 xmlErrorPtr xerr = xmlGetLastError();
43
44 if (!xerr)
45 return NULL;
46
47 if (message)
48 return g_error_new(domain,
49 code,
50 "%s: %s",
51 message,
52 xerr->message);
53 else
54 return g_error_new(domain,
55 code,
56 "%s",
57 xerr->message);
58 }
59
60
61 GError *gvir_xml_error_new(GQuark domain,
62 gint code,
63 const gchar *format,
64 ...)
65 {
66 GError *err;
67 va_list args;
68 gchar *message;
69
70 va_start(args, format);
71 message = g_strdup_vprintf(format, args);
72 va_end(args);
73
74 err = gvir_xml_error_new_literal(domain, code, message);
75
76 g_free(message);
77
78 return err;
79 }
80
81 xmlNodePtr
82 gvir_config_xml_parse(const char *xml, const char *root_node, GError **err)
83 {
84 xmlDocPtr doc;
85
86 if (!xml) {
87 *err = g_error_new(GVIR_CONFIG_OBJECT_ERROR,
88 0,
89 "%s",
90 "No XML document to parse");
91 return NULL;
92 }
93
94 doc = xmlParseMemory(xml, strlen(xml));
95 if (!doc) {
96 *err = gvir_xml_error_new(GVIR_CONFIG_OBJECT_ERROR,
97 0,
98 "%s",
99 "Unable to parse configuration");
100 return NULL;
101 }
102 if ((!doc->children) || (strcmp((char *)doc->children->name, root_node) != 0)) {
103 *err = g_error_new(GVIR_CONFIG_OBJECT_ERROR,
104 0,
105 "XML data has no '%s' node",
106 root_node);
107 xmlFreeDoc(doc);
108 return NULL;
109 }
110
111 return doc->children;
112 }
113
114
115 /*
116 * gvir_config_xml_get_element, gvir_config_xml_get_child_element_content
117 * and gvir_config_xml_get_child_element_content_glib are:
118 *
119 * Copyright (C) 2006, 2007 OpenedHand Ltd.
120 *
121 * Author: Jorn Baayen <jorn@openedhand.com>
122 */
123 xmlNode *
124 gvir_config_xml_get_element (xmlNode *node, ...)
125 {
126 va_list var_args;
127
128 va_start (var_args, node);
129
130 while (TRUE) {
131 const char *arg;
132
133 arg = va_arg (var_args, const char *);
134 if (!arg)
135 break;
136
137 for (node = node->children; node; node = node->next)
138 if (!g_strcmp0 (arg, (char *) node->name))
139 break;
140
141 if (!node)
142 break;
143 }
144
145 va_end (var_args);
146
147 return node;
148 }
149
150 xmlChar *
151 gvir_config_xml_get_child_element_content (xmlNode *node,
152 const char *child_name)
153 {
154 xmlNode *child_node;
155
156 child_node = gvir_config_xml_get_element (node, child_name, NULL);
157 if (!child_node)
158 return NULL;
159
160 return xmlNodeGetContent (child_node);
161 }
162
163 char *
164 gvir_config_xml_get_child_element_content_glib (xmlNode *node,
165 const char *child_name)
166 {
167 xmlChar *content;
168 char *copy;
169
170 content = gvir_config_xml_get_child_element_content (node, child_name);
171 if (!content)
172 return NULL;
173
174 copy = g_strdup ((char *) content);
175
176 xmlFree (content);
177
178 return copy;
179 }
0 /*
1 * libvirt-gconfig-helpers.h: various GVirConfig helpers
2 *
3 * Copyright (C) 2010, 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Daniel P. Berrange <berrange@redhat.com>
20 * Christophe Fergeau <cfergeau@gmail.com>
21 */
22
23 #if !defined(__LIBVIRT_GCONFIG_H__) && !defined(LIBVIRT_GCONFIG_BUILD)
24 #error "Only <libvirt-gconfig/libvirt-gconfig.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GCONFIG_HELPERS_H__
28 #define __LIBVIRT_GCONFIG_HELPERS_H__
29
30 G_BEGIN_DECLS
31
32 GQuark gvir_config_object_error_quark(void);
33 #define GVIR_CONFIG_OBJECT_ERROR gvir_config_object_error_quark()
34
35 G_END_DECLS
36
37 #endif /* __LIBVIRT_GCONFIG_HELPERS_H__ */
6060 }
6161
6262
63 GVirConfigInterface *gvir_config_interface_new(const gchar *xml)
63 GVirConfigInterface *gvir_config_interface_new(void)
6464 {
65 return GVIR_CONFIG_INTERFACE(g_object_new(GVIR_TYPE_CONFIG_INTERFACE,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/interface.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_INTERFACE,
68 "interface",
69 DATADIR "/libvirt/schemas/interface.rng");
70 return GVIR_CONFIG_INTERFACE(object);
6971 }
72
73 GVirConfigInterface *gvir_config_interface_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_INTERFACE,
79 "interface",
80 DATADIR "/libvirt/schemas/interface.rng",
81 xml, error);
82 return GVIR_CONFIG_INTERFACE(object);
83 }
84
5858
5959 GType gvir_config_interface_get_type(void);
6060
61 GVirConfigInterface *gvir_config_interface_new(const gchar *xml);
61 GVirConfigInterface *gvir_config_interface_new(void);
62 GVirConfigInterface *gvir_config_interface_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
6060 }
6161
6262
63 GVirConfigNetworkFilter *gvir_config_network_filter_new(const gchar *xml)
63 GVirConfigNetworkFilter *gvir_config_network_filter_new(void)
6464 {
65 return GVIR_CONFIG_NETWORK_FILTER(g_object_new(GVIR_TYPE_CONFIG_NETWORK_FILTER,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/nwfilter.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_NETWORK_FILTER,
68 "filter",
69 DATADIR "/libvirt/schemas/nwfilter.rng");
70 return GVIR_CONFIG_NETWORK_FILTER(object);
6971 }
72
73 GVirConfigNetworkFilter *gvir_config_network_filter_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_NETWORK_FILTER,
79 "filter",
80 DATADIR "/libvirt/schemas/nwfilter.rng",
81 xml, error);
82 return GVIR_CONFIG_NETWORK_FILTER(object);
83 }
5858
5959 GType gvir_config_network_filter_get_type(void);
6060
61 GVirConfigNetworkFilter *gvir_config_network_filter_new(const gchar *xml);
61 GVirConfigNetworkFilter *gvir_config_network_filter_new(void);
62 GVirConfigNetworkFilter *gvir_config_network_filter_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
6060 }
6161
6262
63 GVirConfigNetwork *gvir_config_network_new(const gchar *xml)
63 GVirConfigNetwork *gvir_config_network_new(void)
6464 {
65 return GVIR_CONFIG_NETWORK(g_object_new(GVIR_TYPE_CONFIG_NETWORK,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/network.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_NETWORK,
68 "network",
69 DATADIR "/libvirt/schemas/network.rng");
70 return GVIR_CONFIG_NETWORK(object);
6971 }
72
73 GVirConfigNetwork *gvir_config_network_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_NETWORK,
79 "network",
80 DATADIR "/libvirt/schemas/network.rng",
81 xml, error);
82 return GVIR_CONFIG_NETWORK(object);
83 }
5858
5959 GType gvir_config_network_get_type(void);
6060
61 GVirConfigNetwork *gvir_config_network_new(const gchar *xml);
61 GVirConfigNetwork *gvir_config_network_new(void);
62 GVirConfigNetwork *gvir_config_network_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
6060 }
6161
6262
63 GVirConfigNodeDevice *gvir_config_node_device_new(const gchar *xml)
63 GVirConfigNodeDevice *gvir_config_node_device_new(void)
6464 {
65 return GVIR_CONFIG_NODE_DEVICE(g_object_new(GVIR_TYPE_CONFIG_NODE_DEVICE,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/nodedev.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_NODE_DEVICE,
68 "device",
69 DATADIR "/libvirt/schemas/nodedev.rng");
70 return GVIR_CONFIG_NODE_DEVICE(object);
6971 }
72
73 GVirConfigNodeDevice *gvir_config_node_device_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_NODE_DEVICE,
79 "device",
80 DATADIR "/libvirt/schemas/nodedev.rng",
81 xml, error);
82 return GVIR_CONFIG_NODE_DEVICE(object);
83 }
5858
5959 GType gvir_config_node_device_get_type(void);
6060
61 GVirConfigNodeDevice *gvir_config_node_device_new(const gchar *xml);
61 GVirConfigNodeDevice *gvir_config_node_device_new(void);
62 GVirConfigNodeDevice *gvir_config_node_device_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
2525 #include <string.h>
2626
2727 #include <libxml/relaxng.h>
28 #include <libxml/xmlerror.h>
2928
3029 #include "libvirt-gconfig/libvirt-gconfig.h"
30 #include "libvirt-gconfig/libvirt-gconfig-helpers-private.h"
31
3132
3233 //extern gboolean debugFlag;
3334 gboolean debugFlag;
3940
4041 struct _GVirConfigObjectPrivate
4142 {
42 gchar *doc;
4343 gchar *schema;
4444
45 xmlDocPtr docHandle;
45 xmlNodePtr node;
4646 };
4747
4848 G_DEFINE_ABSTRACT_TYPE(GVirConfigObject, gvir_config_object, G_TYPE_OBJECT);
4949
5050 enum {
5151 PROP_0,
52 PROP_DOC,
5352 PROP_SCHEMA,
53 PROP_NODE
5454 };
5555
56
57 #define GVIR_CONFIG_OBJECT_ERROR gvir_config_object_error_quark()
58
59
60 static GQuark
61 gvir_config_object_error_quark(void)
62 {
63 return g_quark_from_static_string("gvir-config-object");
64 }
65
66 static GError *gvir_xml_error_new_literal(GQuark domain,
67 gint code,
68 const gchar *message)
69 {
70 xmlErrorPtr xerr = xmlGetLastError();
71
72 if (!xerr)
73 return NULL;
74
75 if (message)
76 return g_error_new(domain,
77 code,
78 "%s: %s",
79 message,
80 xerr->message);
81 else
82 return g_error_new(domain,
83 code,
84 "%s",
85 message);
86 }
87
88
89 static GError *gvir_xml_error_new(GQuark domain,
90 gint code,
91 const gchar *format,
92 ...)
93 {
94 GError *err;
95 va_list args;
96 gchar *message;
97
98 va_start(args, format);
99 message = g_strdup_vprintf(format, args);
100 va_end(args);
101
102 err = gvir_xml_error_new_literal(domain, code, message);
103
104 g_free(message);
105
106 return err;
107 }
10856
10957 static void gvir_xml_generic_error_nop(void *userData G_GNUC_UNUSED,
11058 const char *msg G_GNUC_UNUSED,
11664 xmlErrorPtr error G_GNUC_UNUSED)
11765 {
11866 }
67
11968
12069 static void gvir_config_object_get_property(GObject *object,
12170 guint prop_id,
12675 GVirConfigObjectPrivate *priv = conn->priv;
12776
12877 switch (prop_id) {
129 case PROP_DOC:
130 g_value_set_string(value, priv->doc);
131 break;
132
13378 case PROP_SCHEMA:
13479 g_value_set_string(value, priv->schema);
13580 break;
13681
82 case PROP_NODE:
83 g_value_set_pointer(value, gvir_config_object_get_xml_node(conn));
84 break;
85
13786 default:
13887 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
13988 }
14089 }
141
14290
14391 static void gvir_config_object_set_property(GObject *object,
14492 guint prop_id,
14997 GVirConfigObjectPrivate *priv = conn->priv;
15098
15199 switch (prop_id) {
152 case PROP_DOC:
153 g_free(priv->doc);
154 priv->doc = g_value_dup_string(value);
155 break;
156
157100 case PROP_SCHEMA:
158101 g_free(priv->schema);
159102 priv->schema = g_value_dup_string(value);
160103 break;
161104
105 case PROP_NODE: {
106 xmlNodePtr node;
107 node = g_value_get_pointer(value);
108 if ((priv->node != NULL)
109 && (priv->node->doc != NULL)
110 && (priv->node->doc != node->doc)) {
111 xmlFreeDoc(priv->node->doc);
112 }
113 priv->node = node;
114 break;
115 }
116
162117 default:
163118 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
164119 }
172127
173128 DEBUG("Finalize GVirConfigObject=%p", conn);
174129
175 g_free(priv->doc);
176130 g_free(priv->schema);
177131
178 if (priv->docHandle)
179 xmlFreeDoc(priv->docHandle);
132 /* FIXME: all objects describing a given XML document will share the
133 * same document so we can't destroy it here like this, we need some
134 * refcounting to know when to destroy it.
135 */
136 if (priv->node)
137 xmlFreeDoc(priv->node->doc);
180138
181139 G_OBJECT_CLASS(gvir_config_object_parent_class)->finalize(object);
182140 }
190148 object_class->get_property = gvir_config_object_get_property;
191149 object_class->set_property = gvir_config_object_set_property;
192150
193 g_object_class_install_property(object_class,
194 PROP_DOC,
195 g_param_spec_string("doc",
196 "Doc",
197 "The XML document",
198 NULL,
199 G_PARAM_READABLE |
200 G_PARAM_WRITABLE |
201 G_PARAM_CONSTRUCT_ONLY |
202 G_PARAM_STATIC_NAME |
203 G_PARAM_STATIC_NICK |
204 G_PARAM_STATIC_BLURB));
205151 g_object_class_install_property(object_class,
206152 PROP_SCHEMA,
207153 g_param_spec_string("schema",
215161 G_PARAM_STATIC_NICK |
216162 G_PARAM_STATIC_BLURB));
217163
164 g_object_class_install_property(object_class,
165 PROP_NODE,
166 g_param_spec_pointer("node",
167 "XML Node",
168 "The XML node this config object corresponds to",
169 G_PARAM_READWRITE |
170 G_PARAM_CONSTRUCT_ONLY |
171 G_PARAM_STATIC_STRINGS));
172
218173 g_type_class_add_private(klass, sizeof(GVirConfigObjectPrivate));
219174 }
220175
229184
230185 memset(priv, 0, sizeof(*priv));
231186 }
232
233 static void
234 gvir_config_object_parse(GVirConfigObject *config,
235 GError **err)
236 {
237 GVirConfigObjectPrivate *priv = config->priv;
238 if (priv->docHandle)
239 return;
240
241 priv->docHandle = xmlParseMemory(priv->doc, strlen(priv->doc));
242 if (!priv->docHandle) {
243 *err = gvir_xml_error_new(GVIR_CONFIG_OBJECT_ERROR,
244 0,
245 "%s",
246 "Unable to parse configuration");
247 }
248 }
249
250187
251188 void gvir_config_object_validate(GVirConfigObject *config,
252189 GError **err)
259196 xmlSetGenericErrorFunc(NULL, gvir_xml_generic_error_nop);
260197 xmlSetStructuredErrorFunc(NULL, gvir_xml_structured_error_nop);
261198
262 gvir_config_object_parse(config, err);
263 if (*err)
264 return;
199 if (!priv->node) {
200 *err = gvir_xml_error_new(GVIR_CONFIG_OBJECT_ERROR,
201 0,
202 "%s",
203 "No XML document associated with this config object");
204 return;
205 }
265206
266207 rngParser = xmlRelaxNGNewParserCtxt(priv->schema);
267208 if (!rngParser) {
293234 return;
294235 }
295236
296 if (xmlRelaxNGValidateDoc(rngValid, priv->docHandle) != 0) {
237 if (xmlRelaxNGValidateDoc(rngValid, priv->node->doc) != 0) {
297238 *err = gvir_xml_error_new(GVIR_CONFIG_OBJECT_ERROR,
298239 0,
299240 "%s",
307248 xmlRelaxNGFree(rng);
308249 }
309250
310 const gchar *gvir_config_object_get_doc(GVirConfigObject *config)
311 {
312 GVirConfigObjectPrivate *priv = config->priv;
313 return priv->doc;
251 gchar *gvir_config_object_to_xml(GVirConfigObject *config)
252 {
253 xmlChar *doc;
254 int size;
255 xmlNodePtr node;
256 gchar *output_doc;
257
258 node = gvir_config_object_get_xml_node(config);
259 if (node == NULL)
260 return NULL;
261
262 xmlDocDumpMemory(node->doc, &doc, &size);
263
264 output_doc = g_strdup((gchar *)doc);
265 xmlFree(doc);
266
267 return output_doc;
314268 }
315269
316270 const gchar *gvir_config_object_get_schema(GVirConfigObject *config)
319273 return priv->schema;
320274 }
321275
276 /* FIXME: will we always have one xmlNode per GConfig object? */
277 /* FIXME: need to return the right node from subclasses */
278 /* NB: the xmlNodePtr must not be freed by the caller */
279 xmlNodePtr gvir_config_object_get_xml_node(GVirConfigObject *config)
280 {
281 return config->priv->node;
282 }
283
284 char *gvir_config_object_get_node_content(GVirConfigObject *object,
285 const char *node_name)
286 {
287 xmlNodePtr node;
288
289 node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object));
290 if (node == NULL)
291 return NULL;
292
293 return gvir_config_xml_get_child_element_content_glib(node, node_name);
294 }
295
296 /* FIXME: if there are multiple nodes with the same name, this function
297 * won't behave as expected. Should we get rid of the duplicated node names
298 * here?
299 */
300 void gvir_config_object_set_node_content(GVirConfigObject *object,
301 const char *node_name,
302 const char *value)
303 {
304 xmlNodePtr parent_node;
305 xmlNodePtr old_node;
306 xmlNodePtr new_node;
307 xmlChar *encoded_name;
308
309 parent_node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object));
310 encoded_name = xmlEncodeEntitiesReentrant(parent_node->doc,
311 (xmlChar *)value);
312 new_node = xmlNewDocNode(parent_node->doc, NULL,
313 (xmlChar *)node_name, encoded_name);
314 xmlFree(encoded_name);
315
316 old_node = gvir_config_xml_get_element(parent_node, node_name, NULL);
317 if (old_node) {
318 old_node = xmlReplaceNode(old_node, new_node);
319 xmlFreeNode(old_node);
320 } else {
321 xmlAddChild(parent_node, new_node);
322 }
323 }
324
325 /* FIXME: how to notify of errors/node not found? */
326 guint64 gvir_config_object_get_node_content_uint64(GVirConfigObject *object,
327 const char *node_name)
328 {
329 xmlNodePtr node;
330 xmlChar *str;
331 guint64 value;
332
333 node = gvir_config_object_get_xml_node(GVIR_CONFIG_OBJECT(object));
334 if (node == NULL)
335 return 0;
336
337 str = gvir_config_xml_get_child_element_content(node, node_name);
338 if (!str)
339 return 0;
340
341 value = g_ascii_strtoull((char *)str, NULL, 0);
342 xmlFree(str);
343
344 return value;
345 }
346
347
348 void gvir_config_object_set_node_content_uint64(GVirConfigObject *object,
349 const char *node_name,
350 guint64 value)
351 {
352 char *str;
353 str = g_strdup_printf("%"G_GUINT64_FORMAT, value);
354 gvir_config_object_set_node_content(object, node_name, str);
355 g_free(str);
356 }
357
358 GVirConfigObject *gvir_config_object_new_from_xml(GType type,
359 const char *root_name,
360 const char *schema,
361 const gchar *xml,
362 GError **error)
363 {
364 xmlNodePtr node;
365
366 node = gvir_config_xml_parse(xml, root_name, error);
367 if ((error != NULL) && (*error != NULL))
368 return NULL;
369 return GVIR_CONFIG_OBJECT(g_object_new(type,
370 "node", node,
371 "schema", schema,
372 NULL));
373 }
374
375 GVirConfigObject *gvir_config_object_new(GType type,
376 const char *root_name,
377 const char *schema)
378 {
379 xmlDocPtr doc;
380 xmlNodePtr node;
381
382 doc = xmlNewDoc((xmlChar *)"1.0");
383 node = xmlNewDocNode(doc, NULL, (xmlChar *)root_name, NULL);
384 xmlDocSetRootElement(doc, node);
385 return GVIR_CONFIG_OBJECT(g_object_new(type,
386 "node", node,
387 "schema", schema,
388 NULL));
389 }
5858
5959 GType gvir_config_object_get_type(void);
6060
61 GVirConfigObject *gvir_config_object_new(GType type,
62 const char *root_name,
63 const char *schema);
64 GVirConfigObject *gvir_config_object_new_from_xml(GType type,
65 const char *root_name,
66 const char *schema,
67 const gchar *xml,
68 GError **error);
6169 void gvir_config_object_validate(GVirConfigObject *config,
6270 GError **err);
6371
64 const gchar *gvir_config_object_get_doc(GVirConfigObject *config);
72 gchar *gvir_config_object_to_xml(GVirConfigObject *config);
73
6574 const gchar *gvir_config_object_get_schema(GVirConfigObject *config);
75 xmlNodePtr gvir_config_object_get_xml_node(GVirConfigObject *config);
76 char *gvir_config_object_get_node_content(GVirConfigObject *object,
77 const char *node_name);
78 guint64 gvir_config_object_get_node_content_uint64(GVirConfigObject *object,
79 const char *node_name);
80 void gvir_config_object_set_node_content(GVirConfigObject *object,
81 const char *node_name,
82 const char *value);
83 void gvir_config_object_set_node_content_uint64(GVirConfigObject *object,
84 const char *node_name,
85 guint64 value);
86
87 /* FIXME: move to a libvirt-gconfig-helpers.h file? */
88 xmlNodePtr gvir_config_object_parse(const char *xml, const char *root_node, GError **err);
6689
6790 G_END_DECLS
6891
6060 }
6161
6262
63 GVirConfigSecret *gvir_config_secret_new(const gchar *xml)
63 GVirConfigSecret *gvir_config_secret_new(void)
6464 {
65 return GVIR_CONFIG_SECRET(g_object_new(GVIR_TYPE_CONFIG_SECRET,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/secret.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_SECRET,
68 "secret",
69 DATADIR "/libvirt/schemas/secret.rng");
70 return GVIR_CONFIG_SECRET(object);
6971 }
72
73 GVirConfigSecret *gvir_config_secret_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_SECRET,
79 "secret",
80 DATADIR "/libvirt/schemas/secret.rng",
81 xml, error);
82 return GVIR_CONFIG_SECRET(object);
83 }
5858
5959 GType gvir_config_secret_get_type(void);
6060
61 GVirConfigSecret *gvir_config_secret_new(const gchar *xml);
61 GVirConfigSecret *gvir_config_secret_new(void);
62 GVirConfigSecret *gvir_config_secret_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
6060 }
6161
6262
63 GVirConfigStoragePool *gvir_config_storage_pool_new(const gchar *xml)
63 GVirConfigStoragePool *gvir_config_storage_pool_new(void)
6464 {
65 return GVIR_CONFIG_STORAGE_POOL(g_object_new(GVIR_TYPE_CONFIG_STORAGE_POOL,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/storagepool.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_STORAGE_POOL,
68 "pool",
69 DATADIR "/libvirt/schemas/storagepool.rng");
70 return GVIR_CONFIG_STORAGE_POOL(object);
6971 }
72
73 GVirConfigStoragePool *gvir_config_storage_pool_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_STORAGE_POOL,
79 "pool",
80 DATADIR "/libvirt/schemas/storagepool.rng",
81 xml, error);
82 return GVIR_CONFIG_STORAGE_POOL(object);
83 }
5858
5959 GType gvir_config_storage_pool_get_type(void);
6060
61 GVirConfigStoragePool *gvir_config_storage_pool_new(const gchar *xml);
61 GVirConfigStoragePool *gvir_config_storage_pool_new(void);
62 GVirConfigStoragePool *gvir_config_storage_pool_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
6060 }
6161
6262
63 GVirConfigStorageVol *gvir_config_storage_vol_new(const gchar *xml)
63 GVirConfigStorageVol *gvir_config_storage_vol_new(void)
6464 {
65 return GVIR_CONFIG_STORAGE_VOL(g_object_new(GVIR_TYPE_CONFIG_STORAGE_VOL,
66 "doc", xml,
67 "schema", DATADIR "/libvirt/schemas/storage_vol.rng",
68 NULL));
65 GVirConfigObject *object;
66
67 object = gvir_config_object_new(GVIR_TYPE_CONFIG_STORAGE_VOL,
68 "volume",
69 DATADIR "/libvirt/schemas/storage_vol.rng");
70 return GVIR_CONFIG_STORAGE_VOL(object);
6971 }
72
73 GVirConfigStorageVol *gvir_config_storage_vol_new_from_xml(const gchar *xml,
74 GError **error)
75 {
76 GVirConfigObject *object;
77
78 object = gvir_config_object_new_from_xml(GVIR_TYPE_CONFIG_STORAGE_VOL,
79 "volume",
80 DATADIR "/libvirt/schemas/storage_vol.rng",
81 xml, error);
82 return GVIR_CONFIG_STORAGE_VOL(object);
83 }
5858
5959 GType gvir_config_storage_vol_get_type(void);
6060
61 GVirConfigStorageVol *gvir_config_storage_vol_new(const gchar *xml);
61 GVirConfigStorageVol *gvir_config_storage_vol_new(void);
62 GVirConfigStorageVol *gvir_config_storage_vol_new_from_xml(const gchar *xml,
63 GError **error);
6264
6365 G_END_DECLS
6466
2323 #define __LIBVIRT_GCONFIG_H__
2424
2525 #include <glib-object.h>
26 #include <libxml/tree.h>
2627
28 #include <libvirt-gconfig/libvirt-gconfig-helpers.h>
2729 #include <libvirt-gconfig/libvirt-gconfig-object.h>
2830 #include <libvirt-gconfig/libvirt-gconfig-capabilities.h>
2931 #include <libvirt-gconfig/libvirt-gconfig-domain.h>
11 global:
22 gvir_config_capabilities_get_type;
33 gvir_config_capabilities_new;
4 gvir_config_capabilities_new_from_xml;
45
56 gvir_config_domain_get_type;
67 gvir_config_domain_new;
8 gvir_config_domain_new_from_xml;
9 gvir_config_domain_get_features;
10 gvir_config_domain_set_features;
11 gvir_config_domain_get_memory;
12 gvir_config_domain_set_memory;
13 gvir_config_domain_get_name;
14 gvir_config_domain_set_name;
715
816 gvir_config_domain_snapshot_get_type;
917 gvir_config_domain_snapshot_new;
18 gvir_config_domain_snapshot_new_from_xml;
1019
1120 gvir_config_interface_get_type;
1221 gvir_config_interface_new;
22 gvir_config_interface_new_from_xml;
1323
1424 gvir_config_network_get_type;
1525 gvir_config_network_new;
26 gvir_config_network_new_from_xml;
1627
1728 gvir_config_network_filter_get_type;
1829 gvir_config_network_filter_new;
30 gvir_config_network_filter_new_from_xml;
1931
2032 gvir_config_node_device_get_type;
2133 gvir_config_node_device_new;
34 gvir_config_node_device_new_from_xml;
2235
2336 gvir_config_object_get_type;
37 gvir_config_object_error_quark;
2438 gvir_config_object_new;
25 gvir_config_object_get_doc;
2639 gvir_config_object_get_schema;
40 gvir_config_object_get_xml_node;
41 gvir_config_object_to_xml;
2742 gvir_config_object_validate;
2843
2944 gvir_config_secret_get_type;
3045 gvir_config_secret_new;
46 gvir_config_secret_new_from_xml;
3147
3248 gvir_config_storage_pool_get_type;
3349 gvir_config_storage_pool_new;
50 gvir_config_storage_pool_new_from_xml;
3451
3552 gvir_config_storage_vol_get_type;
3653 gvir_config_storage_vol_new;
54 gvir_config_storage_vol_new_from_xml;
3755
3856 local:
3957 *;
0 noinst_PROGRAMS = test-domain-create test-domain-parse
1
2 AM_CFLAGS = \
3 $(GOBJECT2_CFLAGS) \
4 $(LIBXML2_CFLAGS) \
5 $(WARN_CFLAGS)
6 INCLUDES = -I$(top_srcdir)
7 LDADD = \
8 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
9 $(GOBJECT2_LIBS) \
10 $(LIBXML2_LIBS) \
11 $(CYGWIN_EXTRA_LIBADD)
12
13 test_domain_create_SOURCES = test-domain-create.c
14
15 test_domain_parse_SOURCES = test-domain-parse.c
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 noinst_PROGRAMS = test-domain-create$(EXEEXT) \
37 test-domain-parse$(EXEEXT)
38 subdir = libvirt-gconfig/tests
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
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 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/config.h
47 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 PROGRAMS = $(noinst_PROGRAMS)
50 am_test_domain_create_OBJECTS = test-domain-create.$(OBJEXT)
51 test_domain_create_OBJECTS = $(am_test_domain_create_OBJECTS)
52 test_domain_create_LDADD = $(LDADD)
53 am__DEPENDENCIES_1 =
54 test_domain_create_DEPENDENCIES = \
55 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
56 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
57 $(am__DEPENDENCIES_1)
58 AM_V_lt = $(am__v_lt_$(V))
59 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
60 am__v_lt_0 = --silent
61 am_test_domain_parse_OBJECTS = test-domain-parse.$(OBJEXT)
62 test_domain_parse_OBJECTS = $(am_test_domain_parse_OBJECTS)
63 test_domain_parse_LDADD = $(LDADD)
64 test_domain_parse_DEPENDENCIES = \
65 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
66 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
67 $(am__DEPENDENCIES_1)
68 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
69 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
70 am__depfiles_maybe = depfiles
71 am__mv = mv -f
72 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
73 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
74 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
75 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
76 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
77 $(AM_CFLAGS) $(CFLAGS)
78 AM_V_CC = $(am__v_CC_$(V))
79 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
80 am__v_CC_0 = @echo " CC " $@;
81 AM_V_at = $(am__v_at_$(V))
82 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
83 am__v_at_0 = @
84 CCLD = $(CC)
85 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
86 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
87 $(AM_LDFLAGS) $(LDFLAGS) -o $@
88 AM_V_CCLD = $(am__v_CCLD_$(V))
89 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
90 am__v_CCLD_0 = @echo " CCLD " $@;
91 AM_V_GEN = $(am__v_GEN_$(V))
92 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
93 am__v_GEN_0 = @echo " GEN " $@;
94 SOURCES = $(test_domain_create_SOURCES) $(test_domain_parse_SOURCES)
95 DIST_SOURCES = $(test_domain_create_SOURCES) \
96 $(test_domain_parse_SOURCES)
97 ETAGS = etags
98 CTAGS = ctags
99 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
100 ACLOCAL = @ACLOCAL@
101 AMTAR = @AMTAR@
102 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
103 AR = @AR@
104 AS = @AS@
105 AUTOCONF = @AUTOCONF@
106 AUTOHEADER = @AUTOHEADER@
107 AUTOMAKE = @AUTOMAKE@
108 AWK = @AWK@
109 CC = @CC@
110 CCDEPMODE = @CCDEPMODE@
111 CFLAGS = @CFLAGS@
112 COMPILER_FLAGS = @COMPILER_FLAGS@
113 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
114 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
115 CPP = @CPP@
116 CPPFLAGS = @CPPFLAGS@
117 CYGPATH_W = @CYGPATH_W@
118 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
119 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
120 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
121 DEFS = @DEFS@
122 DEPDIR = @DEPDIR@
123 DLLTOOL = @DLLTOOL@
124 DSYMUTIL = @DSYMUTIL@
125 DUMPBIN = @DUMPBIN@
126 ECHO_C = @ECHO_C@
127 ECHO_N = @ECHO_N@
128 ECHO_T = @ECHO_T@
129 EGREP = @EGREP@
130 EXEEXT = @EXEEXT@
131 FGREP = @FGREP@
132 GIO2_CFLAGS = @GIO2_CFLAGS@
133 GIO2_LIBS = @GIO2_LIBS@
134 GLIB2_CFLAGS = @GLIB2_CFLAGS@
135 GLIB2_LIBS = @GLIB2_LIBS@
136 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
137 GOBJECT2_LIBS = @GOBJECT2_LIBS@
138 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
139 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
140 GREP = @GREP@
141 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
142 GTHREAD2_LIBS = @GTHREAD2_LIBS@
143 GTKDOC_CHECK = @GTKDOC_CHECK@
144 GTKDOC_MKPDF = @GTKDOC_MKPDF@
145 GTKDOC_REBASE = @GTKDOC_REBASE@
146 G_IR_COMPILER = @G_IR_COMPILER@
147 G_IR_SCANNER = @G_IR_SCANNER@
148 HTML_DIR = @HTML_DIR@
149 INSTALL = @INSTALL@
150 INSTALL_DATA = @INSTALL_DATA@
151 INSTALL_PROGRAM = @INSTALL_PROGRAM@
152 INSTALL_SCRIPT = @INSTALL_SCRIPT@
153 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
154 LD = @LD@
155 LDFLAGS = @LDFLAGS@
156 LIBOBJS = @LIBOBJS@
157 LIBS = @LIBS@
158 LIBTOOL = @LIBTOOL@
159 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
160 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
161 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
162 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
163 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
164 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
165 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
166 LIBVIRT_LIBS = @LIBVIRT_LIBS@
167 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
168 LIBXML2_LIBS = @LIBXML2_LIBS@
169 LIPO = @LIPO@
170 LN_S = @LN_S@
171 LTLIBOBJS = @LTLIBOBJS@
172 MAKEINFO = @MAKEINFO@
173 MANIFEST_TOOL = @MANIFEST_TOOL@
174 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
175 MKDIR_P = @MKDIR_P@
176 NM = @NM@
177 NMEDIT = @NMEDIT@
178 OBJDUMP = @OBJDUMP@
179 OBJEXT = @OBJEXT@
180 OTOOL = @OTOOL@
181 OTOOL64 = @OTOOL64@
182 PACKAGE = @PACKAGE@
183 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
184 PACKAGE_NAME = @PACKAGE_NAME@
185 PACKAGE_STRING = @PACKAGE_STRING@
186 PACKAGE_TARNAME = @PACKAGE_TARNAME@
187 PACKAGE_URL = @PACKAGE_URL@
188 PACKAGE_VERSION = @PACKAGE_VERSION@
189 PATH_SEPARATOR = @PATH_SEPARATOR@
190 PKG_CONFIG = @PKG_CONFIG@
191 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
192 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
193 PYTHON = @PYTHON@
194 PYTHON_INCLUDES = @PYTHON_INCLUDES@
195 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
196 PYTHON_VERSION = @PYTHON_VERSION@
197 RANLIB = @RANLIB@
198 SED = @SED@
199 SET_MAKE = @SET_MAKE@
200 SHELL = @SHELL@
201 STRIP = @STRIP@
202 VAPIGEN = @VAPIGEN@
203 VERSION = @VERSION@
204 WARN_CFLAGS = @WARN_CFLAGS@
205 abs_builddir = @abs_builddir@
206 abs_srcdir = @abs_srcdir@
207 abs_top_builddir = @abs_top_builddir@
208 abs_top_srcdir = @abs_top_srcdir@
209 ac_ct_AR = @ac_ct_AR@
210 ac_ct_CC = @ac_ct_CC@
211 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
212 am__include = @am__include@
213 am__leading_dot = @am__leading_dot@
214 am__quote = @am__quote@
215 am__tar = @am__tar@
216 am__untar = @am__untar@
217 bindir = @bindir@
218 build = @build@
219 build_alias = @build_alias@
220 build_cpu = @build_cpu@
221 build_os = @build_os@
222 build_vendor = @build_vendor@
223 builddir = @builddir@
224 datadir = @datadir@
225 datarootdir = @datarootdir@
226 docdir = @docdir@
227 dvidir = @dvidir@
228 exec_prefix = @exec_prefix@
229 host = @host@
230 host_alias = @host_alias@
231 host_cpu = @host_cpu@
232 host_os = @host_os@
233 host_vendor = @host_vendor@
234 htmldir = @htmldir@
235 includedir = @includedir@
236 infodir = @infodir@
237 install_sh = @install_sh@
238 libdir = @libdir@
239 libexecdir = @libexecdir@
240 localedir = @localedir@
241 localstatedir = @localstatedir@
242 mandir = @mandir@
243 mkdir_p = @mkdir_p@
244 oldincludedir = @oldincludedir@
245 pdfdir = @pdfdir@
246 prefix = @prefix@
247 program_transform_name = @program_transform_name@
248 psdir = @psdir@
249 pythondir = @pythondir@
250 sbindir = @sbindir@
251 sharedstatedir = @sharedstatedir@
252 srcdir = @srcdir@
253 sysconfdir = @sysconfdir@
254 target_alias = @target_alias@
255 top_build_prefix = @top_build_prefix@
256 top_builddir = @top_builddir@
257 top_srcdir = @top_srcdir@
258 AM_CFLAGS = \
259 $(GOBJECT2_CFLAGS) \
260 $(LIBXML2_CFLAGS) \
261 $(WARN_CFLAGS)
262
263 INCLUDES = -I$(top_srcdir)
264 LDADD = \
265 $(top_builddir)/libvirt-gconfig/libvirt-gconfig-1.0.la \
266 $(GOBJECT2_LIBS) \
267 $(LIBXML2_LIBS) \
268 $(CYGWIN_EXTRA_LIBADD)
269
270 test_domain_create_SOURCES = test-domain-create.c
271 test_domain_parse_SOURCES = test-domain-parse.c
272 all: all-am
273
274 .SUFFIXES:
275 .SUFFIXES: .c .lo .o .obj
276 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
277 @for dep in $?; do \
278 case '$(am__configure_deps)' in \
279 *$$dep*) \
280 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
281 && { if test -f $@; then exit 0; else break; fi; }; \
282 exit 1;; \
283 esac; \
284 done; \
285 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libvirt-gconfig/tests/Makefile'; \
286 $(am__cd) $(top_srcdir) && \
287 $(AUTOMAKE) --gnu libvirt-gconfig/tests/Makefile
288 .PRECIOUS: Makefile
289 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
290 @case '$?' in \
291 *config.status*) \
292 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
293 *) \
294 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
295 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
296 esac;
297
298 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
299 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
300
301 $(top_srcdir)/configure: $(am__configure_deps)
302 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
303 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
304 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
305 $(am__aclocal_m4_deps):
306
307 clean-noinstPROGRAMS:
308 @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
309 echo " rm -f" $$list; \
310 rm -f $$list || exit $$?; \
311 test -n "$(EXEEXT)" || exit 0; \
312 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
313 echo " rm -f" $$list; \
314 rm -f $$list
315 test-domain-create$(EXEEXT): $(test_domain_create_OBJECTS) $(test_domain_create_DEPENDENCIES)
316 @rm -f test-domain-create$(EXEEXT)
317 $(AM_V_CCLD)$(LINK) $(test_domain_create_OBJECTS) $(test_domain_create_LDADD) $(LIBS)
318 test-domain-parse$(EXEEXT): $(test_domain_parse_OBJECTS) $(test_domain_parse_DEPENDENCIES)
319 @rm -f test-domain-parse$(EXEEXT)
320 $(AM_V_CCLD)$(LINK) $(test_domain_parse_OBJECTS) $(test_domain_parse_LDADD) $(LIBS)
321
322 mostlyclean-compile:
323 -rm -f *.$(OBJEXT)
324
325 distclean-compile:
326 -rm -f *.tab.c
327
328 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-create.Po@am__quote@
329 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-domain-parse.Po@am__quote@
330
331 .c.o:
332 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
333 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
334 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
335 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
337 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
338
339 .c.obj:
340 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
341 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
342 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
343 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
345 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
346
347 .c.lo:
348 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
349 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
350 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
352 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
354
355 mostlyclean-libtool:
356 -rm -f *.lo
357
358 clean-libtool:
359 -rm -rf .libs _libs
360
361 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 mkid -fID $$unique
369 tags: TAGS
370
371 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 set x; \
374 here=`pwd`; \
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
380 END { if (nonempty) { for (i in files) print i; }; }'`; \
381 shift; \
382 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
383 test -n "$$unique" || unique=$$empty_fix; \
384 if test $$# -gt 0; then \
385 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
386 "$$@" $$unique; \
387 else \
388 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
389 $$unique; \
390 fi; \
391 fi
392 ctags: CTAGS
393 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
394 $(TAGS_FILES) $(LISP)
395 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
396 unique=`for i in $$list; do \
397 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
398 done | \
399 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
400 END { if (nonempty) { for (i in files) print i; }; }'`; \
401 test -z "$(CTAGS_ARGS)$$unique" \
402 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
403 $$unique
404
405 GTAGS:
406 here=`$(am__cd) $(top_builddir) && pwd` \
407 && $(am__cd) $(top_srcdir) \
408 && gtags -i $(GTAGS_ARGS) "$$here"
409
410 distclean-tags:
411 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
412
413 distdir: $(DISTFILES)
414 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
415 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
416 list='$(DISTFILES)'; \
417 dist_files=`for file in $$list; do echo $$file; done | \
418 sed -e "s|^$$srcdirstrip/||;t" \
419 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
420 case $$dist_files in \
421 */*) $(MKDIR_P) `echo "$$dist_files" | \
422 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
423 sort -u` ;; \
424 esac; \
425 for file in $$dist_files; do \
426 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
427 if test -d $$d/$$file; then \
428 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
429 if test -d "$(distdir)/$$file"; then \
430 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
431 fi; \
432 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
433 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
434 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
435 fi; \
436 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
437 else \
438 test -f "$(distdir)/$$file" \
439 || cp -p $$d/$$file "$(distdir)/$$file" \
440 || exit 1; \
441 fi; \
442 done
443 check-am: all-am
444 check: check-am
445 all-am: Makefile $(PROGRAMS)
446 installdirs:
447 install: install-am
448 install-exec: install-exec-am
449 install-data: install-data-am
450 uninstall: uninstall-am
451
452 install-am: all-am
453 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
454
455 installcheck: installcheck-am
456 install-strip:
457 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
458 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
459 `test -z '$(STRIP)' || \
460 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
461 mostlyclean-generic:
462
463 clean-generic:
464
465 distclean-generic:
466 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
467 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
468
469 maintainer-clean-generic:
470 @echo "This command is intended for maintainers to use"
471 @echo "it deletes files that may require special tools to rebuild."
472 clean: clean-am
473
474 clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
475 mostlyclean-am
476
477 distclean: distclean-am
478 -rm -rf ./$(DEPDIR)
479 -rm -f Makefile
480 distclean-am: clean-am distclean-compile distclean-generic \
481 distclean-tags
482
483 dvi: dvi-am
484
485 dvi-am:
486
487 html: html-am
488
489 html-am:
490
491 info: info-am
492
493 info-am:
494
495 install-data-am:
496
497 install-dvi: install-dvi-am
498
499 install-dvi-am:
500
501 install-exec-am:
502
503 install-html: install-html-am
504
505 install-html-am:
506
507 install-info: install-info-am
508
509 install-info-am:
510
511 install-man:
512
513 install-pdf: install-pdf-am
514
515 install-pdf-am:
516
517 install-ps: install-ps-am
518
519 install-ps-am:
520
521 installcheck-am:
522
523 maintainer-clean: maintainer-clean-am
524 -rm -rf ./$(DEPDIR)
525 -rm -f Makefile
526 maintainer-clean-am: distclean-am maintainer-clean-generic
527
528 mostlyclean: mostlyclean-am
529
530 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
531 mostlyclean-libtool
532
533 pdf: pdf-am
534
535 pdf-am:
536
537 ps: ps-am
538
539 ps-am:
540
541 uninstall-am:
542
543 .MAKE: install-am install-strip
544
545 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
546 clean-libtool clean-noinstPROGRAMS ctags distclean \
547 distclean-compile distclean-generic distclean-libtool \
548 distclean-tags distdir dvi dvi-am html html-am info info-am \
549 install install-am install-data install-data-am install-dvi \
550 install-dvi-am install-exec install-exec-am install-html \
551 install-html-am install-info install-info-am install-man \
552 install-pdf install-pdf-am install-ps install-ps-am \
553 install-strip installcheck installcheck-am installdirs \
554 maintainer-clean maintainer-clean-generic mostlyclean \
555 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
556 pdf pdf-am ps ps-am tags uninstall uninstall-am
557
558
559 # Tell versions [3.59,3.63) of GNU make to not export all variables.
560 # Otherwise a system limit (for SysV at least) may be exceeded.
561 .NOEXPORT:
0 /*
1 * test-domain-create.c: test libvirt-gconfig domain creation
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * The Software is provided "as is", without warranty of any kind, express
17 * or implied, including but not limited to the warranties of
18 * merchantability, fitness for a particular purpose and noninfringement.
19 * In no event shall the authors or copyright holders be liable for any
20 * claim, damages or other liability, whether in an action of contract,
21 * tort or otherwise, arising from, out of or in connection with the
22 * software or the use or other dealings in the Software.
23 *
24 * Author: Christophe Fergeau <cfergeau@redhat.com>
25 */
26
27 #include <string.h>
28 #include <libvirt-gconfig/libvirt-gconfig.h>
29
30 const char *features[] = { "foo", "bar", "baz", NULL };
31
32 int main(void)
33 {
34 GVirConfigDomain *domain;
35 char *name;
36 GStrv feat;
37 unsigned int i;
38 char *xml;
39
40 g_type_init();
41
42 domain = gvir_config_domain_new();
43 g_assert(domain != NULL);
44 gvir_config_domain_set_name(domain, "foo");
45 name = gvir_config_domain_get_name(domain);
46 g_assert(name != NULL);
47 g_assert(strcmp(name, "foo") == 0);
48 g_free(name);
49
50 gvir_config_domain_set_memory(domain, 1234);
51 g_assert(gvir_config_domain_get_memory(domain) == 1234);
52
53 gvir_config_domain_set_features(domain, (const GStrv)features);
54 feat = gvir_config_domain_get_features(domain);
55 for (i = 0; features[i] != NULL; i++) {
56 g_assert(feat[i] != NULL);
57 g_assert(strcmp(feat[i], features[i]) == 0);
58 }
59 g_strfreev(feat);
60
61 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(domain));
62 g_print("%s\n", xml);
63 g_free(xml);
64 g_object_unref(G_OBJECT(domain));
65
66 return 0;
67 }
0 /*
1 * test-domain-create.c: test libvirt-gconfig domain parsing
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a
6 * copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
16 * The Software is provided "as is", without warranty of any kind, express
17 * or implied, including but not limited to the warranties of
18 * merchantability, fitness for a particular purpose and noninfringement.
19 * In no event shall the authors or copyright holders be liable for any
20 * claim, damages or other liability, whether in an action of contract,
21 * tort or otherwise, arising from, out of or in connection with the
22 * software or the use or other dealings in the Software.
23 *
24 * Author: Christophe Fergeau <cfergeau@redhat.com>
25 */
26
27 #include <string.h>
28 #include <libvirt-gconfig/libvirt-gconfig.h>
29
30
31 int main(int argc, char **argv)
32 {
33 GVirConfigDomain *domain;
34 char *name;
35 GStrv features;
36 char *xml;
37 GError *error = NULL;
38
39 if (argc != 2) {
40 g_print("Usage: %s filename\n", argv[0]);
41 g_print("Attempt to parse the libvirt XML definition from filename\n");
42 return 1;
43 }
44
45 g_file_get_contents(argv[1], &xml, NULL, &error);
46 if (error != NULL) {
47 g_print("Couldn't read %s: %s\n", argv[1], error->message);
48 return 2;
49 }
50
51 g_type_init();
52
53 domain = gvir_config_domain_new_from_xml(xml, &error);
54 if (error != NULL) {
55 g_print("Couldn't parse %s: %s\n", argv[1], error->message);
56 return 3;
57 }
58 g_assert(domain != NULL);
59 gvir_config_object_validate(GVIR_CONFIG_OBJECT(domain), &error);
60 if (error != NULL) {
61 g_print("%s format is invalid: %s\n", argv[1], error->message);
62 g_clear_error(&error);
63 }
64
65 name = gvir_config_domain_get_name(domain);
66 g_assert(name != NULL);
67 g_assert(strcmp(name, "foo") == 0);
68 g_free(name);
69
70 g_assert(gvir_config_domain_get_memory(domain) == 987654321);
71
72 features = gvir_config_domain_get_features(domain);
73 g_assert(g_strv_length(features) == 2);
74 g_assert(strcmp(features[0], "f1") == 0);
75 g_assert(strcmp(features[1], "f2") == 0);
76 g_strfreev(features);
77
78 g_free(xml);
79
80 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(domain));
81 g_print("%s\n", xml);
82 g_free(xml);
83 g_object_unref(G_OBJECT(domain));
84
85 return 0;
86 }
5252 -I$(srcdir) \
5353 --pkg=glib-2.0 \
5454 --pkg=gthread-2.0 \
55 --c-include="libvirt-glib/libvirt-glib.h" \
56 --pkg-export=libvirt-glib-1.0 \
5557 $(libvirt_glib_1_0_la_SOURCES:%=$(srcdir)/%)
5658
5759 girdir = $(datadir)/gir-1.0
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 pkglibdir = $(libdir)/@PACKAGE@
23 pkglibexecdir = $(libexecdir)/@PACKAGE@
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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 build_triplet = @build@
37 host_triplet = @host@
38 subdir = libvirt-glib
39 DIST_COMMON = $(libvirt_glib_1_0_la_HEADERS) $(srcdir)/Makefile.am \
40 $(srcdir)/Makefile.in
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
43 $(top_srcdir)/configure.ac
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/config.h
48 CONFIG_CLEAN_FILES =
49 CONFIG_CLEAN_VPATH_FILES =
50 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
51 am__vpath_adj = case $$p in \
52 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
53 *) f=$$p;; \
54 esac;
55 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
56 am__install_max = 40
57 am__nobase_strip_setup = \
58 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
59 am__nobase_strip = \
60 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
61 am__nobase_list = $(am__nobase_strip_setup); \
62 for p in $$list; do echo "$$p $$p"; done | \
63 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
64 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
65 if (++n[$$2] == $(am__install_max)) \
66 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
67 END { for (dir in files) print dir, files[dir] }'
68 am__base_list = \
69 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
70 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
71 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \
72 "$(DESTDIR)$(typelibsdir)" \
73 "$(DESTDIR)$(libvirt_glib_1_0_ladir)"
74 LTLIBRARIES = $(lib_LTLIBRARIES)
75 am__DEPENDENCIES_1 =
76 am__objects_1 =
77 am_libvirt_glib_1_0_la_OBJECTS = $(am__objects_1) \
78 libvirt_glib_1_0_la-libvirt-glib-error.lo \
79 libvirt_glib_1_0_la-libvirt-glib-event.lo \
80 libvirt_glib_1_0_la-libvirt-glib-main.lo
81 libvirt_glib_1_0_la_OBJECTS = $(am_libvirt_glib_1_0_la_OBJECTS)
82 AM_V_lt = $(am__v_lt_$(V))
83 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
84 am__v_lt_0 = --silent
85 libvirt_glib_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
86 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
87 $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) \
88 $(libvirt_glib_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
89 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
90 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
91 am__depfiles_maybe = depfiles
92 am__mv = mv -f
93 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
94 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
95 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
96 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
97 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
98 $(AM_CFLAGS) $(CFLAGS)
99 AM_V_CC = $(am__v_CC_$(V))
100 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
101 am__v_CC_0 = @echo " CC " $@;
102 AM_V_at = $(am__v_at_$(V))
103 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
104 am__v_at_0 = @
105 CCLD = $(CC)
106 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
107 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
108 $(AM_LDFLAGS) $(LDFLAGS) -o $@
109 AM_V_CCLD = $(am__v_CCLD_$(V))
110 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
111 am__v_CCLD_0 = @echo " CCLD " $@;
112 AM_V_GEN = $(am__v_GEN_$(V))
113 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
114 am__v_GEN_0 = @echo " GEN " $@;
115 SOURCES = $(libvirt_glib_1_0_la_SOURCES)
116 DIST_SOURCES = $(libvirt_glib_1_0_la_SOURCES)
117 DATA = $(gir_DATA) $(typelibs_DATA)
118 HEADERS = $(libvirt_glib_1_0_la_HEADERS)
119 ETAGS = etags
120 CTAGS = ctags
121 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
122 ACLOCAL = @ACLOCAL@
123 AMTAR = @AMTAR@
124 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
125 AR = @AR@
126 AS = @AS@
127 AUTOCONF = @AUTOCONF@
128 AUTOHEADER = @AUTOHEADER@
129 AUTOMAKE = @AUTOMAKE@
130 AWK = @AWK@
131 CC = @CC@
132 CCDEPMODE = @CCDEPMODE@
133 CFLAGS = @CFLAGS@
134 COMPILER_FLAGS = @COMPILER_FLAGS@
135 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
136 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
137 CPP = @CPP@
138 CPPFLAGS = @CPPFLAGS@
139 CYGPATH_W = @CYGPATH_W@
140 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
141 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
142 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
143 DEFS = @DEFS@
144 DEPDIR = @DEPDIR@
145 DLLTOOL = @DLLTOOL@
146 DSYMUTIL = @DSYMUTIL@
147 DUMPBIN = @DUMPBIN@
148 ECHO_C = @ECHO_C@
149 ECHO_N = @ECHO_N@
150 ECHO_T = @ECHO_T@
151 EGREP = @EGREP@
152 EXEEXT = @EXEEXT@
153 FGREP = @FGREP@
154 GIO2_CFLAGS = @GIO2_CFLAGS@
155 GIO2_LIBS = @GIO2_LIBS@
156 GLIB2_CFLAGS = @GLIB2_CFLAGS@
157 GLIB2_LIBS = @GLIB2_LIBS@
158 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
159 GOBJECT2_LIBS = @GOBJECT2_LIBS@
160 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
161 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
162 GREP = @GREP@
163 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
164 GTHREAD2_LIBS = @GTHREAD2_LIBS@
165 GTKDOC_CHECK = @GTKDOC_CHECK@
166 GTKDOC_MKPDF = @GTKDOC_MKPDF@
167 GTKDOC_REBASE = @GTKDOC_REBASE@
168 G_IR_COMPILER = @G_IR_COMPILER@
169 G_IR_SCANNER = @G_IR_SCANNER@
170 HTML_DIR = @HTML_DIR@
171 INSTALL = @INSTALL@
172 INSTALL_DATA = @INSTALL_DATA@
173 INSTALL_PROGRAM = @INSTALL_PROGRAM@
174 INSTALL_SCRIPT = @INSTALL_SCRIPT@
175 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
176 LD = @LD@
177 LDFLAGS = @LDFLAGS@
178 LIBOBJS = @LIBOBJS@
179 LIBS = @LIBS@
180 LIBTOOL = @LIBTOOL@
181 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
182 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
183 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
184 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
185 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
186 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
187 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
188 LIBVIRT_LIBS = @LIBVIRT_LIBS@
189 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
190 LIBXML2_LIBS = @LIBXML2_LIBS@
191 LIPO = @LIPO@
192 LN_S = @LN_S@
193 LTLIBOBJS = @LTLIBOBJS@
194 MAKEINFO = @MAKEINFO@
195 MANIFEST_TOOL = @MANIFEST_TOOL@
196 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
197 MKDIR_P = @MKDIR_P@
198 NM = @NM@
199 NMEDIT = @NMEDIT@
200 OBJDUMP = @OBJDUMP@
201 OBJEXT = @OBJEXT@
202 OTOOL = @OTOOL@
203 OTOOL64 = @OTOOL64@
204 PACKAGE = @PACKAGE@
205 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
206 PACKAGE_NAME = @PACKAGE_NAME@
207 PACKAGE_STRING = @PACKAGE_STRING@
208 PACKAGE_TARNAME = @PACKAGE_TARNAME@
209 PACKAGE_URL = @PACKAGE_URL@
210 PACKAGE_VERSION = @PACKAGE_VERSION@
211 PATH_SEPARATOR = @PATH_SEPARATOR@
212 PKG_CONFIG = @PKG_CONFIG@
213 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
214 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
215 PYTHON = @PYTHON@
216 PYTHON_INCLUDES = @PYTHON_INCLUDES@
217 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
218 PYTHON_VERSION = @PYTHON_VERSION@
219 RANLIB = @RANLIB@
220 SED = @SED@
221 SET_MAKE = @SET_MAKE@
222 SHELL = @SHELL@
223 STRIP = @STRIP@
224 VAPIGEN = @VAPIGEN@
225 VERSION = @VERSION@
226 WARN_CFLAGS = @WARN_CFLAGS@
227 abs_builddir = @abs_builddir@
228 abs_srcdir = @abs_srcdir@
229 abs_top_builddir = @abs_top_builddir@
230 abs_top_srcdir = @abs_top_srcdir@
231 ac_ct_AR = @ac_ct_AR@
232 ac_ct_CC = @ac_ct_CC@
233 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
234 am__include = @am__include@
235 am__leading_dot = @am__leading_dot@
236 am__quote = @am__quote@
237 am__tar = @am__tar@
238 am__untar = @am__untar@
239 bindir = @bindir@
240 build = @build@
241 build_alias = @build_alias@
242 build_cpu = @build_cpu@
243 build_os = @build_os@
244 build_vendor = @build_vendor@
245 builddir = @builddir@
246 datadir = @datadir@
247 datarootdir = @datarootdir@
248 docdir = @docdir@
249 dvidir = @dvidir@
250 exec_prefix = @exec_prefix@
251 host = @host@
252 host_alias = @host_alias@
253 host_cpu = @host_cpu@
254 host_os = @host_os@
255 host_vendor = @host_vendor@
256 htmldir = @htmldir@
257 includedir = @includedir@
258 infodir = @infodir@
259 install_sh = @install_sh@
260 libdir = @libdir@
261 libexecdir = @libexecdir@
262 localedir = @localedir@
263 localstatedir = @localstatedir@
264 mandir = @mandir@
265 mkdir_p = @mkdir_p@
266 oldincludedir = @oldincludedir@
267 pdfdir = @pdfdir@
268 prefix = @prefix@
269 program_transform_name = @program_transform_name@
270 psdir = @psdir@
271 pythondir = @pythondir@
272 sbindir = @sbindir@
273 sharedstatedir = @sharedstatedir@
274 srcdir = @srcdir@
275 sysconfdir = @sysconfdir@
276 target_alias = @target_alias@
277 top_build_prefix = @top_build_prefix@
278 top_builddir = @top_builddir@
279 top_srcdir = @top_srcdir@
280 EXTRA_DIST = libvirt-glib.sym
281 lib_LTLIBRARIES = libvirt-glib-1.0.la
282 libvirt_glib_1_0_ladir = $(includedir)/libvirt-glib-1.0/libvirt-glib
283 libvirt_glib_1_0_la_HEADERS = \
284 libvirt-glib.h \
285 libvirt-glib-error.h \
286 libvirt-glib-event.h \
287 libvirt-glib-main.h
288
289 libvirt_glib_1_0_la_SOURCES = \
290 $(libvirt_glib_1_0_la_HEADERS) \
291 libvirt-glib-error.c \
292 libvirt-glib-event.c \
293 libvirt-glib-main.c
294
295 libvirt_glib_1_0_la_CFLAGS = \
296 -DLIBVIRT_GLIB_BUILD \
297 $(COVERAGE_CFLAGS) \
298 -I$(top_srcdir) \
299 $(LIBVIRT_CFLAGS) \
300 $(GLIB2_CFLAGS) \
301 $(GTHREAD2_CFLAGS) \
302 $(WARN_CFLAGS)
303
304 libvirt_glib_1_0_la_LIBADD = \
305 $(LIBVIRT_LIBS) \
306 $(GLIB2_LIBS) \
307 $(GTHREAD2_LIBS) \
308 $(CYGWIN_EXTRA_LIBADD)
309
310 libvirt_glib_1_0_la_DEPENDENCIES = \
311 libvirt-glib.sym
312
313 libvirt_glib_1_0_la_LDFLAGS = \
314 $(COVERAGE_CFLAGS:-f%=-Wc,f%) \
315 $(CYGWIN_EXTRA_LDFLAGS) $(MINGW_EXTRA_LDFLAGS) \
316 -Wl,--version-script=$(srcdir)/libvirt-glib.sym \
317 -version-info $(LIBVIRT_GLIB_VERSION_INFO)
318
319 @WITH_GOBJECT_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0
320 @WITH_GOBJECT_INTROSPECTION_TRUE@gir_DATA = LibvirtGLib-1.0.gir
321 @WITH_GOBJECT_INTROSPECTION_TRUE@typelibsdir = $(libdir)/girepository-1.0
322 @WITH_GOBJECT_INTROSPECTION_TRUE@typelibs_DATA = LibvirtGLib-1.0.typelib
323 @WITH_GOBJECT_INTROSPECTION_TRUE@CLEANFILES = $(gir_DATA) $(typelibs_DATA)
324 all: all-am
325
326 .SUFFIXES:
327 .SUFFIXES: .c .lo .o .obj
328 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
329 @for dep in $?; do \
330 case '$(am__configure_deps)' in \
331 *$$dep*) \
332 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
333 && { if test -f $@; then exit 0; else break; fi; }; \
334 exit 1;; \
335 esac; \
336 done; \
337 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libvirt-glib/Makefile'; \
338 $(am__cd) $(top_srcdir) && \
339 $(AUTOMAKE) --gnu libvirt-glib/Makefile
340 .PRECIOUS: Makefile
341 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
342 @case '$?' in \
343 *config.status*) \
344 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
345 *) \
346 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
347 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
348 esac;
349
350 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
351 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
352
353 $(top_srcdir)/configure: $(am__configure_deps)
354 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
355 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
356 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
357 $(am__aclocal_m4_deps):
358 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
359 @$(NORMAL_INSTALL)
360 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
361 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
362 list2=; for p in $$list; do \
363 if test -f $$p; then \
364 list2="$$list2 $$p"; \
365 else :; fi; \
366 done; \
367 test -z "$$list2" || { \
368 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
369 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
370 }
371
372 uninstall-libLTLIBRARIES:
373 @$(NORMAL_UNINSTALL)
374 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
375 for p in $$list; do \
376 $(am__strip_dir) \
377 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
378 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
379 done
380
381 clean-libLTLIBRARIES:
382 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
383 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
384 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
385 test "$$dir" != "$$p" || dir=.; \
386 echo "rm -f \"$${dir}/so_locations\""; \
387 rm -f "$${dir}/so_locations"; \
388 done
389 libvirt-glib-1.0.la: $(libvirt_glib_1_0_la_OBJECTS) $(libvirt_glib_1_0_la_DEPENDENCIES)
390 $(AM_V_CCLD)$(libvirt_glib_1_0_la_LINK) -rpath $(libdir) $(libvirt_glib_1_0_la_OBJECTS) $(libvirt_glib_1_0_la_LIBADD) $(LIBS)
391
392 mostlyclean-compile:
393 -rm -f *.$(OBJEXT)
394
395 distclean-compile:
396 -rm -f *.tab.c
397
398 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-error.Plo@am__quote@
399 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-event.Plo@am__quote@
400 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-main.Plo@am__quote@
401
402 .c.o:
403 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
404 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
405 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
406 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
407 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
408 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
409
410 .c.obj:
411 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
412 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
413 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
414 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
415 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
416 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
417
418 .c.lo:
419 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
420 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
421 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
422 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
423 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
424 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
425
426 libvirt_glib_1_0_la-libvirt-glib-error.lo: libvirt-glib-error.c
427 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_glib_1_0_la-libvirt-glib-error.lo -MD -MP -MF $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-error.Tpo -c -o libvirt_glib_1_0_la-libvirt-glib-error.lo `test -f 'libvirt-glib-error.c' || echo '$(srcdir)/'`libvirt-glib-error.c
428 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-error.Tpo $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-error.Plo
429 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
430 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-glib-error.c' object='libvirt_glib_1_0_la-libvirt-glib-error.lo' libtool=yes @AMDEPBACKSLASH@
431 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
432 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_glib_1_0_la-libvirt-glib-error.lo `test -f 'libvirt-glib-error.c' || echo '$(srcdir)/'`libvirt-glib-error.c
433
434 libvirt_glib_1_0_la-libvirt-glib-event.lo: libvirt-glib-event.c
435 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_glib_1_0_la-libvirt-glib-event.lo -MD -MP -MF $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-event.Tpo -c -o libvirt_glib_1_0_la-libvirt-glib-event.lo `test -f 'libvirt-glib-event.c' || echo '$(srcdir)/'`libvirt-glib-event.c
436 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-event.Tpo $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-event.Plo
437 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
438 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-glib-event.c' object='libvirt_glib_1_0_la-libvirt-glib-event.lo' libtool=yes @AMDEPBACKSLASH@
439 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
440 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_glib_1_0_la-libvirt-glib-event.lo `test -f 'libvirt-glib-event.c' || echo '$(srcdir)/'`libvirt-glib-event.c
441
442 libvirt_glib_1_0_la-libvirt-glib-main.lo: libvirt-glib-main.c
443 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_glib_1_0_la-libvirt-glib-main.lo -MD -MP -MF $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-main.Tpo -c -o libvirt_glib_1_0_la-libvirt-glib-main.lo `test -f 'libvirt-glib-main.c' || echo '$(srcdir)/'`libvirt-glib-main.c
444 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-main.Tpo $(DEPDIR)/libvirt_glib_1_0_la-libvirt-glib-main.Plo
445 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
446 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-glib-main.c' object='libvirt_glib_1_0_la-libvirt-glib-main.lo' libtool=yes @AMDEPBACKSLASH@
447 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
448 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_glib_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_glib_1_0_la-libvirt-glib-main.lo `test -f 'libvirt-glib-main.c' || echo '$(srcdir)/'`libvirt-glib-main.c
449
450 mostlyclean-libtool:
451 -rm -f *.lo
452
453 clean-libtool:
454 -rm -rf .libs _libs
455 install-girDATA: $(gir_DATA)
456 @$(NORMAL_INSTALL)
457 test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)"
458 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
459 for p in $$list; do \
460 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
461 echo "$$d$$p"; \
462 done | $(am__base_list) | \
463 while read files; do \
464 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \
465 $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \
466 done
467
468 uninstall-girDATA:
469 @$(NORMAL_UNINSTALL)
470 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
471 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
472 test -n "$$files" || exit 0; \
473 echo " ( cd '$(DESTDIR)$(girdir)' && rm -f" $$files ")"; \
474 cd "$(DESTDIR)$(girdir)" && rm -f $$files
475 install-typelibsDATA: $(typelibs_DATA)
476 @$(NORMAL_INSTALL)
477 test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)"
478 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
479 for p in $$list; do \
480 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
481 echo "$$d$$p"; \
482 done | $(am__base_list) | \
483 while read files; do \
484 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibsdir)'"; \
485 $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibsdir)" || exit $$?; \
486 done
487
488 uninstall-typelibsDATA:
489 @$(NORMAL_UNINSTALL)
490 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
491 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
492 test -n "$$files" || exit 0; \
493 echo " ( cd '$(DESTDIR)$(typelibsdir)' && rm -f" $$files ")"; \
494 cd "$(DESTDIR)$(typelibsdir)" && rm -f $$files
495 install-libvirt_glib_1_0_laHEADERS: $(libvirt_glib_1_0_la_HEADERS)
496 @$(NORMAL_INSTALL)
497 test -z "$(libvirt_glib_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_glib_1_0_ladir)"
498 @list='$(libvirt_glib_1_0_la_HEADERS)'; test -n "$(libvirt_glib_1_0_ladir)" || list=; \
499 for p in $$list; do \
500 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
501 echo "$$d$$p"; \
502 done | $(am__base_list) | \
503 while read files; do \
504 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libvirt_glib_1_0_ladir)'"; \
505 $(INSTALL_HEADER) $$files "$(DESTDIR)$(libvirt_glib_1_0_ladir)" || exit $$?; \
506 done
507
508 uninstall-libvirt_glib_1_0_laHEADERS:
509 @$(NORMAL_UNINSTALL)
510 @list='$(libvirt_glib_1_0_la_HEADERS)'; test -n "$(libvirt_glib_1_0_ladir)" || list=; \
511 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
512 test -n "$$files" || exit 0; \
513 echo " ( cd '$(DESTDIR)$(libvirt_glib_1_0_ladir)' && rm -f" $$files ")"; \
514 cd "$(DESTDIR)$(libvirt_glib_1_0_ladir)" && rm -f $$files
515
516 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
517 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
518 unique=`for i in $$list; do \
519 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
520 done | \
521 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
522 END { if (nonempty) { for (i in files) print i; }; }'`; \
523 mkid -fID $$unique
524 tags: TAGS
525
526 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
527 $(TAGS_FILES) $(LISP)
528 set x; \
529 here=`pwd`; \
530 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
531 unique=`for i in $$list; do \
532 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
533 done | \
534 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
535 END { if (nonempty) { for (i in files) print i; }; }'`; \
536 shift; \
537 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
538 test -n "$$unique" || unique=$$empty_fix; \
539 if test $$# -gt 0; then \
540 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
541 "$$@" $$unique; \
542 else \
543 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
544 $$unique; \
545 fi; \
546 fi
547 ctags: CTAGS
548 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
549 $(TAGS_FILES) $(LISP)
550 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
551 unique=`for i in $$list; do \
552 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
553 done | \
554 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
555 END { if (nonempty) { for (i in files) print i; }; }'`; \
556 test -z "$(CTAGS_ARGS)$$unique" \
557 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
558 $$unique
559
560 GTAGS:
561 here=`$(am__cd) $(top_builddir) && pwd` \
562 && $(am__cd) $(top_srcdir) \
563 && gtags -i $(GTAGS_ARGS) "$$here"
564
565 distclean-tags:
566 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
567
568 distdir: $(DISTFILES)
569 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
570 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
571 list='$(DISTFILES)'; \
572 dist_files=`for file in $$list; do echo $$file; done | \
573 sed -e "s|^$$srcdirstrip/||;t" \
574 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
575 case $$dist_files in \
576 */*) $(MKDIR_P) `echo "$$dist_files" | \
577 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
578 sort -u` ;; \
579 esac; \
580 for file in $$dist_files; do \
581 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
582 if test -d $$d/$$file; then \
583 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
584 if test -d "$(distdir)/$$file"; then \
585 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
586 fi; \
587 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
588 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
589 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
590 fi; \
591 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
592 else \
593 test -f "$(distdir)/$$file" \
594 || cp -p $$d/$$file "$(distdir)/$$file" \
595 || exit 1; \
596 fi; \
597 done
598 check-am: all-am
599 check: check-am
600 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
601 installdirs:
602 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibsdir)" "$(DESTDIR)$(libvirt_glib_1_0_ladir)"; do \
603 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
604 done
605 install: install-am
606 install-exec: install-exec-am
607 install-data: install-data-am
608 uninstall: uninstall-am
609
610 install-am: all-am
611 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
612
613 installcheck: installcheck-am
614 install-strip:
615 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
616 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
617 `test -z '$(STRIP)' || \
618 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
619 mostlyclean-generic:
620
621 clean-generic:
622 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
623
624 distclean-generic:
625 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
626 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
627
628 maintainer-clean-generic:
629 @echo "This command is intended for maintainers to use"
630 @echo "it deletes files that may require special tools to rebuild."
631 clean: clean-am
632
633 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
634 mostlyclean-am
635
636 distclean: distclean-am
637 -rm -rf ./$(DEPDIR)
638 -rm -f Makefile
639 distclean-am: clean-am distclean-compile distclean-generic \
640 distclean-tags
641
642 dvi: dvi-am
643
644 dvi-am:
645
646 html: html-am
647
648 html-am:
649
650 info: info-am
651
652 info-am:
653
654 install-data-am: install-girDATA install-libvirt_glib_1_0_laHEADERS \
655 install-typelibsDATA
656
657 install-dvi: install-dvi-am
658
659 install-dvi-am:
660
661 install-exec-am: install-libLTLIBRARIES
662
663 install-html: install-html-am
664
665 install-html-am:
666
667 install-info: install-info-am
668
669 install-info-am:
670
671 install-man:
672
673 install-pdf: install-pdf-am
674
675 install-pdf-am:
676
677 install-ps: install-ps-am
678
679 install-ps-am:
680
681 installcheck-am:
682
683 maintainer-clean: maintainer-clean-am
684 -rm -rf ./$(DEPDIR)
685 -rm -f Makefile
686 maintainer-clean-am: distclean-am maintainer-clean-generic
687
688 mostlyclean: mostlyclean-am
689
690 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
691 mostlyclean-libtool
692
693 pdf: pdf-am
694
695 pdf-am:
696
697 ps: ps-am
698
699 ps-am:
700
701 uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \
702 uninstall-libvirt_glib_1_0_laHEADERS uninstall-typelibsDATA
703
704 .MAKE: install-am install-strip
705
706 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
707 clean-libLTLIBRARIES clean-libtool ctags distclean \
708 distclean-compile distclean-generic distclean-libtool \
709 distclean-tags distdir dvi dvi-am html html-am info info-am \
710 install install-am install-data install-data-am install-dvi \
711 install-dvi-am install-exec install-exec-am install-girDATA \
712 install-html install-html-am install-info install-info-am \
713 install-libLTLIBRARIES install-libvirt_glib_1_0_laHEADERS \
714 install-man install-pdf install-pdf-am install-ps \
715 install-ps-am install-strip install-typelibsDATA installcheck \
716 installcheck-am installdirs maintainer-clean \
717 maintainer-clean-generic mostlyclean mostlyclean-compile \
718 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
719 tags uninstall uninstall-am uninstall-girDATA \
720 uninstall-libLTLIBRARIES uninstall-libvirt_glib_1_0_laHEADERS \
721 uninstall-typelibsDATA
722
723
724 @WITH_GOBJECT_INTROSPECTION_TRUE@LibvirtGLib-1.0.gir: libvirt-glib-1.0.la $(G_IR_SCANNER) Makefile.am
725 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(AM_V_GEN)$(G_IR_SCANNER) \
726 @WITH_GOBJECT_INTROSPECTION_TRUE@ --quiet \
727 @WITH_GOBJECT_INTROSPECTION_TRUE@ --warn-all \
728 @WITH_GOBJECT_INTROSPECTION_TRUE@ --namespace LibvirtGLib \
729 @WITH_GOBJECT_INTROSPECTION_TRUE@ --nsversion 1.0 \
730 @WITH_GOBJECT_INTROSPECTION_TRUE@ --include GLib-2.0 \
731 @WITH_GOBJECT_INTROSPECTION_TRUE@ --identifier-prefix=GVir \
732 @WITH_GOBJECT_INTROSPECTION_TRUE@ --symbol-prefix=gvir \
733 @WITH_GOBJECT_INTROSPECTION_TRUE@ --library=$(builddir)/libvirt-glib-1.0.la \
734 @WITH_GOBJECT_INTROSPECTION_TRUE@ --add-include-path=$(builddir) \
735 @WITH_GOBJECT_INTROSPECTION_TRUE@ --output $@ \
736 @WITH_GOBJECT_INTROSPECTION_TRUE@ -I$(top_srcdir) \
737 @WITH_GOBJECT_INTROSPECTION_TRUE@ -I$(srcdir) \
738 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg=glib-2.0 \
739 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg=gthread-2.0 \
740 @WITH_GOBJECT_INTROSPECTION_TRUE@ --c-include="libvirt-glib/libvirt-glib.h" \
741 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg-export=libvirt-glib-1.0 \
742 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(libvirt_glib_1_0_la_SOURCES:%=$(srcdir)/%)
743
744 @WITH_GOBJECT_INTROSPECTION_TRUE@%.typelib: %.gir
745 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(AM_V_GEN)$(G_IR_COMPILER) \
746 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(builddir) \
747 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(girdir) \
748 @WITH_GOBJECT_INTROSPECTION_TRUE@ -o $@ $<
749
750 # Tell versions [3.59,3.63) of GNU make to not export all variables.
751 # Otherwise a system limit (for SysV at least) may be exceeded.
752 .NOEXPORT:
7979 virErrorPtr verr = virGetLastError();
8080
8181 if (!verr)
82 return NULL;
82 return g_error_new(domain,
83 code,
84 "%s",
85 message);
8386
8487 if (message)
8588 return g_error_new(domain,
9194 return g_error_new(domain,
9295 code,
9396 "%s",
94 message);
97 verr->message);
9598 }
9699
97100 /**
6060 GMutex *eventlock = NULL;
6161
6262 static int nextwatch = 1;
63 static unsigned int nhandles = 0;
64 static struct gvir_event_handle **handles = NULL;
63 static GPtrArray *handles;
6564
6665 static int nexttimer = 1;
67 static unsigned int ntimeouts = 0;
68 static struct gvir_event_timeout **timeouts = NULL;
66 static GPtrArray *timeouts;
6967
7068 static gboolean
7169 gvir_event_handle_dispatch(GIOChannel *source G_GNUC_UNUSED,
105103
106104 g_mutex_lock(eventlock);
107105
108 handles = g_realloc(handles, sizeof(*handles)*(nhandles+1));
109 data = g_malloc(sizeof(*data));
110 memset(data, 0, sizeof(*data));
106 data = g_new0(struct gvir_event_handle, 1);
111107
112108 if (events & VIR_EVENT_HANDLE_READABLE)
113109 cond |= G_IO_IN;
129125 gvir_event_handle_dispatch,
130126 data);
131127
132 handles[nhandles++] = data;
128 g_ptr_array_add(handles, data);
133129
134130 ret = data->watch;
135131
139135 }
140136
141137 static struct gvir_event_handle *
142 gvir_event_handle_find(int watch)
143 {
144 unsigned int i;
145 for (i = 0 ; i < nhandles ; i++)
146 if (handles[i]->watch == watch)
147 return handles[i];
138 gvir_event_handle_find(int watch, guint *idx)
139 {
140 guint i;
141
142 for (i = 0 ; i < handles->len ; i++) {
143 struct gvir_event_handle *h = g_ptr_array_index(handles, i);
144
145 if (h == NULL) {
146 g_warn_if_reached ();
147 continue;
148 }
149
150 if (h->watch == watch) {
151 if (idx != NULL)
152 *idx = i;
153 return h;
154 }
155 }
148156
149157 return NULL;
150158 }
157165
158166 g_mutex_lock(eventlock);
159167
160 data = gvir_event_handle_find(watch);
168 data = gvir_event_handle_find(watch, NULL);
161169 if (!data) {
162170 DEBUG("Update for missing handle watch %d", watch);
163171 goto cleanup;
194202 g_mutex_unlock(eventlock);
195203 }
196204
205 static gboolean
206 _event_handle_remove(gpointer data)
207 {
208 struct gvir_event_handle *h = data;
209
210 if (h->ff)
211 (h->ff)(h->opaque);
212
213 g_ptr_array_remove_fast(handles, h);
214
215 return FALSE;
216 }
217
197218 static int
198219 gvir_event_handle_remove(int watch)
199220 {
200221 struct gvir_event_handle *data;
201222 int ret = -1;
202
203 g_mutex_lock(eventlock);
204
205 data = gvir_event_handle_find(watch);
223 guint idx;
224
225 g_mutex_lock(eventlock);
226
227 data = gvir_event_handle_find(watch, &idx);
206228 if (!data) {
207229 DEBUG("Remove of missing watch %d", watch);
208230 goto cleanup;
216238 g_source_remove(data->source);
217239 data->source = 0;
218240 data->events = 0;
219 if (data->ff)
220 (data->ff)(data->opaque);
221 free(data);
241 g_idle_add(_event_handle_remove, data);
222242
223243 ret = 0;
224244
249269
250270 g_mutex_lock(eventlock);
251271
252 timeouts = g_realloc(timeouts, sizeof(*timeouts)*(ntimeouts+1));
253 data = g_malloc(sizeof(*data));
254 memset(data, 0, sizeof(*data));
255
272 data = g_new0(struct gvir_event_timeout, 1);
256273 data->timer = nexttimer++;
257274 data->interval = interval;
258275 data->cb = cb;
263280 gvir_event_timeout_dispatch,
264281 data);
265282
266 timeouts[ntimeouts++] = data;
283 g_ptr_array_add(timeouts, data);
267284
268285 DEBUG("Add timeout %p %d %p %p %d\n", data, interval, cb, opaque, data->timer);
269286
276293
277294
278295 static struct gvir_event_timeout *
279 gvir_event_timeout_find(int timer)
280 {
281 unsigned int i;
282 for (i = 0 ; i < ntimeouts ; i++)
283 if (timeouts[i]->timer == timer)
284 return timeouts[i];
296 gvir_event_timeout_find(int timer, guint *idx)
297 {
298 guint i;
299
300 g_return_val_if_fail(timeouts != NULL, NULL);
301
302 for (i = 0 ; i < timeouts->len ; i++) {
303 struct gvir_event_timeout *t = g_ptr_array_index(timeouts, i);
304
305 if (t == NULL) {
306 g_warn_if_reached ();
307 continue;
308 }
309
310 if (t->timer == timer) {
311 if (idx != NULL)
312 *idx = i;
313 return t;
314 }
315 }
285316
286317 return NULL;
287318 }
295326
296327 g_mutex_lock(eventlock);
297328
298 data = gvir_event_timeout_find(timer);
329 data = gvir_event_timeout_find(timer, NULL);
299330 if (!data) {
300331 DEBUG("Update of missing timer %d", timer);
301332 goto cleanup;
323354 g_mutex_unlock(eventlock);
324355 }
325356
357 static gboolean
358 _event_timeout_remove(gpointer data)
359 {
360 struct gvir_event_timeout *t = data;
361
362 if (t->ff)
363 (t->ff)(t->opaque);
364
365 g_ptr_array_remove_fast(timeouts, t);
366
367 return FALSE;
368 }
369
326370 static int
327371 gvir_event_timeout_remove(int timer)
328372 {
329373 struct gvir_event_timeout *data;
374 guint idx;
330375 int ret = -1;
331376
332377 g_mutex_lock(eventlock);
333378
334 data = gvir_event_timeout_find(timer);
379 data = gvir_event_timeout_find(timer, &idx);
335380 if (!data) {
336381 DEBUG("Remove of missing timer %d", timer);
337382 goto cleanup;
344389
345390 g_source_remove(data->source);
346391 data->source = 0;
347
348 if (data->ff)
349 (data->ff)(data->opaque);
350
351 free(data);
392 g_idle_add(_event_timeout_remove, data);
352393
353394 ret = 0;
354395
358399 }
359400
360401
361 void gvir_event_register(void) {
402 static gpointer event_register_once(gpointer data G_GNUC_UNUSED)
403 {
362404 eventlock = g_mutex_new();
405 timeouts = g_ptr_array_new_with_free_func(g_free);
406 handles = g_ptr_array_new_with_free_func(g_free);
363407 virEventRegisterImpl(gvir_event_handle_add,
364408 gvir_event_handle_update,
365409 gvir_event_handle_remove,
366410 gvir_event_timeout_add,
367411 gvir_event_timeout_update,
368412 gvir_event_timeout_remove);
369 }
370
413 return NULL;
414 }
415
416 void gvir_event_register(void)
417 {
418 static GOnce once = G_ONCE_INIT;
419
420 g_once(&once, event_register_once, NULL);
421 }
422
0 # -*- rpm-spec -*-
1
2 %define with_introspection 0
3 %define with_python 0
4
5 %if 0%{?fedora} >= 15
6 %define with_introspection 1
7 %endif
8 %if 0%{?fedora} < 15
9 %define with_python 1
10 %endif
11 %if 0%{?rhel} > 6
12 %define with_introspection 1
13 %endif
14 %if 0%{?rhel} < 7
15 %define with_python 1
16 %endif
17
18
19 Name: libvirt-glib
20 Version: 0.0.1
21 Release: 1%{?dist}%{?extra_release}
22 Summary: libvirt glib integration for events
23 Group: Development/Libraries
24 License: LGPLv2+
25 URL: http://libvirt.org/
26 Source0: http://libvirt.org/%{name}/%{name}-%{version}.tar.gz
27 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
28
29 BuildRequires: glib2-devel >= 2.10.0
30 BuildRequires: libvirt-devel >= 0.9.4
31 BuildRequires: python-devel
32 %if %{with_introspection}
33 BuildRequires: gobject-introspection-devel
34 %if 0%{?fedora} == 12
35 BuildRequires: gir-repository-devel
36 %endif
37 BuildRequires: gjs-devel
38 %endif
39 BuildRequires: libxml2-devel
40 # Hack due to https://bugzilla.redhat.com/show_bug.cgi?id=613466
41 BuildRequires: libtool
42
43 %package devel
44 Group: Development/Libraries
45 Summary: libvirt glib integration for events development files
46 Requires: %{name} = %{version}-%{release}
47
48 %package -n libvirt-gconfig
49 Group: Development/Libraries
50 Summary: libvirt object APIs for processing object configuration
51
52 %package -n libvirt-gobject
53 Group: Development/Libraries
54 Summary: libvirt object APIs for managing virtualization hosts
55
56 %package -n libvirt-gconfig-devel
57 Group: Development/Libraries
58 Summary: libvirt object APIs for processing object configuration development files
59 Requires: libvirt-gconfig = %{version}-%{release}
60
61 %package -n libvirt-gobject-devel
62 Group: Development/Libraries
63 Summary: libvirt object APIs for managing virtualization hosts development files
64 Requires: %{name}-devel = %{version}-%{release}
65 Requires: libvirt-gconfig-devel = %{version}-%{release}
66 Requires: libvirt-gobject = %{version}-%{release}
67
68 %if %{with_python}
69 %package python
70 Group: Development/Libraries
71 Summary: libvirt glib integration for events python binding
72 %endif
73
74 %description
75 This package provides integration between libvirt and the glib
76 event loop.
77
78 %description devel
79 This package provides development header files and libraries for
80 integration between libvirt and the glib event loop.
81
82 %description -n libvirt-gconfig
83 This package provides APIs for processing the object configuration
84 data
85
86 %description -n libvirt-gconfig-devel
87 This package provides development header files and libraries for
88 the object configuration APIs.
89
90 %description -n libvirt-gobject
91 This package provides APIs for managing virtualization host
92 objects
93
94 %description -n libvirt-gobject-devel
95 This package provides development header files and libraries for
96 managing virtualization host objects
97
98 %if %{with_python}
99 %description python
100 This package provides a python module for integration between
101 libvirt and the glib event loop
102 %endif
103
104 %prep
105 %setup -q
106
107 %build
108
109 %if %{with_introspection}
110 %define introspection_arg --enable-introspection
111 %else
112 %define introspection_arg --disable-introspection
113 %endif
114 %if %{with_python}
115 %define python_arg --with-python
116 %else
117 %define python_arg --without-python
118 %endif
119
120 %configure %{introspection_arg} %{python_arg}
121 %__make %{?_smp_mflags}
122
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126 %__make install DESTDIR=$RPM_BUILD_ROOT
127 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-glib-1.0.a
128 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-glib-1.0.la
129 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gconfig-1.0.a
130 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gconfig-1.0.la
131 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gobject-1.0.a
132 rm -f $RPM_BUILD_ROOT%{_libdir}/libvirt-gobject-1.0.la
133
134 %clean
135 rm -rf $RPM_BUILD_ROOT
136
137 %files
138 %defattr(-,root,root,-)
139 %doc README COPYING AUTHORS ChangeLog NEWS
140 %{_libdir}/libvirt-glib-1.0.so.*
141 %if %{with_introspection}
142 %{_libdir}/girepository-1.0/LibvirtGLib-1.0.typelib
143 %endif
144
145 %files -n libvirt-gconfig
146 %{_libdir}/libvirt-gconfig-1.0.so.*
147 %if %{with_introspection}
148 %{_libdir}/girepository-1.0/LibvirtGConfig-1.0.typelib
149 %endif
150
151 %files -n libvirt-gobject
152 %{_libdir}/libvirt-gobject-1.0.so.*
153 %if %{with_introspection}
154 %{_libdir}/girepository-1.0/LibvirtGObject-1.0.typelib
155 %endif
156
157 %files devel
158 %defattr(-,root,root,-)
159 %doc examples/event-test.c
160 %{_libdir}/libvirt-glib-1.0.so
161 %{_libdir}/pkgconfig/libvirt-glib-1.0.pc
162 %dir %{_includedir}/libvirt-glib-1.0
163 %dir %{_includedir}/libvirt-glib-1.0/libvirt-glib
164 %{_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib.h
165 %{_includedir}/libvirt-glib-1.0/libvirt-glib/libvirt-glib-*.h
166 %if %{with_introspection}
167 %{_datadir}/gir-1.0/LibvirtGLib-1.0.gir
168 %endif
169 %{_datadir}/gtk-doc/html/Libvirt-glib
170
171 %files -n libvirt-gconfig-devel
172 %defattr(-,root,root,-)
173 %doc examples/event-test.c
174 %{_libdir}/libvirt-gconfig-1.0.so
175 %{_libdir}/pkgconfig/libvirt-gconfig-1.0.pc
176 %dir %{_includedir}/libvirt-gconfig-1.0
177 %dir %{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig
178 %{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig.h
179 %{_includedir}/libvirt-gconfig-1.0/libvirt-gconfig/libvirt-gconfig-*.h
180 %if %{with_introspection}
181 %{_datadir}/gir-1.0/LibvirtGConfig-1.0.gir
182 %endif
183 %{_datadir}/gtk-doc/html/Libvirt-gconfig
184
185 %files -n libvirt-gobject-devel
186 %defattr(-,root,root,-)
187 %doc examples/event-test.c
188 %{_libdir}/libvirt-gobject-1.0.so
189 %{_libdir}/pkgconfig/libvirt-gobject-1.0.pc
190 %dir %{_includedir}/libvirt-gobject-1.0
191 %dir %{_includedir}/libvirt-gobject-1.0/libvirt-gobject
192 %{_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject.h
193 %{_includedir}/libvirt-gobject-1.0/libvirt-gobject/libvirt-gobject-*.h
194 %if %{with_introspection}
195 %{_datadir}/gir-1.0/LibvirtGObject-1.0.gir
196 %endif
197 %{_datadir}/gtk-doc/html/Libvirt-gobject
198
199 %if %{with_python}
200 %files python
201 %defattr(-,root,root,-)
202 %doc examples/event-test.py
203 %{_libdir}/python*/site-packages/libvirtglib.py*
204 %{_libdir}/python*/site-packages/libvirtglibmod*
205 %endif
206
207 %changelog
208 * Sun Oct 19 2008 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
209 - Initial release
210
88 %if 0%{?fedora} < 15
99 %define with_python 1
1010 %endif
11 %if 0%{?rhel} >= 6
11 %if 0%{?rhel} > 6
1212 %define with_introspection 1
1313 %endif
1414 %if 0%{?rhel} < 7
2727 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2828
2929 BuildRequires: glib2-devel >= 2.10.0
30 BuildRequires: libvirt-devel >= 0.5.0
30 BuildRequires: libvirt-devel >= 0.9.4
3131 BuildRequires: python-devel
3232 %if %{with_introspection}
3333 BuildRequires: gobject-introspection-devel
3636 %endif
3737 BuildRequires: gjs-devel
3838 %endif
39 BuildRequires: libxml2-devel
40 # Hack due to https://bugzilla.redhat.com/show_bug.cgi?id=613466
41 BuildRequires: libtool
3942
4043 %package devel
4144 Group: Development/Libraries
163166 %if %{with_introspection}
164167 %{_datadir}/gir-1.0/LibvirtGLib-1.0.gir
165168 %endif
169 %{_datadir}/gtk-doc/html/Libvirt-glib
166170
167171 %files -n libvirt-gconfig-devel
168172 %defattr(-,root,root,-)
176180 %if %{with_introspection}
177181 %{_datadir}/gir-1.0/LibvirtGConfig-1.0.gir
178182 %endif
183 %{_datadir}/gtk-doc/html/Libvirt-gconfig
179184
180185 %files -n libvirt-gobject-devel
181186 %defattr(-,root,root,-)
189194 %if %{with_introspection}
190195 %{_datadir}/gir-1.0/LibvirtGObject-1.0.gir
191196 %endif
197 %{_datadir}/gtk-doc/html/Libvirt-gobject
192198
193199 %if %{with_python}
194200 %files python
66 libvirt-gobject.h \
77 libvirt-gobject-main.h \
88 libvirt-gobject-domain-snapshot.h \
9 libvirt-gobject-domain-device.h \
10 libvirt-gobject-domain-disk.h \
11 libvirt-gobject-domain-interface.h \
912 libvirt-gobject-domain.h \
1013 libvirt-gobject-interface.h \
1114 libvirt-gobject-network.h \
2023 GOBJECT_SOURCE_FILES = \
2124 libvirt-gobject-main.c \
2225 libvirt-gobject-domain-snapshot.c \
26 libvirt-gobject-domain-device.c \
27 libvirt-gobject-domain-disk.c \
28 libvirt-gobject-domain-interface.c \
2329 libvirt-gobject-domain.c \
2430 libvirt-gobject-interface.c \
2531 libvirt-gobject-network.c \
3238 libvirt-gobject-connection.c \
3339 libvirt-gobject-manager.c
3440
41 GOBJECT_GENERATED_FILES = \
42 libvirt-gobject-enums.c \
43 libvirt-gobject-enums.h
44
3545 libvirt_gobject_1_0_ladir = $(includedir)/libvirt-gobject-1.0/libvirt-gobject
3646 libvirt_gobject_1_0_la_HEADERS = \
37 libvirt-gobject-enums.h \
38 $(GOBJECT_HEADER_FILES)
47 $(GOBJECT_HEADER_FILES) \
48 libvirt-gobject-input-stream.h
49 nodist_libvirt_gobject_1_0_la_HEADERS = \
50 libvirt-gobject-enums.h
3951 libvirt_gobject_1_0_la_SOURCES = \
4052 $(libvirt_gobject_1_0_la_HEADERS) \
41 libvirt-gobject-enums.c \
42 $(GOBJECT_SOURCE_FILES)
53 $(GOBJECT_SOURCE_FILES) \
54 libvirt-gobject-domain-device-private.h \
55 libvirt-gobject-compat.h \
56 libvirt-gobject-input-stream.c
57 nodist_libvirt_gobject_1_0_la_SOURCES = \
58 $(GOBJECT_GENERATED_FILES)
4359 libvirt_gobject_1_0_la_CFLAGS = \
4460 -DDATADIR="\"$(datadir)\"" \
4561 -DLIBVIRT_GOBJECT_BUILD \
4864 $(LIBVIRT_CFLAGS) \
4965 $(GOBJECT2_CFLAGS) \
5066 $(GIO2_CFLAGS) \
67 $(LIBXML2_CFLAGS) \
5168 $(WARN_CFLAGS)
5269 libvirt_gobject_1_0_la_LIBADD = \
5370 $(LIBVIRT_LIBS) \
87104 --ftail "#endif /* __LIBVIRT_GOBJECT_ENUMS_H__ */\n" \
88105 --eprod "#define GVIR_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
89106 --eprod "GType @enum_name@_get_type (void);\n" \
90 $^ | sed -e 's/g_vir/gvir/g' > $@
107 $^ | sed -e 's/g_vir/gvir/g' | sed -e 's/_VIR_/_/g' > $@
91108
92 BUILT_SOURCES = libvirt-gobject-enums.c libvirt-gobject-enums.h
109 BUILT_SOURCES = $(GOBJECT_GENERATED_FILES)
93110
94111 CLEANFILES = $(BUILT_SOURCES)
95112
96113 if WITH_GOBJECT_INTROSPECTION
97114
98115 LibvirtGObject-1.0.gir: libvirt-gobject-1.0.la $(G_IR_SCANNER) Makefile.am
99 $(AM_V_GEN)$(G_IR_SCANNER) \
116 $(AM_V_GEN)PKG_CONFIG_PATH=$(top_builddir) $(G_IR_SCANNER) \
100117 --quiet \
101118 --warn-all \
102119 --namespace LibvirtGObject \
113130 --output $@ \
114131 -I$(top_srcdir) \
115132 -I$(top_builddir) \
133 $(LIBXML2_CFLAGS) \
116134 --verbose \
117135 --pkg=gobject-2.0 \
118136 --pkg=gthread-2.0 \
137 --c-include="libvirt-gobject/libvirt-gobject.h" \
138 --pkg-export=libvirt-gobject-1.0 \
119139 $(srcdir)/libvirt-gobject.h \
120140 $(GOBJECT_SOURCE_FILES:%=$(srcdir)/%) \
121141 $(GOBJECT_HEADER_FILES:%=$(srcdir)/%) \
122 $(builddir)/libvirt-gobject-enums.c
142 $(GOBJECT_GENERATED_FILES:%=$(builddir)/%)
123143
124144 girdir = $(datadir)/gir-1.0
125145 gir_DATA = LibvirtGObject-1.0.gir
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17
18
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 pkglibdir = $(libdir)/@PACKAGE@
23 pkglibexecdir = $(libexecdir)/@PACKAGE@
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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 build_triplet = @build@
37 host_triplet = @host@
38 @WITH_GOBJECT_INTROSPECTION_TRUE@am__append_1 = $(gir_DATA) $(typelibs_DATA)
39 subdir = libvirt-gobject
40 DIST_COMMON = $(libvirt_gobject_1_0_la_HEADERS) $(srcdir)/Makefile.am \
41 $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
44 $(top_srcdir)/configure.ac
45 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
46 $(ACLOCAL_M4)
47 mkinstalldirs = $(install_sh) -d
48 CONFIG_HEADER = $(top_builddir)/config.h
49 CONFIG_CLEAN_FILES =
50 CONFIG_CLEAN_VPATH_FILES =
51 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
52 am__vpath_adj = case $$p in \
53 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
54 *) f=$$p;; \
55 esac;
56 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
57 am__install_max = 40
58 am__nobase_strip_setup = \
59 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
60 am__nobase_strip = \
61 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
62 am__nobase_list = $(am__nobase_strip_setup); \
63 for p in $$list; do echo "$$p $$p"; done | \
64 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
65 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
66 if (++n[$$2] == $(am__install_max)) \
67 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
68 END { for (dir in files) print dir, files[dir] }'
69 am__base_list = \
70 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
71 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
72 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" \
73 "$(DESTDIR)$(typelibsdir)" \
74 "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" \
75 "$(DESTDIR)$(libvirt_gobject_1_0_ladir)"
76 LTLIBRARIES = $(lib_LTLIBRARIES)
77 am__DEPENDENCIES_1 =
78 am__objects_1 =
79 am__objects_2 = $(am__objects_1)
80 am__objects_3 = libvirt_gobject_1_0_la-libvirt-gobject-main.lo \
81 libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo \
82 libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo \
83 libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo \
84 libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo \
85 libvirt_gobject_1_0_la-libvirt-gobject-domain.lo \
86 libvirt_gobject_1_0_la-libvirt-gobject-interface.lo \
87 libvirt_gobject_1_0_la-libvirt-gobject-network.lo \
88 libvirt_gobject_1_0_la-libvirt-gobject-network-filter.lo \
89 libvirt_gobject_1_0_la-libvirt-gobject-node-device.lo \
90 libvirt_gobject_1_0_la-libvirt-gobject-secret.lo \
91 libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.lo \
92 libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.lo \
93 libvirt_gobject_1_0_la-libvirt-gobject-stream.lo \
94 libvirt_gobject_1_0_la-libvirt-gobject-connection.lo \
95 libvirt_gobject_1_0_la-libvirt-gobject-manager.lo
96 am_libvirt_gobject_1_0_la_OBJECTS = $(am__objects_2) $(am__objects_3) \
97 libvirt_gobject_1_0_la-libvirt-gobject-input-stream.lo
98 am__objects_4 = libvirt_gobject_1_0_la-libvirt-gobject-enums.lo
99 nodist_libvirt_gobject_1_0_la_OBJECTS = $(am__objects_4)
100 libvirt_gobject_1_0_la_OBJECTS = $(am_libvirt_gobject_1_0_la_OBJECTS) \
101 $(nodist_libvirt_gobject_1_0_la_OBJECTS)
102 AM_V_lt = $(am__v_lt_$(V))
103 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
104 am__v_lt_0 = --silent
105 libvirt_gobject_1_0_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
106 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
107 $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) \
108 $(libvirt_gobject_1_0_la_LDFLAGS) $(LDFLAGS) -o $@
109 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
110 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
111 am__depfiles_maybe = depfiles
112 am__mv = mv -f
113 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
114 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
115 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
116 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
117 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
118 $(AM_CFLAGS) $(CFLAGS)
119 AM_V_CC = $(am__v_CC_$(V))
120 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
121 am__v_CC_0 = @echo " CC " $@;
122 AM_V_at = $(am__v_at_$(V))
123 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
124 am__v_at_0 = @
125 CCLD = $(CC)
126 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
127 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
128 $(AM_LDFLAGS) $(LDFLAGS) -o $@
129 AM_V_CCLD = $(am__v_CCLD_$(V))
130 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
131 am__v_CCLD_0 = @echo " CCLD " $@;
132 AM_V_GEN = $(am__v_GEN_$(V))
133 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
134 am__v_GEN_0 = @echo " GEN " $@;
135 SOURCES = $(libvirt_gobject_1_0_la_SOURCES) \
136 $(nodist_libvirt_gobject_1_0_la_SOURCES)
137 DIST_SOURCES = $(libvirt_gobject_1_0_la_SOURCES)
138 DATA = $(gir_DATA) $(typelibs_DATA)
139 HEADERS = $(libvirt_gobject_1_0_la_HEADERS) \
140 $(nodist_libvirt_gobject_1_0_la_HEADERS)
141 ETAGS = etags
142 CTAGS = ctags
143 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
144 ACLOCAL = @ACLOCAL@
145 AMTAR = @AMTAR@
146 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
147 AR = @AR@
148 AS = @AS@
149 AUTOCONF = @AUTOCONF@
150 AUTOHEADER = @AUTOHEADER@
151 AUTOMAKE = @AUTOMAKE@
152 AWK = @AWK@
153 CC = @CC@
154 CCDEPMODE = @CCDEPMODE@
155 CFLAGS = @CFLAGS@
156 COMPILER_FLAGS = @COMPILER_FLAGS@
157 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
158 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
159 CPP = @CPP@
160 CPPFLAGS = @CPPFLAGS@
161 CYGPATH_W = @CYGPATH_W@
162 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
163 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
164 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
165 DEFS = @DEFS@
166 DEPDIR = @DEPDIR@
167 DLLTOOL = @DLLTOOL@
168 DSYMUTIL = @DSYMUTIL@
169 DUMPBIN = @DUMPBIN@
170 ECHO_C = @ECHO_C@
171 ECHO_N = @ECHO_N@
172 ECHO_T = @ECHO_T@
173 EGREP = @EGREP@
174 EXEEXT = @EXEEXT@
175 FGREP = @FGREP@
176 GIO2_CFLAGS = @GIO2_CFLAGS@
177 GIO2_LIBS = @GIO2_LIBS@
178 GLIB2_CFLAGS = @GLIB2_CFLAGS@
179 GLIB2_LIBS = @GLIB2_LIBS@
180 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
181 GOBJECT2_LIBS = @GOBJECT2_LIBS@
182 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
183 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
184 GREP = @GREP@
185 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
186 GTHREAD2_LIBS = @GTHREAD2_LIBS@
187 GTKDOC_CHECK = @GTKDOC_CHECK@
188 GTKDOC_MKPDF = @GTKDOC_MKPDF@
189 GTKDOC_REBASE = @GTKDOC_REBASE@
190 G_IR_COMPILER = @G_IR_COMPILER@
191 G_IR_SCANNER = @G_IR_SCANNER@
192 HTML_DIR = @HTML_DIR@
193 INSTALL = @INSTALL@
194 INSTALL_DATA = @INSTALL_DATA@
195 INSTALL_PROGRAM = @INSTALL_PROGRAM@
196 INSTALL_SCRIPT = @INSTALL_SCRIPT@
197 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
198 LD = @LD@
199 LDFLAGS = @LDFLAGS@
200 LIBOBJS = @LIBOBJS@
201 LIBS = @LIBS@
202 LIBTOOL = @LIBTOOL@
203 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
204 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
205 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
206 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
207 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
208 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
209 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
210 LIBVIRT_LIBS = @LIBVIRT_LIBS@
211 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
212 LIBXML2_LIBS = @LIBXML2_LIBS@
213 LIPO = @LIPO@
214 LN_S = @LN_S@
215 LTLIBOBJS = @LTLIBOBJS@
216 MAKEINFO = @MAKEINFO@
217 MANIFEST_TOOL = @MANIFEST_TOOL@
218 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
219 MKDIR_P = @MKDIR_P@
220 NM = @NM@
221 NMEDIT = @NMEDIT@
222 OBJDUMP = @OBJDUMP@
223 OBJEXT = @OBJEXT@
224 OTOOL = @OTOOL@
225 OTOOL64 = @OTOOL64@
226 PACKAGE = @PACKAGE@
227 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
228 PACKAGE_NAME = @PACKAGE_NAME@
229 PACKAGE_STRING = @PACKAGE_STRING@
230 PACKAGE_TARNAME = @PACKAGE_TARNAME@
231 PACKAGE_URL = @PACKAGE_URL@
232 PACKAGE_VERSION = @PACKAGE_VERSION@
233 PATH_SEPARATOR = @PATH_SEPARATOR@
234 PKG_CONFIG = @PKG_CONFIG@
235 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
236 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
237 PYTHON = @PYTHON@
238 PYTHON_INCLUDES = @PYTHON_INCLUDES@
239 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
240 PYTHON_VERSION = @PYTHON_VERSION@
241 RANLIB = @RANLIB@
242 SED = @SED@
243 SET_MAKE = @SET_MAKE@
244 SHELL = @SHELL@
245 STRIP = @STRIP@
246 VAPIGEN = @VAPIGEN@
247 VERSION = @VERSION@
248 WARN_CFLAGS = @WARN_CFLAGS@
249 abs_builddir = @abs_builddir@
250 abs_srcdir = @abs_srcdir@
251 abs_top_builddir = @abs_top_builddir@
252 abs_top_srcdir = @abs_top_srcdir@
253 ac_ct_AR = @ac_ct_AR@
254 ac_ct_CC = @ac_ct_CC@
255 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
256 am__include = @am__include@
257 am__leading_dot = @am__leading_dot@
258 am__quote = @am__quote@
259 am__tar = @am__tar@
260 am__untar = @am__untar@
261 bindir = @bindir@
262 build = @build@
263 build_alias = @build_alias@
264 build_cpu = @build_cpu@
265 build_os = @build_os@
266 build_vendor = @build_vendor@
267 builddir = @builddir@
268 datadir = @datadir@
269 datarootdir = @datarootdir@
270 docdir = @docdir@
271 dvidir = @dvidir@
272 exec_prefix = @exec_prefix@
273 host = @host@
274 host_alias = @host_alias@
275 host_cpu = @host_cpu@
276 host_os = @host_os@
277 host_vendor = @host_vendor@
278 htmldir = @htmldir@
279 includedir = @includedir@
280 infodir = @infodir@
281 install_sh = @install_sh@
282 libdir = @libdir@
283 libexecdir = @libexecdir@
284 localedir = @localedir@
285 localstatedir = @localstatedir@
286 mandir = @mandir@
287 mkdir_p = @mkdir_p@
288 oldincludedir = @oldincludedir@
289 pdfdir = @pdfdir@
290 prefix = @prefix@
291 program_transform_name = @program_transform_name@
292 psdir = @psdir@
293 pythondir = @pythondir@
294 sbindir = @sbindir@
295 sharedstatedir = @sharedstatedir@
296 srcdir = @srcdir@
297 sysconfdir = @sysconfdir@
298 target_alias = @target_alias@
299 top_build_prefix = @top_build_prefix@
300 top_builddir = @top_builddir@
301 top_srcdir = @top_srcdir@
302 EXTRA_DIST = libvirt-gobject.sym
303 lib_LTLIBRARIES = libvirt-gobject-1.0.la
304 GOBJECT_HEADER_FILES = \
305 libvirt-gobject.h \
306 libvirt-gobject-main.h \
307 libvirt-gobject-domain-snapshot.h \
308 libvirt-gobject-domain-device.h \
309 libvirt-gobject-domain-disk.h \
310 libvirt-gobject-domain-interface.h \
311 libvirt-gobject-domain.h \
312 libvirt-gobject-interface.h \
313 libvirt-gobject-network.h \
314 libvirt-gobject-network-filter.h \
315 libvirt-gobject-node-device.h \
316 libvirt-gobject-secret.h \
317 libvirt-gobject-storage-vol.h \
318 libvirt-gobject-storage-pool.h \
319 libvirt-gobject-stream.h \
320 libvirt-gobject-connection.h \
321 libvirt-gobject-manager.h
322
323 GOBJECT_SOURCE_FILES = \
324 libvirt-gobject-main.c \
325 libvirt-gobject-domain-snapshot.c \
326 libvirt-gobject-domain-device.c \
327 libvirt-gobject-domain-disk.c \
328 libvirt-gobject-domain-interface.c \
329 libvirt-gobject-domain.c \
330 libvirt-gobject-interface.c \
331 libvirt-gobject-network.c \
332 libvirt-gobject-network-filter.c \
333 libvirt-gobject-node-device.c \
334 libvirt-gobject-secret.c \
335 libvirt-gobject-storage-vol.c \
336 libvirt-gobject-storage-pool.c \
337 libvirt-gobject-stream.c \
338 libvirt-gobject-connection.c \
339 libvirt-gobject-manager.c
340
341 GOBJECT_GENERATED_FILES = \
342 libvirt-gobject-enums.c \
343 libvirt-gobject-enums.h
344
345 libvirt_gobject_1_0_ladir = $(includedir)/libvirt-gobject-1.0/libvirt-gobject
346 libvirt_gobject_1_0_la_HEADERS = \
347 $(GOBJECT_HEADER_FILES) \
348 libvirt-gobject-input-stream.h
349
350 nodist_libvirt_gobject_1_0_la_HEADERS = \
351 libvirt-gobject-enums.h
352
353 libvirt_gobject_1_0_la_SOURCES = \
354 $(libvirt_gobject_1_0_la_HEADERS) \
355 $(GOBJECT_SOURCE_FILES) \
356 libvirt-gobject-domain-device-private.h \
357 libvirt-gobject-compat.h \
358 libvirt-gobject-input-stream.c
359
360 nodist_libvirt_gobject_1_0_la_SOURCES = \
361 $(GOBJECT_GENERATED_FILES)
362
363 libvirt_gobject_1_0_la_CFLAGS = \
364 -DDATADIR="\"$(datadir)\"" \
365 -DLIBVIRT_GOBJECT_BUILD \
366 $(COVERAGE_CFLAGS) \
367 -I$(top_srcdir) \
368 $(LIBVIRT_CFLAGS) \
369 $(GOBJECT2_CFLAGS) \
370 $(GIO2_CFLAGS) \
371 $(LIBXML2_CFLAGS) \
372 $(WARN_CFLAGS)
373
374 libvirt_gobject_1_0_la_LIBADD = \
375 $(LIBVIRT_LIBS) \
376 $(GOBJECT2_LIBS) \
377 $(GIO2_LIBS) \
378 ../libvirt-glib/libvirt-glib-1.0.la \
379 ../libvirt-gconfig/libvirt-gconfig-1.0.la \
380 $(CYGWIN_EXTRA_LIBADD)
381
382 libvirt_gobject_1_0_la_DEPENDENCIES = \
383 libvirt-gobject.sym \
384 ../libvirt-glib/libvirt-glib-1.0.la \
385 ../libvirt-gconfig/libvirt-gconfig-1.0.la
386
387 libvirt_gobject_1_0_la_LDFLAGS = \
388 $(COVERAGE_CFLAGS:-f%=-Wc,f%) \
389 $(CYGWIN_EXTRA_LDFLAGS) $(MINGW_EXTRA_LDFLAGS) \
390 -Wl,--version-script=$(srcdir)/libvirt-gobject.sym \
391 -version-info $(LIBVIRT_GLIB_VERSION_INFO)
392
393 BUILT_SOURCES = $(GOBJECT_GENERATED_FILES)
394 CLEANFILES = $(BUILT_SOURCES) $(am__append_1)
395 @WITH_GOBJECT_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0
396 @WITH_GOBJECT_INTROSPECTION_TRUE@gir_DATA = LibvirtGObject-1.0.gir
397 @WITH_GOBJECT_INTROSPECTION_TRUE@typelibsdir = $(libdir)/girepository-1.0
398 @WITH_GOBJECT_INTROSPECTION_TRUE@typelibs_DATA = LibvirtGObject-1.0.typelib
399 all: $(BUILT_SOURCES)
400 $(MAKE) $(AM_MAKEFLAGS) all-am
401
402 .SUFFIXES:
403 .SUFFIXES: .c .lo .o .obj
404 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
405 @for dep in $?; do \
406 case '$(am__configure_deps)' in \
407 *$$dep*) \
408 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
409 && { if test -f $@; then exit 0; else break; fi; }; \
410 exit 1;; \
411 esac; \
412 done; \
413 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libvirt-gobject/Makefile'; \
414 $(am__cd) $(top_srcdir) && \
415 $(AUTOMAKE) --gnu libvirt-gobject/Makefile
416 .PRECIOUS: Makefile
417 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
418 @case '$?' in \
419 *config.status*) \
420 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
421 *) \
422 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
423 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
424 esac;
425
426 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
427 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
428
429 $(top_srcdir)/configure: $(am__configure_deps)
430 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
431 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
432 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
433 $(am__aclocal_m4_deps):
434 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
435 @$(NORMAL_INSTALL)
436 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
437 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
438 list2=; for p in $$list; do \
439 if test -f $$p; then \
440 list2="$$list2 $$p"; \
441 else :; fi; \
442 done; \
443 test -z "$$list2" || { \
444 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
445 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
446 }
447
448 uninstall-libLTLIBRARIES:
449 @$(NORMAL_UNINSTALL)
450 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
451 for p in $$list; do \
452 $(am__strip_dir) \
453 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
454 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
455 done
456
457 clean-libLTLIBRARIES:
458 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
459 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
460 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
461 test "$$dir" != "$$p" || dir=.; \
462 echo "rm -f \"$${dir}/so_locations\""; \
463 rm -f "$${dir}/so_locations"; \
464 done
465 libvirt-gobject-1.0.la: $(libvirt_gobject_1_0_la_OBJECTS) $(libvirt_gobject_1_0_la_DEPENDENCIES)
466 $(AM_V_CCLD)$(libvirt_gobject_1_0_la_LINK) -rpath $(libdir) $(libvirt_gobject_1_0_la_OBJECTS) $(libvirt_gobject_1_0_la_LIBADD) $(LIBS)
467
468 mostlyclean-compile:
469 -rm -f *.$(OBJEXT)
470
471 distclean-compile:
472 -rm -f *.tab.c
473
474 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-connection.Plo@am__quote@
475 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-device.Plo@am__quote@
476 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.Plo@am__quote@
477 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.Plo@am__quote@
478 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.Plo@am__quote@
479 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain.Plo@am__quote@
480 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-enums.Plo@am__quote@
481 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-input-stream.Plo@am__quote@
482 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-interface.Plo@am__quote@
483 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-main.Plo@am__quote@
484 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-manager.Plo@am__quote@
485 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network-filter.Plo@am__quote@
486 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network.Plo@am__quote@
487 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-node-device.Plo@am__quote@
488 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-secret.Plo@am__quote@
489 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.Plo@am__quote@
490 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.Plo@am__quote@
491 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-stream.Plo@am__quote@
492
493 .c.o:
494 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
495 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
496 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
497 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
498 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
499 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
500
501 .c.obj:
502 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
503 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
504 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
505 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
506 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
507 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
508
509 .c.lo:
510 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
511 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
512 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
513 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
514 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
515 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
516
517 libvirt_gobject_1_0_la-libvirt-gobject-main.lo: libvirt-gobject-main.c
518 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-main.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-main.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-main.lo `test -f 'libvirt-gobject-main.c' || echo '$(srcdir)/'`libvirt-gobject-main.c
519 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-main.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-main.Plo
520 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
521 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-main.c' object='libvirt_gobject_1_0_la-libvirt-gobject-main.lo' libtool=yes @AMDEPBACKSLASH@
522 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
523 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-main.lo `test -f 'libvirt-gobject-main.c' || echo '$(srcdir)/'`libvirt-gobject-main.c
524
525 libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo: libvirt-gobject-domain-snapshot.c
526 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo `test -f 'libvirt-gobject-domain-snapshot.c' || echo '$(srcdir)/'`libvirt-gobject-domain-snapshot.c
527 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.Plo
528 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
529 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-domain-snapshot.c' object='libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo' libtool=yes @AMDEPBACKSLASH@
530 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-snapshot.lo `test -f 'libvirt-gobject-domain-snapshot.c' || echo '$(srcdir)/'`libvirt-gobject-domain-snapshot.c
532
533 libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo: libvirt-gobject-domain-device.c
534 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-device.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo `test -f 'libvirt-gobject-domain-device.c' || echo '$(srcdir)/'`libvirt-gobject-domain-device.c
535 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-device.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-device.Plo
536 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
537 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-domain-device.c' object='libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo' libtool=yes @AMDEPBACKSLASH@
538 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
539 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-device.lo `test -f 'libvirt-gobject-domain-device.c' || echo '$(srcdir)/'`libvirt-gobject-domain-device.c
540
541 libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo: libvirt-gobject-domain-disk.c
542 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo `test -f 'libvirt-gobject-domain-disk.c' || echo '$(srcdir)/'`libvirt-gobject-domain-disk.c
543 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.Plo
544 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
545 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-domain-disk.c' object='libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo' libtool=yes @AMDEPBACKSLASH@
546 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-disk.lo `test -f 'libvirt-gobject-domain-disk.c' || echo '$(srcdir)/'`libvirt-gobject-domain-disk.c
548
549 libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo: libvirt-gobject-domain-interface.c
550 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo `test -f 'libvirt-gobject-domain-interface.c' || echo '$(srcdir)/'`libvirt-gobject-domain-interface.c
551 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.Plo
552 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
553 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-domain-interface.c' object='libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo' libtool=yes @AMDEPBACKSLASH@
554 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
555 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain-interface.lo `test -f 'libvirt-gobject-domain-interface.c' || echo '$(srcdir)/'`libvirt-gobject-domain-interface.c
556
557 libvirt_gobject_1_0_la-libvirt-gobject-domain.lo: libvirt-gobject-domain.c
558 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-domain.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain.lo `test -f 'libvirt-gobject-domain.c' || echo '$(srcdir)/'`libvirt-gobject-domain.c
559 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-domain.Plo
560 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
561 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-domain.c' object='libvirt_gobject_1_0_la-libvirt-gobject-domain.lo' libtool=yes @AMDEPBACKSLASH@
562 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
563 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-domain.lo `test -f 'libvirt-gobject-domain.c' || echo '$(srcdir)/'`libvirt-gobject-domain.c
564
565 libvirt_gobject_1_0_la-libvirt-gobject-interface.lo: libvirt-gobject-interface.c
566 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-interface.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-interface.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-interface.lo `test -f 'libvirt-gobject-interface.c' || echo '$(srcdir)/'`libvirt-gobject-interface.c
567 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-interface.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-interface.Plo
568 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
569 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-interface.c' object='libvirt_gobject_1_0_la-libvirt-gobject-interface.lo' libtool=yes @AMDEPBACKSLASH@
570 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
571 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-interface.lo `test -f 'libvirt-gobject-interface.c' || echo '$(srcdir)/'`libvirt-gobject-interface.c
572
573 libvirt_gobject_1_0_la-libvirt-gobject-network.lo: libvirt-gobject-network.c
574 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-network.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-network.lo `test -f 'libvirt-gobject-network.c' || echo '$(srcdir)/'`libvirt-gobject-network.c
575 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network.Plo
576 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-network.c' object='libvirt_gobject_1_0_la-libvirt-gobject-network.lo' libtool=yes @AMDEPBACKSLASH@
578 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
579 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-network.lo `test -f 'libvirt-gobject-network.c' || echo '$(srcdir)/'`libvirt-gobject-network.c
580
581 libvirt_gobject_1_0_la-libvirt-gobject-network-filter.lo: libvirt-gobject-network-filter.c
582 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-network-filter.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network-filter.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-network-filter.lo `test -f 'libvirt-gobject-network-filter.c' || echo '$(srcdir)/'`libvirt-gobject-network-filter.c
583 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network-filter.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-network-filter.Plo
584 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
585 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-network-filter.c' object='libvirt_gobject_1_0_la-libvirt-gobject-network-filter.lo' libtool=yes @AMDEPBACKSLASH@
586 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
587 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-network-filter.lo `test -f 'libvirt-gobject-network-filter.c' || echo '$(srcdir)/'`libvirt-gobject-network-filter.c
588
589 libvirt_gobject_1_0_la-libvirt-gobject-node-device.lo: libvirt-gobject-node-device.c
590 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-node-device.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-node-device.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-node-device.lo `test -f 'libvirt-gobject-node-device.c' || echo '$(srcdir)/'`libvirt-gobject-node-device.c
591 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-node-device.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-node-device.Plo
592 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
593 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-node-device.c' object='libvirt_gobject_1_0_la-libvirt-gobject-node-device.lo' libtool=yes @AMDEPBACKSLASH@
594 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
595 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-node-device.lo `test -f 'libvirt-gobject-node-device.c' || echo '$(srcdir)/'`libvirt-gobject-node-device.c
596
597 libvirt_gobject_1_0_la-libvirt-gobject-secret.lo: libvirt-gobject-secret.c
598 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-secret.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-secret.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-secret.lo `test -f 'libvirt-gobject-secret.c' || echo '$(srcdir)/'`libvirt-gobject-secret.c
599 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-secret.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-secret.Plo
600 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
601 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-secret.c' object='libvirt_gobject_1_0_la-libvirt-gobject-secret.lo' libtool=yes @AMDEPBACKSLASH@
602 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
603 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-secret.lo `test -f 'libvirt-gobject-secret.c' || echo '$(srcdir)/'`libvirt-gobject-secret.c
604
605 libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.lo: libvirt-gobject-storage-vol.c
606 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.lo `test -f 'libvirt-gobject-storage-vol.c' || echo '$(srcdir)/'`libvirt-gobject-storage-vol.c
607 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.Plo
608 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
609 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-storage-vol.c' object='libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.lo' libtool=yes @AMDEPBACKSLASH@
610 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
611 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-storage-vol.lo `test -f 'libvirt-gobject-storage-vol.c' || echo '$(srcdir)/'`libvirt-gobject-storage-vol.c
612
613 libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.lo: libvirt-gobject-storage-pool.c
614 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.lo `test -f 'libvirt-gobject-storage-pool.c' || echo '$(srcdir)/'`libvirt-gobject-storage-pool.c
615 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.Plo
616 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
617 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-storage-pool.c' object='libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.lo' libtool=yes @AMDEPBACKSLASH@
618 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
619 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-storage-pool.lo `test -f 'libvirt-gobject-storage-pool.c' || echo '$(srcdir)/'`libvirt-gobject-storage-pool.c
620
621 libvirt_gobject_1_0_la-libvirt-gobject-stream.lo: libvirt-gobject-stream.c
622 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-stream.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-stream.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-stream.lo `test -f 'libvirt-gobject-stream.c' || echo '$(srcdir)/'`libvirt-gobject-stream.c
623 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-stream.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-stream.Plo
624 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
625 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-stream.c' object='libvirt_gobject_1_0_la-libvirt-gobject-stream.lo' libtool=yes @AMDEPBACKSLASH@
626 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
627 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-stream.lo `test -f 'libvirt-gobject-stream.c' || echo '$(srcdir)/'`libvirt-gobject-stream.c
628
629 libvirt_gobject_1_0_la-libvirt-gobject-connection.lo: libvirt-gobject-connection.c
630 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-connection.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-connection.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-connection.lo `test -f 'libvirt-gobject-connection.c' || echo '$(srcdir)/'`libvirt-gobject-connection.c
631 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-connection.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-connection.Plo
632 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
633 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-connection.c' object='libvirt_gobject_1_0_la-libvirt-gobject-connection.lo' libtool=yes @AMDEPBACKSLASH@
634 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
635 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-connection.lo `test -f 'libvirt-gobject-connection.c' || echo '$(srcdir)/'`libvirt-gobject-connection.c
636
637 libvirt_gobject_1_0_la-libvirt-gobject-manager.lo: libvirt-gobject-manager.c
638 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-manager.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-manager.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-manager.lo `test -f 'libvirt-gobject-manager.c' || echo '$(srcdir)/'`libvirt-gobject-manager.c
639 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-manager.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-manager.Plo
640 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
641 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-manager.c' object='libvirt_gobject_1_0_la-libvirt-gobject-manager.lo' libtool=yes @AMDEPBACKSLASH@
642 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
643 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-manager.lo `test -f 'libvirt-gobject-manager.c' || echo '$(srcdir)/'`libvirt-gobject-manager.c
644
645 libvirt_gobject_1_0_la-libvirt-gobject-input-stream.lo: libvirt-gobject-input-stream.c
646 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-input-stream.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-input-stream.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-input-stream.lo `test -f 'libvirt-gobject-input-stream.c' || echo '$(srcdir)/'`libvirt-gobject-input-stream.c
647 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-input-stream.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-input-stream.Plo
648 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
649 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-input-stream.c' object='libvirt_gobject_1_0_la-libvirt-gobject-input-stream.lo' libtool=yes @AMDEPBACKSLASH@
650 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
651 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-input-stream.lo `test -f 'libvirt-gobject-input-stream.c' || echo '$(srcdir)/'`libvirt-gobject-input-stream.c
652
653 libvirt_gobject_1_0_la-libvirt-gobject-enums.lo: libvirt-gobject-enums.c
654 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -MT libvirt_gobject_1_0_la-libvirt-gobject-enums.lo -MD -MP -MF $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-enums.Tpo -c -o libvirt_gobject_1_0_la-libvirt-gobject-enums.lo `test -f 'libvirt-gobject-enums.c' || echo '$(srcdir)/'`libvirt-gobject-enums.c
655 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-enums.Tpo $(DEPDIR)/libvirt_gobject_1_0_la-libvirt-gobject-enums.Plo
656 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
657 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-gobject-enums.c' object='libvirt_gobject_1_0_la-libvirt-gobject-enums.lo' libtool=yes @AMDEPBACKSLASH@
658 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
659 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirt_gobject_1_0_la_CFLAGS) $(CFLAGS) -c -o libvirt_gobject_1_0_la-libvirt-gobject-enums.lo `test -f 'libvirt-gobject-enums.c' || echo '$(srcdir)/'`libvirt-gobject-enums.c
660
661 mostlyclean-libtool:
662 -rm -f *.lo
663
664 clean-libtool:
665 -rm -rf .libs _libs
666 install-girDATA: $(gir_DATA)
667 @$(NORMAL_INSTALL)
668 test -z "$(girdir)" || $(MKDIR_P) "$(DESTDIR)$(girdir)"
669 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
670 for p in $$list; do \
671 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
672 echo "$$d$$p"; \
673 done | $(am__base_list) | \
674 while read files; do \
675 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \
676 $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \
677 done
678
679 uninstall-girDATA:
680 @$(NORMAL_UNINSTALL)
681 @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
682 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
683 test -n "$$files" || exit 0; \
684 echo " ( cd '$(DESTDIR)$(girdir)' && rm -f" $$files ")"; \
685 cd "$(DESTDIR)$(girdir)" && rm -f $$files
686 install-typelibsDATA: $(typelibs_DATA)
687 @$(NORMAL_INSTALL)
688 test -z "$(typelibsdir)" || $(MKDIR_P) "$(DESTDIR)$(typelibsdir)"
689 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
690 for p in $$list; do \
691 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
692 echo "$$d$$p"; \
693 done | $(am__base_list) | \
694 while read files; do \
695 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibsdir)'"; \
696 $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibsdir)" || exit $$?; \
697 done
698
699 uninstall-typelibsDATA:
700 @$(NORMAL_UNINSTALL)
701 @list='$(typelibs_DATA)'; test -n "$(typelibsdir)" || list=; \
702 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
703 test -n "$$files" || exit 0; \
704 echo " ( cd '$(DESTDIR)$(typelibsdir)' && rm -f" $$files ")"; \
705 cd "$(DESTDIR)$(typelibsdir)" && rm -f $$files
706 install-libvirt_gobject_1_0_laHEADERS: $(libvirt_gobject_1_0_la_HEADERS)
707 @$(NORMAL_INSTALL)
708 test -z "$(libvirt_gobject_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)"
709 @list='$(libvirt_gobject_1_0_la_HEADERS)'; test -n "$(libvirt_gobject_1_0_ladir)" || list=; \
710 for p in $$list; do \
711 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
712 echo "$$d$$p"; \
713 done | $(am__base_list) | \
714 while read files; do \
715 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libvirt_gobject_1_0_ladir)'"; \
716 $(INSTALL_HEADER) $$files "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" || exit $$?; \
717 done
718
719 uninstall-libvirt_gobject_1_0_laHEADERS:
720 @$(NORMAL_UNINSTALL)
721 @list='$(libvirt_gobject_1_0_la_HEADERS)'; test -n "$(libvirt_gobject_1_0_ladir)" || list=; \
722 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
723 test -n "$$files" || exit 0; \
724 echo " ( cd '$(DESTDIR)$(libvirt_gobject_1_0_ladir)' && rm -f" $$files ")"; \
725 cd "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" && rm -f $$files
726 install-nodist_libvirt_gobject_1_0_laHEADERS: $(nodist_libvirt_gobject_1_0_la_HEADERS)
727 @$(NORMAL_INSTALL)
728 test -z "$(libvirt_gobject_1_0_ladir)" || $(MKDIR_P) "$(DESTDIR)$(libvirt_gobject_1_0_ladir)"
729 @list='$(nodist_libvirt_gobject_1_0_la_HEADERS)'; test -n "$(libvirt_gobject_1_0_ladir)" || list=; \
730 for p in $$list; do \
731 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
732 echo "$$d$$p"; \
733 done | $(am__base_list) | \
734 while read files; do \
735 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libvirt_gobject_1_0_ladir)'"; \
736 $(INSTALL_HEADER) $$files "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" || exit $$?; \
737 done
738
739 uninstall-nodist_libvirt_gobject_1_0_laHEADERS:
740 @$(NORMAL_UNINSTALL)
741 @list='$(nodist_libvirt_gobject_1_0_la_HEADERS)'; test -n "$(libvirt_gobject_1_0_ladir)" || list=; \
742 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
743 test -n "$$files" || exit 0; \
744 echo " ( cd '$(DESTDIR)$(libvirt_gobject_1_0_ladir)' && rm -f" $$files ")"; \
745 cd "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" && rm -f $$files
746
747 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
748 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
749 unique=`for i in $$list; do \
750 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
751 done | \
752 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
753 END { if (nonempty) { for (i in files) print i; }; }'`; \
754 mkid -fID $$unique
755 tags: TAGS
756
757 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
758 $(TAGS_FILES) $(LISP)
759 set x; \
760 here=`pwd`; \
761 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
762 unique=`for i in $$list; do \
763 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
764 done | \
765 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
766 END { if (nonempty) { for (i in files) print i; }; }'`; \
767 shift; \
768 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
769 test -n "$$unique" || unique=$$empty_fix; \
770 if test $$# -gt 0; then \
771 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
772 "$$@" $$unique; \
773 else \
774 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
775 $$unique; \
776 fi; \
777 fi
778 ctags: CTAGS
779 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
780 $(TAGS_FILES) $(LISP)
781 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
782 unique=`for i in $$list; do \
783 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
784 done | \
785 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
786 END { if (nonempty) { for (i in files) print i; }; }'`; \
787 test -z "$(CTAGS_ARGS)$$unique" \
788 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
789 $$unique
790
791 GTAGS:
792 here=`$(am__cd) $(top_builddir) && pwd` \
793 && $(am__cd) $(top_srcdir) \
794 && gtags -i $(GTAGS_ARGS) "$$here"
795
796 distclean-tags:
797 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
798
799 distdir: $(DISTFILES)
800 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
801 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
802 list='$(DISTFILES)'; \
803 dist_files=`for file in $$list; do echo $$file; done | \
804 sed -e "s|^$$srcdirstrip/||;t" \
805 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
806 case $$dist_files in \
807 */*) $(MKDIR_P) `echo "$$dist_files" | \
808 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
809 sort -u` ;; \
810 esac; \
811 for file in $$dist_files; do \
812 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
813 if test -d $$d/$$file; then \
814 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
815 if test -d "$(distdir)/$$file"; then \
816 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
817 fi; \
818 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
819 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
820 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
821 fi; \
822 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
823 else \
824 test -f "$(distdir)/$$file" \
825 || cp -p $$d/$$file "$(distdir)/$$file" \
826 || exit 1; \
827 fi; \
828 done
829 check-am: all-am
830 check: $(BUILT_SOURCES)
831 $(MAKE) $(AM_MAKEFLAGS) check-am
832 all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
833 installdirs:
834 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(typelibsdir)" "$(DESTDIR)$(libvirt_gobject_1_0_ladir)" "$(DESTDIR)$(libvirt_gobject_1_0_ladir)"; do \
835 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
836 done
837 install: $(BUILT_SOURCES)
838 $(MAKE) $(AM_MAKEFLAGS) install-am
839 install-exec: install-exec-am
840 install-data: install-data-am
841 uninstall: uninstall-am
842
843 install-am: all-am
844 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
845
846 installcheck: installcheck-am
847 install-strip:
848 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
849 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
850 `test -z '$(STRIP)' || \
851 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
852 mostlyclean-generic:
853
854 clean-generic:
855 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
856
857 distclean-generic:
858 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
859 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
860
861 maintainer-clean-generic:
862 @echo "This command is intended for maintainers to use"
863 @echo "it deletes files that may require special tools to rebuild."
864 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
865 clean: clean-am
866
867 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
868 mostlyclean-am
869
870 distclean: distclean-am
871 -rm -rf ./$(DEPDIR)
872 -rm -f Makefile
873 distclean-am: clean-am distclean-compile distclean-generic \
874 distclean-tags
875
876 dvi: dvi-am
877
878 dvi-am:
879
880 html: html-am
881
882 html-am:
883
884 info: info-am
885
886 info-am:
887
888 install-data-am: install-girDATA install-libvirt_gobject_1_0_laHEADERS \
889 install-nodist_libvirt_gobject_1_0_laHEADERS \
890 install-typelibsDATA
891
892 install-dvi: install-dvi-am
893
894 install-dvi-am:
895
896 install-exec-am: install-libLTLIBRARIES
897
898 install-html: install-html-am
899
900 install-html-am:
901
902 install-info: install-info-am
903
904 install-info-am:
905
906 install-man:
907
908 install-pdf: install-pdf-am
909
910 install-pdf-am:
911
912 install-ps: install-ps-am
913
914 install-ps-am:
915
916 installcheck-am:
917
918 maintainer-clean: maintainer-clean-am
919 -rm -rf ./$(DEPDIR)
920 -rm -f Makefile
921 maintainer-clean-am: distclean-am maintainer-clean-generic
922
923 mostlyclean: mostlyclean-am
924
925 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
926 mostlyclean-libtool
927
928 pdf: pdf-am
929
930 pdf-am:
931
932 ps: ps-am
933
934 ps-am:
935
936 uninstall-am: uninstall-girDATA uninstall-libLTLIBRARIES \
937 uninstall-libvirt_gobject_1_0_laHEADERS \
938 uninstall-nodist_libvirt_gobject_1_0_laHEADERS \
939 uninstall-typelibsDATA
940
941 .MAKE: all check install install-am install-strip
942
943 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
944 clean-libLTLIBRARIES clean-libtool ctags distclean \
945 distclean-compile distclean-generic distclean-libtool \
946 distclean-tags distdir dvi dvi-am html html-am info info-am \
947 install install-am install-data install-data-am install-dvi \
948 install-dvi-am install-exec install-exec-am install-girDATA \
949 install-html install-html-am install-info install-info-am \
950 install-libLTLIBRARIES install-libvirt_gobject_1_0_laHEADERS \
951 install-man install-nodist_libvirt_gobject_1_0_laHEADERS \
952 install-pdf install-pdf-am install-ps install-ps-am \
953 install-strip install-typelibsDATA installcheck \
954 installcheck-am installdirs maintainer-clean \
955 maintainer-clean-generic mostlyclean mostlyclean-compile \
956 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
957 tags uninstall uninstall-am uninstall-girDATA \
958 uninstall-libLTLIBRARIES \
959 uninstall-libvirt_gobject_1_0_laHEADERS \
960 uninstall-nodist_libvirt_gobject_1_0_laHEADERS \
961 uninstall-typelibsDATA
962
963
964 libvirt-gobject-enums.c: libvirt-gobject-domain.h libvirt-gobject-connection.h
965 $(AM_V_GEN)glib-mkenums \
966 --fhead "#include \"libvirt-gobject/libvirt-gobject.h\"\n\n" \
967 --vhead "static const G@Type@Value _@enum_name@_values[] = {" \
968 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
969 --vtail " { 0, NULL, NULL }\n};\n\n" \
970 --vtail "GType\n@enum_name@_get_type (void)\n{\n" \
971 --vtail " static GType type = 0;\n\n" \
972 --vtail " if (!type)\n" \
973 --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
974 --vtail " return type;\n}\n\n" \
975 $^ | sed -e 's/g_vir/gvir/g' > $@
976
977 libvirt-gobject-enums.h: libvirt-gobject-domain.h libvirt-gobject-connection.h
978 $(AM_V_GEN)glib-mkenums --fhead "#ifndef __LIBVIRT_GOBJECT_ENUMS_H__\n" \
979 --fhead "#define __LIBVIRT_GOBJECT_ENUMS_H__\n\n" \
980 --fhead "G_BEGIN_DECLS\n\n" \
981 --ftail "G_END_DECLS\n\n" \
982 --ftail "#endif /* __LIBVIRT_GOBJECT_ENUMS_H__ */\n" \
983 --eprod "#define GVIR_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
984 --eprod "GType @enum_name@_get_type (void);\n" \
985 $^ | sed -e 's/g_vir/gvir/g' | sed -e 's/_VIR_/_/g' > $@
986
987 @WITH_GOBJECT_INTROSPECTION_TRUE@LibvirtGObject-1.0.gir: libvirt-gobject-1.0.la $(G_IR_SCANNER) Makefile.am
988 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(AM_V_GEN)PKG_CONFIG_PATH=$(top_builddir) $(G_IR_SCANNER) \
989 @WITH_GOBJECT_INTROSPECTION_TRUE@ --quiet \
990 @WITH_GOBJECT_INTROSPECTION_TRUE@ --warn-all \
991 @WITH_GOBJECT_INTROSPECTION_TRUE@ --namespace LibvirtGObject \
992 @WITH_GOBJECT_INTROSPECTION_TRUE@ --nsversion 1.0 \
993 @WITH_GOBJECT_INTROSPECTION_TRUE@ --include GObject-2.0 \
994 @WITH_GOBJECT_INTROSPECTION_TRUE@ --include Gio-2.0 \
995 @WITH_GOBJECT_INTROSPECTION_TRUE@ --include LibvirtGLib-1.0 \
996 @WITH_GOBJECT_INTROSPECTION_TRUE@ --include LibvirtGConfig-1.0 \
997 @WITH_GOBJECT_INTROSPECTION_TRUE@ --identifier-prefix=GVir \
998 @WITH_GOBJECT_INTROSPECTION_TRUE@ --symbol-prefix=gvir \
999 @WITH_GOBJECT_INTROSPECTION_TRUE@ --library=$(builddir)/libvirt-gobject-1.0.la \
1000 @WITH_GOBJECT_INTROSPECTION_TRUE@ --add-include-path=$(top_builddir)/libvirt-glib \
1001 @WITH_GOBJECT_INTROSPECTION_TRUE@ --add-include-path=$(top_builddir)/libvirt-gconfig \
1002 @WITH_GOBJECT_INTROSPECTION_TRUE@ --output $@ \
1003 @WITH_GOBJECT_INTROSPECTION_TRUE@ -I$(top_srcdir) \
1004 @WITH_GOBJECT_INTROSPECTION_TRUE@ -I$(top_builddir) \
1005 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(LIBXML2_CFLAGS) \
1006 @WITH_GOBJECT_INTROSPECTION_TRUE@ --verbose \
1007 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg=gobject-2.0 \
1008 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg=gthread-2.0 \
1009 @WITH_GOBJECT_INTROSPECTION_TRUE@ --c-include="libvirt-gobject/libvirt-gobject.h" \
1010 @WITH_GOBJECT_INTROSPECTION_TRUE@ --pkg-export=libvirt-gobject-1.0 \
1011 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(srcdir)/libvirt-gobject.h \
1012 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(GOBJECT_SOURCE_FILES:%=$(srcdir)/%) \
1013 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(GOBJECT_HEADER_FILES:%=$(srcdir)/%) \
1014 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(GOBJECT_GENERATED_FILES:%=$(builddir)/%)
1015
1016 @WITH_GOBJECT_INTROSPECTION_TRUE@%.typelib: %.gir
1017 @WITH_GOBJECT_INTROSPECTION_TRUE@ $(AM_V_GEN)$(G_IR_COMPILER) \
1018 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(top_builddir)/libvirt-glib \
1019 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(top_builddir)/libvirt-gconfig \
1020 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(builddir) \
1021 @WITH_GOBJECT_INTROSPECTION_TRUE@ --includedir=$(girdir) \
1022 @WITH_GOBJECT_INTROSPECTION_TRUE@ -o $@ $<
1023
1024 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1025 # Otherwise a system limit (for SysV at least) may be exceeded.
1026 .NOEXPORT:
0 /*
1 * libvirt-gobject-compat.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #ifndef __LIBVIRT_GOBJECT_COMPAT_H__
23 #define __LIBVIRT_GOBJECT_COMPAT_H__
24
25 #include <glib-object.h>
26
27 #if !GLIB_CHECK_VERSION(2,26,0)
28 #define G_DEFINE_BOXED_TYPE(TypeName, type_name, copy_func, free_func) G_DEFINE_BOXED_TYPE_WITH_CODE (TypeName, type_name, copy_func, free_func, {})
29 #define G_DEFINE_BOXED_TYPE_WITH_CODE(TypeName, type_name, copy_func, free_func, _C_) _G_DEFINE_BOXED_TYPE_BEGIN (TypeName, type_name, copy_func, free_func) {_C_;} _G_DEFINE_TYPE_EXTENDED_END()
30 #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
31 #define _G_DEFINE_BOXED_TYPE_BEGIN(TypeName, type_name, copy_func, free_func) \
32 GType \
33 type_name##_get_type (void) \
34 { \
35 static volatile gsize g_define_type_id__volatile = 0; \
36 if (g_once_init_enter (&g_define_type_id__volatile)) \
37 { \
38 GType (* _g_register_boxed) \
39 (const gchar *, \
40 union \
41 { \
42 TypeName * (*do_copy_type) (TypeName *); \
43 TypeName * (*do_const_copy_type) (const TypeName *); \
44 GBoxedCopyFunc do_copy_boxed; \
45 } __attribute__((__transparent_union__)), \
46 union \
47 { \
48 void (* do_free_type) (TypeName *); \
49 GBoxedFreeFunc do_free_boxed; \
50 } __attribute__((__transparent_union__)) \
51 ) = g_boxed_type_register_static; \
52 GType g_define_type_id = \
53 _g_register_boxed (g_intern_static_string (#TypeName), copy_func, free_func); \
54 { /* custom code follows */
55 #else
56 #define _G_DEFINE_BOXED_TYPE_BEGIN(TypeName, type_name, copy_func, free_func) \
57 GType \
58 type_name##_get_type (void) \
59 { \
60 static volatile gsize g_define_type_id__volatile = 0; \
61 if (g_once_init_enter (&g_define_type_id__volatile)) \
62 { \
63 GType g_define_type_id = \
64 g_boxed_type_register_static (g_intern_static_string (#TypeName), \
65 (GBoxedCopyFunc) copy_func, \
66 (GBoxedFreeFunc) free_func); \
67 { /* custom code follows */
68 #endif /* __GNUC__ */
69 #endif /* glib 2.26 */
70
71 #endif /* __LIBVIRT_GOBJECT_COMPAT_H__ */
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
4344
4445 GHashTable *domains;
4546 GHashTable *pools;
47 gboolean domain_event;
4648 };
4749
4850 G_DEFINE_TYPE(GVirConnection, gvir_connection, G_TYPE_OBJECT);
5456 PROP_HANDLE,
5557 };
5658
59 enum {
60 VIR_CONNECTION_OPENED,
61 VIR_CONNECTION_CLOSED,
62 VIR_DOMAIN_ADDED,
63 VIR_DOMAIN_REMOVED,
64 LAST_SIGNAL
65 };
66
67 static gint signals[LAST_SIGNAL];
5768
5869 #define GVIR_CONNECTION_ERROR gvir_connection_error_quark()
5970
136147
137148 static void gvir_connection_class_init(GVirConnectionClass *klass)
138149 {
139 GObjectClass *object_class = G_OBJECT_CLASS (klass);
150 GObjectClass *object_class = G_OBJECT_CLASS(klass);
151
152 gvir_event_register();
140153
141154 object_class->finalize = gvir_connection_finalize;
142155 object_class->get_property = gvir_connection_get_property;
157170 G_PARAM_STATIC_NICK |
158171 G_PARAM_STATIC_BLURB));
159172
160 g_signal_new("vir-connection-opened",
173 signals[VIR_CONNECTION_OPENED] = g_signal_new("connection-opened",
161174 G_OBJECT_CLASS_TYPE(object_class),
162175 G_SIGNAL_RUN_FIRST,
163 G_STRUCT_OFFSET(GVirConnectionClass, vir_connection_opened),
176 G_STRUCT_OFFSET(GVirConnectionClass, connection_opened),
164177 NULL, NULL,
165178 g_cclosure_marshal_VOID__VOID,
166179 G_TYPE_NONE,
167180 0);
168 g_signal_new("vir-connection-closed",
181
182 signals[VIR_CONNECTION_CLOSED] = g_signal_new("connection-closed",
169183 G_OBJECT_CLASS_TYPE(object_class),
170184 G_SIGNAL_RUN_FIRST,
171 G_STRUCT_OFFSET(GVirConnectionClass, vir_connection_closed),
185 G_STRUCT_OFFSET(GVirConnectionClass, connection_closed),
172186 NULL, NULL,
173187 g_cclosure_marshal_VOID__VOID,
174188 G_TYPE_NONE,
175189 0);
176190
177 g_signal_new("vir-domain-added",
191 signals[VIR_DOMAIN_ADDED] = g_signal_new("domain-added",
178192 G_OBJECT_CLASS_TYPE(object_class),
179193 G_SIGNAL_RUN_FIRST,
180 G_STRUCT_OFFSET(GVirConnectionClass, vir_domain_added),
194 G_STRUCT_OFFSET(GVirConnectionClass, domain_added),
181195 NULL, NULL,
182 g_cclosure_marshal_VOID__VOID,
196 g_cclosure_marshal_VOID__OBJECT,
183197 G_TYPE_NONE,
184 0);
185 g_signal_new("vir-domain-removed",
198 1,
199 GVIR_TYPE_DOMAIN);
200
201 signals[VIR_DOMAIN_REMOVED] = g_signal_new("domain-removed",
186202 G_OBJECT_CLASS_TYPE(object_class),
187203 G_SIGNAL_RUN_FIRST,
188 G_STRUCT_OFFSET(GVirConnectionClass, vir_domain_removed),
204 G_STRUCT_OFFSET(GVirConnectionClass, domain_removed),
189205 NULL, NULL,
190 g_cclosure_marshal_VOID__VOID,
206 g_cclosure_marshal_VOID__OBJECT,
191207 G_TYPE_NONE,
192 0);
208 1,
209 GVIR_TYPE_DOMAIN);
193210
194211 g_object_class_install_property(object_class,
195212 PROP_HANDLE,
230247 }
231248
232249
250 static int domain_event_cb(virConnectPtr conn G_GNUC_UNUSED,
251 virDomainPtr dom,
252 int event,
253 int detail,
254 void *opaque)
255 {
256 gchar uuid[VIR_UUID_STRING_BUFLEN];
257 GVirConnection *gconn = opaque;
258 GVirDomain *gdom;
259 GVirConnectionPrivate *priv = gconn->priv;
260
261 if (virDomainGetUUIDString(dom, uuid) < 0) {
262 g_warning("Failed to get domain UUID on %p", dom);
263 return 0;
264 }
265
266 DEBUG("%s: %s event:%d, detail:%d", G_STRFUNC, uuid, event, detail);
267
268 g_mutex_lock(priv->lock);
269 gdom = g_hash_table_lookup(priv->domains, uuid);
270 g_mutex_unlock(priv->lock);
271
272 if (gdom == NULL) {
273 gdom = GVIR_DOMAIN(g_object_new(GVIR_TYPE_DOMAIN, "handle", dom, NULL));
274
275 g_mutex_lock(priv->lock);
276 g_hash_table_insert(priv->domains, (gpointer)gvir_domain_get_uuid(gdom), gdom);
277 g_mutex_unlock(priv->lock);
278 }
279
280 switch (event) {
281 case VIR_DOMAIN_EVENT_DEFINED:
282 if (detail == VIR_DOMAIN_EVENT_DEFINED_ADDED)
283 g_signal_emit(gconn, signals[VIR_DOMAIN_ADDED], 0, gdom);
284 else if (detail == VIR_DOMAIN_EVENT_DEFINED_UPDATED)
285 g_signal_emit_by_name(gdom, "updated");
286 else
287 g_warn_if_reached();
288 break;
289
290 case VIR_DOMAIN_EVENT_UNDEFINED:
291 if (detail == VIR_DOMAIN_EVENT_UNDEFINED_REMOVED) {
292 g_mutex_lock(priv->lock);
293 g_hash_table_steal(priv->domains, uuid);
294 g_mutex_unlock(priv->lock);
295
296 g_signal_emit(gconn, signals[VIR_DOMAIN_REMOVED], 0, gdom);
297 g_object_unref(gdom);
298 } else
299 g_warn_if_reached();
300 break;
301
302 case VIR_DOMAIN_EVENT_STARTED:
303 if (detail == VIR_DOMAIN_EVENT_STARTED_BOOTED)
304 g_signal_emit_by_name(gdom, "started::booted");
305 else if (detail == VIR_DOMAIN_EVENT_STARTED_MIGRATED)
306 g_signal_emit_by_name(gdom, "started::migrated");
307 else if (detail == VIR_DOMAIN_EVENT_STARTED_RESTORED)
308 g_signal_emit_by_name(gdom, "started::restored");
309 else if (detail == VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT)
310 g_signal_emit_by_name(gdom, "started::from-snapshot");
311 else
312 g_warn_if_reached();
313 break;
314
315 case VIR_DOMAIN_EVENT_SUSPENDED:
316 if (detail == VIR_DOMAIN_EVENT_SUSPENDED_PAUSED)
317 g_signal_emit_by_name(gdom, "suspended::paused");
318 else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED)
319 g_signal_emit_by_name(gdom, "suspended::migrated");
320 else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_IOERROR)
321 g_signal_emit_by_name(gdom, "suspended::ioerror");
322 else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOG)
323 g_signal_emit_by_name(gdom, "suspended::watchdog");
324 else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_RESTORED)
325 g_signal_emit_by_name(gdom, "suspended::restored");
326 else if (detail == VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT)
327 g_signal_emit_by_name(gdom, "suspended::from-snapshot");
328 else
329 g_warn_if_reached();
330 break;
331
332 case VIR_DOMAIN_EVENT_RESUMED:
333 if (detail == VIR_DOMAIN_EVENT_RESUMED_UNPAUSED)
334 g_signal_emit_by_name(gdom, "resumed::unpaused");
335 else if (detail == VIR_DOMAIN_EVENT_RESUMED_MIGRATED)
336 g_signal_emit_by_name(gdom, "resumed::migrated");
337 else if (detail == VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT)
338 g_signal_emit_by_name(gdom, "resumed::from-snapshot");
339 else
340 g_warn_if_reached();
341 break;
342
343 case VIR_DOMAIN_EVENT_STOPPED:
344 if (detail == VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN)
345 g_signal_emit_by_name(gdom, "stopped::shutdown");
346 else if (detail == VIR_DOMAIN_EVENT_STOPPED_DESTROYED)
347 g_signal_emit_by_name(gdom, "stopped::destroyed");
348 else if (detail == VIR_DOMAIN_EVENT_STOPPED_CRASHED)
349 g_signal_emit_by_name(gdom, "stopped::crashed");
350 else if (detail == VIR_DOMAIN_EVENT_STOPPED_MIGRATED)
351 g_signal_emit_by_name(gdom, "stopped::migrated");
352 else if (detail == VIR_DOMAIN_EVENT_STOPPED_SAVED)
353 g_signal_emit_by_name(gdom, "stopped::saved");
354 else if (detail == VIR_DOMAIN_EVENT_STOPPED_FAILED)
355 g_signal_emit_by_name(gdom, "stopped::failed");
356 else if (detail == VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT)
357 g_signal_emit_by_name(gdom, "stopped::from-snapshot");
358 else
359 g_warn_if_reached();
360 break;
361
362 default:
363 g_warn_if_reached();
364 }
365
366 return 0;
367 }
368
233369 /**
234370 * gvir_connection_open:
235371 * @conn: the connection
263399 return FALSE;
264400 }
265401
266 g_mutex_unlock(priv->lock);
267
268 g_signal_emit_by_name(conn, "vir-connection-opened");
402 if (virConnectDomainEventRegister(priv->conn, domain_event_cb, conn, NULL) != -1)
403 priv->domain_event = TRUE;
404 else
405 g_warning("Failed to register domain events, ignoring");
406
407 g_mutex_unlock(priv->lock);
408
409 g_signal_emit(conn, signals[VIR_CONNECTION_OPENED], 0);
410
269411 return TRUE;
270412 }
271413
289431 * gvir_connection_open_async:
290432 * @conn: the connection
291433 * @cancellable: (allow-none)(transfer none): cancellation object
292 * @callback: (transfer none): completion callback
293 * @opaque: (transfer none)(allow-none): opaque data for callback
434 * @callback: (scope async): completion callback
435 * @user_data: (closure): opaque data for callback
294436 */
295437 void gvir_connection_open_async(GVirConnection *conn,
296438 GCancellable *cancellable,
297439 GAsyncReadyCallback callback,
298 gpointer opaque)
440 gpointer user_data)
299441 {
300442 GSimpleAsyncResult *res;
301443
302444 res = g_simple_async_result_new(G_OBJECT(conn),
303445 callback,
304 opaque,
446 user_data,
305447 gvir_connection_open);
306448 g_simple_async_result_run_in_thread(res,
307449 gvir_connection_open_helper,
363505 }
364506
365507 if (priv->conn) {
508 virConnectDomainEventDeregister(priv->conn, domain_event_cb);
509 priv->domain_event = FALSE;
366510 virConnectClose(priv->conn);
367511 priv->conn = NULL;
368512 }
370514
371515 g_mutex_unlock(priv->lock);
372516
373 g_signal_emit_by_name(conn, "vir-connection-closed");
517 g_signal_emit(conn, signals[VIR_CONNECTION_CLOSED], 0);
374518 }
375519
376520 typedef gint (* CountFunction) (virConnectPtr vconn);
439583
440584 g_mutex_lock(priv->lock);
441585 if (!priv->conn) {
442 *err = gvir_error_new(GVIR_CONNECTION_ERROR,
443 0,
444 "Connection is not open");
586 *err = g_error_new(GVIR_CONNECTION_ERROR,
587 0,
588 "Connection is not open");
445589 g_mutex_unlock(priv->lock);
446590 goto cleanup;
447591 }
487631
488632 doms = g_hash_table_new_full(g_str_hash,
489633 g_str_equal,
490 g_free,
634 NULL,
491635 g_object_unref);
492636
493637 for (i = 0 ; i < nactive ; i++) {
504648 NULL));
505649
506650 g_hash_table_insert(doms,
507 g_strdup(gvir_domain_get_uuid(dom)),
651 (gpointer)gvir_domain_get_uuid(dom),
508652 dom);
509653 }
510654
522666 NULL));
523667
524668 g_hash_table_insert(doms,
525 g_strdup(gvir_domain_get_uuid(dom)),
669 (gpointer)gvir_domain_get_uuid(dom),
526670 dom);
527671 }
528672
564708
565709 g_mutex_lock(priv->lock);
566710 if (!priv->conn) {
567 *err = gvir_error_new(GVIR_CONNECTION_ERROR,
568 0,
569 "Connection is not open");
711 *err = g_error_new(GVIR_CONNECTION_ERROR,
712 0,
713 "Connection is not open");
570714 g_mutex_unlock(priv->lock);
571715 goto cleanup;
572716 }
603747
604748 pools = g_hash_table_new_full(g_str_hash,
605749 g_str_equal,
606 g_free,
750 NULL,
607751 g_object_unref);
608752
609753 for (i = 0 ; i < nactive ; i++) {
622766 NULL));
623767
624768 g_hash_table_insert(pools,
625 g_strdup(gvir_storage_pool_get_uuid(pool)),
769 (gpointer)gvir_storage_pool_get_uuid(pool),
626770 pool);
627771 }
628772
642786 NULL));
643787
644788 g_hash_table_insert(pools,
645 g_strdup(gvir_storage_pool_get_uuid(pool)),
789 (gpointer)gvir_storage_pool_get_uuid(pool),
646790 pool);
647791 }
648792
684828 * gvir_connection_fetch_domains_async:
685829 * @conn: the connection
686830 * @cancellable: (allow-none)(transfer none): cancellation object
687 * @callback: (transfer none): completion callback
688 * @opaque: (transfer none)(allow-none): opaque data for callback
831 * @callback: (scope async): completion callback
832 * @user_data: (closure): opaque data for callback
689833 */
690834 void gvir_connection_fetch_domains_async(GVirConnection *conn,
691835 GCancellable *cancellable,
692836 GAsyncReadyCallback callback,
693 gpointer opaque)
837 gpointer user_data)
694838 {
695839 GSimpleAsyncResult *res;
696840
697841 res = g_simple_async_result_new(G_OBJECT(conn),
698842 callback,
699 opaque,
843 user_data,
700844 gvir_connection_fetch_domains);
701845 g_simple_async_result_run_in_thread(res,
702846 gvir_connection_fetch_domains_helper,
745889 * gvir_connection_fetch_storage_pools_async:
746890 * @conn: the connection
747891 * @cancellable: (allow-none)(transfer none): cancellation object
748 * @callback: (transfer none): completion callback
749 * @opaque: (transfer none)(allow-none): opaque data for callback
892 * @callback: (scope async): completion callback
893 * @user_data: (closure): opaque data for callback
750894 */
751895 void gvir_connection_fetch_storage_pools_async(GVirConnection *conn,
752896 GCancellable *cancellable,
753897 GAsyncReadyCallback callback,
754 gpointer opaque)
898 gpointer user_data)
755899 {
756900 GSimpleAsyncResult *res;
757901
758902 res = g_simple_async_result_new(G_OBJECT(conn),
759903 callback,
760 opaque,
904 user_data,
761905 gvir_connection_fetch_storage_pools);
762906 g_simple_async_result_run_in_thread(res,
763907 gvir_connection_fetch_pools_helper,
808952 GList *gvir_connection_get_domains(GVirConnection *conn)
809953 {
810954 GVirConnectionPrivate *priv = conn->priv;
811 GList *domains;
812 g_mutex_lock(priv->lock);
813 domains = g_hash_table_get_values(priv->domains);
814 g_list_foreach(domains, gvir_domain_ref, NULL);
815 g_mutex_unlock(priv->lock);
955 GList *domains = NULL;
956
957 g_mutex_lock(priv->lock);
958 if (priv->domains != NULL) {
959 domains = g_hash_table_get_values(priv->domains);
960 g_list_foreach(domains, gvir_domain_ref, NULL);
961 }
962 g_mutex_unlock(priv->lock);
963
816964 return domains;
817965 }
818966
825973 GList *gvir_connection_get_storage_pools(GVirConnection *conn)
826974 {
827975 GVirConnectionPrivate *priv = conn->priv;
828 GList *pools;
829
830 g_mutex_lock(priv->lock);
831 pools = g_hash_table_get_values(priv->pools);
832 g_list_foreach(pools, gvir_domain_ref, NULL);
976 GList *pools = NULL;
977
978 g_mutex_lock(priv->lock);
979 if (priv->pools != NULL) {
980 pools = g_hash_table_get_values(priv->pools);
981 g_list_foreach(pools, gvir_domain_ref, NULL);
982 }
833983 g_mutex_unlock(priv->lock);
834984
835985 return pools;
9691119 return NULL;
9701120 }
9711121
972 static gpointer
973 gvir_connection_handle_copy(gpointer src)
974 {
975 virConnectRef(src);
1122 typedef struct virConnect GVirConnectionHandle;
1123
1124 static GVirConnectionHandle*
1125 gvir_connection_handle_copy(GVirConnectionHandle *src)
1126 {
1127 virConnectRef((virConnectPtr)src);
9761128 return src;
9771129 }
9781130
979
980 GType gvir_connection_handle_get_type(void)
981 {
982 static GType handle_type = 0;
983
984 if (G_UNLIKELY(handle_type == 0))
985 handle_type = g_boxed_type_register_static
986 ("GVirConnectionHandle",
987 gvir_connection_handle_copy,
988 (GBoxedFreeFunc)virConnectClose);
989
990 return handle_type;
991 }
1131 static void
1132 gvir_connection_handle_free(GVirConnectionHandle *src)
1133 {
1134 virConnectClose((virConnectPtr)src);
1135 }
1136
1137 G_DEFINE_BOXED_TYPE(GVirConnectionHandle, gvir_connection_handle,
1138 gvir_connection_handle_copy, gvir_connection_handle_free)
9921139
9931140 /**
9941141 * gvir_connection_get_stream:
10071154 klass = GVIR_CONNECTION_GET_CLASS(self);
10081155 g_return_val_if_fail(klass->stream_new, NULL);
10091156
1010 virStreamPtr st = virStreamNew(self->priv->conn, flags);
1157 virStreamPtr st = virStreamNew(self->priv->conn, flags | VIR_STREAM_NONBLOCK);
10111158
10121159 return klass->stream_new(self, st);
10131160 }
10261173 virDomainPtr handle;
10271174 GVirConnectionPrivate *priv = conn->priv;
10281175
1029 xml = gvir_config_object_get_doc(GVIR_CONFIG_OBJECT(conf));
1176 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
10301177
10311178 g_return_val_if_fail(xml != NULL, NULL);
10321179
10451192
10461193 g_mutex_lock(priv->lock);
10471194 g_hash_table_insert(priv->domains,
1048 g_strdup(gvir_domain_get_uuid(domain)),
1195 (gpointer)gvir_domain_get_uuid(domain),
10491196 domain);
10501197 g_mutex_unlock(priv->lock);
10511198
10521199 return g_object_ref(domain);
10531200 }
1201
1202 /**
1203 * gvir_connection_create_storage_pool:
1204 * @conn: the connection on which to create the pool
1205 * @conf: the configuration for the new storage pool
1206 * @flags: the flags
1207 * @err: return location for any #GError
1208 *
1209 * Returns: (transfer full): the newly created storage pool
1210 */
1211 GVirStoragePool *gvir_connection_create_storage_pool
1212 (GVirConnection *conn,
1213 GVirConfigStoragePool *conf,
1214 guint64 flags G_GNUC_UNUSED,
1215 GError **err) {
1216 const gchar *xml;
1217 virStoragePoolPtr handle;
1218 GVirConnectionPrivate *priv = conn->priv;
1219
1220 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
1221
1222 g_return_val_if_fail(xml != NULL, NULL);
1223
1224 if (!(handle = virStoragePoolDefineXML(priv->conn, xml, 0))) {
1225 *err = gvir_error_new_literal(GVIR_CONNECTION_ERROR,
1226 flags,
1227 "Failed to create storage pool");
1228 return NULL;
1229 }
1230
1231 GVirStoragePool *pool;
1232
1233 pool = GVIR_STORAGE_POOL(g_object_new(GVIR_TYPE_STORAGE_POOL,
1234 "handle", handle,
1235 NULL));
1236
1237 g_mutex_lock(priv->lock);
1238 g_hash_table_insert(priv->pools,
1239 (gpointer)gvir_storage_pool_get_uuid(pool),
1240 pool);
1241 g_mutex_unlock(priv->lock);
1242
1243 return g_object_ref(pool);
1244 }
5555 GObjectClass parent_class;
5656
5757 /* signals */
58 void (*vir_connection_opened)(GVirConnection *conn);
59 void (*vir_connection_closed)(GVirConnection *conn);
58 void (*connection_opened)(GVirConnection *conn);
59 void (*connection_closed)(GVirConnection *conn);
6060
61 void (*vir_domain_added)(GVirConnection *conn, GVirDomain *dom);
62 void (*vir_domain_removed)(GVirConnection *conn, GVirDomain *dom);
61 void (*domain_added)(GVirConnection *conn, GVirDomain *dom);
62 void (*domain_removed)(GVirConnection *conn, GVirDomain *dom);
6363
6464 GVirStream *(*stream_new)(GVirConnection *conn, gpointer handle);
6565
7676 void gvir_connection_open_async(GVirConnection *conn,
7777 GCancellable *cancellable,
7878 GAsyncReadyCallback callback,
79 gpointer opaque);
79 gpointer user_data);
8080 gboolean gvir_connection_open_finish(GVirConnection *conn,
8181 GAsyncResult *result,
8282 GError **err);
8989 void gvir_connection_fetch_domains_async(GVirConnection *conn,
9090 GCancellable *cancellable,
9191 GAsyncReadyCallback callback,
92 gpointer opaque);
92 gpointer user_data);
9393 gboolean gvir_connection_fetch_domains_finish(GVirConnection *conn,
9494 GAsyncResult *result,
9595 GError **err);
148148 void gvir_connection_fetch_storage_pools_async(GVirConnection *conn,
149149 GCancellable *cancellable,
150150 GAsyncReadyCallback callback,
151 gpointer opaque);
151 gpointer user_data);
152152 gboolean gvir_connection_fetch_storage_pools_finish(GVirConnection *conn,
153153 GAsyncResult *result,
154154 GError **err);
159159 GVirStoragePool *gvir_connection_find_storage_pool_by_name(GVirConnection *conn,
160160 const gchar *name);
161161
162 GVirStoragePool *gvir_connection_create_storage_pool
163 (GVirConnection *conn,
164 GVirConfigStoragePool *conf,
165 guint64 flags,
166 GError **err);
167
168
162169 GVirStream *gvir_connection_get_stream(GVirConnection *conn,
163170 gint flags);
164171
0 /*
1 * libvirt-gobject-domain-device-private.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21 #ifndef __LIBVIRT_GOBJECT_DOMAIN_DEVICE_PRIVATE_H__
22 #define __LIBVIRT_GOBJECT_DOMAIN_DEVICE_PRIVATEH__
23
24 G_BEGIN_DECLS
25
26 virDomainPtr gvir_domain_device_get_domain_handle(GVirDomainDevice *self);
27
28 G_END_DECLS
29
30 #endif /* __LIBVIRT_GOBJECT_DOMAIN_DEVICE_PRIVATEH__ */
0 /*
1 * libvirt-gobject-domain-device.c: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #include <config.h>
23
24 #include <libvirt/virterror.h>
25 #include <string.h>
26
27 #include "libvirt-glib/libvirt-glib.h"
28 #include "libvirt-gobject/libvirt-gobject.h"
29
30 #include "libvirt-gobject/libvirt-gobject-domain-device-private.h"
31
32 extern gboolean debugFlag;
33
34 #define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
35
36 #define GVIR_DOMAIN_DEVICE_GET_PRIVATE(obj) \
37 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDevicePrivate))
38
39 struct _GVirDomainDevicePrivate
40 {
41 GVirDomain *domain;
42 };
43
44 G_DEFINE_ABSTRACT_TYPE(GVirDomainDevice, gvir_domain_device, G_TYPE_OBJECT);
45
46 enum {
47 PROP_0,
48 PROP_DOMAIN,
49 };
50
51 static void gvir_domain_device_get_property(GObject *object,
52 guint prop_id,
53 GValue *value,
54 GParamSpec *pspec)
55 {
56 GVirDomainDevice *self = GVIR_DOMAIN_DEVICE(object);
57 GVirDomainDevicePrivate *priv = self->priv;
58
59 switch (prop_id) {
60 case PROP_DOMAIN:
61 g_value_set_object(value, priv->domain);
62 break;
63
64 default:
65 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
66 }
67 }
68
69
70 static void gvir_domain_device_set_property(GObject *object,
71 guint prop_id,
72 const GValue *value,
73 GParamSpec *pspec)
74 {
75 GVirDomainDevice *self = GVIR_DOMAIN_DEVICE(object);
76 GVirDomainDevicePrivate *priv = self->priv;
77
78 switch (prop_id) {
79 case PROP_DOMAIN:
80 g_clear_object(&priv->domain);
81 priv->domain = g_value_dup_object(value);
82 break;
83
84 default:
85 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
86 }
87 }
88
89
90 static void gvir_domain_device_finalize(GObject *object)
91 {
92 GVirDomainDevice *self = GVIR_DOMAIN_DEVICE(object);
93 GVirDomainDevicePrivate *priv = self->priv;
94
95 DEBUG("Finalize GVirDomainDevice=%p", self);
96
97 g_clear_object(&priv->domain);
98
99 G_OBJECT_CLASS(gvir_domain_device_parent_class)->finalize(object);
100 }
101
102 static void gvir_domain_device_class_init(GVirDomainDeviceClass *klass)
103 {
104 GObjectClass *object_class = G_OBJECT_CLASS (klass);
105
106 object_class->finalize = gvir_domain_device_finalize;
107 object_class->get_property = gvir_domain_device_get_property;
108 object_class->set_property = gvir_domain_device_set_property;
109
110 g_object_class_install_property(object_class,
111 PROP_DOMAIN,
112 g_param_spec_object("domain",
113 "domain",
114 "The associated domain",
115 GVIR_TYPE_DOMAIN,
116 G_PARAM_READWRITE |
117 G_PARAM_CONSTRUCT_ONLY |
118 G_PARAM_STATIC_STRINGS));
119
120 g_type_class_add_private(klass, sizeof(GVirDomainDevicePrivate));
121 }
122
123 static void gvir_domain_device_init(GVirDomainDevice *self)
124 {
125 DEBUG("Init GVirDomainDevice=%p", self);
126
127 self->priv = GVIR_DOMAIN_DEVICE_GET_PRIVATE(self);
128 }
129
130 G_GNUC_INTERNAL
131 virDomainPtr gvir_domain_device_get_domain_handle(GVirDomainDevice *self)
132 {
133 virDomainPtr handle;
134
135 g_object_get(self->priv->domain, "handle", &handle, NULL);
136
137 return handle;
138 }
0 /*
1 * libvirt-gobject-domain-device.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #if !defined(__LIBVIRT_GOBJECT_H__) && !defined(LIBVIRT_GOBJECT_BUILD)
23 #error "Only <libvirt-gobject/libvirt-gobject.h> can be included directly."
24 #endif
25
26 #ifndef __LIBVIRT_GOBJECT_DOMAIN_DEVICE_H__
27 #define __LIBVIRT_GOBJECT_DOMAIN_DEVICE_H__
28
29 G_BEGIN_DECLS
30
31 #define GVIR_TYPE_DOMAIN_DEVICE (gvir_domain_device_get_type ())
32 #define GVIR_DOMAIN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDevice))
33 #define GVIR_DOMAIN_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDeviceClass))
34 #define GVIR_IS_DOMAIN_DEVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_DOMAIN_DEVICE))
35 #define GVIR_IS_DOMAIN_DEVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_DOMAIN_DEVICE))
36 #define GVIR_DOMAIN_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_DOMAIN_DEVICE, GVirDomainDeviceClass))
37
38 typedef struct _GVirDomainDevice GVirDomainDevice;
39 typedef struct _GVirDomainDevicePrivate GVirDomainDevicePrivate;
40 typedef struct _GVirDomainDeviceClass GVirDomainDeviceClass;
41
42 struct _GVirDomainDevice
43 {
44 GObject parent;
45
46 GVirDomainDevicePrivate *priv;
47
48 /* Do not add fields to this struct */
49 };
50
51 struct _GVirDomainDeviceClass
52 {
53 GObjectClass parent_class;
54
55 gpointer padding[20];
56 };
57
58
59 GType gvir_domain_device_get_type(void);
60
61 G_END_DECLS
62
63 #endif /* __LIBVIRT_GOBJECT_DOMAIN_DEVICE_H__ */
0 /*
1 * libvirt-gobject-domain-disk.c: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #include <config.h>
23
24 #include <libvirt/virterror.h>
25 #include <string.h>
26
27 #include "libvirt-glib/libvirt-glib.h"
28 #include "libvirt-gobject/libvirt-gobject.h"
29 #include "libvirt-gobject-compat.h"
30
31 #include "libvirt-gobject/libvirt-gobject-domain-device-private.h"
32
33 extern gboolean debugFlag;
34
35 #define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
36
37 #define GVIR_DOMAIN_DISK_GET_PRIVATE(obj) \
38 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_TYPE_DOMAIN_DISK, GVirDomainDiskPrivate))
39
40 struct _GVirDomainDiskPrivate
41 {
42 gchar *path;
43 };
44
45 G_DEFINE_TYPE(GVirDomainDisk, gvir_domain_disk, GVIR_TYPE_DOMAIN_DEVICE);
46
47 enum {
48 PROP_0,
49 PROP_PATH,
50 };
51
52 #define GVIR_DOMAIN_DISK_ERROR gvir_domain_disk_error_quark()
53
54
55 static GQuark
56 gvir_domain_disk_error_quark(void)
57 {
58 return g_quark_from_static_string("gvir-domain-disk");
59 }
60
61 static void gvir_domain_disk_get_property(GObject *object,
62 guint prop_id,
63 GValue *value,
64 GParamSpec *pspec)
65 {
66 GVirDomainDisk *self = GVIR_DOMAIN_DISK(object);
67 GVirDomainDiskPrivate *priv = self->priv;
68
69 switch (prop_id) {
70 case PROP_PATH:
71 g_value_set_string(value, priv->path);
72 break;
73
74 default:
75 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
76 }
77 }
78
79
80 static void gvir_domain_disk_set_property(GObject *object,
81 guint prop_id,
82 const GValue *value,
83 GParamSpec *pspec)
84 {
85 GVirDomainDisk *self = GVIR_DOMAIN_DISK(object);
86 GVirDomainDiskPrivate *priv = self->priv;
87
88 switch (prop_id) {
89 case PROP_PATH:
90 g_free(priv->path);
91 priv->path = g_value_dup_string(value);
92 break;
93
94 default:
95 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
96 }
97 }
98
99
100 static void gvir_domain_disk_finalize(GObject *object)
101 {
102 GVirDomainDisk *self = GVIR_DOMAIN_DISK(object);
103 GVirDomainDiskPrivate *priv = self->priv;
104
105 DEBUG("Finalize GVirDomainDisk=%p", self);
106
107 g_free(priv->path);
108
109 G_OBJECT_CLASS(gvir_domain_disk_parent_class)->finalize(object);
110 }
111
112 static void gvir_domain_disk_class_init(GVirDomainDiskClass *klass)
113 {
114 GObjectClass *object_class = G_OBJECT_CLASS (klass);
115
116 object_class->finalize = gvir_domain_disk_finalize;
117 object_class->get_property = gvir_domain_disk_get_property;
118 object_class->set_property = gvir_domain_disk_set_property;
119
120 g_object_class_install_property(object_class,
121 PROP_PATH,
122 g_param_spec_string("path",
123 "Path",
124 "The disk path",
125 NULL,
126 G_PARAM_READWRITE |
127 G_PARAM_CONSTRUCT_ONLY |
128 G_PARAM_STATIC_STRINGS));
129
130 g_type_class_add_private(klass, sizeof(GVirDomainDiskPrivate));
131 }
132
133 static void gvir_domain_disk_init(GVirDomainDisk *self)
134 {
135 DEBUG("Init GVirDomainDisk=%p", self);
136
137 self->priv = GVIR_DOMAIN_DISK_GET_PRIVATE(self);
138 }
139
140 static GVirDomainDiskStats *
141 gvir_domain_disk_stats_copy(GVirDomainDiskStats *stats)
142 {
143 return g_slice_dup(GVirDomainDiskStats, stats);
144 }
145
146
147 static void
148 gvir_domain_disk_stats_free(GVirDomainDiskStats *stats)
149 {
150 g_slice_free(GVirDomainDiskStats, stats);
151 }
152
153
154 G_DEFINE_BOXED_TYPE(GVirDomainDiskStats, gvir_domain_disk_stats,
155 gvir_domain_disk_stats_copy, gvir_domain_disk_stats_free)
156
157 /**
158 * gvir_domain_disk_get_stats:
159 * @self: the domain disk
160 * @err: an error
161 *
162 * This function returns network disk stats. Individual fields
163 * within the stats structure may be returned as -1, which indicates
164 * that the hypervisor does not support that particular statistic.
165 *
166 * Returns: (transfer full): the stats or %NULL in case of error
167 **/
168 GVirDomainDiskStats *gvir_domain_disk_get_stats(GVirDomainDisk *self, GError **err)
169 {
170 GVirDomainDiskStats *ret = NULL;
171 virDomainBlockStatsStruct stats;
172 GVirDomainDiskPrivate *priv;
173 virDomainPtr handle;
174
175 g_return_val_if_fail(GVIR_IS_DOMAIN_DISK(self), NULL);
176
177 priv = self->priv;
178 handle = gvir_domain_device_get_domain_handle(GVIR_DOMAIN_DEVICE(self));
179
180 if (virDomainBlockStats(handle, priv->path, &stats, sizeof (stats)) < 0) {
181 if (err)
182 *err = gvir_error_new_literal(GVIR_DOMAIN_DISK_ERROR,
183 0,
184 "Unable to get domain disk stats");
185 goto end;
186 }
187
188 ret = g_slice_new(GVirDomainDiskStats);
189 ret->rd_req = stats.rd_req;
190 ret->rd_bytes = stats.rd_bytes;
191 ret->wr_req = stats.wr_req;
192 ret->wr_bytes = stats.wr_bytes;
193 ret->errs = stats.errs;
194
195 end:
196 virDomainFree(handle);
197 return ret;
198 }
0 /*
1 * libvirt-gobject-domain-disk.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #if !defined(__LIBVIRT_GOBJECT_H__) && !defined(LIBVIRT_GOBJECT_BUILD)
23 #error "Only <libvirt-gobject/libvirt-gobject.h> can be included directly."
24 #endif
25
26 #ifndef __LIBVIRT_GOBJECT_DOMAIN_DISK_H__
27 #define __LIBVIRT_GOBJECT_DOMAIN_DISK_H__
28
29 G_BEGIN_DECLS
30
31 #define GVIR_TYPE_DOMAIN_DISK (gvir_domain_disk_get_type ())
32 #define GVIR_DOMAIN_DISK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN_DISK, GVirDomainDisk))
33 #define GVIR_DOMAIN_DISK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_DOMAIN_DISK, GVirDomainDiskClass))
34 #define GVIR_IS_DOMAIN_DISK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_DOMAIN_DISK))
35 #define GVIR_IS_DOMAIN_DISK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_DOMAIN_DISK))
36 #define GVIR_DOMAIN_DISK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_DOMAIN_DISK, GVirDomainDiskClass))
37
38 #define GVIR_TYPE_DOMAIN_DISK_STATS (gvir_domain_disk_stats_get_type())
39
40 typedef struct _GVirDomainDiskStats GVirDomainDiskStats;
41 struct _GVirDomainDiskStats
42 {
43 gint64 rd_req; /* number of read requests */
44 gint64 rd_bytes; /* number of read bytes */
45 gint64 wr_req; /* number of write requests */
46 gint64 wr_bytes; /* number of written bytes */
47 gint64 errs; /* In Xen this returns the mysterious 'oo_req'. */
48 };
49
50 typedef struct _GVirDomainDisk GVirDomainDisk;
51 typedef struct _GVirDomainDiskPrivate GVirDomainDiskPrivate;
52 typedef struct _GVirDomainDiskClass GVirDomainDiskClass;
53
54 struct _GVirDomainDisk
55 {
56 GVirDomainDevice parent;
57
58 GVirDomainDiskPrivate *priv;
59
60 /* Do not add fields to this struct */
61 };
62
63 struct _GVirDomainDiskClass
64 {
65 GVirDomainDeviceClass parent_class;
66
67 gpointer padding[20];
68 };
69
70 GType gvir_domain_disk_get_type(void);
71 GType gvir_domain_disk_stats_get_type(void);
72
73 GVirDomainDiskStats *gvir_domain_disk_get_stats(GVirDomainDisk *self, GError **err);
74
75 G_END_DECLS
76
77 #endif /* __LIBVIRT_GOBJECT_DOMAIN_DISK_H__ */
0 /*
1 * libvirt-gobject-domain-interface.c: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #include <config.h>
23
24 #include <libvirt/virterror.h>
25 #include <string.h>
26
27 #include "libvirt-glib/libvirt-glib.h"
28 #include "libvirt-gobject/libvirt-gobject.h"
29 #include "libvirt-gobject-compat.h"
30
31 #include "libvirt-gobject/libvirt-gobject-domain-device-private.h"
32
33 extern gboolean debugFlag;
34
35 #define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
36
37 #define GVIR_DOMAIN_INTERFACE_GET_PRIVATE(obj) \
38 (G_TYPE_INSTANCE_GET_PRIVATE((obj), GVIR_TYPE_DOMAIN_INTERFACE, GVirDomainInterfacePrivate))
39
40 struct _GVirDomainInterfacePrivate
41 {
42 gchar *path;
43 };
44
45 G_DEFINE_TYPE(GVirDomainInterface, gvir_domain_interface, GVIR_TYPE_DOMAIN_DEVICE);
46
47 enum {
48 PROP_0,
49 PROP_PATH,
50 };
51
52 #define GVIR_DOMAIN_INTERFACE_ERROR gvir_domain_interface_error_quark()
53
54
55 static GQuark
56 gvir_domain_interface_error_quark(void)
57 {
58 return g_quark_from_static_string("gvir-domain-interface");
59 }
60
61 static void gvir_domain_interface_get_property(GObject *object,
62 guint prop_id,
63 GValue *value,
64 GParamSpec *pspec)
65 {
66 GVirDomainInterface *self = GVIR_DOMAIN_INTERFACE(object);
67 GVirDomainInterfacePrivate *priv = self->priv;
68
69 switch (prop_id) {
70 case PROP_PATH:
71 g_value_set_string(value, priv->path);
72 break;
73
74 default:
75 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
76 }
77 }
78
79
80 static void gvir_domain_interface_set_property(GObject *object,
81 guint prop_id,
82 const GValue *value,
83 GParamSpec *pspec)
84 {
85 GVirDomainInterface *self = GVIR_DOMAIN_INTERFACE(object);
86 GVirDomainInterfacePrivate *priv = self->priv;
87
88 switch (prop_id) {
89 case PROP_PATH:
90 g_free(priv->path);
91 priv->path = g_value_dup_string(value);
92 break;
93
94 default:
95 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
96 }
97 }
98
99
100 static void gvir_domain_interface_finalize(GObject *object)
101 {
102 GVirDomainInterface *self = GVIR_DOMAIN_INTERFACE(object);
103 GVirDomainInterfacePrivate *priv = self->priv;
104
105 DEBUG("Finalize GVirDomainInterface=%p", self);
106
107 g_free(priv->path);
108
109 G_OBJECT_CLASS(gvir_domain_interface_parent_class)->finalize(object);
110 }
111
112 static void gvir_domain_interface_class_init(GVirDomainInterfaceClass *klass)
113 {
114 GObjectClass *object_class = G_OBJECT_CLASS (klass);
115
116 object_class->finalize = gvir_domain_interface_finalize;
117 object_class->get_property = gvir_domain_interface_get_property;
118 object_class->set_property = gvir_domain_interface_set_property;
119
120 g_object_class_install_property(object_class,
121 PROP_PATH,
122 g_param_spec_string("path",
123 "Path",
124 "The interface path",
125 NULL,
126 G_PARAM_READWRITE |
127 G_PARAM_CONSTRUCT_ONLY |
128 G_PARAM_STATIC_STRINGS));
129
130 g_type_class_add_private(klass, sizeof(GVirDomainInterfacePrivate));
131 }
132
133 static void gvir_domain_interface_init(GVirDomainInterface *self)
134 {
135 DEBUG("Init GVirDomainInterface=%p", self);
136
137 self->priv = GVIR_DOMAIN_INTERFACE_GET_PRIVATE(self);
138 }
139
140 static GVirDomainInterfaceStats *
141 gvir_domain_interface_stats_copy(GVirDomainInterfaceStats *stats)
142 {
143 return g_slice_dup(GVirDomainInterfaceStats, stats);
144 }
145
146
147 static void
148 gvir_domain_interface_stats_free(GVirDomainInterfaceStats *stats)
149 {
150 g_slice_free(GVirDomainInterfaceStats, stats);
151 }
152
153
154 G_DEFINE_BOXED_TYPE(GVirDomainInterfaceStats, gvir_domain_interface_stats,
155 gvir_domain_interface_stats_copy, gvir_domain_interface_stats_free)
156
157 /**
158 * gvir_domain_interface_get_stats:
159 * @self: the domain interface
160 * @err: an error
161 *
162 * This function returns network interface stats. Individual fields
163 * within the stats structure may be returned as -1, which indicates
164 * that the hypervisor does not support that particular statistic.
165 *
166 * Returns: (transfer full): the stats or %NULL in case of error
167 **/
168 GVirDomainInterfaceStats *gvir_domain_interface_get_stats(GVirDomainInterface *self, GError **err)
169 {
170 GVirDomainInterfaceStats *ret = NULL;
171 virDomainInterfaceStatsStruct stats;
172 GVirDomainInterfacePrivate *priv;
173 virDomainPtr handle;
174
175 g_return_val_if_fail(GVIR_IS_DOMAIN_INTERFACE(self), NULL);
176
177 priv = self->priv;
178 handle = gvir_domain_device_get_domain_handle(GVIR_DOMAIN_DEVICE(self));
179
180 if (virDomainInterfaceStats(handle, priv->path, &stats, sizeof (stats)) < 0) {
181 if (err)
182 *err = gvir_error_new_literal(GVIR_DOMAIN_INTERFACE_ERROR,
183 0,
184 "Unable to get domain interface stats");
185 goto end;
186 }
187
188 ret = g_slice_new(GVirDomainInterfaceStats);
189 ret->rx_bytes = stats.rx_bytes;
190 ret->rx_packets = stats.rx_packets;
191 ret->rx_errs = stats.rx_errs;
192 ret->rx_drop = stats.rx_drop;
193 ret->tx_bytes = stats.tx_bytes;
194 ret->tx_packets = stats.tx_packets;
195 ret->tx_errs = stats.tx_errs;
196 ret->tx_drop = stats.tx_drop;
197
198 end:
199 virDomainFree(handle);
200 return ret;
201 }
0 /*
1 * libvirt-gobject-domain-interface.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Author: Marc-André Lureau <marcandre.lureau@redhat.com>
20 */
21
22 #if !defined(__LIBVIRT_GOBJECT_H__) && !defined(LIBVIRT_GOBJECT_BUILD)
23 #error "Only <libvirt-gobject/libvirt-gobject.h> can be included directly."
24 #endif
25
26 #ifndef __LIBVIRT_GOBJECT_DOMAIN_INTERFACE_H__
27 #define __LIBVIRT_GOBJECT_DOMAIN_INTERFACE_H__
28
29 G_BEGIN_DECLS
30
31 #define GVIR_TYPE_DOMAIN_INTERFACE (gvir_domain_interface_get_type ())
32 #define GVIR_DOMAIN_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GVIR_TYPE_DOMAIN_INTERFACE, GVirDomainInterface))
33 #define GVIR_DOMAIN_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GVIR_TYPE_DOMAIN_INTERFACE, GVirDomainInterfaceClass))
34 #define GVIR_IS_DOMAIN_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GVIR_TYPE_DOMAIN_INTERFACE))
35 #define GVIR_IS_DOMAIN_INTERFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GVIR_TYPE_DOMAIN_INTERFACE))
36 #define GVIR_DOMAIN_INTERFACE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GVIR_TYPE_DOMAIN_INTERFACE, GVirDomainInterfaceClass))
37
38 #define GVIR_TYPE_DOMAIN_INTERFACE_STATS (gvir_domain_interface_stats_get_type())
39
40 typedef struct _GVirDomainInterfaceStats GVirDomainInterfaceStats;
41 struct _GVirDomainInterfaceStats
42 {
43 gint64 rx_bytes;
44 gint64 rx_packets;
45 gint64 rx_errs;
46 gint64 rx_drop;
47 gint64 tx_bytes;
48 gint64 tx_packets;
49 gint64 tx_errs;
50 gint64 tx_drop;
51 };
52
53 typedef struct _GVirDomainInterface GVirDomainInterface;
54 typedef struct _GVirDomainInterfacePrivate GVirDomainInterfacePrivate;
55 typedef struct _GVirDomainInterfaceClass GVirDomainInterfaceClass;
56
57 struct _GVirDomainInterface
58 {
59 GVirDomainDevice parent;
60
61 GVirDomainInterfacePrivate *priv;
62
63 /* Do not add fields to this struct */
64 };
65
66 struct _GVirDomainInterfaceClass
67 {
68 GVirDomainDeviceClass parent_class;
69
70 gpointer padding[20];
71 };
72
73 GType gvir_domain_interface_get_type(void);
74 GType gvir_domain_interface_stats_get_type(void);
75
76 GVirDomainInterfaceStats *gvir_domain_interface_get_stats(GVirDomainInterface *self, GError **err);
77
78 G_END_DECLS
79
80 #endif /* __LIBVIRT_GOBJECT_DOMAIN_INTERFACE_H__ */
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
147148 memset(priv, 0, sizeof(*priv));
148149 }
149150
150 static gpointer
151 gvir_domain_snapshot_handle_copy(gpointer src)
151 typedef struct virDomainSnapshot GVirDomainSnapshotHandle;
152
153 static GVirDomainSnapshotHandle*
154 gvir_domain_snapshot_handle_copy(GVirDomainSnapshotHandle *src)
152155 {
153156 #if 0
154 virDomainSnapshotRef(src);
157 virDomainSnapshotRef((virDomainSnapshotPtr)src);
155158 #endif
156159 return src;
157160 }
158161
159
160 GType gvir_domain_snapshot_handle_get_type(void)
161 {
162 static GType handle_type = 0;
163
164 if (G_UNLIKELY(handle_type == 0))
165 handle_type = g_boxed_type_register_static
166 ("GVirDomainSnapshotHandle",
167 gvir_domain_snapshot_handle_copy,
168 (GBoxedFreeFunc)virDomainSnapshotFree);
169
170 return handle_type;
171 }
172
162 static void
163 gvir_domain_snapshot_handle_free(GVirDomainSnapshotHandle *src)
164 {
165 virDomainSnapshotFree((virDomainSnapshotPtr)src);
166 }
167
168 G_DEFINE_BOXED_TYPE(GVirDomainSnapshotHandle, gvir_domain_snapshot_handle,
169 gvir_domain_snapshot_handle_copy, gvir_domain_snapshot_handle_free)
173170
174171 const gchar *gvir_domain_snapshot_get_name(GVirDomainSnapshot *snapshot)
175172 {
186183 if (snapshot || !snapshot)
187184 return NULL;
188185 #endif
186
187 g_return_val_if_reached(NULL);
189188 }
190189
191190
210209 return NULL;
211210 }
212211
212 #if 0
213213 GVirConfigDomainSnapshot *conf = gvir_config_domain_snapshot_new(xml);
214214
215215 g_free(xml);
216216 return conf;
217 }
217 #endif
218 return NULL;
219 }
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
3839 struct _GVirDomainPrivate
3940 {
4041 virDomainPtr handle;
42 gchar uuid[VIR_UUID_STRING_BUFLEN];
4143 };
4244
4345 G_DEFINE_TYPE(GVirDomain, gvir_domain, G_TYPE_OBJECT);
4850 PROP_HANDLE,
4951 };
5052
53 enum {
54 VIR_STARTED,
55 VIR_SUSPENDED,
56 VIR_RESUMED,
57 VIR_STOPPED,
58 VIR_UPDATED,
59 LAST_SIGNAL
60 };
61
62 static gint signals[LAST_SIGNAL];
5163
5264 #define GVIR_DOMAIN_ERROR gvir_domain_error_quark()
5365
111123 }
112124
113125
126 static void gvir_domain_constructed(GObject *object)
127 {
128 GVirDomain *conn = GVIR_DOMAIN(object);
129 GVirDomainPrivate *priv = conn->priv;
130
131 G_OBJECT_CLASS(gvir_domain_parent_class)->constructed(object);
132
133 /* xxx we may want to turn this into an initable */
134 if (virDomainGetUUIDString(priv->handle, priv->uuid) < 0) {
135 g_error("Failed to get domain UUID on %p", priv->handle);
136 }
137 }
138
139
114140 static void gvir_domain_class_init(GVirDomainClass *klass)
115141 {
116142 GObjectClass *object_class = G_OBJECT_CLASS (klass);
118144 object_class->finalize = gvir_domain_finalize;
119145 object_class->get_property = gvir_domain_get_property;
120146 object_class->set_property = gvir_domain_set_property;
147 object_class->constructed = gvir_domain_constructed;
121148
122149 g_object_class_install_property(object_class,
123150 PROP_HANDLE,
132159 G_PARAM_STATIC_NICK |
133160 G_PARAM_STATIC_BLURB));
134161
162 signals[VIR_STARTED] = g_signal_new("started",
163 G_OBJECT_CLASS_TYPE(object_class),
164 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE |
165 G_SIGNAL_NO_HOOKS | G_SIGNAL_DETAILED,
166 G_STRUCT_OFFSET(GVirDomainClass, started),
167 NULL, NULL,
168 g_cclosure_marshal_VOID__VOID,
169 G_TYPE_NONE,
170 0);
171
172 signals[VIR_SUSPENDED] = g_signal_new("suspended",
173 G_OBJECT_CLASS_TYPE(object_class),
174 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE |
175 G_SIGNAL_NO_HOOKS | G_SIGNAL_DETAILED,
176 G_STRUCT_OFFSET(GVirDomainClass, suspended),
177 NULL, NULL,
178 g_cclosure_marshal_VOID__VOID,
179 G_TYPE_NONE,
180 0);
181
182 signals[VIR_RESUMED] = g_signal_new("resumed",
183 G_OBJECT_CLASS_TYPE(object_class),
184 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE |
185 G_SIGNAL_NO_HOOKS | G_SIGNAL_DETAILED,
186 G_STRUCT_OFFSET(GVirDomainClass, resumed),
187 NULL, NULL,
188 g_cclosure_marshal_VOID__VOID,
189 G_TYPE_NONE,
190 0);
191
192 signals[VIR_STOPPED] = g_signal_new("stopped",
193 G_OBJECT_CLASS_TYPE(object_class),
194 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE |
195 G_SIGNAL_NO_HOOKS | G_SIGNAL_DETAILED,
196 G_STRUCT_OFFSET(GVirDomainClass, stopped),
197 NULL, NULL,
198 g_cclosure_marshal_VOID__VOID,
199 G_TYPE_NONE,
200 0);
201
202 signals[VIR_UPDATED] = g_signal_new("updated",
203 G_OBJECT_CLASS_TYPE(object_class),
204 G_SIGNAL_RUN_LAST | G_SIGNAL_NO_RECURSE | G_SIGNAL_NO_HOOKS,
205 G_STRUCT_OFFSET(GVirDomainClass, updated),
206 NULL, NULL,
207 g_cclosure_marshal_VOID__VOID,
208 G_TYPE_NONE,
209 0);
210
135211 g_type_class_add_private(klass, sizeof(GVirDomainPrivate));
136212 }
137213
147223 memset(priv, 0, sizeof(*priv));
148224 }
149225
150 static gpointer
151 gvir_domain_handle_copy(gpointer src)
152 {
153 virDomainRef(src);
226 typedef struct virDomain GVirDomainHandle;
227
228 static GVirDomainHandle*
229 gvir_domain_handle_copy(GVirDomainHandle *src)
230 {
231 virDomainRef((virDomainPtr)src);
154232 return src;
155233 }
156234
157
158 GType gvir_domain_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirDomainHandle",
165 gvir_domain_handle_copy,
166 (GBoxedFreeFunc)virDomainFree);
167
168 return handle_type;
169 }
235 static void
236 gvir_domain_handle_free(GVirDomainHandle *src)
237 {
238 virDomainFree((virDomainPtr)src);
239 }
240
241 G_DEFINE_BOXED_TYPE(GVirDomainHandle, gvir_domain_handle,
242 gvir_domain_handle_copy, gvir_domain_handle_free)
170243
171244 static GVirDomainInfo *
172245 gvir_domain_info_copy(GVirDomainInfo *info)
182255 }
183256
184257
185 GType gvir_domain_info_get_type(void)
186 {
187 static GType info_type = 0;
188
189 if (G_UNLIKELY(info_type == 0))
190 info_type = g_boxed_type_register_static
191 ("GVirDomainInfo",
192 (GBoxedCopyFunc)gvir_domain_info_copy,
193 (GBoxedFreeFunc)gvir_domain_info_free);
194
195 return info_type;
196 }
258 G_DEFINE_BOXED_TYPE(GVirDomainInfo, gvir_domain_info,
259 gvir_domain_info_copy, gvir_domain_info_free)
197260
198261
199262 const gchar *gvir_domain_get_name(GVirDomain *dom)
209272 }
210273
211274
212 gchar *gvir_domain_get_uuid(GVirDomain *dom)
213 {
214 GVirDomainPrivate *priv = dom->priv;
215 char *uuid = g_new(gchar, VIR_UUID_STRING_BUFLEN);
216
217 if (virDomainGetUUIDString(priv->handle, uuid) < 0) {
218 g_error("Failed to get domain UUID on %p", priv->handle);
219 }
220 return uuid;
275 const gchar *gvir_domain_get_uuid(GVirDomain *dom)
276 {
277 g_return_val_if_fail(GVIR_IS_DOMAIN(dom), NULL);
278
279 return dom->priv->uuid;
221280 }
222281
223282 gint gvir_domain_get_id(GVirDomain *dom,
257316 }
258317
259318 /**
319 * gvir_domain_resume:
320 * @dom: the domain
321 *
322 * Returns: TRUE on success
323 */
324 gboolean gvir_domain_resume(GVirDomain *dom,
325 GError **err)
326 {
327 GVirDomainPrivate *priv = dom->priv;
328
329 if (virDomainResume(priv->handle) < 0) {
330 *err = gvir_error_new_literal(GVIR_DOMAIN_ERROR,
331 0,
332 "Unable to resume domain");
333 return FALSE;
334 }
335
336 return TRUE;
337 }
338
339 /**
260340 * gvir_domain_stop:
261341 * @dom: the domain
262342 * @flags: the flags
360440 return NULL;
361441 }
362442
363 GVirConfigDomain *conf = gvir_config_domain_new(xml);
364
443 GVirConfigDomain *conf = gvir_config_domain_new_from_xml(xml, err);
365444 g_free(xml);
445 if ((err != NULL) && (*err != NULL))
446 return NULL;
447
366448 return conf;
367449 }
368450
5757 {
5858 GObjectClass parent_class;
5959
60 void (*vir_domain_started)(GVirDomain *dom);
61 void (*vir_domain_stopped)(GVirDomain *dom);
60 /* signals */
61 void (*started)(GVirDomain *dom);
62 void (*stopped)(GVirDomain *dom);
63 void (*resumed)(GVirDomain *dom);
64 void (*updated)(GVirDomain *dom);
65 void (*suspended)(GVirDomain *dom);
6266
6367 gpointer padding[20];
6468 };
9094 GType gvir_domain_handle_get_type(void);
9195
9296 const gchar *gvir_domain_get_name(GVirDomain *dom);
93 gchar *gvir_domain_get_uuid(GVirDomain *dom);
97 const gchar *gvir_domain_get_uuid(GVirDomain *dom);
9498 gint gvir_domain_get_id(GVirDomain *dom,
9599 GError **err);
96100
97101 gboolean gvir_domain_start(GVirDomain *dom,
98102 guint64 flags,
99103 GError **err);
104 gboolean gvir_domain_resume(GVirDomain *dom,
105 GError **err);
100106 gboolean gvir_domain_stop(GVirDomain *dom,
101107 guint64 flags,
102108 GError **err);
0 /*
1 * libvirt-gobject-input-stream.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Daniel P. Berrange <berrange@redhat.com>
20 * Marc-André Lureau <marcandre.lureau@redhat.com>
21 */
22
23 #include <config.h>
24
25 #include <libvirt/virterror.h>
26 #include <string.h>
27
28 #include "libvirt-glib/libvirt-glib.h"
29 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-input-stream.h"
31
32 extern gboolean debugFlag;
33
34 #define DEBUG(fmt, ...) do { if (G_UNLIKELY(debugFlag)) g_debug(fmt, ## __VA_ARGS__); } while (0)
35
36 #define gvir_input_stream_get_type _gvir_input_stream_get_type
37 G_DEFINE_TYPE(GVirInputStream, gvir_input_stream, G_TYPE_INPUT_STREAM);
38
39 enum
40 {
41 PROP_0,
42 PROP_STREAM
43 };
44
45 struct _GVirInputStreamPrivate
46 {
47 GVirStream *stream;
48
49 /* pending operation metadata */
50 GSimpleAsyncResult *result;
51 GCancellable *cancellable;
52 gpointer buffer;
53 gsize count;
54 };
55
56 static void gvir_input_stream_get_property(GObject *object,
57 guint prop_id,
58 GValue *value,
59 GParamSpec *pspec)
60 {
61 GVirInputStream *stream = GVIR_INPUT_STREAM(object);
62
63 switch (prop_id) {
64 case PROP_STREAM:
65 g_value_set_object(value, stream->priv->stream);
66 break;
67
68 default:
69 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
70 }
71 }
72
73 static void gvir_input_stream_set_property(GObject *object,
74 guint prop_id,
75 const GValue *value,
76 GParamSpec *pspec)
77 {
78 GVirInputStream *stream = GVIR_INPUT_STREAM(object);
79
80 switch (prop_id) {
81 case PROP_STREAM:
82 stream->priv->stream = g_value_get_object(value);
83 break;
84
85 default:
86 G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
87 }
88 }
89
90 static void gvir_input_stream_finalize(GObject *object)
91 {
92 GVirInputStream *stream = GVIR_INPUT_STREAM(object);
93
94 DEBUG("Finalize input stream GVirStream=%p", stream->priv->stream);
95 stream->priv->stream = NULL; // unowned
96
97 if (G_OBJECT_CLASS(gvir_input_stream_parent_class)->finalize)
98 (*G_OBJECT_CLASS(gvir_input_stream_parent_class)->finalize)(object);
99 }
100
101 static void
102 gvir_input_stream_read_ready (G_GNUC_UNUSED virStreamPtr st,
103 int events, void *opaque)
104 {
105 GVirInputStream *stream = GVIR_INPUT_STREAM(opaque);
106 GVirInputStreamPrivate *priv = stream->priv;
107 GSimpleAsyncResult *simple;
108 GError *error = NULL;
109 gssize result;
110
111 g_return_if_fail(events & VIR_STREAM_EVENT_READABLE);
112
113 result = gvir_stream_receive(priv->stream, priv->buffer, priv->count,
114 priv->cancellable, &error);
115
116 if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK)) {
117 g_warn_if_reached();
118 return;
119 }
120
121 simple = stream->priv->result;
122 stream->priv->result = NULL;
123
124 if (result >= 0)
125 g_simple_async_result_set_op_res_gssize(simple, result);
126
127 if (error)
128 g_simple_async_result_take_error(simple, error);
129
130 if (priv->cancellable) {
131 g_object_unref(stream->priv->cancellable);
132 priv->cancellable = NULL;
133 }
134
135 g_simple_async_result_complete(simple);
136 g_object_unref(simple);
137
138 return;
139 }
140
141 static void gvir_input_stream_read_async(GInputStream *stream,
142 void *buffer,
143 gsize count,
144 G_GNUC_UNUSED int io_priority,
145 GCancellable *cancellable,
146 GAsyncReadyCallback callback,
147 gpointer user_data)
148 {
149 GVirInputStream *input_stream = GVIR_INPUT_STREAM(stream);
150 virStreamPtr handle;
151
152 g_return_if_fail(GVIR_IS_INPUT_STREAM(stream));
153 g_return_if_fail(input_stream->priv->result == NULL);
154
155 g_object_get(input_stream->priv->stream, "handle", &handle, NULL);
156
157 if (virStreamEventAddCallback(handle, VIR_STREAM_EVENT_READABLE,
158 gvir_input_stream_read_ready, stream, NULL) < 0) {
159 g_simple_async_report_error_in_idle(G_OBJECT(stream),
160 callback,
161 user_data,
162 G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
163 "Couldn't add event callback %s",
164 G_STRFUNC);
165 goto end;
166 }
167
168 input_stream->priv->result =
169 g_simple_async_result_new(G_OBJECT(stream), callback, user_data,
170 gvir_input_stream_read_async);
171 if (cancellable)
172 g_object_ref(cancellable);
173 input_stream->priv->cancellable = cancellable;
174 input_stream->priv->buffer = buffer;
175 input_stream->priv->count = count;
176
177 end:
178 virStreamFree(handle);
179 }
180
181
182 static gssize gvir_input_stream_read_finish(GInputStream *stream,
183 GAsyncResult *result,
184 G_GNUC_UNUSED GError **error)
185 {
186 GVirInputStream *input_stream = GVIR_INPUT_STREAM(stream);
187 GSimpleAsyncResult *simple;
188 virStreamPtr handle;
189 gssize count;
190
191 g_return_val_if_fail(GVIR_IS_INPUT_STREAM(stream), -1);
192 g_object_get(input_stream->priv->stream, "handle", &handle, NULL);
193
194 simple = G_SIMPLE_ASYNC_RESULT(result);
195
196 g_warn_if_fail(g_simple_async_result_get_source_tag(simple) == gvir_input_stream_read_async);
197
198 count = g_simple_async_result_get_op_res_gssize(simple);
199
200 virStreamEventRemoveCallback(handle);
201 virStreamFree(handle);
202
203 return count;
204 }
205
206
207 static void gvir_input_stream_class_init(GVirInputStreamClass *klass)
208 {
209 GObjectClass *gobject_class = G_OBJECT_CLASS(klass);
210 GInputStreamClass *ginputstream_class = G_INPUT_STREAM_CLASS(klass);
211
212 g_type_class_add_private(klass, sizeof(GVirInputStreamPrivate));
213
214 gobject_class->finalize = gvir_input_stream_finalize;
215 gobject_class->get_property = gvir_input_stream_get_property;
216 gobject_class->set_property = gvir_input_stream_set_property;
217
218 ginputstream_class->read_fn = NULL;
219 ginputstream_class->read_async = gvir_input_stream_read_async;
220 ginputstream_class->read_finish = gvir_input_stream_read_finish;
221
222 g_object_class_install_property(gobject_class, PROP_STREAM,
223 g_param_spec_object("stream",
224 "stream",
225 "GVirStream",
226 GVIR_TYPE_STREAM, G_PARAM_CONSTRUCT_ONLY |
227 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
228 }
229
230 static void gvir_input_stream_init(GVirInputStream *stream)
231 {
232 stream->priv = G_TYPE_INSTANCE_GET_PRIVATE(stream, GVIR_TYPE_INPUT_STREAM, GVirInputStreamPrivate);
233 }
234
235 GVirInputStream* _gvir_input_stream_new(GVirStream *stream)
236 {
237 return GVIR_INPUT_STREAM(g_object_new(GVIR_TYPE_INPUT_STREAM, "stream", stream, NULL));
238 }
0 /*
1 * libvirt-gobject-input-stream.h: libvirt gobject integration
2 *
3 * Copyright (C) 2011 Red Hat
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library 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 GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * Authors: Daniel P. Berrange <berrange@redhat.com>
20 * Marc-André Lureau <marcandre.lureau@redhat.com>
21 */
22
23 #if !defined(__LIBVIRT_GOBJECT_H__) && !defined(LIBVIRT_GOBJECT_BUILD)
24 #error "Only <libvirt-gobject/libvirt-gobject.h> can be included directly."
25 #endif
26
27 #ifndef __LIBVIRT_GOBJECT_INPUT_STREAM_H__
28 #define __LIBVIRT_GOBJECT_INPUT_STREAM_H__
29
30 #include <gio/gio.h>
31 #include "libvirt-gobject-stream.h"
32
33 G_BEGIN_DECLS
34
35 #define GVIR_TYPE_INPUT_STREAM (_gvir_input_stream_get_type ())
36 #define GVIR_INPUT_STREAM(inst) (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
37 GVIR_TYPE_INPUT_STREAM, GVirInputStream))
38 #define GVIR_INPUT_STREAM_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), \
39 GVIR_TYPE_INPUT_STREAM, GVirInputStreamClass))
40 #define GVIR_IS_INPUT_STREAM(inst) (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
41 GVIR_TYPE_INPUT_STREAM))
42 #define GVIR_IS_INPUT_STREAM_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), \
43 GVIR_TYPE_INPUT_STREAM))
44 #define GVIR_INPUT_STREAM_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), \
45 GVIR_TYPE_INPUT_STREAM, GVirInputStreamClass))
46
47 typedef struct _GVirInputStreamPrivate GVirInputStreamPrivate;
48 typedef struct _GVirInputStreamClass GVirInputStreamClass;
49 typedef struct _GVirInputStream GVirInputStream;
50
51 struct _GVirInputStreamClass
52 {
53 GInputStreamClass parent_class;
54 };
55
56 struct _GVirInputStream
57 {
58 GInputStream parent_instance;
59 GVirInputStreamPrivate *priv;
60 };
61
62 GType _gvir_input_stream_get_type (void) G_GNUC_CONST;
63 GVirInputStream * _gvir_input_stream_new (GVirStream *stream);
64
65 G_END_DECLS
66
67 #endif /* __LIBVIRT_GOBJECT_INPUT_STREAM_H__ */
147147 memset(priv, 0, sizeof(*priv));
148148 }
149149
150 static gpointer
151 gvir_interface_handle_copy(gpointer src)
152 {
153 virInterfaceRef(src);
150 typedef struct virInterface GVirInterfaceHandle;
151
152 static GVirInterfaceHandle*
153 gvir_interface_handle_copy(GVirInterfaceHandle *src)
154 {
155 virInterfaceRef((virInterfacePtr)src);
154156 return src;
155157 }
156158
157
158 GType gvir_interface_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirInterfaceHandle",
165 gvir_interface_handle_copy,
166 (GBoxedFreeFunc)virInterfaceFree);
167
168 return handle_type;
169 }
170
159 static void
160 gvir_interface_handle_free(GVirInterfaceHandle *src)
161 {
162 virInterfaceFree((virInterfacePtr)src);
163 }
164
165 G_DEFINE_BOXED_TYPE(GVirInterfaceHandle, gvir_interface_handle,
166 gvir_interface_handle_copy, gvir_interface_handle_free)
171167
172168 const gchar *gvir_interface_get_name(GVirInterface *iface)
173169 {
202198 return NULL;
203199 }
204200
201 #if 0
205202 GVirConfigInterface *conf = gvir_config_interface_new(xml);
206203
207204 g_free(xml);
208205 return conf;
209 }
206 #endif
207 return NULL;
208 }
8787
8888 object_class->finalize = gvir_manager_finalize;
8989
90 g_signal_new("vir-connection-added",
90 g_signal_new("connection-added",
9191 G_OBJECT_CLASS_TYPE(object_class),
9292 G_SIGNAL_RUN_FIRST,
93 G_STRUCT_OFFSET(GVirManagerClass, vir_connection_added),
93 G_STRUCT_OFFSET(GVirManagerClass, connection_added),
9494 NULL, NULL,
9595 g_cclosure_marshal_VOID__OBJECT,
9696 G_TYPE_NONE,
9797 1,
9898 GVIR_TYPE_CONNECTION);
99 g_signal_new("vir-connection-removed",
99 g_signal_new("connection-removed",
100100 G_OBJECT_CLASS_TYPE(object_class),
101101 G_SIGNAL_RUN_FIRST,
102 G_STRUCT_OFFSET(GVirManagerClass, vir_connection_removed),
102 G_STRUCT_OFFSET(GVirManagerClass, connection_removed),
103103 NULL, NULL,
104104 g_cclosure_marshal_VOID__OBJECT,
105105 G_TYPE_NONE,
144144 /* Hold extra reference while emitting signal */
145145 g_object_ref(conn);
146146 g_mutex_unlock(priv->lock);
147 g_signal_emit_by_name(man, "vir-connection-added", conn);
147 g_signal_emit_by_name(man, "connection-added", conn);
148148 g_object_unref(conn);
149149 }
150150
157157 priv->connections = g_list_remove(priv->connections, conn);
158158 g_mutex_unlock(priv->lock);
159159
160 g_signal_emit_by_name(man, "vir-connection-removed", conn);
160 g_signal_emit_by_name(man, "connection-removed", conn);
161161 g_object_unref(conn);
162162 }
163163
5454 GObjectClass parent_class;
5555
5656 /* Signals */
57 void (*vir_connection_added)(GVirManager *man, GVirConnection *conn);
58 void (*vir_connection_removed)(GVirManager *man, GVirConnection *conn);
57 void (*connection_added)(GVirManager *man, GVirConnection *conn);
58 void (*connection_removed)(GVirManager *man, GVirConnection *conn);
5959
6060 gpointer padding[20];
6161 };
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
3839 struct _GVirNetworkFilterPrivate
3940 {
4041 virNWFilterPtr handle;
42 gchar uuid[VIR_UUID_STRING_BUFLEN];
4143 };
4244
4345 G_DEFINE_TYPE(GVirNetworkFilter, gvir_network_filter, G_TYPE_OBJECT);
6365 GValue *value,
6466 GParamSpec *pspec)
6567 {
66 GVirNetworkFilter *conn = GVIR_NETWORK_FILTER(object);
67 GVirNetworkFilterPrivate *priv = conn->priv;
68 GVirNetworkFilter *nf = GVIR_NETWORK_FILTER(object);
69 GVirNetworkFilterPrivate *priv = nf->priv;
6870
6971 switch (prop_id) {
7072 case PROP_HANDLE:
8284 const GValue *value,
8385 GParamSpec *pspec)
8486 {
85 GVirNetworkFilter *conn = GVIR_NETWORK_FILTER(object);
86 GVirNetworkFilterPrivate *priv = conn->priv;
87 GVirNetworkFilter *nf = GVIR_NETWORK_FILTER(object);
88 GVirNetworkFilterPrivate *priv = nf->priv;
8789
8890 switch (prop_id) {
8991 case PROP_HANDLE:
100102
101103 static void gvir_network_filter_finalize(GObject *object)
102104 {
103 GVirNetworkFilter *conn = GVIR_NETWORK_FILTER(object);
104 GVirNetworkFilterPrivate *priv = conn->priv;
105
106 DEBUG("Finalize GVirNetworkFilter=%p", conn);
105 GVirNetworkFilter *nf = GVIR_NETWORK_FILTER(object);
106 GVirNetworkFilterPrivate *priv = nf->priv;
107
108 DEBUG("Finalize GVirNetworkFilter=%p", nf);
107109
108110 virNWFilterFree(priv->handle);
109111
110112 G_OBJECT_CLASS(gvir_network_filter_parent_class)->finalize(object);
113 }
114
115
116 static void gvir_network_filter_constructed(GObject *object)
117 {
118 GVirNetworkFilter *nf = GVIR_NETWORK_FILTER(object);
119 GVirNetworkFilterPrivate *priv = nf->priv;
120
121 G_OBJECT_CLASS(gvir_network_filter_parent_class)->constructed(object);
122
123 /* xxx we may want to turn this into an initable */
124 if (virNWFilterGetUUIDString(priv->handle, priv->uuid) < 0) {
125 g_error("Failed to get network filter UUID on %p", priv->handle);
126 }
111127 }
112128
113129
118134 object_class->finalize = gvir_network_filter_finalize;
119135 object_class->get_property = gvir_network_filter_get_property;
120136 object_class->set_property = gvir_network_filter_set_property;
137 object_class->constructed = gvir_network_filter_constructed;
121138
122139 g_object_class_install_property(object_class,
123140 PROP_HANDLE,
147164 memset(priv, 0, sizeof(*priv));
148165 }
149166
150 static gpointer
151 gvir_network_filter_handle_copy(gpointer src)
152 {
153 virNWFilterRef(src);
167 typedef struct virNWFilter GVirNetworkFilterHandle;
168
169 static GVirNetworkFilterHandle*
170 gvir_network_filter_handle_copy(GVirNetworkFilterHandle *src)
171 {
172 virNWFilterRef((virNWFilterPtr)src);
154173 return src;
155174 }
156175
157
158 GType gvir_network_filter_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirNetworkFilterHandle",
165 gvir_network_filter_handle_copy,
166 (GBoxedFreeFunc)virNWFilterFree);
167
168 return handle_type;
169 }
170
176 static void
177 gvir_network_filter_handle_free(GVirNetworkFilterHandle *src)
178 {
179 virNWFilterFree((virNWFilterPtr)src);
180 }
181
182 G_DEFINE_BOXED_TYPE(GVirNetworkFilterHandle, gvir_network_filter_handle,
183 gvir_network_filter_handle_copy, gvir_network_filter_handle_free)
171184
172185 const gchar *gvir_network_filter_get_name(GVirNetworkFilter *filter)
173186 {
182195 }
183196
184197
185 gchar *gvir_network_filter_get_uuid(GVirNetworkFilter *filter)
186 {
187 GVirNetworkFilterPrivate *priv = filter->priv;
188 char *uuid = g_new(gchar, VIR_UUID_STRING_BUFLEN);
189
190 if (virNWFilterGetUUIDString(priv->handle, uuid) < 0) {
191 g_error("Failed to get network_filter UUID on %p", priv->handle);
192 }
193 return uuid;
198 const gchar *gvir_network_filter_get_uuid(GVirNetworkFilter *filter)
199 {
200 g_return_val_if_fail(GVIR_IS_NETWORK_FILTER(filter), NULL);
201
202 return filter->priv->uuid;
194203 }
195204
196205
215224 return NULL;
216225 }
217226
227 #if 0
218228 GVirConfigNetworkFilter *conf = gvir_config_network_filter_new(xml);
219229
220230 g_free(xml);
221231 return conf;
222 }
232 #endif
233 return NULL;
234 }
6161 GType gvir_network_filter_handle_get_type(void);
6262
6363 const gchar *gvir_network_filter_get_name(GVirNetworkFilter *filter);
64 gchar *gvir_network_filter_get_uuid(GVirNetworkFilter *filter);
64 const gchar *gvir_network_filter_get_uuid(GVirNetworkFilter *filter);
6565
6666 GVirConfigNetworkFilter *gvir_network_filter_get_config
6767 (GVirNetworkFilter *filter,
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
3839 struct _GVirNetworkPrivate
3940 {
4041 virNetworkPtr handle;
42 gchar uuid[VIR_UUID_STRING_BUFLEN];
4143 };
4244
4345 G_DEFINE_TYPE(GVirNetwork, gvir_network, G_TYPE_OBJECT);
110112 G_OBJECT_CLASS(gvir_network_parent_class)->finalize(object);
111113 }
112114
115 static void gvir_network_constructed(GObject *object)
116 {
117 GVirNetwork *net = GVIR_NETWORK(object);
118 GVirNetworkPrivate *priv = net->priv;
119
120 G_OBJECT_CLASS(gvir_network_parent_class)->constructed(object);
121
122 /* xxx we may want to turn this into an initable */
123 if (virNetworkGetUUIDString(priv->handle, priv->uuid) < 0) {
124 g_error("Failed to get network UUID on %p", priv->handle);
125 }
126 }
113127
114128 static void gvir_network_class_init(GVirNetworkClass *klass)
115129 {
118132 object_class->finalize = gvir_network_finalize;
119133 object_class->get_property = gvir_network_get_property;
120134 object_class->set_property = gvir_network_set_property;
135 object_class->constructed = gvir_network_constructed;
121136
122137 g_object_class_install_property(object_class,
123138 PROP_HANDLE,
147162 memset(priv, 0, sizeof(*priv));
148163 }
149164
150 static gpointer
151 gvir_network_handle_copy(gpointer src)
152 {
153 virNetworkRef(src);
165 typedef struct virNetwork GVirNetworkHandle;
166
167 static GVirNetworkHandle*
168 gvir_network_handle_copy(GVirNetworkHandle *src)
169 {
170 virNetworkRef((virNetworkPtr)src);
154171 return src;
155172 }
156173
157
158 GType gvir_network_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirNetworkHandle",
165 gvir_network_handle_copy,
166 (GBoxedFreeFunc)virNetworkFree);
167
168 return handle_type;
169 }
170
174 static void
175 gvir_network_handle_free(GVirNetworkHandle *src)
176 {
177 virNetworkFree((virNetworkPtr)src);
178 }
179
180 G_DEFINE_BOXED_TYPE(GVirNetworkHandle, gvir_network_handle,
181 gvir_network_handle_copy, gvir_network_handle_free)
171182
172183 const gchar *gvir_network_get_name(GVirNetwork *network)
173184 {
182193 }
183194
184195
185 gchar *gvir_network_get_uuid(GVirNetwork *network)
186 {
187 GVirNetworkPrivate *priv = network->priv;
188 char *uuid = g_new(gchar, VIR_UUID_STRING_BUFLEN);
189
190 if (virNetworkGetUUIDString(priv->handle, uuid) < 0) {
191 g_error("Failed to get network UUID on %p", priv->handle);
192 }
193 return uuid;
196 const gchar *gvir_network_get_uuid(GVirNetwork *network)
197 {
198 g_return_val_if_fail(GVIR_IS_NETWORK(network), NULL);
199
200 return network->priv->uuid;
194201 }
195202
196203 /**
213220 return NULL;
214221 }
215222
223 #if 0
216224 GVirConfigNetwork *conf = gvir_config_network_new(xml);
217225
218226 g_free(xml);
219227 return conf;
220 }
228 #endif
229 return NULL;
230 }
5454 {
5555 GObjectClass parent_class;
5656
57 void (*vir_network_started)(GVirNetwork *net);
58 void (*vir_network_stopped)(GVirNetwork *net);
57 void (*started)(GVirNetwork *net);
58 void (*stopped)(GVirNetwork *net);
5959
6060 gpointer padding[20];
6161 };
6565 GType gvir_network_handle_get_type(void);
6666
6767 const gchar *gvir_network_get_name(GVirNetwork *network);
68 gchar *gvir_network_get_uuid(GVirNetwork *network);
68 const gchar *gvir_network_get_uuid(GVirNetwork *network);
6969
7070 GVirConfigNetwork *gvir_network_get_config(GVirNetwork *network,
7171 guint64 flags,
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
147148 memset(priv, 0, sizeof(*priv));
148149 }
149150
150 static gpointer
151 gvir_node_device_handle_copy(gpointer src)
152 {
153 virNodeDeviceRef(src);
151 typedef struct virNodeDevice GVirNodeDeviceHandle;
152
153 static GVirNodeDeviceHandle*
154 gvir_node_device_handle_copy(GVirNodeDeviceHandle *src)
155 {
156 virNodeDeviceRef((virNodeDevicePtr)src);
154157 return src;
155158 }
156159
157
158 GType gvir_node_device_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirNodeDeviceHandle",
165 gvir_node_device_handle_copy,
166 (GBoxedFreeFunc)virNodeDeviceFree);
167
168 return handle_type;
169 }
170
160 static void
161 gvir_node_device_handle_free(GVirNodeDeviceHandle *src)
162 {
163 virNodeDeviceFree((virNodeDevicePtr)src);
164 }
165
166 G_DEFINE_BOXED_TYPE(GVirNodeDeviceHandle, gvir_node_device_handle,
167 gvir_node_device_handle_copy, gvir_node_device_handle_free)
171168
172169 const gchar *gvir_node_device_get_name(GVirNodeDevice *device)
173170 {
202199 return NULL;
203200 }
204201
202 #if 0
205203 GVirConfigNodeDevice *conf = gvir_config_node_device_new(xml);
206204
207205 g_free(xml);
208206 return conf;
209 }
207 #endif
208
209 return NULL;
210 }
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
3839 struct _GVirSecretPrivate
3940 {
4041 virSecretPtr handle;
42 gchar uuid[VIR_UUID_STRING_BUFLEN];
4143 };
4244
4345 G_DEFINE_TYPE(GVirSecret, gvir_secret, G_TYPE_OBJECT);
111113 }
112114
113115
116 static void gvir_secret_constructed(GObject *object)
117 {
118 GVirSecret *conn = GVIR_SECRET(object);
119 GVirSecretPrivate *priv = conn->priv;
120
121 G_OBJECT_CLASS(gvir_secret_parent_class)->constructed(object);
122
123 /* xxx we may want to turn this into an initable */
124 if (virSecretGetUUIDString(priv->handle, priv->uuid) < 0) {
125 g_error("Failed to get secret UUID on %p", priv->handle);
126 }
127 }
128
129
114130 static void gvir_secret_class_init(GVirSecretClass *klass)
115131 {
116132 GObjectClass *object_class = G_OBJECT_CLASS (klass);
118134 object_class->finalize = gvir_secret_finalize;
119135 object_class->get_property = gvir_secret_get_property;
120136 object_class->set_property = gvir_secret_set_property;
137 object_class->constructed = gvir_secret_constructed;
121138
122139 g_object_class_install_property(object_class,
123140 PROP_HANDLE,
147164 memset(priv, 0, sizeof(*priv));
148165 }
149166
150 static gpointer
151 gvir_secret_handle_copy(gpointer src)
152 {
153 virSecretRef(src);
167 typedef struct virSecret GVirSecretHandle;
168
169 static GVirSecretHandle*
170 gvir_secret_handle_copy(GVirSecretHandle *src)
171 {
172 virSecretRef((virSecretPtr)src);
154173 return src;
155174 }
156175
157
158 GType gvir_secret_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirSecretHandle",
165 gvir_secret_handle_copy,
166 (GBoxedFreeFunc)virSecretFree);
167
168 return handle_type;
169 }
170
171
172 gchar *gvir_secret_get_uuid(GVirSecret *secret)
173 {
174 GVirSecretPrivate *priv = secret->priv;
175 char *uuid = g_new(gchar, VIR_UUID_STRING_BUFLEN);
176
177 if (virSecretGetUUIDString(priv->handle, uuid) < 0) {
178 g_error("Failed to get secret UUID on %p", priv->handle);
179 }
180 return uuid;
176 static void
177 gvir_secret_handle_free(GVirSecretHandle *src)
178 {
179 virSecretFree((virSecretPtr)src);
180 }
181
182 G_DEFINE_BOXED_TYPE(GVirSecretHandle, gvir_secret_handle,
183 gvir_secret_handle_copy, gvir_secret_handle_free)
184
185 const gchar *gvir_secret_get_uuid(GVirSecret *secret)
186 {
187 g_return_val_if_fail(GVIR_IS_SECRET(secret), NULL);
188
189 return secret->priv->uuid;
181190 }
182191
183192
201210 return NULL;
202211 }
203212
213 #if 0
204214 GVirConfigSecret *conf = gvir_config_secret_new(xml);
205215
206216 g_free(xml);
207217 return conf;
208 }
218 #endif
219
220 return NULL;
221 }
6262 GType gvir_secret_handle_get_type(void);
6363
6464 const gchar *gvir_secret_get_name(GVirSecret *secret);
65 gchar *gvir_secret_get_uuid(GVirSecret *secret);
65 const gchar *gvir_secret_get_uuid(GVirSecret *secret);
6666
6767 GVirConfigSecret *gvir_secret_get_config(GVirSecret *secret,
6868 guint64 flags,
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
4142 virStoragePoolPtr handle;
4243
4344 GHashTable *volumes;
45 gchar uuid[VIR_UUID_STRING_BUFLEN];
4446 };
4547
4648 G_DEFINE_TYPE(GVirStoragePool, gvir_storage_pool, G_TYPE_OBJECT);
121123 }
122124
123125
126 static void gvir_storage_pool_constructed(GObject *object)
127 {
128 GVirStoragePool *conn = GVIR_STORAGE_POOL(object);
129 GVirStoragePoolPrivate *priv = conn->priv;
130
131 G_OBJECT_CLASS(gvir_storage_pool_parent_class)->constructed(object);
132
133 /* xxx we may want to turn this into an initable */
134 if (virStoragePoolGetUUIDString(priv->handle, priv->uuid) < 0) {
135 g_error("Failed to get storage pool UUID on %p", priv->handle);
136 }
137 }
138
139
124140 static void gvir_storage_pool_class_init(GVirStoragePoolClass *klass)
125141 {
126142 GObjectClass *object_class = G_OBJECT_CLASS (klass);
128144 object_class->finalize = gvir_storage_pool_finalize;
129145 object_class->get_property = gvir_storage_pool_get_property;
130146 object_class->set_property = gvir_storage_pool_set_property;
147 object_class->constructed = gvir_storage_pool_constructed;
131148
132149 g_object_class_install_property(object_class,
133150 PROP_HANDLE,
159176 priv->lock = g_mutex_new();
160177 }
161178
162 static gpointer
163 gvir_storage_pool_handle_copy(gpointer src)
164 {
165 virStoragePoolRef(src);
179 typedef struct virStoragePool GVirStoragePoolHandle;
180
181 static GVirStoragePoolHandle*
182 gvir_storage_pool_handle_copy(GVirStoragePoolHandle *src)
183 {
184 virStoragePoolRef((virStoragePoolPtr)src);
166185 return src;
167186 }
168187
169
170 GType gvir_storage_pool_handle_get_type(void)
171 {
172 static GType handle_type = 0;
173
174 if (G_UNLIKELY(handle_type == 0))
175 handle_type = g_boxed_type_register_static
176 ("GVirStoragePoolHandle",
177 gvir_storage_pool_handle_copy,
178 (GBoxedFreeFunc)virStoragePoolFree);
179
180 return handle_type;
181 }
182
188 static void
189 gvir_storage_pool_handle_free(GVirStoragePoolHandle *src)
190 {
191 virStoragePoolFree((virStoragePoolPtr)src);
192 }
193
194 G_DEFINE_BOXED_TYPE(GVirStoragePoolHandle, gvir_storage_pool_handle,
195 gvir_storage_pool_handle_copy, gvir_storage_pool_handle_free)
183196
184197 const gchar *gvir_storage_pool_get_name(GVirStoragePool *pool)
185198 {
194207 }
195208
196209
197 gchar *gvir_storage_pool_get_uuid(GVirStoragePool *pool)
198 {
199 GVirStoragePoolPrivate *priv = pool->priv;
200 char *uuid = g_new(gchar, VIR_UUID_STRING_BUFLEN);
201
202 if (virStoragePoolGetUUIDString(priv->handle, uuid) < 0) {
203 g_error("Failed to get storage_pool UUID on %p", priv->handle);
204 }
205 return uuid;
210 const gchar *gvir_storage_pool_get_uuid(GVirStoragePool *pool)
211 {
212 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), NULL);
213
214 return pool->priv->uuid;
206215 }
207216
208217
226235 return NULL;
227236 }
228237
238 #if 0
229239 GVirConfigStoragePool *conf = gvir_config_storage_pool_new(xml);
230240
231241 g_free(xml);
232242 return conf;
243 #endif
244 return NULL;
233245 }
234246
235247 typedef gint (* CountFunction) (virStoragePoolPtr vpool);
372384 * gvir_storage_pool_refresh_async:
373385 * @pool: the storage pool
374386 * @cancellable: (allow-none)(transfer none): cancellation object
375 * @callback: (transfer none): completion callback
376 * @opaque: (transfer none)(allow-none): opaque data for callback
387 * @callback: (scope async): completion callback
388 * @user_data: (closure): opaque data for callback
377389 */
378390 void gvir_storage_pool_refresh_async(GVirStoragePool *pool,
379391 GCancellable *cancellable,
380392 GAsyncReadyCallback callback,
381 gpointer opaque)
393 gpointer user_data)
382394 {
383395 GSimpleAsyncResult *res;
384396
385397 res = g_simple_async_result_new(G_OBJECT(pool),
386398 callback,
387 opaque,
399 user_data,
388400 gvir_storage_pool_refresh);
389401 g_simple_async_result_run_in_thread(res,
390402 gvir_storage_pool_refresh_helper,
431443 GList *gvir_storage_pool_get_volumes(GVirStoragePool *pool)
432444 {
433445 GVirStoragePoolPrivate *priv = pool->priv;
434 GList *volumes;
446 GList *volumes = NULL;
435447
436448 g_mutex_lock(priv->lock);
437 volumes = g_hash_table_get_values(priv->volumes);
438 g_list_foreach(volumes, gvir_storage_vol_ref, NULL);
449 if (priv->volumes != NULL) {
450 volumes = g_hash_table_get_values(priv->volumes);
451 g_list_foreach(volumes, gvir_storage_vol_ref, NULL);
452 }
439453 g_mutex_unlock(priv->lock);
440454
441455 return volumes;
478492 virStorageVolPtr handle;
479493 GVirStoragePoolPrivate *priv = pool->priv;
480494
481 xml = gvir_config_object_get_doc(GVIR_CONFIG_OBJECT(conf));
495 xml = gvir_config_object_to_xml(GVIR_CONFIG_OBJECT(conf));
482496
483497 g_return_val_if_fail(xml != NULL, NULL);
484498
503517
504518 return g_object_ref(volume);
505519 }
520
521 /**
522 * gvir_storage_pool_build:
523 * @pool: the storage pool to build
524 * @flags: the flags
525 * @err: return location for any #GError
526 *
527 * Return value: #True on success, #False otherwise.
528 */
529 gboolean gvir_storage_pool_build (GVirStoragePool *pool,
530 guint64 flags,
531 GError **err)
532 {
533 if (virStoragePoolBuild(pool->priv->handle, flags)) {
534 *err = gvir_error_new_literal(GVIR_STORAGE_POOL_ERROR,
535 0,
536 "Failed to build storage pool");
537 return FALSE;
538 }
539
540 return TRUE;
541 }
542
543 typedef struct {
544 guint64 flags;
545 } StoragePoolBuildData;
546
547 static void
548 gvir_storage_pool_build_helper(GSimpleAsyncResult *res,
549 GObject *object,
550 GCancellable *cancellable G_GNUC_UNUSED)
551 {
552 GVirStoragePool *pool = GVIR_STORAGE_POOL(object);
553 StoragePoolBuildData *data;
554 GError *err = NULL;
555
556 data = (StoragePoolBuildData *) g_object_get_data(G_OBJECT(res),
557 "StoragePoolBuildData");
558
559 if (!gvir_storage_pool_build(pool, data->flags, &err)) {
560 g_simple_async_result_set_from_error(res, err);
561 g_error_free(err);
562 }
563
564 g_slice_free (StoragePoolBuildData, data);
565 }
566
567 /**
568 * gvir_storage_pool_build_async:
569 * @pool: the storage pool to build
570 * @flags: the flags
571 * @cancellable: (allow-none)(transfer none): cancellation object
572 * @callback: (scope async): completion callback
573 * @user_data: (closure): opaque data for callback
574 */
575 void gvir_storage_pool_build_async (GVirStoragePool *pool,
576 guint64 flags,
577 GCancellable *cancellable,
578 GAsyncReadyCallback callback,
579 gpointer user_data)
580 {
581 GSimpleAsyncResult *res;
582 StoragePoolBuildData *data;
583
584 data = g_new0(StoragePoolBuildData, 1);
585 data->flags = flags;
586
587 res = g_simple_async_result_new(G_OBJECT(pool),
588 callback,
589 user_data,
590 gvir_storage_pool_build);
591 g_object_set_data(G_OBJECT(res), "StoragePoolBuildData", data);
592 g_simple_async_result_run_in_thread(res,
593 gvir_storage_pool_build_helper,
594 G_PRIORITY_DEFAULT,
595 cancellable);
596 g_object_unref(res);
597 }
598
599 /**
600 * gvir_storage_pool_build_finish:
601 * @pool: the storage pool to build
602 * @result: (transfer none): async method result
603 * @err: return location for any #GError
604 *
605 * Return value: #True on success, #False otherwise.
606 */
607 gboolean gvir_storage_pool_build_finish(GVirStoragePool *pool,
608 GAsyncResult *result,
609 GError **err)
610 {
611 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE);
612 g_return_val_if_fail(G_IS_ASYNC_RESULT(result), FALSE);
613
614 if (G_IS_SIMPLE_ASYNC_RESULT(result)) {
615 GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT(result);
616 g_warn_if_fail (g_simple_async_result_get_source_tag(simple) ==
617 gvir_storage_pool_build);
618 if (g_simple_async_result_propagate_error(simple, err))
619 return FALSE;
620 }
621
622 return TRUE;
623 }
624
625 /**
626 * gvir_storage_pool_start:
627 * @pool: the storage pool to start
628 * @flags: the flags
629 * @err: return location for any #GError
630 *
631 * Return value: #True on success, #False otherwise.
632 */
633 gboolean gvir_storage_pool_start (GVirStoragePool *pool,
634 guint64 flags,
635 GError **err)
636 {
637 if (virStoragePoolCreate(pool->priv->handle, flags)) {
638 *err = gvir_error_new_literal(GVIR_STORAGE_POOL_ERROR,
639 0,
640 "Failed to start storage pool");
641 return FALSE;
642 }
643
644 return TRUE;
645 }
646
647 static void
648 gvir_storage_pool_start_helper(GSimpleAsyncResult *res,
649 GObject *object,
650 GCancellable *cancellable G_GNUC_UNUSED)
651 {
652 GVirStoragePool *pool = GVIR_STORAGE_POOL(object);
653 StoragePoolBuildData *data;
654 GError *err = NULL;
655
656 data = (StoragePoolBuildData *) g_object_get_data(G_OBJECT(res),
657 "StoragePoolBuildData");
658
659 if (!gvir_storage_pool_start(pool, data->flags, &err)) {
660 g_simple_async_result_set_from_error(res, err);
661 g_error_free(err);
662 }
663
664 g_slice_free (StoragePoolBuildData, data);
665 }
666
667 /**
668 * gvir_storage_pool_start_async:
669 * @pool: the storage pool to start
670 * @flags: the flags
671 * @cancellable: (allow-none)(transfer none): cancellation object
672 * @callback: (scope async): completion callback
673 * @user_data: (closure): opaque data for callback
674 */
675 void gvir_storage_pool_start_async (GVirStoragePool *pool,
676 guint64 flags,
677 GCancellable *cancellable,
678 GAsyncReadyCallback callback,
679 gpointer user_data)
680 {
681 GSimpleAsyncResult *res;
682 StoragePoolBuildData *data;
683
684 data = g_new0(StoragePoolBuildData, 1);
685 data->flags = flags;
686
687 res = g_simple_async_result_new(G_OBJECT(pool),
688 callback,
689 user_data,
690 gvir_storage_pool_start);
691 g_object_set_data(G_OBJECT(res), "StoragePoolBuildData", data);
692 g_simple_async_result_run_in_thread(res,
693 gvir_storage_pool_start_helper,
694 G_PRIORITY_DEFAULT,
695 cancellable);
696 g_object_unref(res);
697 }
698
699 /**
700 * gvir_storage_pool_start_finish:
701 * @pool: the storage pool to start
702 * @result: (transfer none): async method result
703 * @err: return location for any #GError
704 *
705 * Return value: #True on success, #False otherwise.
706 */
707 gboolean gvir_storage_pool_start_finish(GVirStoragePool *pool,
708 GAsyncResult *result,
709 GError **err)
710 {
711 g_return_val_if_fail(GVIR_IS_STORAGE_POOL(pool), FALSE);
712 g_return_val_if_fail(G_IS_ASYNC_RESULT(result), FALSE);
713
714 if (G_IS_SIMPLE_ASYNC_RESULT(result)) {
715 GSimpleAsyncResult *simple = G_SIMPLE_ASYNC_RESULT(result);
716 g_warn_if_fail (g_simple_async_result_get_source_tag(simple) ==
717 gvir_storage_pool_start);
718 if (g_simple_async_result_propagate_error(simple, err))
719 return FALSE;
720 }
721
722 return TRUE;
723 }
6262 GType gvir_storage_pool_handle_get_type(void);
6363
6464 const gchar *gvir_storage_pool_get_name(GVirStoragePool *pool);
65 gchar *gvir_storage_pool_get_uuid(GVirStoragePool *pool);
65 const gchar *gvir_storage_pool_get_uuid(GVirStoragePool *pool);
6666
6767 GVirConfigStoragePool *gvir_storage_pool_get_config(GVirStoragePool *pool,
6868 guint64 flags,
7474 void gvir_storage_pool_refresh_async(GVirStoragePool *pool,
7575 GCancellable *cancellable,
7676 GAsyncReadyCallback callback,
77 gpointer opaque);
77 gpointer user_data);
7878 gboolean gvir_storage_pool_refresh_finish(GVirStoragePool *pool,
7979 GAsyncResult *result,
8080 GError **err);
8787 GVirConfigStorageVol *conf,
8888 GError **err);
8989
90 gboolean gvir_storage_pool_build (GVirStoragePool *pool,
91 guint64 flags,
92 GError **err);
93 void gvir_storage_pool_build_async (GVirStoragePool *pool,
94 guint64 flags,
95 GCancellable *cancellable,
96 GAsyncReadyCallback callback,
97 gpointer user_data);
98 gboolean gvir_storage_pool_build_finish(GVirStoragePool *pool,
99 GAsyncResult *result,
100 GError **err);
101
102 gboolean gvir_storage_pool_start (GVirStoragePool *pool,
103 guint64 flags,
104 GError **err);
105 void gvir_storage_pool_start_async (GVirStoragePool *pool,
106 guint64 flags,
107 GCancellable *cancellable,
108 GAsyncReadyCallback callback,
109 gpointer user_data);
110 gboolean gvir_storage_pool_start_finish(GVirStoragePool *pool,
111 GAsyncResult *result,
112 GError **err);
113
90114 G_END_DECLS
91115
92116 #endif /* __LIBVIRT_GOBJECT_STORAGE_POOL_H__ */
2727
2828 #include "libvirt-glib/libvirt-glib.h"
2929 #include "libvirt-gobject/libvirt-gobject.h"
30 #include "libvirt-gobject-compat.h"
3031
3132 extern gboolean debugFlag;
3233
147148 memset(priv, 0, sizeof(*priv));
148149 }
149150
150 static gpointer
151 gvir_storage_vol_handle_copy(gpointer src)
152 {
153 virStorageVolRef(src);
151 typedef struct virStorageVol GVirStorageVolHandle;
152
153 static GVirStorageVolHandle*
154 gvir_storage_vol_handle_copy(GVirStorageVolHandle *src)
155 {
156 virStorageVolRef((virStorageVolPtr)src);
154157 return src;
155158 }
156159
157
158 GType gvir_storage_vol_handle_get_type(void)
159 {
160 static GType handle_type = 0;
161
162 if (G_UNLIKELY(handle_type == 0))
163 handle_type = g_boxed_type_register_static
164 ("GVirStorageVolHandle",
165 gvir_storage_vol_handle_copy,
166 (GBoxedFreeFunc)virStorageVolFree);
167
168 return handle_type;
169 }
170
160 static void
161 gvir_storage_vol_handle_free(GVirStorageVolHandle *src)
162 {
163 virStorageVolFree((virStorageVolPtr)src);
164 }
165
166 G_DEFINE_BOXED_TYPE(GVirStorageVolHandle, gvir_storage_vol_handle,
167 gvir_storage_vol_handle_copy, gvir_storage_vol_handle_free)
171168
172169 const gchar *gvir_storage_vol_get_name(GVirStorageVol *vol)
173170 {
213210 return NULL;
214211 }
215212
213 #if 0
216214 GVirConfigStorageVol *conf = gvir_config_storage_vol_new(xml);
217215
218216 g_free(xml);
219217 return conf;
220 }
218 #endif
219 return NULL;
220 }
2828
2929 #include "libvirt-glib/libvirt-glib.h"
3030 #include "libvirt-gobject/libvirt-gobject.h"
31 #include "libvirt-gobject-compat.h"
32
33 #include "libvirt-gobject/libvirt-gobject-input-stream.h"
3134
3235 extern gboolean debugFlag;
3336
3841
3942 struct _GVirStreamPrivate
4043 {
41 virStreamPtr handle;
44 virStreamPtr handle;
45 GInputStream *input_stream;
46 gboolean in_dispose;
4247 };
4348
44 G_DEFINE_TYPE(GVirStream, gvir_stream, G_TYPE_OBJECT);
49 G_DEFINE_TYPE(GVirStream, gvir_stream, G_TYPE_IO_STREAM);
4550
4651
4752 enum {
5661 static GQuark
5762 gvir_stream_error_quark(void)
5863 {
59 return g_quark_from_static_string("vir-g-stream");
60 }
64 return g_quark_from_static_string("gvir-stream");
65 }
66
67
68 static GInputStream* gvir_stream_get_input_stream(GIOStream *io_stream)
69 {
70 GVirStream *self = GVIR_STREAM(io_stream);
71
72 if (self->priv->input_stream == NULL)
73 self->priv->input_stream = (GInputStream *)_gvir_input_stream_new(self);
74
75 return self->priv->input_stream;
76 }
77
78
79 static gboolean gvir_stream_close(GIOStream *io_stream,
80 GCancellable *cancellable, G_GNUC_UNUSED GError **error)
81 {
82 GVirStream *self = GVIR_STREAM(io_stream);
83
84 if (self->priv->input_stream)
85 g_input_stream_close(self->priv->input_stream, cancellable, NULL);
86
87 if (self->priv->in_dispose)
88 return TRUE;
89
90 return TRUE; /* FIXME: really close the stream? */
91 }
92
93
94 static void gvir_stream_close_async(GIOStream *stream, G_GNUC_UNUSED int io_priority,
95 GCancellable *cancellable, GAsyncReadyCallback callback,
96 gpointer user_data)
97 {
98 GSimpleAsyncResult *res;
99 GIOStreamClass *class;
100 GError *error;
101
102 class = G_IO_STREAM_GET_CLASS(stream);
103
104 /* close is not blocked, just do it! */
105 error = NULL;
106 if (class->close_fn &&
107 !class->close_fn(stream, cancellable, &error)) {
108 g_simple_async_report_take_gerror_in_idle(G_OBJECT (stream),
109 callback, user_data,
110 error);
111 return;
112 }
113
114 res = g_simple_async_result_new(G_OBJECT (stream),
115 callback,
116 user_data,
117 gvir_stream_close_async);
118 g_simple_async_result_complete_in_idle(res);
119 g_object_unref (res);
120 }
121
122
123 static gboolean
124 gvir_stream_close_finish(G_GNUC_UNUSED GIOStream *stream,
125 G_GNUC_UNUSED GAsyncResult *result,
126 G_GNUC_UNUSED GError **error)
127 {
128 return TRUE;
129 }
130
61131
62132 static void gvir_stream_get_property(GObject *object,
63133 guint prop_id,
90160 case PROP_HANDLE:
91161 if (priv->handle)
92162 virStreamFree(priv->handle);
93 priv->handle = g_value_dup_boxed(value);
163 priv->handle = g_value_get_boxed(value);
94164 break;
95165
96166 default:
105175 GVirStreamPrivate *priv = self->priv;
106176
107177 DEBUG("Finalize GVirStream=%p", self);
178
179 if (self->priv->input_stream)
180 g_object_unref(self->priv->input_stream);
108181
109182 if (priv->handle) {
110183 if (virStreamFinish(priv->handle) < 0)
119192
120193 static void gvir_stream_class_init(GVirStreamClass *klass)
121194 {
122 GObjectClass *object_class = G_OBJECT_CLASS (klass);
195 GObjectClass *object_class = G_OBJECT_CLASS(klass);
196 GIOStreamClass *stream_class = G_IO_STREAM_CLASS(klass);
123197
124198 object_class->finalize = gvir_stream_finalize;
125199 object_class->get_property = gvir_stream_get_property;
126200 object_class->set_property = gvir_stream_set_property;
201
202 stream_class->get_input_stream = gvir_stream_get_input_stream;
203 stream_class->close_fn = gvir_stream_close;
204 stream_class->close_async = gvir_stream_close_async;
205 stream_class->close_finish = gvir_stream_close_finish;
127206
128207 g_object_class_install_property(object_class,
129208 PROP_HANDLE,
147226 self->priv = GVIR_STREAM_GET_PRIVATE(self);
148227 }
149228
150
151 static gpointer
152 gvir_stream_handle_copy(gpointer src)
153 {
154 virStreamRef(src);
229 typedef struct virStream GVirStreamHandle;
230
231 static GVirStreamHandle*
232 gvir_stream_handle_copy(GVirStreamHandle *src)
233 {
234 virStreamRef((virStreamPtr)src);
155235 return src;
156236 }
157237
158
159 GType gvir_stream_handle_get_type(void)
160 {
161 static GType handle_type = 0;
162
163 if (G_UNLIKELY(handle_type == 0))
164 handle_type = g_boxed_type_register_static
165 ("GVirStreamHandle",
166 gvir_stream_handle_copy,
167 (GBoxedFreeFunc)virStreamFree);
168
169 return handle_type;
170 }
171
238 static void
239 gvir_stream_handle_free(GVirStreamHandle *src)
240 {
241 virStreamFree((virStreamPtr)src);
242 }
243
244 G_DEFINE_BOXED_TYPE(GVirStreamHandle, gvir_stream_handle,
245 gvir_stream_handle_copy, gvir_stream_handle_free)
246
247 /**
248 * gvir_stream_receive:
249 * @stream: the stream
250 * @buffer: a buffer to read data into (which should be at least @size
251 * bytes long).
252 * @size: the number of bytes you want to read from the stream
253 * @cancellable: (allow-none): a %GCancellable or %NULL
254 * @error: #GError for error reporting, or %NULL to ignore.
255 *
256 * Receive data (up to @size bytes) from a stream.
257 * On error -1 is returned and @error is set accordingly.
258 *
259 * gvir_stream_receive() can return any number of bytes, up to
260 * @size. If more than @size bytes have been received, the additional
261 * data will be returned in future calls to gvir_stream_receive().
262 *
263 * If there is no data available, a %G_IO_ERROR_WOULD_BLOCK error will be
264 * returned.
265 *
266 * Returns: Number of bytes read, or 0 if the end of stream reached,
267 * or -1 on error.
268 */
269 gssize gvir_stream_receive(GVirStream *self, gchar *buffer, gsize size,
270 GCancellable *cancellable, GError **error)
271 {
272 int got;
273
274 g_return_val_if_fail(GVIR_IS_STREAM(self), -1);
275 g_return_val_if_fail(buffer != NULL, -1);
276
277 if (g_cancellable_set_error_if_cancelled (cancellable, error))
278 return -1;
279
280 got = virStreamRecv(self->priv->handle, buffer, size);
281
282 if (got == -2) { /* blocking */
283 g_set_error(error, G_IO_ERROR, G_IO_ERROR_WOULD_BLOCK, NULL);
284 } else if (got < 0) {
285 g_set_error(error, G_IO_ERROR, G_IO_ERROR_INVALID_ARGUMENT,
286 "Got virStreamRecv error in %s", G_STRFUNC);
287 }
288
289 return got;
290 }
172291
173292 struct stream_sink_helper {
174293 GVirStream *self;
190309 * @stream: the stream
191310 * @func: (scope notified): the callback for writing data to application
192311 * @user_data: (closure): data to be passed to @callback
312 * Returns: the number of bytes consumed or -1 upon error
193313 *
194314 * Receive the entire data stream, sending the data to the
195315 * requested data sink. This is simply a convenient alternative
196316 * to virStreamRecv, for apps that do blocking-I/o.
197317 */
198 gint
318 gssize
199319 gvir_stream_receive_all(GVirStream *self, GVirStreamSinkFunc func, gpointer user_data, GError **err)
200320 {
201321 struct stream_sink_helper helper = {
2727 #ifndef __LIBVIRT_GOBJECT_STREAM_H__
2828 #define __LIBVIRT_GOBJECT_STREAM_H__
2929
30 #include <glib-object.h>
31 #include <gio/gio.h>
32
3033 G_BEGIN_DECLS
3134
3235 #define GVIR_TYPE_STREAM (gvir_stream_get_type ())
4447
4548 struct _GVirStream
4649 {
47 GObject parent;
50 GIOStream parent_instance;
4851
4952 GVirStreamPrivate *priv;
5053
5356
5457 struct _GVirStreamClass
5558 {
56 GObjectClass parent_class;
59 GIOStreamClass parent_class;
5760
5861 gpointer padding[20];
5962 };
6164 /**
6265 * GVirStreamSinkFunc:
6366 * @stream: a #GVirStream
64 * @buf: data pointer
67 * @buf: (out) (array length=nbytes) (transfer none): data pointer
6568 * @nbytes: data size
6669 * @user_data: user data passed to the function
70 * Returns: the number of bytes filled, 0 upon end
71 * of file, or -1 upon error
6772 */
6873 typedef gint (* GVirStreamSinkFunc) (GVirStream *stream,
6974 const gchar *buf,
7378 GType gvir_stream_get_type(void);
7479 GType gvir_stream_handle_get_type(void);
7580
76 gint gvir_stream_receive_all(GVirStream *stream, GVirStreamSinkFunc func, gpointer user_data, GError **err);
81 gssize gvir_stream_receive_all(GVirStream *stream, GVirStreamSinkFunc func, gpointer user_data, GError **err);
82 gssize gvir_stream_receive(GVirStream *stream, gchar *buffer, gsize size, GCancellable *cancellable, GError **error);
7783
7884 G_END_DECLS
7985
2929 #include <libvirt-gobject/libvirt-gobject-main.h>
3030 #include <libvirt-gobject/libvirt-gobject-enums.h>
3131 #include <libvirt-gobject/libvirt-gobject-stream.h>
32 #include <libvirt-gobject/libvirt-gobject-domain-device.h>
33 #include <libvirt-gobject/libvirt-gobject-domain-disk.h>
34 #include <libvirt-gobject/libvirt-gobject-domain-interface.h>
3235 #include <libvirt-gobject/libvirt-gobject-domain-snapshot.h>
3336 #include <libvirt-gobject/libvirt-gobject-domain.h>
3437 #include <libvirt-gobject/libvirt-gobject-interface.h>
1313 gvir_connection_get_stream;
1414
1515 gvir_connection_fetch_domains;
16 gvir_connection_fetch_domains_async;
17 gvir_connection_fetch_domains_finish;
1618 gvir_connection_fetch_storage_pools;
1719 gvir_connection_fetch_storage_pools_async;
1820 gvir_connection_fetch_storage_pools_finish;
2426 gvir_connection_find_domain_by_name;
2527 gvir_connection_find_storage_pool_by_name;
2628 gvir_connection_create_domain;
29 gvir_connection_create_storage_pool;
30
31 gvir_domain_device_get_type;
32
33 gvir_domain_disk_get_type;
34 gvir_domain_disk_stats_get_type;
35 gvir_domain_disk_get_stats;
36
37 gvir_domain_interface_get_type;
38 gvir_domain_interface_stats_get_type;
39 gvir_domain_interface_get_stats;
2740
2841 gvir_domain_get_type;
2942 gvir_domain_handle_get_type;
3346 gvir_domain_get_uuid;
3447 gvir_domain_get_id;
3548 gvir_domain_start;
49 gvir_domain_resume;
3650 gvir_domain_stop;
3751 gvir_domain_delete;
3852 gvir_domain_shutdown;
8498 gvir_storage_pool_get_volumes;
8599 gvir_storage_pool_get_volume;
86100 gvir_storage_pool_create_volume;
101 gvir_storage_pool_build;
102 gvir_storage_pool_build_async;
103 gvir_storage_pool_build_finish;
104 gvir_storage_pool_start;
105 gvir_storage_pool_start_async;
106 gvir_storage_pool_start_finish;
87107
88108 gvir_storage_vol_get_type;
89109 gvir_storage_vol_handle_get_type;
77 Description: libvirt GObject library
88 Requires: gobject-2.0 libvirt-gconfig-1.0
99 Libs: -L${libdir} -lvirt-gobject-1.0
10 Libs.private: @LIBVIRT_LIBS
10 Libs.private: @LIBVIRT_LIBS@
1111 Cflags: -I${includedir}/libvirt-gobject-1.0
1616
1717 BuildRequires: mingw32-filesystem >= 23
1818 BuildRequires: mingw32-glib2
19 BuildRequires: mingw32-libvirt >= 0.5.0
19 BuildRequires: mingw32-libvirt >= 0.9.4
2020 BuildRequires: pkgconfig
2121
2222 BuildArch: noarch
5757 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-glib-1.0.a
5858 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-gconfig-1.0.a
5959 rm $RPM_BUILD_ROOT%{_mingw32_libdir}/libvirt-gobject-1.0.a
60
60 rm -rf $RPM_BUILD_ROOT%{_mingw32_datadir}/gtk-doc
6161
6262 %clean
6363 rm -rf $RPM_BUILD_ROOT
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 # Makefile for libvirt python library
18
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 pkglibdir = $(libdir)/@PACKAGE@
23 pkglibexecdir = $(libexecdir)/@PACKAGE@
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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 build_triplet = @build@
37 host_triplet = @host@
38 subdir = python
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
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 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/config.h
47 CONFIG_CLEAN_FILES =
48 CONFIG_CLEAN_VPATH_FILES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
55 am__install_max = 40
56 am__nobase_strip_setup = \
57 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
58 am__nobase_strip = \
59 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
60 am__nobase_list = $(am__nobase_strip_setup); \
61 for p in $$list; do echo "$$p $$p"; done | \
62 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
63 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
64 if (++n[$$2] == $(am__install_max)) \
65 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
66 END { for (dir in files) print dir, files[dir] }'
67 am__base_list = \
68 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
69 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
70 am__installdirs = "$(DESTDIR)$(pythondir)"
71 LTLIBRARIES = $(python_LTLIBRARIES)
72 @WITH_PYTHON_TRUE@libvirtglibmod_la_DEPENDENCIES = \
73 @WITH_PYTHON_TRUE@ ../libvirt-glib/libvirt-glib-1.0.la
74 am__libvirtglibmod_la_SOURCES_DIST = libvirt-glib.c
75 @WITH_PYTHON_TRUE@am_libvirtglibmod_la_OBJECTS = \
76 @WITH_PYTHON_TRUE@ libvirtglibmod_la-libvirt-glib.lo
77 libvirtglibmod_la_OBJECTS = $(am_libvirtglibmod_la_OBJECTS)
78 AM_V_lt = $(am__v_lt_$(V))
79 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
80 am__v_lt_0 = --silent
81 libvirtglibmod_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
82 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
83 $(libvirtglibmod_la_CFLAGS) $(CFLAGS) \
84 $(libvirtglibmod_la_LDFLAGS) $(LDFLAGS) -o $@
85 @WITH_PYTHON_TRUE@am_libvirtglibmod_la_rpath = -rpath $(pythondir)
86 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
87 depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
88 am__depfiles_maybe = depfiles
89 am__mv = mv -f
90 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
91 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
92 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
93 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
94 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
95 $(AM_CFLAGS) $(CFLAGS)
96 AM_V_CC = $(am__v_CC_$(V))
97 am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
98 am__v_CC_0 = @echo " CC " $@;
99 AM_V_at = $(am__v_at_$(V))
100 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
101 am__v_at_0 = @
102 CCLD = $(CC)
103 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
104 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
105 $(AM_LDFLAGS) $(LDFLAGS) -o $@
106 AM_V_CCLD = $(am__v_CCLD_$(V))
107 am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
108 am__v_CCLD_0 = @echo " CCLD " $@;
109 AM_V_GEN = $(am__v_GEN_$(V))
110 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
111 am__v_GEN_0 = @echo " GEN " $@;
112 SOURCES = $(libvirtglibmod_la_SOURCES)
113 DIST_SOURCES = $(am__libvirtglibmod_la_SOURCES_DIST)
114 ETAGS = etags
115 CTAGS = ctags
116 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
117 ACLOCAL = @ACLOCAL@
118 AMTAR = @AMTAR@
119 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
120 AR = @AR@
121 AS = @AS@
122 AUTOCONF = @AUTOCONF@
123 AUTOHEADER = @AUTOHEADER@
124 AUTOMAKE = @AUTOMAKE@
125 AWK = @AWK@
126 CC = @CC@
127 CCDEPMODE = @CCDEPMODE@
128 CFLAGS = @CFLAGS@
129 COMPILER_FLAGS = @COMPILER_FLAGS@
130 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
131 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
132 CPP = @CPP@
133 CPPFLAGS = @CPPFLAGS@
134 CYGPATH_W = @CYGPATH_W@
135 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
136 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
137 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
138 DEFS = @DEFS@
139 DEPDIR = @DEPDIR@
140 DLLTOOL = @DLLTOOL@
141 DSYMUTIL = @DSYMUTIL@
142 DUMPBIN = @DUMPBIN@
143 ECHO_C = @ECHO_C@
144 ECHO_N = @ECHO_N@
145 ECHO_T = @ECHO_T@
146 EGREP = @EGREP@
147 EXEEXT = @EXEEXT@
148 FGREP = @FGREP@
149 GIO2_CFLAGS = @GIO2_CFLAGS@
150 GIO2_LIBS = @GIO2_LIBS@
151 GLIB2_CFLAGS = @GLIB2_CFLAGS@
152 GLIB2_LIBS = @GLIB2_LIBS@
153 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
154 GOBJECT2_LIBS = @GOBJECT2_LIBS@
155 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
156 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
157 GREP = @GREP@
158 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
159 GTHREAD2_LIBS = @GTHREAD2_LIBS@
160 GTKDOC_CHECK = @GTKDOC_CHECK@
161 GTKDOC_MKPDF = @GTKDOC_MKPDF@
162 GTKDOC_REBASE = @GTKDOC_REBASE@
163 G_IR_COMPILER = @G_IR_COMPILER@
164 G_IR_SCANNER = @G_IR_SCANNER@
165 HTML_DIR = @HTML_DIR@
166 INSTALL = @INSTALL@
167 INSTALL_DATA = @INSTALL_DATA@
168 INSTALL_PROGRAM = @INSTALL_PROGRAM@
169 INSTALL_SCRIPT = @INSTALL_SCRIPT@
170 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
171 LD = @LD@
172 LDFLAGS = @LDFLAGS@
173 LIBOBJS = @LIBOBJS@
174 LIBS = @LIBS@
175 LIBTOOL = @LIBTOOL@
176 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
177 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
178 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
179 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
180 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
181 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
182 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
183 LIBVIRT_LIBS = @LIBVIRT_LIBS@
184 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
185 LIBXML2_LIBS = @LIBXML2_LIBS@
186 LIPO = @LIPO@
187 LN_S = @LN_S@
188 LTLIBOBJS = @LTLIBOBJS@
189 MAKEINFO = @MAKEINFO@
190 MANIFEST_TOOL = @MANIFEST_TOOL@
191 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
192 MKDIR_P = @MKDIR_P@
193 NM = @NM@
194 NMEDIT = @NMEDIT@
195 OBJDUMP = @OBJDUMP@
196 OBJEXT = @OBJEXT@
197 OTOOL = @OTOOL@
198 OTOOL64 = @OTOOL64@
199 PACKAGE = @PACKAGE@
200 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
201 PACKAGE_NAME = @PACKAGE_NAME@
202 PACKAGE_STRING = @PACKAGE_STRING@
203 PACKAGE_TARNAME = @PACKAGE_TARNAME@
204 PACKAGE_URL = @PACKAGE_URL@
205 PACKAGE_VERSION = @PACKAGE_VERSION@
206 PATH_SEPARATOR = @PATH_SEPARATOR@
207 PKG_CONFIG = @PKG_CONFIG@
208 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
209 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
210 PYTHON = @PYTHON@
211 PYTHON_INCLUDES = @PYTHON_INCLUDES@
212 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
213 PYTHON_VERSION = @PYTHON_VERSION@
214 RANLIB = @RANLIB@
215 SED = @SED@
216 SET_MAKE = @SET_MAKE@
217 SHELL = @SHELL@
218 STRIP = @STRIP@
219 VAPIGEN = @VAPIGEN@
220 VERSION = @VERSION@
221 WARN_CFLAGS = @WARN_CFLAGS@
222 abs_builddir = @abs_builddir@
223 abs_srcdir = @abs_srcdir@
224 abs_top_builddir = @abs_top_builddir@
225 abs_top_srcdir = @abs_top_srcdir@
226 ac_ct_AR = @ac_ct_AR@
227 ac_ct_CC = @ac_ct_CC@
228 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
229 am__include = @am__include@
230 am__leading_dot = @am__leading_dot@
231 am__quote = @am__quote@
232 am__tar = @am__tar@
233 am__untar = @am__untar@
234 bindir = @bindir@
235 build = @build@
236 build_alias = @build_alias@
237 build_cpu = @build_cpu@
238 build_os = @build_os@
239 build_vendor = @build_vendor@
240 builddir = @builddir@
241 datadir = @datadir@
242 datarootdir = @datarootdir@
243 docdir = @docdir@
244 dvidir = @dvidir@
245 exec_prefix = @exec_prefix@
246 host = @host@
247 host_alias = @host_alias@
248 host_cpu = @host_cpu@
249 host_os = @host_os@
250 host_vendor = @host_vendor@
251 htmldir = @htmldir@
252 includedir = @includedir@
253 infodir = @infodir@
254 install_sh = @install_sh@
255 libdir = @libdir@
256 libexecdir = @libexecdir@
257 localedir = @localedir@
258 localstatedir = @localstatedir@
259 mandir = @mandir@
260 mkdir_p = @mkdir_p@
261 oldincludedir = @oldincludedir@
262 pdfdir = @pdfdir@
263 prefix = @prefix@
264 program_transform_name = @program_transform_name@
265 psdir = @psdir@
266 pythondir = @pythondir@
267 sbindir = @sbindir@
268 sharedstatedir = @sharedstatedir@
269 srcdir = @srcdir@
270 sysconfdir = @sysconfdir@
271 target_alias = @target_alias@
272 top_build_prefix = @top_build_prefix@
273 top_builddir = @top_builddir@
274 top_srcdir = @top_srcdir@
275 INCLUDES = \
276 $(WARN_CFLAGS) \
277 -I$(PYTHON_INCLUDES) \
278 -I$(top_srcdir) \
279 $(GLIB2_CFLAGS)
280
281 EXTRA_DIST = libvirtglib.py
282 @WITH_PYTHON_TRUE@python_LTLIBRARIES = libvirtglibmod.la
283 @WITH_PYTHON_TRUE@libvirtglibmod_la_SOURCES = libvirt-glib.c
284 # Python header files contain a redundant decl, hence:
285 @WITH_PYTHON_TRUE@libvirtglibmod_la_CFLAGS = -Wno-redundant-decls
286 @WITH_PYTHON_TRUE@libvirtglibmod_la_LDFLAGS = -module -avoid-version \
287 @WITH_PYTHON_TRUE@ $(CYGWIN_EXTRA_LDFLAGS)
288
289 @WITH_PYTHON_TRUE@libvirtglibmod_la_LIBADD = ../libvirt-glib/libvirt-glib-1.0.la
290 all: all-am
291
292 .SUFFIXES:
293 .SUFFIXES: .c .lo .o .obj
294 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
295 @for dep in $?; do \
296 case '$(am__configure_deps)' in \
297 *$$dep*) \
298 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
299 && { if test -f $@; then exit 0; else break; fi; }; \
300 exit 1;; \
301 esac; \
302 done; \
303 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu python/Makefile'; \
304 $(am__cd) $(top_srcdir) && \
305 $(AUTOMAKE) --gnu python/Makefile
306 .PRECIOUS: Makefile
307 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
308 @case '$?' in \
309 *config.status*) \
310 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
311 *) \
312 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
313 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
314 esac;
315
316 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
317 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
318
319 $(top_srcdir)/configure: $(am__configure_deps)
320 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
321 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
322 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
323 $(am__aclocal_m4_deps):
324 install-pythonLTLIBRARIES: $(python_LTLIBRARIES)
325 @$(NORMAL_INSTALL)
326 test -z "$(pythondir)" || $(MKDIR_P) "$(DESTDIR)$(pythondir)"
327 @list='$(python_LTLIBRARIES)'; test -n "$(pythondir)" || list=; \
328 list2=; for p in $$list; do \
329 if test -f $$p; then \
330 list2="$$list2 $$p"; \
331 else :; fi; \
332 done; \
333 test -z "$$list2" || { \
334 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pythondir)'"; \
335 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pythondir)"; \
336 }
337
338 uninstall-pythonLTLIBRARIES:
339 @$(NORMAL_UNINSTALL)
340 @list='$(python_LTLIBRARIES)'; test -n "$(pythondir)" || list=; \
341 for p in $$list; do \
342 $(am__strip_dir) \
343 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pythondir)/$$f'"; \
344 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pythondir)/$$f"; \
345 done
346
347 clean-pythonLTLIBRARIES:
348 -test -z "$(python_LTLIBRARIES)" || rm -f $(python_LTLIBRARIES)
349 @list='$(python_LTLIBRARIES)'; for p in $$list; do \
350 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
351 test "$$dir" != "$$p" || dir=.; \
352 echo "rm -f \"$${dir}/so_locations\""; \
353 rm -f "$${dir}/so_locations"; \
354 done
355 libvirtglibmod.la: $(libvirtglibmod_la_OBJECTS) $(libvirtglibmod_la_DEPENDENCIES)
356 $(AM_V_CCLD)$(libvirtglibmod_la_LINK) $(am_libvirtglibmod_la_rpath) $(libvirtglibmod_la_OBJECTS) $(libvirtglibmod_la_LIBADD) $(LIBS)
357
358 mostlyclean-compile:
359 -rm -f *.$(OBJEXT)
360
361 distclean-compile:
362 -rm -f *.tab.c
363
364 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libvirtglibmod_la-libvirt-glib.Plo@am__quote@
365
366 .c.o:
367 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
368 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
369 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
370 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
371 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
372 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
373
374 .c.obj:
375 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
376 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
377 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
378 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
379 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
380 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
381
382 .c.lo:
383 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
384 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
385 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
386 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
387 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
388 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
389
390 libvirtglibmod_la-libvirt-glib.lo: libvirt-glib.c
391 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirtglibmod_la_CFLAGS) $(CFLAGS) -MT libvirtglibmod_la-libvirt-glib.lo -MD -MP -MF $(DEPDIR)/libvirtglibmod_la-libvirt-glib.Tpo -c -o libvirtglibmod_la-libvirt-glib.lo `test -f 'libvirt-glib.c' || echo '$(srcdir)/'`libvirt-glib.c
392 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libvirtglibmod_la-libvirt-glib.Tpo $(DEPDIR)/libvirtglibmod_la-libvirt-glib.Plo
393 @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libvirt-glib.c' object='libvirtglibmod_la-libvirt-glib.lo' libtool=yes @AMDEPBACKSLASH@
395 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
396 @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libvirtglibmod_la_CFLAGS) $(CFLAGS) -c -o libvirtglibmod_la-libvirt-glib.lo `test -f 'libvirt-glib.c' || echo '$(srcdir)/'`libvirt-glib.c
397
398 mostlyclean-libtool:
399 -rm -f *.lo
400
401 clean-libtool:
402 -rm -rf .libs _libs
403
404 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
405 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
406 unique=`for i in $$list; do \
407 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
408 done | \
409 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
410 END { if (nonempty) { for (i in files) print i; }; }'`; \
411 mkid -fID $$unique
412 tags: TAGS
413
414 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
415 $(TAGS_FILES) $(LISP)
416 set x; \
417 here=`pwd`; \
418 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
419 unique=`for i in $$list; do \
420 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
421 done | \
422 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
423 END { if (nonempty) { for (i in files) print i; }; }'`; \
424 shift; \
425 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
426 test -n "$$unique" || unique=$$empty_fix; \
427 if test $$# -gt 0; then \
428 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
429 "$$@" $$unique; \
430 else \
431 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
432 $$unique; \
433 fi; \
434 fi
435 ctags: CTAGS
436 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
437 $(TAGS_FILES) $(LISP)
438 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
439 unique=`for i in $$list; do \
440 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
441 done | \
442 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
443 END { if (nonempty) { for (i in files) print i; }; }'`; \
444 test -z "$(CTAGS_ARGS)$$unique" \
445 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
446 $$unique
447
448 GTAGS:
449 here=`$(am__cd) $(top_builddir) && pwd` \
450 && $(am__cd) $(top_srcdir) \
451 && gtags -i $(GTAGS_ARGS) "$$here"
452
453 distclean-tags:
454 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
455
456 distdir: $(DISTFILES)
457 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
458 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
459 list='$(DISTFILES)'; \
460 dist_files=`for file in $$list; do echo $$file; done | \
461 sed -e "s|^$$srcdirstrip/||;t" \
462 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
463 case $$dist_files in \
464 */*) $(MKDIR_P) `echo "$$dist_files" | \
465 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
466 sort -u` ;; \
467 esac; \
468 for file in $$dist_files; do \
469 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
470 if test -d $$d/$$file; then \
471 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
472 if test -d "$(distdir)/$$file"; then \
473 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
474 fi; \
475 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
476 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
477 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
478 fi; \
479 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
480 else \
481 test -f "$(distdir)/$$file" \
482 || cp -p $$d/$$file "$(distdir)/$$file" \
483 || exit 1; \
484 fi; \
485 done
486 check-am: all-am
487 check: check-am
488 all-am: Makefile $(LTLIBRARIES)
489 installdirs:
490 for dir in "$(DESTDIR)$(pythondir)"; do \
491 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
492 done
493 install: install-am
494 install-exec: install-exec-am
495 install-data: install-data-am
496 uninstall: uninstall-am
497
498 install-am: all-am
499 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
500
501 installcheck: installcheck-am
502 install-strip:
503 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
504 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
505 `test -z '$(STRIP)' || \
506 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
507 mostlyclean-generic:
508
509 clean-generic:
510
511 distclean-generic:
512 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
513 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
514
515 maintainer-clean-generic:
516 @echo "This command is intended for maintainers to use"
517 @echo "it deletes files that may require special tools to rebuild."
518 @WITH_PYTHON_FALSE@uninstall-local:
519 @WITH_PYTHON_FALSE@install-data-local:
520 clean: clean-am
521
522 clean-am: clean-generic clean-libtool clean-pythonLTLIBRARIES \
523 mostlyclean-am
524
525 distclean: distclean-am
526 -rm -rf ./$(DEPDIR)
527 -rm -f Makefile
528 distclean-am: clean-am distclean-compile distclean-generic \
529 distclean-tags
530
531 dvi: dvi-am
532
533 dvi-am:
534
535 html: html-am
536
537 html-am:
538
539 info: info-am
540
541 info-am:
542
543 install-data-am: install-data-local install-pythonLTLIBRARIES
544
545 install-dvi: install-dvi-am
546
547 install-dvi-am:
548
549 install-exec-am:
550
551 install-html: install-html-am
552
553 install-html-am:
554
555 install-info: install-info-am
556
557 install-info-am:
558
559 install-man:
560
561 install-pdf: install-pdf-am
562
563 install-pdf-am:
564
565 install-ps: install-ps-am
566
567 install-ps-am:
568
569 installcheck-am:
570
571 maintainer-clean: maintainer-clean-am
572 -rm -rf ./$(DEPDIR)
573 -rm -f Makefile
574 maintainer-clean-am: distclean-am maintainer-clean-generic
575
576 mostlyclean: mostlyclean-am
577
578 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
579 mostlyclean-libtool
580
581 pdf: pdf-am
582
583 pdf-am:
584
585 ps: ps-am
586
587 ps-am:
588
589 uninstall-am: uninstall-local uninstall-pythonLTLIBRARIES
590
591 .MAKE: install-am install-strip
592
593 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
594 clean-libtool clean-pythonLTLIBRARIES ctags distclean \
595 distclean-compile distclean-generic distclean-libtool \
596 distclean-tags distdir dvi dvi-am html html-am info info-am \
597 install install-am install-data install-data-am \
598 install-data-local install-dvi install-dvi-am install-exec \
599 install-exec-am install-html install-html-am install-info \
600 install-info-am install-man install-pdf install-pdf-am \
601 install-ps install-ps-am install-pythonLTLIBRARIES \
602 install-strip installcheck installcheck-am installdirs \
603 maintainer-clean maintainer-clean-generic mostlyclean \
604 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
605 pdf pdf-am ps ps-am tags uninstall uninstall-am \
606 uninstall-local uninstall-pythonLTLIBRARIES
607
608 @WITH_PYTHON_TRUE@ $(CYGWIN_EXTRA_LIBADD) $(CYGWIN_EXTRA_PYTHON_LIBADD)
609
610 @WITH_PYTHON_TRUE@install-data-local:
611 @WITH_PYTHON_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pythondir)
612 @WITH_PYTHON_TRUE@ @INSTALL@ -m 0644 $(srcdir)/libvirtglib.py $(DESTDIR)$(pythondir)
613
614 @WITH_PYTHON_TRUE@uninstall-local:
615 @WITH_PYTHON_TRUE@ rm -f $(DESTDIR)$(pythondir)/libvirtglib.py
616
617 @WITH_PYTHON_FALSE@all:
618
619 # Tell versions [3.59,3.63) of GNU make to not export all variables.
620 # Otherwise a system limit (for SysV at least) may be exceeded.
621 .NOEXPORT:
0 init_object.argv unowned
1 init_object_check.argv unowned
0 NULL =
1
2 if WITH_VALA
3 vapidir = $(datadir)/vala/vapi
4 vapi_DATA = \
5 libvirt-gconfig-1.0.vapi \
6 libvirt-glib-1.0.vapi \
7 libvirt-gobject-1.0.deps \
8 libvirt-gobject-1.0.vapi \
9 $(NULL)
10
11 libvirt-glib-1.0.vapi: $(top_builddir)/libvirt-glib/LibvirtGLib-1.0.gir
12 $(AM_V_GEN)$(VAPIGEN) \
13 --vapidir=$(builddir) \
14 --pkg gobject-2.0 \
15 --pkg gio-2.0 \
16 --library libvirt-glib-1.0 \
17 $<
18
19 libvirt-gobject-1.0.vapi: $(top_builddir)/libvirt-gobject/LibvirtGObject-1.0.gir libvirt-glib-1.0.vapi
20 $(AM_V_GEN)$(VAPIGEN) \
21 --vapidir=$(builddir) \
22 --pkg gobject-2.0 \
23 --pkg gio-2.0 \
24 --pkg libvirt-glib-1.0 \
25 --library libvirt-gobject-1.0 \
26 --metadatadir=$(srcdir) \
27 --girdir=$(top_builddir)/libvirt-glib \
28 --girdir=$(top_builddir)/libvirt-gconfig \
29 $<
30
31 libvirt-gconfig-1.0.vapi: $(top_builddir)/libvirt-gconfig/LibvirtGConfig-1.0.gir
32 $(AM_V_GEN)$(VAPIGEN) \
33 --vapidir=$(builddir) \
34 --pkg gobject-2.0 \
35 --library libvirt-gconfig-1.0 \
36 $<
37
38 endif
39
40 CLEANFILES = \
41 libvirt-gconfig-1.0.vapi \
42 libvirt-glib-1.0.vapi \
43 libvirt-gobject-1.0.vapi \
44 $(NULL)
45
46 EXTRA_DIST = LibvirtGObject-1.0.metadata libvirt-gobject-1.0.deps
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 subdir = vapi
37 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
40 $(top_srcdir)/configure.ac
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 CONFIG_CLEAN_VPATH_FILES =
47 AM_V_GEN = $(am__v_GEN_$(V))
48 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
49 am__v_GEN_0 = @echo " GEN " $@;
50 AM_V_at = $(am__v_at_$(V))
51 am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
52 am__v_at_0 = @
53 SOURCES =
54 DIST_SOURCES =
55 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
56 am__vpath_adj = case $$p in \
57 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
58 *) f=$$p;; \
59 esac;
60 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
61 am__install_max = 40
62 am__nobase_strip_setup = \
63 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
64 am__nobase_strip = \
65 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
66 am__nobase_list = $(am__nobase_strip_setup); \
67 for p in $$list; do echo "$$p $$p"; done | \
68 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
69 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
70 if (++n[$$2] == $(am__install_max)) \
71 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
72 END { for (dir in files) print dir, files[dir] }'
73 am__base_list = \
74 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
75 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
76 am__installdirs = "$(DESTDIR)$(vapidir)"
77 DATA = $(vapi_DATA)
78 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79 ACLOCAL = @ACLOCAL@
80 AMTAR = @AMTAR@
81 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
82 AR = @AR@
83 AS = @AS@
84 AUTOCONF = @AUTOCONF@
85 AUTOHEADER = @AUTOHEADER@
86 AUTOMAKE = @AUTOMAKE@
87 AWK = @AWK@
88 CC = @CC@
89 CCDEPMODE = @CCDEPMODE@
90 CFLAGS = @CFLAGS@
91 COMPILER_FLAGS = @COMPILER_FLAGS@
92 COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
93 COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
94 CPP = @CPP@
95 CPPFLAGS = @CPPFLAGS@
96 CYGPATH_W = @CYGPATH_W@
97 CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
98 CYGWIN_EXTRA_LIBADD = @CYGWIN_EXTRA_LIBADD@
99 CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
100 DEFS = @DEFS@
101 DEPDIR = @DEPDIR@
102 DLLTOOL = @DLLTOOL@
103 DSYMUTIL = @DSYMUTIL@
104 DUMPBIN = @DUMPBIN@
105 ECHO_C = @ECHO_C@
106 ECHO_N = @ECHO_N@
107 ECHO_T = @ECHO_T@
108 EGREP = @EGREP@
109 EXEEXT = @EXEEXT@
110 FGREP = @FGREP@
111 GIO2_CFLAGS = @GIO2_CFLAGS@
112 GIO2_LIBS = @GIO2_LIBS@
113 GLIB2_CFLAGS = @GLIB2_CFLAGS@
114 GLIB2_LIBS = @GLIB2_LIBS@
115 GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
116 GOBJECT2_LIBS = @GOBJECT2_LIBS@
117 GOBJECT_INTROSPECTION_CFLAGS = @GOBJECT_INTROSPECTION_CFLAGS@
118 GOBJECT_INTROSPECTION_LIBS = @GOBJECT_INTROSPECTION_LIBS@
119 GREP = @GREP@
120 GTHREAD2_CFLAGS = @GTHREAD2_CFLAGS@
121 GTHREAD2_LIBS = @GTHREAD2_LIBS@
122 GTKDOC_CHECK = @GTKDOC_CHECK@
123 GTKDOC_MKPDF = @GTKDOC_MKPDF@
124 GTKDOC_REBASE = @GTKDOC_REBASE@
125 G_IR_COMPILER = @G_IR_COMPILER@
126 G_IR_SCANNER = @G_IR_SCANNER@
127 HTML_DIR = @HTML_DIR@
128 INSTALL = @INSTALL@
129 INSTALL_DATA = @INSTALL_DATA@
130 INSTALL_PROGRAM = @INSTALL_PROGRAM@
131 INSTALL_SCRIPT = @INSTALL_SCRIPT@
132 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
133 LD = @LD@
134 LDFLAGS = @LDFLAGS@
135 LIBOBJS = @LIBOBJS@
136 LIBS = @LIBS@
137 LIBTOOL = @LIBTOOL@
138 LIBVIRT_CFLAGS = @LIBVIRT_CFLAGS@
139 LIBVIRT_GLIB_MAJOR_VERSION = @LIBVIRT_GLIB_MAJOR_VERSION@
140 LIBVIRT_GLIB_MICRO_VERSION = @LIBVIRT_GLIB_MICRO_VERSION@
141 LIBVIRT_GLIB_MINOR_VERSION = @LIBVIRT_GLIB_MINOR_VERSION@
142 LIBVIRT_GLIB_VERSION = @LIBVIRT_GLIB_VERSION@
143 LIBVIRT_GLIB_VERSION_INFO = @LIBVIRT_GLIB_VERSION_INFO@
144 LIBVIRT_GLIB_VERSION_NUMBER = @LIBVIRT_GLIB_VERSION_NUMBER@
145 LIBVIRT_LIBS = @LIBVIRT_LIBS@
146 LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
147 LIBXML2_LIBS = @LIBXML2_LIBS@
148 LIPO = @LIPO@
149 LN_S = @LN_S@
150 LTLIBOBJS = @LTLIBOBJS@
151 MAKEINFO = @MAKEINFO@
152 MANIFEST_TOOL = @MANIFEST_TOOL@
153 MINGW_EXTRA_LDFLAGS = @MINGW_EXTRA_LDFLAGS@
154 MKDIR_P = @MKDIR_P@
155 NM = @NM@
156 NMEDIT = @NMEDIT@
157 OBJDUMP = @OBJDUMP@
158 OBJEXT = @OBJEXT@
159 OTOOL = @OTOOL@
160 OTOOL64 = @OTOOL64@
161 PACKAGE = @PACKAGE@
162 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
163 PACKAGE_NAME = @PACKAGE_NAME@
164 PACKAGE_STRING = @PACKAGE_STRING@
165 PACKAGE_TARNAME = @PACKAGE_TARNAME@
166 PACKAGE_URL = @PACKAGE_URL@
167 PACKAGE_VERSION = @PACKAGE_VERSION@
168 PATH_SEPARATOR = @PATH_SEPARATOR@
169 PKG_CONFIG = @PKG_CONFIG@
170 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
171 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
172 PYTHON = @PYTHON@
173 PYTHON_INCLUDES = @PYTHON_INCLUDES@
174 PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
175 PYTHON_VERSION = @PYTHON_VERSION@
176 RANLIB = @RANLIB@
177 SED = @SED@
178 SET_MAKE = @SET_MAKE@
179 SHELL = @SHELL@
180 STRIP = @STRIP@
181 VAPIGEN = @VAPIGEN@
182 VERSION = @VERSION@
183 WARN_CFLAGS = @WARN_CFLAGS@
184 abs_builddir = @abs_builddir@
185 abs_srcdir = @abs_srcdir@
186 abs_top_builddir = @abs_top_builddir@
187 abs_top_srcdir = @abs_top_srcdir@
188 ac_ct_AR = @ac_ct_AR@
189 ac_ct_CC = @ac_ct_CC@
190 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
191 am__include = @am__include@
192 am__leading_dot = @am__leading_dot@
193 am__quote = @am__quote@
194 am__tar = @am__tar@
195 am__untar = @am__untar@
196 bindir = @bindir@
197 build = @build@
198 build_alias = @build_alias@
199 build_cpu = @build_cpu@
200 build_os = @build_os@
201 build_vendor = @build_vendor@
202 builddir = @builddir@
203 datadir = @datadir@
204 datarootdir = @datarootdir@
205 docdir = @docdir@
206 dvidir = @dvidir@
207 exec_prefix = @exec_prefix@
208 host = @host@
209 host_alias = @host_alias@
210 host_cpu = @host_cpu@
211 host_os = @host_os@
212 host_vendor = @host_vendor@
213 htmldir = @htmldir@
214 includedir = @includedir@
215 infodir = @infodir@
216 install_sh = @install_sh@
217 libdir = @libdir@
218 libexecdir = @libexecdir@
219 localedir = @localedir@
220 localstatedir = @localstatedir@
221 mandir = @mandir@
222 mkdir_p = @mkdir_p@
223 oldincludedir = @oldincludedir@
224 pdfdir = @pdfdir@
225 prefix = @prefix@
226 program_transform_name = @program_transform_name@
227 psdir = @psdir@
228 pythondir = @pythondir@
229 sbindir = @sbindir@
230 sharedstatedir = @sharedstatedir@
231 srcdir = @srcdir@
232 sysconfdir = @sysconfdir@
233 target_alias = @target_alias@
234 top_build_prefix = @top_build_prefix@
235 top_builddir = @top_builddir@
236 top_srcdir = @top_srcdir@
237 NULL =
238 @WITH_VALA_TRUE@vapidir = $(datadir)/vala/vapi
239 @WITH_VALA_TRUE@vapi_DATA = \
240 @WITH_VALA_TRUE@ libvirt-gconfig-1.0.vapi \
241 @WITH_VALA_TRUE@ libvirt-glib-1.0.vapi \
242 @WITH_VALA_TRUE@ libvirt-gobject-1.0.deps \
243 @WITH_VALA_TRUE@ libvirt-gobject-1.0.vapi \
244 @WITH_VALA_TRUE@ $(NULL)
245
246 CLEANFILES = \
247 libvirt-gconfig-1.0.vapi \
248 libvirt-glib-1.0.vapi \
249 libvirt-gobject-1.0.vapi \
250 $(NULL)
251
252 EXTRA_DIST = LibvirtGObject-1.0.metadata libvirt-gobject-1.0.deps
253 all: all-am
254
255 .SUFFIXES:
256 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
257 @for dep in $?; do \
258 case '$(am__configure_deps)' in \
259 *$$dep*) \
260 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
261 && { if test -f $@; then exit 0; else break; fi; }; \
262 exit 1;; \
263 esac; \
264 done; \
265 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu vapi/Makefile'; \
266 $(am__cd) $(top_srcdir) && \
267 $(AUTOMAKE) --gnu vapi/Makefile
268 .PRECIOUS: Makefile
269 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
270 @case '$?' in \
271 *config.status*) \
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
273 *) \
274 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
275 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
276 esac;
277
278 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
280
281 $(top_srcdir)/configure: $(am__configure_deps)
282 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
283 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
284 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
285 $(am__aclocal_m4_deps):
286
287 mostlyclean-libtool:
288 -rm -f *.lo
289
290 clean-libtool:
291 -rm -rf .libs _libs
292 install-vapiDATA: $(vapi_DATA)
293 @$(NORMAL_INSTALL)
294 test -z "$(vapidir)" || $(MKDIR_P) "$(DESTDIR)$(vapidir)"
295 @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \
296 for p in $$list; do \
297 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
298 echo "$$d$$p"; \
299 done | $(am__base_list) | \
300 while read files; do \
301 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(vapidir)'"; \
302 $(INSTALL_DATA) $$files "$(DESTDIR)$(vapidir)" || exit $$?; \
303 done
304
305 uninstall-vapiDATA:
306 @$(NORMAL_UNINSTALL)
307 @list='$(vapi_DATA)'; test -n "$(vapidir)" || list=; \
308 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
309 test -n "$$files" || exit 0; \
310 echo " ( cd '$(DESTDIR)$(vapidir)' && rm -f" $$files ")"; \
311 cd "$(DESTDIR)$(vapidir)" && rm -f $$files
312 tags: TAGS
313 TAGS:
314
315 ctags: CTAGS
316 CTAGS:
317
318
319 distdir: $(DISTFILES)
320 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
321 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
322 list='$(DISTFILES)'; \
323 dist_files=`for file in $$list; do echo $$file; done | \
324 sed -e "s|^$$srcdirstrip/||;t" \
325 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
326 case $$dist_files in \
327 */*) $(MKDIR_P) `echo "$$dist_files" | \
328 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
329 sort -u` ;; \
330 esac; \
331 for file in $$dist_files; do \
332 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
333 if test -d $$d/$$file; then \
334 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
335 if test -d "$(distdir)/$$file"; then \
336 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
337 fi; \
338 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
339 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
340 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
341 fi; \
342 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
343 else \
344 test -f "$(distdir)/$$file" \
345 || cp -p $$d/$$file "$(distdir)/$$file" \
346 || exit 1; \
347 fi; \
348 done
349 check-am: all-am
350 check: check-am
351 all-am: Makefile $(DATA)
352 installdirs:
353 for dir in "$(DESTDIR)$(vapidir)"; do \
354 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
355 done
356 install: install-am
357 install-exec: install-exec-am
358 install-data: install-data-am
359 uninstall: uninstall-am
360
361 install-am: all-am
362 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
363
364 installcheck: installcheck-am
365 install-strip:
366 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
367 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
368 `test -z '$(STRIP)' || \
369 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
370 mostlyclean-generic:
371
372 clean-generic:
373 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
374
375 distclean-generic:
376 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
377 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
378
379 maintainer-clean-generic:
380 @echo "This command is intended for maintainers to use"
381 @echo "it deletes files that may require special tools to rebuild."
382 clean: clean-am
383
384 clean-am: clean-generic clean-libtool mostlyclean-am
385
386 distclean: distclean-am
387 -rm -f Makefile
388 distclean-am: clean-am distclean-generic
389
390 dvi: dvi-am
391
392 dvi-am:
393
394 html: html-am
395
396 html-am:
397
398 info: info-am
399
400 info-am:
401
402 install-data-am: install-vapiDATA
403
404 install-dvi: install-dvi-am
405
406 install-dvi-am:
407
408 install-exec-am:
409
410 install-html: install-html-am
411
412 install-html-am:
413
414 install-info: install-info-am
415
416 install-info-am:
417
418 install-man:
419
420 install-pdf: install-pdf-am
421
422 install-pdf-am:
423
424 install-ps: install-ps-am
425
426 install-ps-am:
427
428 installcheck-am:
429
430 maintainer-clean: maintainer-clean-am
431 -rm -f Makefile
432 maintainer-clean-am: distclean-am maintainer-clean-generic
433
434 mostlyclean: mostlyclean-am
435
436 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
437
438 pdf: pdf-am
439
440 pdf-am:
441
442 ps: ps-am
443
444 ps-am:
445
446 uninstall-am: uninstall-vapiDATA
447
448 .MAKE: install-am install-strip
449
450 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
451 distclean distclean-generic distclean-libtool distdir dvi \
452 dvi-am html html-am info info-am install install-am \
453 install-data install-data-am install-dvi install-dvi-am \
454 install-exec install-exec-am install-html install-html-am \
455 install-info install-info-am install-man install-pdf \
456 install-pdf-am install-ps install-ps-am install-strip \
457 install-vapiDATA installcheck installcheck-am installdirs \
458 maintainer-clean maintainer-clean-generic mostlyclean \
459 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
460 uninstall uninstall-am uninstall-vapiDATA
461
462
463 @WITH_VALA_TRUE@libvirt-glib-1.0.vapi: $(top_builddir)/libvirt-glib/LibvirtGLib-1.0.gir
464 @WITH_VALA_TRUE@ $(AM_V_GEN)$(VAPIGEN) \
465 @WITH_VALA_TRUE@ --vapidir=$(builddir) \
466 @WITH_VALA_TRUE@ --pkg gobject-2.0 \
467 @WITH_VALA_TRUE@ --pkg gio-2.0 \
468 @WITH_VALA_TRUE@ --library libvirt-glib-1.0 \
469 @WITH_VALA_TRUE@ $<
470
471 @WITH_VALA_TRUE@libvirt-gobject-1.0.vapi: $(top_builddir)/libvirt-gobject/LibvirtGObject-1.0.gir libvirt-glib-1.0.vapi
472 @WITH_VALA_TRUE@ $(AM_V_GEN)$(VAPIGEN) \
473 @WITH_VALA_TRUE@ --vapidir=$(builddir) \
474 @WITH_VALA_TRUE@ --pkg gobject-2.0 \
475 @WITH_VALA_TRUE@ --pkg gio-2.0 \
476 @WITH_VALA_TRUE@ --pkg libvirt-glib-1.0 \
477 @WITH_VALA_TRUE@ --library libvirt-gobject-1.0 \
478 @WITH_VALA_TRUE@ --metadatadir=$(srcdir) \
479 @WITH_VALA_TRUE@ --girdir=$(top_builddir)/libvirt-glib \
480 @WITH_VALA_TRUE@ --girdir=$(top_builddir)/libvirt-gconfig \
481 @WITH_VALA_TRUE@ $<
482
483 @WITH_VALA_TRUE@libvirt-gconfig-1.0.vapi: $(top_builddir)/libvirt-gconfig/LibvirtGConfig-1.0.gir
484 @WITH_VALA_TRUE@ $(AM_V_GEN)$(VAPIGEN) \
485 @WITH_VALA_TRUE@ --vapidir=$(builddir) \
486 @WITH_VALA_TRUE@ --pkg gobject-2.0 \
487 @WITH_VALA_TRUE@ --library libvirt-gconfig-1.0 \
488 @WITH_VALA_TRUE@ $<
489
490 # Tell versions [3.59,3.63) of GNU make to not export all variables.
491 # Otherwise a system limit (for SysV at least) may be exceeded.
492 .NOEXPORT:
0 libvirt-gconfig-1.0