Codebase list gupnp-dlna / f361bde
Imported Upstream version 0.3.0 Andreas Henriksson 13 years ago
55 changed file(s) with 4605 addition(s) and 3173 deletion(s). Raw diff Collapse all Expand all
00 # Generated by Makefile. Do not edit.
11
2 commit 8a5f2cf659d0877d04f32d062682b66e229d36c8
3 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
2 commit: 070933f 070933f6789de719d789a864c85f46550af1808f
3 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
4 Date: Mon Aug 16 23:03:34 2010 +0530
5
6 libgupnp-dlna: Don't free the profiles list
7
8 Freeing the list at finalize() time causes Discoverer to break after the
9 first instance is created. For now, we keep the list alive forever
10 (which was the original behaviour). Eventually, we'll change this so
11 that the lists only last for the lifetime of the objects.
12
13
14 libgupnp-dlna/gupnp-dlna-discoverer.c | 7 -------
15 1 files changed, 0 insertions(+), 7 deletions(-)
16 commit: 5087e23 5087e23939e5fbe8e917b21a3d959137d939742e
17 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
18 Date: Mon Aug 16 21:30:22 2010 +0530
19
20 libgupnp-dlna: add 'extended' mode property
21
22 This patch adds getters for the 'extended' mode
23 property on the GUPnPDLNAProfile class.
24
25
26 libgupnp-dlna/gupnp-dlna-load.c | 3 ++-
27 libgupnp-dlna/gupnp-dlna-profile.c | 22 ++++++++++++++++++++--
28 libgupnp-dlna/gupnp-dlna-profile.h | 4 +++-
29 3 files changed, 25 insertions(+), 4 deletions(-)
30 commit: 8854593 8854593127c587b7deab44af2d4acd3702b20f7a
31 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
32 Date: Mon Aug 16 20:56:52 2010 +0530
33
34 libgupnp-dlna: add getters for properties
35
36 This patch adds the getters for relaxed_mode and extended_mode
37 of GUPnPDLNADiscoverer
38
39
40 libgupnp-dlna/gupnp-dlna-discoverer.c | 74 ++++++++++++++++++++++++---------
41 libgupnp-dlna/gupnp-dlna-discoverer.h | 9 ++++-
42 tests/dlna-encoding.c | 4 +-
43 tools/gupnp-dlna-info.c | 4 +-
44 tools/gupnp-dlna-ls-profiles.c | 4 +-
45 5 files changed, 71 insertions(+), 24 deletions(-)
46 commit: 17aa09a 17aa09acdbb4e96537496f5564c6134b50247d4a
47 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
48 Date: Mon Aug 16 20:41:37 2010 +0530
49
50 libgupnp-dlna: Remove unused variable
51
52
53 libgupnp-dlna/gupnp-dlna-profiles.c | 2 --
54 1 files changed, 0 insertions(+), 2 deletions(-)
55 commit: ceb9616 ceb961611db39d1ccb1658977edc702b882cf14a
56 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
57 Date: Mon Aug 16 19:25:30 2010 +0530
58
59 docs: Update NEWS
60
61
62 NEWS | 24 +++++++++++++++++++++++-
63 1 files changed, 23 insertions(+), 1 deletions(-)
64 commit: 53e9880 53e9880c079a2def15a1bc9d16bd4f90641044ad
65 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
66 Date: Mon Aug 16 18:32:23 2010 +0530
67
68 build: Bump to version 0.3.0
69
70 Bumping to 0.3.0 since we've got a whole bunch of API changes.
71
72
73 configure.ac | 2 +-
74 1 files changed, 1 insertions(+), 1 deletions(-)
75 commit: fdfaed8 fdfaed8ffe4f7e62105c7e8ad03031324150c7ea
76 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
77 Date: Mon Aug 16 18:02:37 2010 +0530
78
79 libgupnp-dlna: Don't depend on gcc-specific attributes
80
81 zeenix points out that g_getenv() isn't *that* expensive, so this
82 removes the dependency on GCC's constructor attribute. If in the future
83 we wish to optimise this, the constructor bits can be moved to a
84 gupnp_dlna_init() or to one of the class init functions.
85
86
87 libgupnp-dlna/gupnp-dlna-profiles.c | 17 +++++------------
88 1 files changed, 5 insertions(+), 12 deletions(-)
89 commit: 1fe1ec2 1fe1ec2a4103af23e9074ccb9ec1dc7d9843ab28
90 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
91 Date: Mon Aug 16 17:01:51 2010 +0530
92
93 build: Bump version to 0.2.2
94
95
96 configure.ac | 2 +-
97 1 files changed, 1 insertions(+), 1 deletions(-)
98 commit: eb98d60 eb98d6097beb4499962f1e670e1bef2aed0f20db
99 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
100 Date: Mon Aug 16 14:08:39 2010 +0530
101
102 libgupnp-dlna: Add some debug output
103
104 This allows us to debug why a file doesn't match any profile without
105 having to jump through hoops. The output can be enabled by setting the
106 environment variable GUPNP_DLNA_DEBUG to anything except '0'.
107
108
109 libgupnp-dlna/Makefile.am | 3 +-
110 libgupnp-dlna/gupnp-dlna-profiles.c | 41 +++++++++++++++++++++++++++++++---
111 2 files changed, 39 insertions(+), 5 deletions(-)
112 commit: 8201eb0 8201eb0b1da45b882571e39f27ca312c87807134
113 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
114 Date: Mon Aug 16 13:50:31 2010 +0530
115
116 libgupnp-dlna: add 'extended' mode property
117
118 This patch adds the 'extended' mode propery on the GUPnPDLNAProfile
119 class.
120
121
122 libgupnp-dlna/gupnp-dlna-profile.c | 19 +++++++++++++++++++
123 1 files changed, 19 insertions(+), 0 deletions(-)
124 commit: c30e5f2 c30e5f24afbb24496d56006741f33ac4bef9c486
125 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
126 Date: Mon Aug 16 13:40:12 2010 +0530
127
128 libgupnp-dlna: add 'relaxed' and 'extended' mode properties
129
130 This patch adds properties on the GUPnPDLNADiscoverer class for
131 'relaxed' mode and 'extended' mode support. These will be supported
132 in the next release.
133
134
135 libgupnp-dlna/gupnp-dlna-discoverer.c | 104 +++++++++++++++++++++++++++++++++
136 1 files changed, 104 insertions(+), 0 deletions(-)
137 commit: f35ea6b f35ea6b091d56e1483ed30d1a168944368280102
138 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
139 Date: Sat Aug 14 23:18:41 2010 +0530
140
141 docs: Add GUPnPDLNAProfile generated docs
142
143 Since the GUPnPDLNAProfile object is now part of the public API (we
144 return it from a couple of GUPnPDLNADiscoverer functions), we add it to
145 the generated documentation as well.
146
147
148 doc/Makefile.am | 1 -
149 doc/gupnp-dlna-docs.sgml | 1 +
150 doc/gupnp-dlna-sections.txt | 3 +++
151 3 files changed, 4 insertions(+), 1 deletions(-)
152 commit: 901adc7 901adc7d1d8a93e113c51cd121312cf081a58ce7
153 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
154 Date: Sat Aug 14 23:18:09 2010 +0530
155
156 libgupnp-dlna: Update GUPnPDLNAProfile documentation
157
158
159 libgupnp-dlna/gupnp-dlna-profile.c | 24 +++++++++++++++++++++---
160 1 files changed, 21 insertions(+), 3 deletions(-)
161 commit: 33890a3 33890a344053b36deb2ed4717aa65fd968537bd8
162 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
163 Date: Sat Aug 14 22:46:29 2010 +0530
164
165 tools: Add a tool to list supported profiles
166
167 This lists all supported profiles. There is a verbose mode (-v) which
168 dumps the GstCaps for the restrictions of that profile.
169
170
171 tools/Makefile.am | 2 +-
172 tools/gupnp-dlna-ls-profiles.c | 128 ++++++++++++++++++++++++++++++++++++++++
173 2 files changed, 129 insertions(+), 1 deletions(-)
174 commit: 6a136db 6a136db697f81055194c899d8893ffe53a674b65
175 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
176 Date: Sat Aug 14 21:51:07 2010 +0530
177
178 libgupnp-dlna: Add an API to list profiles
179
180
181 libgupnp-dlna/gupnp-dlna-discoverer.c | 20 ++++++++++++++++++++
182 libgupnp-dlna/gupnp-dlna-discoverer.h | 4 ++++
183 2 files changed, 24 insertions(+), 0 deletions(-)
184 commit: bf75bde bf75bde19c057d8d6341c126b25aa01c9a3f6928
185 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
186 Date: Sat Aug 14 21:46:39 2010 +0530
187
188 docs: Add a note about Gst initialisation
189
190 This is particularly important now that we load profiles at Discoverer
191 class initialisation time.
192
193
194 doc/gupnp-dlna-docs.sgml | 5 +++++
195 1 files changed, 5 insertions(+), 0 deletions(-)
196 commit: 62f9c8a 62f9c8aa05599b9cf5af73bdc42d0d5c51ab4b3c
197 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
198 Date: Sat Aug 14 17:44:51 2010 +0530
199
200 libgupnp-dlna: Move profile list to DLNADiscovererClass
201
202 Instead of keeping the profile list loaded from disk in a static global
203 variable, we now make this a static member on the GUPnPDLNADiscoverer
204 class.
205
206 Corresponding to this, we move _get_profile() (and future API of a
207 similar nature) from the library-wide namespace into the class'
208 namespace.
209
210 Based on a patch from:
211 Parthasarathi Susarla <partha.susarla@collabora.co.uk>
212
213
214 libgupnp-dlna/gupnp-dlna-discoverer.c | 58 ++++++++++++++++++++++++++++++-
215 libgupnp-dlna/gupnp-dlna-discoverer.h | 10 +++++
216 libgupnp-dlna/gupnp-dlna-information.h | 3 +-
217 libgupnp-dlna/gupnp-dlna-profile.h | 2 -
218 libgupnp-dlna/gupnp-dlna-profiles.c | 53 +++++++++--------------------
219 tests/dlna-encoding.c | 9 ++++-
220 6 files changed, 92 insertions(+), 43 deletions(-)
221 commit: 5d43687 5d436874e7f9d1a94fd6503ed26e44bf086ec5e1
222 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
223 Date: Sat Aug 14 17:28:47 2010 +0530
224
225 libgupnp-dlna: Clean up non-matched profiles
226
227 Once we're done loading profiles, we can remove the profiles with empty
228 names which are used as base profiles in inheritance but are actually
229 skipped while matching.
230
231
232 libgupnp-dlna/gupnp-dlna-load.c | 19 ++++++++++++++++++-
233 1 files changed, 18 insertions(+), 1 deletions(-)
234 commit: d752a31 d752a319859f3ea47af84c0d39b66bf88943bb6e
235 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
236 Date: Wed Jul 14 10:46:12 2010 +0530
237
238 tests: Add a test harness for testing discoverer
239
240 The harness expects a tests/media directory with a file list in the
241 format described in a comment at the top of the harness. The means to
242 set up the media directory will come in a subsequent commit.
243
244
245 configure.ac | 1 +
246 tests/Makefile.am | 3 ++
247 tests/test-discoverer.sh.in | 67 +++++++++++++++++++++++++++++++++++++++++++
248 3 files changed, 71 insertions(+), 0 deletions(-)
249 commit: 4bf5dec 4bf5dec94585bec1abdd0ae9cd198cd36c7d41c1
250 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
251 Date: Sat Aug 14 02:45:13 2010 +0530
252
253 libgupnp-dlna: Support interlaced files
254
255 It's just a matter of setting the caps appropriately if the
256 GstVideoInformation structure has the corresponding field set.
257
258
259 libgupnp-dlna/gupnp-dlna-profiles.c | 3 +++
260 1 files changed, 3 insertions(+), 0 deletions(-)
261 commit: 836ca74 836ca7468ed934e7a1e669e78bb32d8e31503ce8
262 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
263 Date: Sat Aug 14 02:55:26 2010 +0530
264
265 xml: Fix typo in AVC_MP4_MP_HD_1080i_AAC
266
267
268 data/avc.xml | 2 +-
269 1 files changed, 1 insertions(+), 1 deletions(-)
270 commit: 9d9eed0 9d9eed05bdda24465795c0b43f0b64c9f03c1e5b
271 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
272 Date: Fri Aug 13 11:31:48 2010 +0530
273
274 xml: Add support for AVC_MP4_MP_HD_1080i
275
276
277 data/avc.xml | 43 +++++++++++++++++++++++++++++++++++++++++++
278 1 files changed, 43 insertions(+), 0 deletions(-)
279 commit: c787dea c787dea9be44a7d7502f725369aaca29c77d60f0
280 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
281 Date: Fri Aug 13 11:29:36 2010 +0530
282
283 xml: Add support for AVC_MP4_MP_HD_720p_AAC
284
285
286 data/avc.xml | 37 +++++++++++++++++++++++++++++++++++++
287 data/common.xml | 6 ++++++
288 2 files changed, 43 insertions(+), 0 deletions(-)
289 commit: 0210a95 0210a95939bd007733601c6d57b6d435e0abdf2c
290 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
291 Date: Fri Aug 13 02:24:06 2010 +0530
292
293 xml: Factor out common resolutions
294
295
296 data/common.xml | 18 ++++++++++++++++++
297 data/mpeg-ts.xml | 23 +++++++----------------
298 2 files changed, 25 insertions(+), 16 deletions(-)
299 commit: 9fa5251 9fa52512614475554da370b90ef24a6251cc9ba4
300 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
301 Date: Fri Aug 13 01:39:20 2010 +0530
302
303 xml: Add support for some AVC_MP4_MP_SD* profiles
304
305 This adds support for the AVC_MP4_MP_SD_AAC_MULT5,
306 AVC_MP4_MP_SD_AAC_MPEG1_L3, and AVC_MP4_MP_SD_AC3 profiles.
307
308
309 data/avc.xml | 208 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
310 1 files changed, 208 insertions(+), 0 deletions(-)
311 commit: 5af0477 5af047746ace3f5541630c40c2a8de9a64b6dfb2
312 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
313 Date: Fri Aug 13 01:28:47 2010 +0530
314
315 xml: Factor out AC3 restriction
316
317 This will allow us to reuse the restrictions for video profiles with AC3
318 audio streams.
319
320
321 data/ac3.xml | 8 ++++++--
322 1 files changed, 6 insertions(+), 2 deletions(-)
323 commit: 9322fbf 9322fbf0f5189354603ef3f6d916dd9a36b7c466
324 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
325 Date: Thu Aug 12 22:38:44 2010 +0530
326
327 libgupnp-dlna: Make GUPnPDLNAProfile opaque
328
329 This moves the public members of GUPnPDLNAProfile into a private
330 structure, accessible by getter methods and properties.
331
332
333 libgupnp-dlna/gupnp-dlna-profile.c | 180 ++++++++++++++++++++++++++++++++---
334 libgupnp-dlna/gupnp-dlna-profile.h | 9 +-
335 libgupnp-dlna/gupnp-dlna-profiles.c | 59 +++++++----
336 tests/dlna-encoding.c | 8 +-
337 tests/dlna-profile-parser.c | 13 ++-
338 5 files changed, 221 insertions(+), 48 deletions(-)
339 commit: 224a3a4 224a3a4353e174d462cea58cd6984aaf5ede7601
340 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
341 Date: Thu Aug 12 19:38:32 2010 +0530
342
343 libgupnp-dlna: Fix private structure registration
344
345 We're registering the wrong type as the private type (which only worked
346 because GUPnPDLNAInformation is bigger than GUPnPDLNAInformationPrivate)
347
348
349 libgupnp-dlna/gupnp-dlna-information.c | 2 +-
350 1 files changed, 1 insertions(+), 1 deletions(-)
351 commit: c496cf4 c496cf419b363c6f2480695f1892dee959a53ced
352 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
353 Date: Tue Aug 10 20:08:53 2010 +0530
354
355 docs: Add notes on transcoding
356
357 Summarising a discussion from IRC. Needs some fleshing out.
358
359
360 TODO | 18 ++++++++++++++++++
361 1 files changed, 18 insertions(+), 0 deletions(-)
362 commit: e4f878c e4f878c2fc9676d0d5d2e33227b058ebbdd5f39c
363 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
364 Date: Tue Jul 20 14:53:39 2010 +0530
365
366 print topology instead of just the stream info
367
368
369 tools/gupnp-dlna-info.c | 35 ++++++++++++++++++++++++-----------
370 1 files changed, 24 insertions(+), 11 deletions(-)
371 commit: 0c95772 0c9577281e2e1693ac3f298c2b295983c66c2567
372 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
373 Date: Thu Jul 22 09:47:43 2010 +0100
374
375 xml: Fix typo in bitrate field
376
377 Thanks to "tresvecesseis" on gitorious for pointing this out.
378
379
380 data/mpeg4.xml | 2 +-
381 1 files changed, 1 insertions(+), 1 deletions(-)
382 commit: 641d762 641d762d884c5808db8c578767677cfceb58ea60
383 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
384 Date: Tue Jul 20 17:02:23 2010 +0100
385
386 xml: Fix typos in AVC_MP4_BL_L3* profiles
387
388
389 data/avc.xml | 4 ++--
390 1 files changed, 2 insertions(+), 2 deletions(-)
391 commit: db90182 db90182b2ae0f9d81769c4954c4c91a2c1760bcd
392 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
393 Date: Mon Jul 19 19:08:16 2010 +0100
394
395 xml: Fix framerate in MPEG4_P2_MP4_SP_VGA_AAC profile
396
397 Seems I'd missed the framerate constriant while adding this profile.
398
399
400 data/mpeg4.xml | 1 +
401 1 files changed, 1 insertions(+), 0 deletions(-)
402 commit: cd3e7e3 cd3e7e350ea130a201612e7a547abe301c67b60f
403 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
404 Date: Mon Jul 19 17:07:16 2010 +0100
405
406 xml: Add bitrate constraint for AVC_MP4_L3L_SD_AAC
407
408
409 data/avc.xml | 5 +++++
410 1 files changed, 5 insertions(+), 0 deletions(-)
411 commit: cf633b9 cf633b975d9dd4268092b7b1fb1eb6d3b02fc519
412 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
413 Date: Fri Jul 16 20:07:30 2010 +0530
414
415 docs: Fix some warnings
416
417 Introduce some slightly redundant documentation to get rid of gtk-doc
418 warnings.
419
420
421 libgupnp-dlna/gupnp-dlna-information.c | 3 +++
422 1 files changed, 3 insertions(+), 0 deletions(-)
423 commit: 259e651 259e651385263a385e2dca309dc29d1835979f2d
424 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
425 Date: Fri Jul 16 20:05:54 2010 +0530
426
427 libgupnp-dlna: Replace redundant calls with macros
428
429 The gupnp_dlna_discoverer_{start,stop} functions were just wrappers
430 arround the corresponding gst_discoverer* APIs, so we define them as
431 macros instead.
432
433
434 libgupnp-dlna/gupnp-dlna-discoverer.c | 8 --------
435 libgupnp-dlna/gupnp-dlna-discoverer.h | 6 ++++--
436 2 files changed, 4 insertions(+), 10 deletions(-)
437 commit: bac23ee bac23eea15835f3d597eaa4f436fe640b28419ff
438 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
439 Date: Fri Jul 16 19:51:19 2010 +0530
440
441 xml: Use bitrate instead of maximum-bitrate
442
443 Moving all the fields where we use maximum-bitrate to just use the
444 bitrate for the sake of consistency. At some point in the future we will
445 need to introduce code to intelligently use whichever of these tags is
446 present in the stream.
447
448
449 data/avc.xml | 3 ---
450 data/mpeg4.xml | 12 ++++++------
451 2 files changed, 6 insertions(+), 9 deletions(-)
452 commit: f499665 f49966516a811b8e25855f111959b8134f68dc7e
453 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
454 Date: Mon Jul 19 15:47:05 2010 +0100
455
456 xml: Include common.xml in mpeg-ts.xml
457
458 We're using restrictions from common.xml but I forgot to include it.
459
460
461 data/mpeg-ts.xml | 2 ++
462 1 files changed, 2 insertions(+), 0 deletions(-)
463 commit: 8a5f2cf 8a5f2cf659d0877d04f32d062682b66e229d36c8
464 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
4465 Date: Wed Jul 14 19:21:45 2010 +0530
5466
6467 Release 0.2.1
468
7469
8470 NEWS | 5 +++++
9471 configure.ac | 2 +-
10472 2 files changed, 6 insertions(+), 1 deletions(-)
11
12 commit fcefca6d31953e17f7e3169ddc3908172a477d18
13 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
473 commit: fcefca6 fcefca6d31953e17f7e3169ddc3908172a477d18
474 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
14475 Date: Thu Jul 15 20:56:12 2010 +0530
15476
16477 build: Correct gst-plugins-base dependency
17478
18479 We don't (yet) need the latest gst-plugins-base
480
19481
20482 configure.ac | 3 ++-
21483 1 files changed, 2 insertions(+), 1 deletions(-)
22
23 commit f753153e20faf32d301046ecb48fe2b4d290a8ed
24 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
484 commit: f753153 f753153e20faf32d301046ecb48fe2b4d290a8ed
485 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
25486 Date: Thu Jul 8 21:14:43 2010 +0530
26487
27488 build: Update gstreamer dependency
28489
29490 The newly imported gst-convenience will depend on gstreamer-0.10.30
491
30492
31493 configure.ac | 2 +-
32494 1 files changed, 1 insertions(+), 1 deletions(-)
33
34 commit 458c82f390fbd93bd93a3819186a5fe4b68da9f8
35 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
495 commit: 458c82f 458c82f390fbd93bd93a3819186a5fe4b68da9f8
496 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
36497 Date: Wed Jul 7 15:21:33 2010 +0530
37498
38499 Release 0.2
500
39501
40502 NEWS | 21 +++++++++++++++++++++
41503 configure.ac | 2 +-
42504 2 files changed, 22 insertions(+), 1 deletions(-)
43
44 commit 7bcba3a31d3cba8ae8cc45c298cefbbbf6de646e
45 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
505 commit: 7bcba3a 7bcba3a31d3cba8ae8cc45c298cefbbbf6de646e
506 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
46507 Date: Wed Jul 7 13:59:31 2010 +0530
47508
48509 libgupnp-dlna: Remove debug print
49510
50511 This message was used for debugging and testing.
512
51513
52514 libgupnp-dlna/gupnp-dlna-profiles.c | 2 --
53515 1 files changed, 0 insertions(+), 2 deletions(-)
54
55 commit 428d4f7abee173a83732456eb006a2c737731f9f
56 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
516 commit: 428d4f7 428d4f7abee173a83732456eb006a2c737731f9f
517 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
57518 Date: Wed Jul 7 13:57:33 2010 +0530
58519
59520 gst-convenience: Rebase in-tree version
61522 Sync our copy of gst-convenience against upstream (upstream commit
62523 fab830b7692200a808655deb4aeb0afa3be4e7b1). Also includes one
63524 to-be-merged patch to fix a crash while marshalling.
525
64526
65527 .../gst/discoverer/gstdiscoverer-marshal.c | 2 +
66528 .../gst-libs/gst/discoverer/gstdiscoverer-types.c | 10 +-
74536 .../gst-libs/gst/profile/gstprofileutils.c | 184 +++++++
75537 .../gstreamer-discoverer-gupnp-dlna-0.10.vapi | 2 +-
76538 11 files changed, 889 insertions(+), 207 deletions(-)
77
78 commit 3e4ba655a3e9fe7a61d57b0a538c05355e10d1cf
79 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
539 commit: 3e4ba65 3e4ba655a3e9fe7a61d57b0a538c05355e10d1cf
540 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
80541 Date: Fri Jul 2 13:49:31 2010 +0530
81542
82543 xml: Don't require empty name/mime for profiles
85546 inheritance, we required the name and mime to be set as empty strings.
86547 This makes this unncessary in the XML (the implementation is not
87548 changed, but this is now handled transparently).
549
88550
89551 data/avc.xml | 2 +-
90552 data/dlna-profiles.rng | 26 ++++++++++++++++----------
91553 data/mpeg4.xml | 4 ++--
92554 libgupnp-dlna/gupnp-dlna-load.c | 10 ++++++++++
93555 4 files changed, 29 insertions(+), 13 deletions(-)
94
95 commit 79ac1ce24e9565db43d77c514b1eb7e48b684e80
96 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
556 commit: 79ac1ce 79ac1ce24e9565db43d77c514b1eb7e48b684e80
557 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
97558 Date: Thu Jul 1 13:15:07 2010 +0530
98559
99560 xml: Add AVC_MP4_BL_CIF15_AAC profile support
561
100562
101563 data/avc.xml | 36 +++++++++++++++++++++++++-----------
102564 1 files changed, 25 insertions(+), 11 deletions(-)
103
104 commit 303dddf6052cc26468954eb1d2ac8b549fcb7906
105 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
565 commit: 303dddf 303dddf6052cc26468954eb1d2ac8b549fcb7906
566 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
106567 Date: Wed Jun 30 18:11:34 2010 +0530
107568
108569 xml: Add the AVC_MP4_BL_L3(L)_SD_AAC profiles
570
109571
110572 data/avc.xml | 148 ++++++++++++++++++++++++++++++++++++++++++++++++-------
111573 data/common.xml | 12 +++++
112574 2 files changed, 142 insertions(+), 18 deletions(-)
113
114 commit fa4fa00545305c5954d4d9ecdbb1e8e20416667b
115 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
575 commit: fa4fa00 fa4fa00545305c5954d4d9ecdbb1e8e20416667b
576 Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
116577 Date: Mon Jul 5 13:23:06 2010 +0530
117578
118579 tools: Add utility for printing discovered info
580
119581
120582 Makefile.am | 2 +-
121583 configure.ac | 2 +
122584 tools/Makefile.am | 4 +
123585 tools/gupnp-dlna-info.c | 484 +++++++++++++++++++++++++++++++++++++++++++++++
124586 4 files changed, 491 insertions(+), 1 deletions(-)
125
126 commit be91b9ac469172db0b9e5ea2b3f5cc7d2c038652
127 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
587 commit: be91b9a be91b9ac469172db0b9e5ea2b3f5cc7d2c038652
588 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
128589 Date: Wed Jun 30 18:37:22 2010 +0530
129590
130591 doc: Add a TODO
131592
132593 Currently a brain dump of the things that I remember need doing.
594
133595
134596 TODO | 44 ++++++++++++++++++++++++++++++++++++++++++++
135597 1 files changed, 44 insertions(+), 0 deletions(-)
136
137 commit 97ca696811e3e0bf5406b6a1c58e2ae900ae3b21
138 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
598 commit: 97ca696 97ca696811e3e0bf5406b6a1c58e2ae900ae3b21
599 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
139600 Date: Wed Jun 30 15:25:50 2010 +0530
140601
141602 xml: Use bitrate in constraints for AVC*
143604 This is more likely to be set than maximum-bitrate. Also, the range
144605 starts from 1 instead of 0, to ensure that it is actually known.
145606
607
146608 data/avc.xml | 4 ++--
147609 1 files changed, 2 insertions(+), 2 deletions(-)
148
149 commit 3690dce6080b317f71850e995dfdce48fab37708
150 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
610 commit: 3690dce 3690dce6080b317f71850e995dfdce48fab37708
611 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
151612 Date: Tue Jun 29 23:07:34 2010 +0530
152613
153614 libgupnp-dlna: only free format caps if present
155616 This gets rid of a GStreamer warning in certain cases when we try to
156617 free NULL caps.
157618
619
158620 libgupnp-dlna/gupnp-dlna-load.c | 3 ++-
159621 1 files changed, 2 insertions(+), 1 deletions(-)
160
161 commit 00ad1e80bcb71a176bb24609aa09000c06e92b3d
162 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
622 commit: 00ad1e8 00ad1e80bcb71a176bb24609aa09000c06e92b3d
623 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
163624 Date: Tue Jun 29 19:55:09 2010 +0530
164625
165626 libgupnp-dlna: Detect duplicates in <include>
172633 This adds some (not fool-proof, but good enough) duplicate detection, so
173634 that we can include one XML file in another. This is particularly useful
174635 for reusing audio profile restrictions in video profiles.
636
175637
176638 libgupnp-dlna/gupnp-dlna-load.c | 85 ++++++++++++++++++++++++++++---
177639 libgupnp-dlna/gupnp-dlna-load.h | 5 +-
179641 tests/xml/duplicate-detection/dup1.xml | 11 ++++
180642 tests/xml/duplicate-detection/dup2.xml | 7 +++
181643 5 files changed, 107 insertions(+), 14 deletions(-)
182
183 commit 66ec07fbec61b4858c31c7d5039e869149adc1d5
184 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
644 commit: 66ec07f 66ec07fbec61b4858c31c7d5039e869149adc1d5
645 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
185646 Date: Tue Jun 29 11:30:47 2010 +0530
186647
187648 xml: Fix MPEG_TS_*_NA profile names
190651 long (188 byte payload + 4 byte timestamp), the profile must be suffixed
191652 with an _ISO.
192653
654
193655 data/mpeg-ts.xml | 4 ++--
194656 1 files changed, 2 insertions(+), 2 deletions(-)
195
196 commit b5d84443468cb6af8db8a50389f3fe0091bfff13
197 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
657 commit: b5d8444 b5d84443468cb6af8db8a50389f3fe0091bfff13
658 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
198659 Date: Tue Jun 29 03:03:12 2010 +0530
199660
200661 xml: Add more common SD resolutions to common.xml
201662
202663 Also makes MPEG_TS* use these factored-out restrictions.
664
203665
204666 data/common.xml | 144 +++++++++++++++++++++++++++++++++++++++++++++++-------
205667 data/mpeg-ts.xml | 42 ++-------------
206668 2 files changed, 132 insertions(+), 54 deletions(-)
207
208 commit a98581da83e17a5f77a19afcadf580d5f857c2f3
209 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
669 commit: a98581d a98581da83e17a5f77a19afcadf580d5f857c2f3
670 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
210671 Date: Mon Jun 28 19:30:13 2010 +0530
211672
212673 xml: Fix typo in AVC_BL profile
674
213675
214676 data/avc.xml | 2 +-
215677 1 files changed, 1 insertions(+), 1 deletions(-)
216
217 commit f0edbf7669ca09675e4cc6ee65a0ddd5c18e6d1f
218 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
678 commit: f0edbf7 f0edbf7669ca09675e4cc6ee65a0ddd5c18e6d1f
679 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
219680 Date: Thu Jun 24 23:03:02 2010 +0530
220681
221682 xml: Fix MP4 container usage
228689
229690 When we have smart transcoding, this will be taken care of
230691 automatically, since encodebin will be able to transmux to MP4.
692
231693
232694 data/aac.xml | 15 ---------------
233695 data/amr.xml | 4 ----
235697 data/common.xml | 5 ++++-
236698 data/mpeg4.xml | 19 -------------------
237699 5 files changed, 4 insertions(+), 45 deletions(-)
238
239 commit ac8046bcc3f3180640e822dfe4b3f0371fc4ea79
240 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
700 commit: ac8046b ac8046bcc3f3180640e822dfe4b3f0371fc4ea79
701 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
241702 Date: Tue Jun 29 11:48:42 2010 +0530
242703
243704 libgupnp-dlna: Fix crash on invalid parent
705
244706
245707 libgupnp-dlna/gupnp-dlna-load.c | 4 +++-
246708 1 files changed, 3 insertions(+), 1 deletions(-)
247
248 commit b8b92ea6f76e79bba0ad89fdfe93968787987999
249 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
709 commit: b8b92ea b8b92ea6f76e79bba0ad89fdfe93968787987999
710 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
250711 Date: Tue Jun 29 15:48:06 2010 +0530
251712
252713 libgupnp-dlna: Fix copy-paste-o in property init
253714
254715 Absolutely no cookies for me.
716
255717
256718 libgupnp-dlna/gupnp-dlna-information.c | 2 +-
257719 1 files changed, 1 insertions(+), 1 deletions(-)
258
259 commit e22f03dfb2fc45eac06d4686a4533ad7c7e5db06
260 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
720 commit: e22f03d e22f03dfb2fc45eac06d4686a4533ad7c7e5db06
721 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
261722 Date: Mon Jun 21 14:40:06 2010 +0530
262723
263724 tests: Add a transcoding exmple
264725
265726 This takes an input file and transcodes to a given DLNA profile
727
266728
267729 tests/Makefile.am | 4 +-
268730 tests/dlna-encoding.c | 238 +++++++++++++++++++++++++++++++++++++++++++++++++
269731 2 files changed, 241 insertions(+), 1 deletions(-)
270
271 commit dd6fcadd8bb5f438e5b27bd042e667e2d17a13ac
272 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
732 commit: dd6fcad dd6fcadd8bb5f438e5b27bd042e667e2d17a13ac
733 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
273734 Date: Mon Jun 21 13:33:17 2010 +0530
274735
275736 profiles: API to get encoding profile from name
276737
277738 This adds a simple API to get a GstEncodingProfile given a DLNA profile
278739 name. This should make automatic transcoding easier for clients.
740
279741
280742 libgupnp-dlna/gupnp-dlna-profile.h | 2 ++
281743 libgupnp-dlna/gupnp-dlna-profiles.c | 22 ++++++++++++++++++++++
282744 2 files changed, 24 insertions(+), 0 deletions(-)
283
284 commit ce24afc337572ba9f2e0b9693756dde7fcac4543
285 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
745 commit: ce24afc ce24afc337572ba9f2e0b9693756dde7fcac4543
746 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
286747 Date: Mon Jun 21 15:06:25 2010 +0530
287748
288749 xml: Support ID3 in MP3 profiles
290751 This also makes encoding work, since a container needs to be provided
291752 for encoding.
292753
754
293755 data/mp3.xml | 33 +++++++++++++++++++++++++--------
294756 1 files changed, 25 insertions(+), 8 deletions(-)
295
296 commit 9f442945c3c0fc3d6f01788deae9c6f248c01d9e
297 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
757 commit: 9f44294 9f442945c3c0fc3d6f01788deae9c6f248c01d9e
758 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
298759 Date: Thu Jun 24 18:16:57 2010 +0530
299760
300761 build: Get rid of gst-convenience warning
301762
302763 Suppress the unstable API warning so we don't miss other warnings.
764
303765
304766 configure.ac | 3 +++
305767 1 files changed, 3 insertions(+), 0 deletions(-)
306
307 commit 4872007d251da8d5a11c6021388feff4401ca08c
308 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
768 commit: 4872007 4872007d251da8d5a11c6021388feff4401ca08c
769 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
309770 Date: Thu Jun 24 18:12:46 2010 +0530
310771
311772 tests: Move XML test cases
312773
313774 Undo unnecessary nesting now that this is a spearate package.
775
314776
315777 tests/dlna/xml/dlna-profile-illegal-base.xml | 10 ------
316778 tests/dlna/xml/dlna-profile-illegal-parent.xml | 11 -------
339801 tests/xml/value-empty.xml | 13 ++++++++
340802 tests/xml/value-invalid.xml | 13 ++++++++
341803 26 files changed, 172 insertions(+), 172 deletions(-)
342
343 commit 47b1dd4063a825d5c3b84380ddfb5685e36754d9
344 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
804 commit: 47b1dd4 47b1dd4063a825d5c3b84380ddfb5685e36754d9
805 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
345806 Date: Thu Jun 24 18:11:04 2010 +0530
346807
347808 doc: Build documentation using gtk-doc
809
348810
349811 Makefile.am | 4 +-
350812 configure.ac | 2 +
354816 doc/gupnp-dlna.types | 3 +
355817 doc/version.xml.in | 1 +
356818 7 files changed, 224 insertions(+), 2 deletions(-)
357
358 commit 642cec131c85367cf9b8c218916f0f61e3cd3341
359 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
819 commit: 642cec1 642cec131c85367cf9b8c218916f0f61e3cd3341
820 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
360821 Date: Thu Jun 24 18:00:09 2010 +0530
361822
362823 libgupnp-dlna: Update GUPnPDLNADiscoverer documentation
363824
364825 This adds documentation for the undocumented parts of the
365826 GUPnPDLNADiscoverer API and updates other bits.
827
366828
367829 libgupnp-dlna/gupnp-dlna-discoverer.c | 67 ++++++++++++++++++++++++++++++++-
368830 libgupnp-dlna/gupnp-dlna-discoverer.h | 12 ++----
369831 2 files changed, 69 insertions(+), 10 deletions(-)
370
371 commit 3794de4597f453c6963fc960648c29bbd0cc5be5
372 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
832 commit: 3794de4 3794de4597f453c6963fc960648c29bbd0cc5be5
833 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
373834 Date: Thu Jun 24 17:59:30 2010 +0530
374835
375836 libgupnp-dlna: Document GUPnPDLNAInformation
837
376838
377839 libgupnp-dlna/gupnp-dlna-information.c | 48 +++++++++++++++++++++++++++++--
378840 1 files changed, 44 insertions(+), 4 deletions(-)
379
380 commit 44bd40eb2ab735723fba6ccf0c26664fa4030924
381 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
841 commit: 44bd40e 44bd40eb2ab735723fba6ccf0c26664fa4030924
842 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
382843 Date: Thu Jun 24 17:58:15 2010 +0530
383844
384845 libgupnp-dlna: Don't install gupnp-dlna-load.h
385846
386847 The API to load profiles from disk is not public.
848
387849
388850 libgupnp-dlna/Makefile.am | 5 +++--
389851 1 files changed, 3 insertions(+), 2 deletions(-)
390
391 commit 8442ff31df29bf288ac7ae2526fdadfbc9eeca43
392 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
852 commit: 8442ff3 8442ff31df29bf288ac7ae2526fdadfbc9eeca43
853 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
393854 Date: Thu Jun 24 14:51:32 2010 +0530
394855
395856 libgupnp-dlna: Return const pointers from get functions
398859 structure members (since these are not expected to be modified), so
399860 these should be made const pointers.
400861
862
401863 libgupnp-dlna/gupnp-dlna-information.c | 6 +++---
402864 libgupnp-dlna/gupnp-dlna-information.h | 6 +++---
403865 2 files changed, 6 insertions(+), 6 deletions(-)
404
405 commit 55ad6adc5846bf244ee1b89b607a6f7a6495c431
406 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
866 commit: 55ad6ad 55ad6adc5846bf244ee1b89b607a6f7a6495c431
867 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
407868 Date: Mon Jun 21 13:22:22 2010 +0530
408869
409870 xml: Use 3GPP container correctly
410871
411872 This corrects some ambiguous use of 3GP as an alternative to the ISO
412873 MPEG4 container.
874
413875
414876 data/aac.xml | 15 ---------------
415877 data/mpeg4.xml | 15 ++-------------
416878 2 files changed, 2 insertions(+), 28 deletions(-)
417
418 commit 7dbc61382a2579a34f6dda09a119d896cd9fe093
419 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
879 commit: 7dbc613 7dbc61382a2579a34f6dda09a119d896cd9fe093
880 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
420881 Date: Sat Jun 19 23:37:44 2010 +0530
421882
422883 Initial commit
884
423885
424886 AUTHORS | 1 +
425887 COPYING | 482 ++++++++
499961 tests/dlna/xml/value-empty.xml | 13 +
500962 tests/dlna/xml/value-invalid.xml | 13 +
501963 77 files changed, 8878 insertions(+), 0 deletions(-)
502
503 commit 5dc6021842e6d41fb9f87fcfe225ed8c390b4268
504 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
964 commit: 5dc6021 5dc6021842e6d41fb9f87fcfe225ed8c390b4268
965 Author: Arun Raghavan <arun.raghavan@collabora.co.uk>
505966 Date: Sun Jun 20 20:18:16 2010 +0530
506967
507968 misc: Add .gitignore
969
508970
509971 .gitignore | 36 ++++++++++++++++++++++++++++++++++++
510972 1 files changed, 36 insertions(+), 0 deletions(-)
3939 $(srcdir)/gupnp-dlna-1.0-uninstalled.pc.in \
4040 $(srcdir)/gupnp-dlna-1.0.pc.in $(top_srcdir)/configure AUTHORS \
4141 COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \
42 depcomp install-sh ltmain.sh missing
42 depcomp install-sh ltmain.sh missing mkinstalldirs
4343 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4444 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4545 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4646 $(ACLOCAL_M4)
4747 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
4848 configure.lineno config.status.lineno
49 mkinstalldirs = $(install_sh) -d
49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
5050 CONFIG_HEADER = config.h
5151 CONFIG_CLEAN_FILES = gupnp-dlna-1.0.pc gupnp-dlna-1.0-uninstalled.pc
5252 CONFIG_CLEAN_VPATH_FILES =
205205 PACKAGE_VERSION = @PACKAGE_VERSION@
206206 PATH_SEPARATOR = @PATH_SEPARATOR@
207207 PKG_CONFIG = @PKG_CONFIG@
208 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
209 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
210208 RANLIB = @RANLIB@
211209 SED = @SED@
212210 SET_MAKE = @SET_MAKE@
249247 libexecdir = @libexecdir@
250248 localedir = @localedir@
251249 localstatedir = @localstatedir@
250 lt_ECHO = @lt_ECHO@
252251 mandir = @mandir@
253252 mkdir_p = @mkdir_p@
254253 oldincludedir = @oldincludedir@
0 0.3.0
1 =====
2
3 Changes since 0.2.1:
4
5 - New API and tool (gupnp-dlna-ls-profiles) to list all supported profiles
6 - Move API to get a profile to the DLNADiscoverer namespace
7 - Make GUPnPDLNAProfile opaque, add to API documentation
8 - Add support for several AVC_MP4_MP profiles
9 - Print stream topology instead of a simple list in gupnp-dlna-info
10 - Add debug output controlled by an environment variable for eaesier
11 debugging
12 - Beginnings of an automated testing infrastructure
13 - Add relaxed/extended mode properties (more details in the next release)
14 - Use 'bitrate' instead of 'maximum-bitrate' while matching streams
15 - Various bug fixes
16
17 All contributors to this release:
18
19 Arun Raghavan <arun.raghavan@collabora.co.uk>
20 Parthasarathi Susarla <partha.susarla@collabora.co.uk>
21
022 0.2.1
1 ====
23 =====
224
325 Brown paper-bag release for bad gstreamer dependency.
426
4141 encoder from encodebin. Edward has a plan for this.
4242
4343 * Bitrate/profile/level are not exported by MPEG-TS streams.
44
45
46 More on encoding
47 ----
48
49 Jotting down discussion on the encoding API. This is not necessarily final.
50
51 1. Rygel fetches list of DLNA profile names that it should offer to transcode
52 to from config
53 2. Rygel asks gupnp-dlna for list of all supported profiles
54 3. Rygel filters that list against the profiles that config has asked for
55 4. Rygel sorts the filtered list by "distance" from the streams
56 GUPnPDLNAInformation
57
58 Here distance is a metric of transcoding "difficulty" (shorter distance =>
59 easier to transcode). Basically:
60
61 transmuxing < audio transcode < video transcode < audio+video transcode
987987 AC_SUBST([am__untar])
988988 ]) # _AM_PROG_TAR
989989
990 dnl -*- mode: autoconf -*-
991
992 # serial 1
993
994 dnl Usage:
995 dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
996 AC_DEFUN([GTK_DOC_CHECK],
997 [
998 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
999 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
1000
1001 dnl check for tools we added during development
1002 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
1003 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
1004 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
1005
1006 dnl for overriding the documentation installation directory
1007 AC_ARG_WITH([html-dir],
1008 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
1009 [with_html_dir='${datadir}/gtk-doc/html'])
1010 HTML_DIR="$with_html_dir"
1011 AC_SUBST([HTML_DIR])
1012
1013 dnl enable/disable documentation building
1014 AC_ARG_ENABLE([gtk-doc],
1015 AS_HELP_STRING([--enable-gtk-doc],
1016 [use gtk-doc to build documentation [[default=no]]]),,
1017 [enable_gtk_doc=no])
1018
1019 if test x$enable_gtk_doc = xyes; then
1020 ifelse([$1],[],
1021 [PKG_CHECK_EXISTS([gtk-doc],,
1022 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
1023 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
1024 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
1025 fi
1026
1027 AC_MSG_CHECKING([whether to build gtk-doc documentation])
1028 AC_MSG_RESULT($enable_gtk_doc)
1029
1030 dnl enable/disable output formats
1031 AC_ARG_ENABLE([gtk-doc-html],
1032 AS_HELP_STRING([--enable-gtk-doc-html],
1033 [build documentation in html format [[default=yes]]]),,
1034 [enable_gtk_doc_html=yes])
1035 AC_ARG_ENABLE([gtk-doc-pdf],
1036 AS_HELP_STRING([--enable-gtk-doc-pdf],
1037 [build documentation in pdf format [[default=no]]]),,
1038 [enable_gtk_doc_pdf=no])
1039
1040 if test -z "$GTKDOC_MKPDF"; then
1041 enable_gtk_doc_pdf=no
1042 fi
1043
1044
1045 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
1046 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
1047 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
1048 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
1049 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
1050 ])
1051
1052990 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1053991 #
1054992 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1055 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1056 # Inc.
993 # 2006, 2007, 2008 Free Software Foundation, Inc.
1057994 # Written by Gordon Matzigkeit, 1996
1058995 #
1059996 # This file is free software; the Free Software Foundation gives
1062999
10631000 m4_define([_LT_COPYING], [dnl
10641001 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1065 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
1066 # Inc.
1002 # 2006, 2007, 2008 Free Software Foundation, Inc.
10671003 # Written by Gordon Matzigkeit, 1996
10681004 #
10691005 # This file is part of GNU Libtool.
10901026 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10911027 ])
10921028
1093 # serial 57 LT_INIT
1029 # serial 56 LT_INIT
10941030
10951031
10961032 # LT_PREREQ(VERSION)
11191055 # ------------------
11201056 AC_DEFUN([LT_INIT],
11211057 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1122 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
11231058 AC_BEFORE([$0], [LT_LANG])dnl
11241059 AC_BEFORE([$0], [LT_OUTPUT])dnl
11251060 AC_BEFORE([$0], [LTDL_INIT])dnl
11351070 AC_REQUIRE([LTVERSION_VERSION])dnl
11361071 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
11371072 m4_require([_LT_PROG_LTMAIN])dnl
1138
1139 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
11401073
11411074 dnl Parse OPTIONS
11421075 _LT_SET_OPTIONS([$0], [$1])
11741107 *) break;;
11751108 esac
11761109 done
1177 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1110 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11781111 ])
11791112
11801113
11941127 m4_defun([_LT_SETUP],
11951128 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
11961129 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1197 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1198 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1199
12001130 _LT_DECL([], [host_alias], [0], [The host system])dnl
12011131 _LT_DECL([], [host], [0])dnl
12021132 _LT_DECL([], [host_os], [0])dnl
12381168 _LT_CHECK_OBJDIR
12391169
12401170 m4_require([_LT_TAG_COMPILER])dnl
1171 _LT_PROG_ECHO_BACKSLASH
12411172
12421173 case $host_os in
12431174 aix3*)
12511182 ;;
12521183 esac
12531184
1185 # Sed substitution that helps us do robust quoting. It backslashifies
1186 # metacharacters that are still active within double-quoted strings.
1187 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1188
1189 # Same as above, but do not quote variable references.
1190 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1191
1192 # Sed substitution to delay expansion of an escaped shell variable in a
1193 # double_quote_subst'ed string.
1194 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1195
1196 # Sed substitution to delay expansion of an escaped single quote.
1197 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1198
1199 # Sed substitution to avoid accidental globbing in evaled expressions
1200 no_glob_subst='s/\*/\\\*/g'
1201
12541202 # Global variables:
12551203 ofile=libtool
12561204 can_build_shared=yes
12901238 _LT_CONFIG_COMMANDS
12911239 ])# _LT_SETUP
12921240
1293
1294 # _LT_PREPARE_SED_QUOTE_VARS
1295 # --------------------------
1296 # Define a few sed substitution that help us do robust quoting.
1297 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1298 [# Backslashify metacharacters that are still active within
1299 # double-quoted strings.
1300 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1301
1302 # Same as above, but do not quote variable references.
1303 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1304
1305 # Sed substitution to delay expansion of an escaped shell variable in a
1306 # double_quote_subst'ed string.
1307 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1308
1309 # Sed substitution to delay expansion of an escaped single quote.
1310 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1311
1312 # Sed substitution to avoid accidental globbing in evaled expressions
1313 no_glob_subst='s/\*/\\\*/g'
1314 ])
13151241
13161242 # _LT_PROG_LTMAIN
13171243 # ---------------
14651391 # declaration there will have the same value as in `configure'. VARNAME
14661392 # must have a single quote delimited value for this to work.
14671393 m4_define([_LT_CONFIG_STATUS_DECLARE],
1468 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1394 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
14691395
14701396
14711397 # _LT_CONFIG_STATUS_DECLARATIONS
14751401 # embedded single quotes properly. In configure, this macro expands
14761402 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
14771403 #
1478 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1404 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
14791405 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
14801406 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
14811407 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
15741500 LTCFLAGS='$LTCFLAGS'
15751501 compiler='$compiler_DEFAULT'
15761502
1577 # A function that is used when there is no print builtin or printf.
1578 func_fallback_echo ()
1579 {
1580 eval 'cat <<_LTECHO_EOF
1581 \$[]1
1582 _LTECHO_EOF'
1583 }
1584
15851503 # Quote evaled strings.
15861504 for var in lt_decl_all_varnames([[ \
15871505 ]], lt_decl_quote_varnames); do
1588 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1506 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15891507 *[[\\\\\\\`\\"\\\$]]*)
1590 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1508 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15911509 ;;
15921510 *)
15931511 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15981516 # Double-quote double-evaled strings.
15991517 for var in lt_decl_all_varnames([[ \
16001518 ]], lt_decl_dquote_varnames); do
1601 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1519 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16021520 *[[\\\\\\\`\\"\\\$]]*)
1603 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16041522 ;;
16051523 *)
16061524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16081526 esac
16091527 done
16101528
1529 # Fix-up fallback echo if it was mangled by the above quoting rules.
1530 case \$lt_ECHO in
1531 *'\\\[$]0 --fallback-echo"')dnl "
1532 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1533 ;;
1534 esac
1535
16111536 _LT_OUTPUT_LIBTOOL_INIT
16121537 ])
16131538
1614 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1615 # ------------------------------------
1616 # Generate a child script FILE with all initialization necessary to
1617 # reuse the environment learned by the parent script, and make the
1618 # file executable. If COMMENT is supplied, it is inserted after the
1619 # `#!' sequence but before initialization text begins. After this
1620 # macro, additional text can be appended to FILE to form the body of
1621 # the child script. The macro ends with non-zero status if the
1622 # file could not be fully written (such as if the disk is full).
1623 m4_ifdef([AS_INIT_GENERATED],
1624 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1625 [m4_defun([_LT_GENERATED_FILE_INIT],
1626 [m4_require([AS_PREPARE])]dnl
1627 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1628 [lt_write_fail=0
1629 cat >$1 <<_ASEOF || lt_write_fail=1
1630 #! $SHELL
1631 # Generated by $as_me.
1632 $2
1633 SHELL=\${CONFIG_SHELL-$SHELL}
1634 export SHELL
1635 _ASEOF
1636 cat >>$1 <<\_ASEOF || lt_write_fail=1
1637 AS_SHELL_SANITIZE
1638 _AS_PREPARE
1639 exec AS_MESSAGE_FD>&1
1640 _ASEOF
1641 test $lt_write_fail = 0 && chmod +x $1[]dnl
1642 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
16431539
16441540 # LT_OUTPUT
16451541 # ---------
16491545 AC_DEFUN([LT_OUTPUT],
16501546 [: ${CONFIG_LT=./config.lt}
16511547 AC_MSG_NOTICE([creating $CONFIG_LT])
1652 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1653 [# Run this file to recreate a libtool stub with the current configuration.])
1548 cat >"$CONFIG_LT" <<_LTEOF
1549 #! $SHELL
1550 # Generated by $as_me.
1551 # Run this file to recreate a libtool stub with the current configuration.
1552
1553 lt_cl_silent=false
1554 SHELL=\${CONFIG_SHELL-$SHELL}
1555 _LTEOF
16541556
16551557 cat >>"$CONFIG_LT" <<\_LTEOF
1656 lt_cl_silent=false
1558 AS_SHELL_SANITIZE
1559 _AS_PREPARE
1560
1561 exec AS_MESSAGE_FD>&1
16571562 exec AS_MESSAGE_LOG_FD>>config.log
16581563 {
16591564 echo
16791584 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
16801585 configured by $[0], generated by m4_PACKAGE_STRING.
16811586
1682 Copyright (C) 2010 Free Software Foundation, Inc.
1587 Copyright (C) 2008 Free Software Foundation, Inc.
16831588 This config.lt script is free software; the Free Software Foundation
16841589 gives unlimited permision to copy, distribute and modify it."
16851590
17241629 # appending to config.log, which fails on DOS, as config.log is still kept
17251630 # open by configure. Here we exec the FD to /dev/null, effectively closing
17261631 # config.log, so it can be properly (re)opened and appended to by config.lt.
1727 lt_cl_success=:
1728 test "$silent" = yes &&
1729 lt_config_lt_args="$lt_config_lt_args --quiet"
1730 exec AS_MESSAGE_LOG_FD>/dev/null
1731 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1732 exec AS_MESSAGE_LOG_FD>>config.log
1733 $lt_cl_success || AS_EXIT(1)
1632 if test "$no_create" != yes; then
1633 lt_cl_success=:
1634 test "$silent" = yes &&
1635 lt_config_lt_args="$lt_config_lt_args --quiet"
1636 exec AS_MESSAGE_LOG_FD>/dev/null
1637 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1638 exec AS_MESSAGE_LOG_FD>>config.log
1639 $lt_cl_success || AS_EXIT(1)
1640 fi
17341641 ])# LT_OUTPUT
17351642
17361643
19071814 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
19081815 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
19091816 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1910 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
19111817 dnl aclocal-1.4 backwards compatibility:
19121818 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
19131819 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
19141820 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
19151821 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1916 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
19171822
19181823
19191824 # _LT_TAG_COMPILER
20181923 [lt_cv_ld_exported_symbols_list=no])
20191924 LDFLAGS="$save_LDFLAGS"
20201925 ])
2021 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
2022 [lt_cv_ld_force_load=no
2023 cat > conftest.c << _LT_EOF
2024 int forced_loaded() { return 2;}
2025 _LT_EOF
2026 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
2027 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
2028 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
2029 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
2030 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
2031 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
2032 cat > conftest.c << _LT_EOF
2033 int main() { return 0;}
2034 _LT_EOF
2035 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
2036 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
2037 _lt_result=$?
2038 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
2039 lt_cv_ld_force_load=yes
2040 else
2041 cat conftest.err >&AS_MESSAGE_LOG_FD
2042 fi
2043 rm -f conftest.err libconftest.a conftest conftest.c
2044 rm -rf conftest.dSYM
2045 ])
20461926 case $host_os in
20471927 rhapsody* | darwin1.[[012]])
20481928 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
20701950 else
20711951 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
20721952 fi
2073 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1953 if test "$DSYMUTIL" != ":"; then
20741954 _lt_dsymutil='~$DSYMUTIL $lib || :'
20751955 else
20761956 _lt_dsymutil=
20901970 _LT_TAGVAR(hardcode_direct, $1)=no
20911971 _LT_TAGVAR(hardcode_automatic, $1)=yes
20921972 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2093 if test "$lt_cv_ld_force_load" = "yes"; then
2094 _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\"`'
2095 else
2096 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
2097 fi
1973 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
20981974 _LT_TAGVAR(link_all_deplibs, $1)=yes
20991975 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
21001976 case $cc_basename in
21021978 *) _lt_dar_can_shared=$GCC ;;
21031979 esac
21041980 if test "$_lt_dar_can_shared" = "yes"; then
2105 output_verbose_link_cmd=func_echo_all
1981 output_verbose_link_cmd=echo
21061982 _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}"
21071983 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21081984 _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}"
21482024 # _LT_SHELL_INIT(ARG)
21492025 # -------------------
21502026 m4_define([_LT_SHELL_INIT],
2151 [m4_divert_text([M4SH-INIT], [$1
2152 ])])# _LT_SHELL_INIT
2153
2027 [ifdef([AC_DIVERSION_NOTICE],
2028 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2029 [AC_DIVERT_PUSH(NOTICE)])
2030 $1
2031 AC_DIVERT_POP
2032 ])# _LT_SHELL_INIT
21542033
21552034
21562035 # _LT_PROG_ECHO_BACKSLASH
21572036 # -----------------------
2158 # Find how we can fake an echo command that does not interpret backslash.
2159 # In particular, with Autoconf 2.60 or later we add some code to the start
2160 # of the generated configure script which will find a shell with a builtin
2161 # printf (which we can use as an echo command).
2037 # Add some code to the start of the generated configure script which
2038 # will find an echo command which doesn't interpret backslashes.
21622039 m4_defun([_LT_PROG_ECHO_BACKSLASH],
2163 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2164 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2165 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2166
2167 AC_MSG_CHECKING([how to print strings])
2168 # Test print first, because it will be a builtin if present.
2169 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2170 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2171 ECHO='print -r --'
2172 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2173 ECHO='printf %s\n'
2040 [_LT_SHELL_INIT([
2041 # Check that we are running under the correct shell.
2042 SHELL=${CONFIG_SHELL-/bin/sh}
2043
2044 case X$lt_ECHO in
2045 X*--fallback-echo)
2046 # Remove one level of quotation (which was required for Make).
2047 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2048 ;;
2049 esac
2050
2051 ECHO=${lt_ECHO-echo}
2052 if test "X[$]1" = X--no-reexec; then
2053 # Discard the --no-reexec flag, and continue.
2054 shift
2055 elif test "X[$]1" = X--fallback-echo; then
2056 # Avoid inline document here, it may be left over
2057 :
2058 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2059 # Yippee, $ECHO works!
2060 :
21742061 else
2175 # Use this function as a fallback that always works.
2176 func_fallback_echo ()
2177 {
2178 eval 'cat <<_LTECHO_EOF
2179 $[]1
2180 _LTECHO_EOF'
2181 }
2182 ECHO='func_fallback_echo'
2062 # Restart under the correct shell.
2063 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
21832064 fi
21842065
2185 # func_echo_all arg...
2186 # Invoke $ECHO with all args, space-separated.
2187 func_echo_all ()
2188 {
2189 $ECHO "$*"
2190 }
2191
2192 case "$ECHO" in
2193 printf*) AC_MSG_RESULT([printf]) ;;
2194 print*) AC_MSG_RESULT([print -r]) ;;
2195 *) AC_MSG_RESULT([cat]) ;;
2196 esac
2197
2198 m4_ifdef([_AS_DETECT_SUGGESTED],
2199 [_AS_DETECT_SUGGESTED([
2200 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2202 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2203 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2204 PATH=/empty FPATH=/empty; export PATH FPATH
2205 test "X`printf %s $ECHO`" = "X$ECHO" \
2206 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2207
2066 if test "X[$]1" = X--fallback-echo; then
2067 # used as fallback echo
2068 shift
2069 cat <<_LT_EOF
2070 [$]*
2071 _LT_EOF
2072 exit 0
2073 fi
2074
2075 # The HP-UX ksh and POSIX shell print the target directory to stdout
2076 # if CDPATH is set.
2077 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2078
2079 if test -z "$lt_ECHO"; then
2080 if test "X${echo_test_string+set}" != Xset; then
2081 # find a string as large as possible, as long as the shell can cope with it
2082 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2083 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2084 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2085 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2086 then
2087 break
2088 fi
2089 done
2090 fi
2091
2092 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2093 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2094 test "X$echo_testing_string" = "X$echo_test_string"; then
2095 :
2096 else
2097 # The Solaris, AIX, and Digital Unix default echo programs unquote
2098 # backslashes. This makes it impossible to quote backslashes using
2099 # echo "$something" | sed 's/\\/\\\\/g'
2100 #
2101 # So, first we look for a working echo in the user's PATH.
2102
2103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2104 for dir in $PATH /usr/ucb; do
2105 IFS="$lt_save_ifs"
2106 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2107 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2108 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2109 test "X$echo_testing_string" = "X$echo_test_string"; then
2110 ECHO="$dir/echo"
2111 break
2112 fi
2113 done
2114 IFS="$lt_save_ifs"
2115
2116 if test "X$ECHO" = Xecho; then
2117 # We didn't find a better echo, so look for alternatives.
2118 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2119 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2120 test "X$echo_testing_string" = "X$echo_test_string"; then
2121 # This shell has a builtin print -r that does the trick.
2122 ECHO='print -r'
2123 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2124 test "X$CONFIG_SHELL" != X/bin/ksh; then
2125 # If we have ksh, try running configure again with it.
2126 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2127 export ORIGINAL_CONFIG_SHELL
2128 CONFIG_SHELL=/bin/ksh
2129 export CONFIG_SHELL
2130 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2131 else
2132 # Try using printf.
2133 ECHO='printf %s\n'
2134 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2135 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2136 test "X$echo_testing_string" = "X$echo_test_string"; then
2137 # Cool, printf works
2138 :
2139 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2140 test "X$echo_testing_string" = 'X\t' &&
2141 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2142 test "X$echo_testing_string" = "X$echo_test_string"; then
2143 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2144 export CONFIG_SHELL
2145 SHELL="$CONFIG_SHELL"
2146 export SHELL
2147 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2148 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2149 test "X$echo_testing_string" = 'X\t' &&
2150 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2151 test "X$echo_testing_string" = "X$echo_test_string"; then
2152 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2153 else
2154 # maybe with a smaller string...
2155 prev=:
2156
2157 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2158 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2159 then
2160 break
2161 fi
2162 prev="$cmd"
2163 done
2164
2165 if test "$prev" != 'sed 50q "[$]0"'; then
2166 echo_test_string=`eval $prev`
2167 export echo_test_string
2168 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2169 else
2170 # Oops. We lost completely, so just stick with echo.
2171 ECHO=echo
2172 fi
2173 fi
2174 fi
2175 fi
2176 fi
2177 fi
2178
2179 # Copy echo and quote the copy suitably for passing to libtool from
2180 # the Makefile, instead of quoting the original, which is used later.
2181 lt_ECHO=$ECHO
2182 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2183 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2184 fi
2185
2186 AC_SUBST(lt_ECHO)
2187 ])
22082188 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2209 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2189 _LT_DECL([], [ECHO], [1],
2190 [An echo program that does not interpret backslashes])
22102191 ])# _LT_PROG_ECHO_BACKSLASH
22112192
22122193
22382219 ;;
22392220 *-*-irix6*)
22402221 # Find out which ABI we are using.
2241 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2222 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
22422223 if AC_TRY_EVAL(ac_compile); then
22432224 if test "$lt_cv_prog_gnu_ld" = yes; then
22442225 case `/usr/bin/file conftest.$ac_objext` in
23902371 esac
23912372 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
23922373 fi
2393
2394 case $host_os in
2395 darwin*)
2396 lock_old_archive_extraction=yes ;;
2397 *)
2398 lock_old_archive_extraction=no ;;
2399 esac
24002374 _LT_DECL([], [old_postinstall_cmds], [2])
24012375 _LT_DECL([], [old_postuninstall_cmds], [2])
24022376 _LT_TAGDECL([], [old_archive_cmds], [2],
24032377 [Commands used to build an old-style archive])
2404 _LT_DECL([], [lock_old_archive_extraction], [0],
2405 [Whether to use a lock for old archive extraction])
24062378 ])# _LT_CMD_OLD_ARCHIVE
24072379
24082380
24272399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24282400 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
24292401 -e 's:$: $lt_compiler_flag:'`
2430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2402 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
24312403 (eval "$lt_compile" 2>conftest.err)
24322404 ac_status=$?
24332405 cat conftest.err >&AS_MESSAGE_LOG_FD
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2406 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
24352407 if (exit $ac_status) && test -s "$ac_outfile"; then
24362408 # The compiler can only warn and ignore the option if not recognized
24372409 # So say no if there are warnings other than the usual output.
2438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2410 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24392411 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24402412 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
24412413 $2=yes
24752447 if test -s conftest.err; then
24762448 # Append any errors to the config.log.
24772449 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2478 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2450 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24792451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24802452 if diff conftest.exp conftest.er2 >/dev/null; then
24812453 $2=yes
25352507 # the test eventually succeeds (with a max line length of 256k).
25362508 # Instead, let's just punt: use the minimum linelength reported by
25372509 # all of the supported platforms: 8192 (on NT/2K/XP).
2538 lt_cv_sys_max_cmd_len=8192;
2539 ;;
2540
2541 mint*)
2542 # On MiNT this can take a long time and run out of memory.
25432510 lt_cv_sys_max_cmd_len=8192;
25442511 ;;
25452512
26072574 # If test is not a shell built-in, we'll probably end up computing a
26082575 # maximum length that is only half of the actual maximum length, but
26092576 # we can't tell.
2610 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
2611 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2577 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2578 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
26122579 test $i != 17 # 1/2 MB should be enough
26132580 do
26142581 i=`expr $i + 1`
26592626 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
26602627 lt_status=$lt_dlunknown
26612628 cat > conftest.$ac_ext <<_LT_EOF
2662 [#line $LINENO "configure"
2629 [#line __oline__ "configure"
26632630 #include "confdefs.h"
26642631
26652632 #if HAVE_DLFCN_H
27002667 # endif
27012668 #endif
27022669
2703 /* When -fvisbility=hidden is used, assume the code has been annotated
2704 correspondingly for the symbols needed. */
2705 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2706 void fnord () __attribute__((visibility("default")));
2707 #endif
2708
2709 void fnord () { int i=42; }
2670 void fnord() { int i=42;}
27102671 int main ()
27112672 {
27122673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27152676 if (self)
27162677 {
27172678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2718 else
2719 {
2720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2721 else puts (dlerror ());
2722 }
2679 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27232680 /* dlclose (self); */
27242681 }
27252682 else
28952852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
28962853 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
28972854 -e 's:$: $lt_compiler_flag:'`
2898 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2855 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
28992856 (eval "$lt_compile" 2>out/conftest.err)
29002857 ac_status=$?
29012858 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2859 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
29032860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
29042861 then
29052862 # The compiler can only warn and ignore the option if not recognized
29062863 # So say no if there are warnings
2907 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2864 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
29082865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
29092866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
29102867 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
30633020 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
30643021 m4_require([_LT_DECL_OBJDUMP])dnl
30653022 m4_require([_LT_DECL_SED])dnl
3066 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
30673023 AC_MSG_CHECKING([dynamic linker characteristics])
30683024 m4_if([$1],
30693025 [], [
30723028 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
30733029 *) lt_awk_arg="/^libraries:/" ;;
30743030 esac
3075 case $host_os in
3076 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
3077 *) lt_sed_strip_eq="s,=/,/,g" ;;
3078 esac
3079 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
3080 case $lt_search_path_spec in
3081 *\;*)
3031 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3032 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
30823033 # if the path contains ";" then we assume it to be the separator
30833034 # otherwise default to the standard path separator (i.e. ":") - it is
30843035 # assumed that no part of a normal pathname contains ";" but that should
30853036 # okay in the real world where ";" in dirpaths is itself problematic.
3086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
3087 ;;
3088 *)
3089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
3090 ;;
3091 esac
3037 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3038 else
3039 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3040 fi
30923041 # Ok, now we have the path, separated by spaces, we can step through it
30933042 # and add multilib dir if necessary.
30943043 lt_tmp_lt_search_path_spec=
31013050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
31023051 fi
31033052 done
3104 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
3053 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
31053054 BEGIN {RS=" "; FS="/|\n";} {
31063055 lt_foo="";
31073056 lt_count=0;
31213070 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
31223071 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
31233072 }'`
3124 # AWK program above erroneously prepends '/' to C:/dos/paths
3125 # for these hosts.
3126 case $host_os in
3127 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
3128 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
3129 esac
3130 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
3073 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
31313074 else
31323075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
31333076 fi])
32153158 m68k)
32163159 library_names_spec='$libname.ixlibrary $libname.a'
32173160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3218 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'
3161 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
32193162 ;;
32203163 esac
32213164 ;;
32683211 cygwin*)
32693212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
32703213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3271 m4_if([$1], [],[
3272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
32733215 ;;
32743216 mingw* | cegcc*)
32753217 # MinGW DLLs use traditional 'lib' prefix
32763218 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3219 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3220 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3221 # It is most probably a Windows format PATH printed by
3222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
3223 # path with ; separators, and with drive letters. We can handle the
3224 # drive letters (cygwin fileutils understands them), so leave them,
3225 # especially as we might pass files found there to a mingw objdump,
3226 # which wouldn't understand a cygwinified path. Ahh.
3227 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3228 else
3229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3230 fi
32773231 ;;
32783232 pw32*)
32793233 # pw32 DLLs use 'pw' prefix rather than 'lib'
33303284 *) objformat=elf ;;
33313285 esac
33323286 fi
3333 # Handle Gentoo/FreeBSD as it was Linux
3334 case $host_vendor in
3335 gentoo)
3336 version_type=linux ;;
3337 *)
3338 version_type=freebsd-$objformat ;;
3339 esac
3340
3287 version_type=freebsd-$objformat
33413288 case $version_type in
33423289 freebsd-elf*)
33433290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
33473294 freebsd-*)
33483295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
33493296 need_version=yes
3350 ;;
3351 linux)
3352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3353 soname_spec='${libname}${release}${shared_ext}$major'
3354 need_lib_prefix=no
3355 need_version=no
33563297 ;;
33573298 esac
33583299 shlibpath_var=LD_LIBRARY_PATH
33833324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
33843325 soname_spec='${libname}${release}${shared_ext}$major'
33853326 shlibpath_var=LD_LIBRARY_PATH
3386 hardcode_into_libs=yes
3387 ;;
3388
3389 haiku*)
3390 version_type=linux
3391 need_lib_prefix=no
3392 need_version=no
3393 dynamic_linker="$host_os runtime_loader"
3394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3395 soname_spec='${libname}${release}${shared_ext}$major'
3396 shlibpath_var=LIBRARY_PATH
3397 shlibpath_overrides_runpath=yes
3398 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
33993327 hardcode_into_libs=yes
34003328 ;;
34013329
34413369 soname_spec='${libname}${release}${shared_ext}$major'
34423370 ;;
34433371 esac
3444 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3372 # HP-UX runs *really* slowly unless shared libraries are mode 555.
34453373 postinstall_cmds='chmod 555 $lib'
3446 # or fails outright, so override atomically:
3447 install_override_mode=555
34483374 ;;
34493375
34503376 interix[[3-9]]*)
35113437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
35123438 shlibpath_var=LD_LIBRARY_PATH
35133439 shlibpath_overrides_runpath=no
3514
35153440 # Some binutils ld are patched to set DT_RUNPATH
3516 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3517 [lt_cv_shlibpath_overrides_runpath=no
3518 save_LDFLAGS=$LDFLAGS
3519 save_libdir=$libdir
3520 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3521 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3522 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3523 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3524 [lt_cv_shlibpath_overrides_runpath=yes])])
3525 LDFLAGS=$save_LDFLAGS
3526 libdir=$save_libdir
3527 ])
3528 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3441 save_LDFLAGS=$LDFLAGS
3442 save_libdir=$libdir
3443 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3444 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3445 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3446 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3447 [shlibpath_overrides_runpath=yes])])
3448 LDFLAGS=$save_LDFLAGS
3449 libdir=$save_libdir
35293450
35303451 # This implies no fast_install, which is unacceptable.
35313452 # Some rework will be needed to allow for fast_install
35343455
35353456 # Append ld.so.conf contents to the search path
35363457 if test -f /etc/ld.so.conf; then
3537 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' ' '`
3458 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;/^$/d' | tr '\n' ' '`
35383459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
35393460 fi
35403461
35453466 # people can always --disable-shared, the test was removed, and we
35463467 # assume the GNU/Linux dynamic linker is in use.
35473468 dynamic_linker='GNU/Linux ld.so'
3469 ;;
3470
3471 netbsdelf*-gnu)
3472 version_type=linux
3473 need_lib_prefix=no
3474 need_version=no
3475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3476 soname_spec='${libname}${release}${shared_ext}$major'
3477 shlibpath_var=LD_LIBRARY_PATH
3478 shlibpath_overrides_runpath=no
3479 hardcode_into_libs=yes
3480 dynamic_linker='NetBSD ld.elf_so'
35483481 ;;
35493482
35503483 netbsd*)
37673700 The last name is the one that the linker finds with -lNAME]])
37683701 _LT_DECL([], [soname_spec], [1],
37693702 [[The coded name of the library, if different from the real name]])
3770 _LT_DECL([], [install_override_mode], [1],
3771 [Permission mode override for installation of shared libraries])
37723703 _LT_DECL([], [postinstall_cmds], [2],
37733704 [Command to use after installation of a shared archive])
37743705 _LT_DECL([], [postuninstall_cmds], [2],
38813812 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
38823813 m4_require([_LT_DECL_SED])dnl
38833814 m4_require([_LT_DECL_EGREP])dnl
3884 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
38853815
38863816 AC_ARG_WITH([gnu-ld],
38873817 [AS_HELP_STRING([--with-gnu-ld],
40113941 fi
40123942 ;;
40133943 esac
4014 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
4015 _LT_TAGDECL([], [reload_cmds], [2])dnl
3944 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3945 _LT_DECL([], [reload_cmds], [2])dnl
40163946 ])# _LT_CMD_RELOAD
40173947
40183948
40643994 # Base MSYS/MinGW do not provide the 'file' command needed by
40653995 # func_win32_libid shell function, so use a weaker test based on 'objdump',
40663996 # unless we find 'file', for example because we are cross-compiling.
4067 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4068 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3997 if ( file / ) >/dev/null 2>&1; then
40693998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
40703999 lt_cv_file_magic_cmd='func_win32_libid'
40714000 else
4072 # Keep this pattern in sync with the one in func_win32_libid.
4073 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4001 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
40744002 lt_cv_file_magic_cmd='$OBJDUMP -f'
40754003 fi
40764004 ;;
40774005
4078 cegcc*)
4006 cegcc)
40794007 # use the weaker test based on 'objdump'. See mingw*.
40804008 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
40814009 lt_cv_file_magic_cmd='$OBJDUMP -f'
41054033 lt_cv_deplibs_check_method=pass_all
41064034 ;;
41074035
4108 haiku*)
4109 lt_cv_deplibs_check_method=pass_all
4110 ;;
4111
41124036 hpux10.20* | hpux11*)
41134037 lt_cv_file_magic_cmd=/usr/bin/file
41144038 case $host_cpu in
41174041 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
41184042 ;;
41194043 hppa*64*)
4120 [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]']
4044 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
41214045 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
41224046 ;;
41234047 *)
4124 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4048 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
41254049 lt_cv_file_magic_test_file=/usr/lib/libc.sl
41264050 ;;
41274051 esac
41474071 lt_cv_deplibs_check_method=pass_all
41484072 ;;
41494073
4150 netbsd*)
4074 netbsd* | netbsdelf*-gnu)
41514075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
41524076 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
41534077 else
42854209 NM="$lt_cv_path_NM"
42864210 else
42874211 # Didn't find any BSD compatible name lister, look for dumpbin.
4288 if test -n "$DUMPBIN"; then :
4289 # Let the user override the test.
4290 else
4291 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4292 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4293 *COFF*)
4294 DUMPBIN="$DUMPBIN -symbols"
4295 ;;
4296 *)
4297 DUMPBIN=:
4298 ;;
4299 esac
4300 fi
4212 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
43014213 AC_SUBST([DUMPBIN])
43024214 if test "$DUMPBIN" != ":"; then
43034215 NM="$DUMPBIN"
43104222 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
43114223 [lt_cv_nm_interface="BSD nm"
43124224 echo "int some_variable = 0;" > conftest.$ac_ext
4313 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4225 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
43144226 (eval "$ac_compile" 2>conftest.err)
43154227 cat conftest.err >&AS_MESSAGE_LOG_FD
4316 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4228 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
43174229 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
43184230 cat conftest.err >&AS_MESSAGE_LOG_FD
4319 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4231 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
43204232 cat conftest.out >&AS_MESSAGE_LOG_FD
43214233 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
43224234 lt_cv_nm_interface="MS dumpbin"
43394251 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
43404252 LIBM=
43414253 case $host in
4342 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4254 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
43434255 # These system don't have libm, or don't need it
43444256 ;;
43454257 *-ncr-sysv4.3*)
43674279 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
43684280
43694281 if test "$GCC" = yes; then
4370 case $cc_basename in
4371 nvcc*)
4372 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4373 *)
4374 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4375 esac
4282 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
43764283
43774284 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
43784285 lt_cv_prog_compiler_rtti_exceptions,
43894296 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
43904297 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
43914298 AC_REQUIRE([AC_PROG_CC])dnl
4392 AC_REQUIRE([AC_PROG_AWK])dnl
43934299 AC_REQUIRE([LT_PATH_NM])dnl
43944300 AC_REQUIRE([LT_PATH_LD])dnl
43954301 m4_require([_LT_DECL_SED])dnl
45154421 if AC_TRY_EVAL(ac_compile); then
45164422 # Now try to grab the symbols.
45174423 nlist=conftest.nm
4518 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4424 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
45194425 # Try sorting and uniquifying the output.
45204426 if sort "$nlist" | uniq > "$nlist"T; then
45214427 mv -f "$nlist"T "$nlist"
46764582 *djgpp*)
46774583 # DJGPP does not support shared libraries at all
46784584 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4679 ;;
4680 haiku*)
4681 # PIC is the default for Haiku.
4682 # The "-static" flag exists, but is broken.
4683 _LT_TAGVAR(lt_prog_compiler_static, $1)=
46844585 ;;
46854586 interix[[3-9]]*)
46864587 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
48204721 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
48214722 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
48224723 ;;
4823 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4824 # IBM XL 8.0, 9.0 on PPC and BlueGene
4724 xlc* | xlC*)
4725 # IBM XL 8.0 on PPC
48254726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
48264727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
48274728 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
48514752 ;;
48524753 esac
48534754 ;;
4854 netbsd*)
4755 netbsd* | netbsdelf*-gnu)
48554756 ;;
48564757 *qnx* | *nto*)
48574758 # QNX uses GNU C++, but need to define -shared option too, otherwise
48834784 ;;
48844785 solaris*)
48854786 case $cc_basename in
4886 CC* | sunCC*)
4787 CC*)
48874788 # Sun C++ 4.2, 5.x and Centerline C++
48884789 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
48894790 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
49874888 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
49884889 ;;
49894890
4990 haiku*)
4991 # PIC is the default for Haiku.
4992 # The "-static" flag exists, but is broken.
4993 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4994 ;;
4995
49964891 hpux*)
49974892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
49984893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
50334928
50344929 *)
50354930 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5036 ;;
5037 esac
5038
5039 case $cc_basename in
5040 nvcc*) # Cuda Compiler Driver 2.2
5041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
5042 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
50434931 ;;
50444932 esac
50454933 else
51054993 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
51064994 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
51074995 ;;
5108 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4996 pgcc* | pgf77* | pgf90* | pgf95*)
51094997 # Portland Group compilers (*not* the Pentium gcc compiler,
51104998 # which looks to be a dead project)
51114999 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
51175005 # All Alpha code is PIC.
51185006 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
51195007 ;;
5120 xl* | bgxl* | bgf* | mpixl*)
5121 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5008 xl*)
5009 # IBM XL C 8.0/Fortran 10.1 on PPC
51225010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
51235011 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
51245012 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
51255013 ;;
51265014 *)
51275015 case `$CC -V 2>&1 | sed 5q` in
5128 *Sun\ F* | *Sun*Fortran*)
5129 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5130 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5131 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5132 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5133 ;;
51345016 *Sun\ C*)
51355017 # Sun C 5.9
51365018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
51375019 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
51385020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
51395021 ;;
5022 *Sun\ F*)
5023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5026 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5027 ;;
51405028 esac
51415029 ;;
51425030 esac
51675055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
51685056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
51695057 case $cc_basename in
5170 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5058 f77* | f90* | f95*)
51715059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
51725060 *)
51735061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
52775165 aix[[4-9]]*)
52785166 # If we're using GNU nm, then we don't want the "-C" option.
52795167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5280 # Also, AIX nm treats weak defined symbols like other global defined
5281 # symbols, whereas GNU nm marks them as "W".
52825168 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5283 _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'
5169 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
52845170 else
52855171 _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'
52865172 fi
52905176 ;;
52915177 cygwin* | mingw* | cegcc*)
52925178 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5179 ;;
5180 linux* | k*bsd*-gnu)
5181 _LT_TAGVAR(link_all_deplibs, $1)=no
52935182 ;;
52945183 *)
52955184 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
53555244 openbsd*)
53565245 with_gnu_ld=no
53575246 ;;
5247 linux* | k*bsd*-gnu)
5248 _LT_TAGVAR(link_all_deplibs, $1)=no
5249 ;;
53585250 esac
53595251
53605252 _LT_TAGVAR(ld_shlibs, $1)=yes
5361
5362 # On some targets, GNU ld is compatible enough with the native linker
5363 # that we're better off using the native interface for both.
5364 lt_use_gnu_ld_interface=no
53655253 if test "$with_gnu_ld" = yes; then
5366 case $host_os in
5367 aix*)
5368 # The AIX port of GNU ld has always aspired to compatibility
5369 # with the native linker. However, as the warning in the GNU ld
5370 # block says, versions before 2.19.5* couldn't really create working
5371 # shared libraries, regardless of the interface used.
5372 case `$LD -v 2>&1` in
5373 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5374 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5375 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5376 *)
5377 lt_use_gnu_ld_interface=yes
5378 ;;
5379 esac
5380 ;;
5381 *)
5382 lt_use_gnu_ld_interface=yes
5383 ;;
5384 esac
5385 fi
5386
5387 if test "$lt_use_gnu_ld_interface" = yes; then
53885254 # If archive_cmds runs LD, not CC, wlarc should be empty
53895255 wlarc='${wl}'
53905256
54185284 _LT_TAGVAR(ld_shlibs, $1)=no
54195285 cat <<_LT_EOF 1>&2
54205286
5421 *** Warning: the GNU linker, at least up to release 2.19, is reported
5287 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
54225288 *** to be unable to reliably create shared libraries on AIX.
54235289 *** Therefore, libtool is disabling shared libraries support. If you
5424 *** really care for shared libraries, you may want to install binutils
5425 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5426 *** You will then need to restart the configuration process.
5290 *** really care for shared libraries, you may want to modify your PATH
5291 *** so that a non-GNU linker is found, and then restart.
54275292
54285293 _LT_EOF
54295294 fi
54595324 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
54605325 # as there is no search path for DLLs.
54615326 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5462 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
54635327 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
54645328 _LT_TAGVAR(always_export_symbols, $1)=no
54655329 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54815345 fi
54825346 ;;
54835347
5484 haiku*)
5485 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5486 _LT_TAGVAR(link_all_deplibs, $1)=yes
5487 ;;
5488
54895348 interix[[3-9]]*)
54905349 _LT_TAGVAR(hardcode_direct, $1)=no
54915350 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55155374 tmp_sharedflag='-shared'
55165375 case $cc_basename,$host_cpu in
55175376 pgcc*) # Portland Group C compiler
5518 _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'
5377 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
55195378 tmp_addflag=' $pic_flag'
55205379 ;;
5521 pgf77* | pgf90* | pgf95* | pgfortran*)
5522 # Portland Group f77 and f90 compilers
5523 _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'
5380 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5381 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
55245382 tmp_addflag=' $pic_flag -Mnomain' ;;
55255383 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
55265384 tmp_addflag=' -i_dynamic' ;;
55315389 lf95*) # Lahey Fortran 8.1
55325390 _LT_TAGVAR(whole_archive_flag_spec, $1)=
55335391 tmp_sharedflag='--shared' ;;
5534 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5392 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
55355393 tmp_sharedflag='-qmkshrobj'
55365394 tmp_addflag= ;;
5537 nvcc*) # Cuda Compiler Driver 2.2
5538 _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'
5539 _LT_TAGVAR(compiler_needs_object, $1)=yes
5540 ;;
55415395 esac
55425396 case `$CC -V 2>&1 | sed 5q` in
55435397 *Sun\ C*) # Sun C 5.9
5544 _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'
5398 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
55455399 _LT_TAGVAR(compiler_needs_object, $1)=yes
55465400 tmp_sharedflag='-G' ;;
55475401 *Sun\ F*) # Sun Fortran 8.3
55575411 fi
55585412
55595413 case $cc_basename in
5560 xlf* | bgf* | bgxlf* | mpixlf*)
5414 xlf*)
55615415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
55625416 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
55635417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
55645418 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5565 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5419 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
55665420 if test "x$supports_anon_versioning" = xyes; then
55675421 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
55685422 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
55695423 echo "local: *; };" >> $output_objdir/$libname.ver~
5570 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5424 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
55715425 fi
55725426 ;;
55735427 esac
55765430 fi
55775431 ;;
55785432
5579 netbsd*)
5433 netbsd* | netbsdelf*-gnu)
55805434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
55815435 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
55825436 wlarc=
56885542 else
56895543 # If we're using GNU nm, then we don't want the "-C" option.
56905544 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5691 # Also, AIX nm treats weak defined symbols like other global
5692 # defined symbols, whereas GNU nm marks them as "W".
56935545 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5694 _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'
5546 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
56955547 else
56965548 _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'
56975549 fi
57535605 if test "$aix_use_runtimelinking" = yes; then
57545606 shared_flag="$shared_flag "'${wl}-G'
57555607 fi
5608 _LT_TAGVAR(link_all_deplibs, $1)=no
57565609 else
57575610 # not using gcc
57585611 if test "$host_cpu" = ia64; then
57805633 # empty executable.
57815634 _LT_SYS_MODULE_PATH_AIX
57825635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5783 _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"
5636 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
57845637 else
57855638 if test "$host_cpu" = ia64; then
57865639 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
57955648 # -berok will link without error, but may produce a broken library.
57965649 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
57975650 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5798 if test "$with_gnu_ld" = yes; then
5799 # We only use this code for GNU lds that support --whole-archive.
5800 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5801 else
5802 # Exported symbols can be pulled into shared objects from archives
5803 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5804 fi
5651 # Exported symbols can be pulled into shared objects from archives
5652 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
58055653 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
58065654 # This is similar to how AIX traditionally builds its shared libraries.
58075655 _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'
58405688 # Tell ltmain to make .dll files, not .so files.
58415689 shrext_cmds=".dll"
58425690 # FIXME: Setting linknames here is a bad hack.
5843 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5691 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
58445692 # The linker will automatically build a .lib file if we build a DLL.
58455693 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
58465694 # FIXME: Should let the user specify the lib program.
59075755 ;;
59085756
59095757 hpux10*)
5910 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5758 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
59115759 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59125760 else
59135761 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
59265774 ;;
59275775
59285776 hpux11*)
5929 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5777 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
59305778 case $host_cpu in
59315779 hppa*64*)
59325780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
59475795 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
59485796 ;;
59495797 *)
5950 m4_if($1, [], [
5951 # Older versions of the 11.00 compiler do not understand -b yet
5952 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5953 _LT_LINKER_OPTION([if $CC understands -b],
5954 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5955 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5956 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5957 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5798 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
59585799 ;;
59595800 esac
59605801 fi
59825823
59835824 irix5* | irix6* | nonstopux*)
59845825 if test "$GCC" = yes; then
5985 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $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'
5826 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
59865827 # Try to use the -exported_symbol ld option, if it does not
59875828 # work, assume that -exports_file does not work either and
59885829 # implicitly export all symbols.
59895830 save_LDFLAGS="$LDFLAGS"
59905831 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
59915832 AC_LINK_IFELSE(int foo(void) {},
5992 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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'
5833 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
59935834 )
59945835 LDFLAGS="$save_LDFLAGS"
59955836 else
5996 _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'
5997 _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'
5837 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5838 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
59985839 fi
59995840 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
60005841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60035844 _LT_TAGVAR(link_all_deplibs, $1)=yes
60045845 ;;
60055846
6006 netbsd*)
5847 netbsd* | netbsdelf*-gnu)
60075848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
60085849 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
60095850 else
60565897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
60575898 _LT_TAGVAR(hardcode_minus_L, $1)=yes
60585899 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6059 _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'
5900 _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'
60605901 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
60615902 ;;
60625903
60635904 osf3*)
60645905 if test "$GCC" = yes; then
60655906 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6066 _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'
5907 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
60675908 else
60685909 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6069 _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'
5910 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
60705911 fi
60715912 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
60725913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60765917 osf4* | osf5*) # as osf3* with the addition of -msym flag
60775918 if test "$GCC" = yes; then
60785919 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6079 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
5920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
60805921 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60815922 else
60825923 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6083 _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'
5924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
60845925 _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~
6085 $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'
5926 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
60865927
60875928 # Both c and cxx compiler support -rpath directly
60885929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
62736114 # Test whether the compiler implicitly links with -lc since on some
62746115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
62756116 # to ld, don't add -lc before -lgcc.
6276 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6277 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6278 [$RM conftest*
6279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6280
6281 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6282 soname=conftest
6283 lib=conftest
6284 libobjs=conftest.$ac_objext
6285 deplibs=
6286 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6287 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6288 compiler_flags=-v
6289 linker_flags=-v
6290 verstring=
6291 output_objdir=.
6292 libname=conftest
6293 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6294 _LT_TAGVAR(allow_undefined_flag, $1)=
6295 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6296 then
6297 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6298 else
6299 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6300 fi
6301 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6302 else
6303 cat conftest.err 1>&5
6304 fi
6305 $RM conftest*
6306 ])
6307 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6117 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6118 $RM conftest*
6119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6120
6121 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6122 soname=conftest
6123 lib=conftest
6124 libobjs=conftest.$ac_objext
6125 deplibs=
6126 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6127 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6128 compiler_flags=-v
6129 linker_flags=-v
6130 verstring=
6131 output_objdir=.
6132 libname=conftest
6133 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6134 _LT_TAGVAR(allow_undefined_flag, $1)=
6135 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6136 then
6137 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6138 else
6139 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6140 fi
6141 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6142 else
6143 cat conftest.err 1>&5
6144 fi
6145 $RM conftest*
6146 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
63086147 ;;
63096148 esac
63106149 fi
64706309 ])# _LT_LANG_C_CONFIG
64716310
64726311
6473 # _LT_LANG_CXX_CONFIG([TAG])
6474 # --------------------------
6475 # Ensure that the configuration variables for a C++ compiler are suitably
6476 # defined. These variables are subsequently used by _LT_CONFIG to write
6477 # the compiler configuration to `libtool'.
6478 m4_defun([_LT_LANG_CXX_CONFIG],
6479 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6480 m4_require([_LT_DECL_EGREP])dnl
6312 # _LT_PROG_CXX
6313 # ------------
6314 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6315 # compiler, we have our own version here.
6316 m4_defun([_LT_PROG_CXX],
6317 [
6318 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6319 AC_PROG_CXX
64816320 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
64826321 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
64836322 (test "X$CXX" != "Xg++"))) ; then
64856324 else
64866325 _lt_caught_CXX_error=yes
64876326 fi
6327 popdef([AC_MSG_ERROR])
6328 ])# _LT_PROG_CXX
6329
6330 dnl aclocal-1.4 backwards compatibility:
6331 dnl AC_DEFUN([_LT_PROG_CXX], [])
6332
6333
6334 # _LT_LANG_CXX_CONFIG([TAG])
6335 # --------------------------
6336 # Ensure that the configuration variables for a C++ compiler are suitably
6337 # defined. These variables are subsequently used by _LT_CONFIG to write
6338 # the compiler configuration to `libtool'.
6339 m4_defun([_LT_LANG_CXX_CONFIG],
6340 [AC_REQUIRE([_LT_PROG_CXX])dnl
6341 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6342 m4_require([_LT_DECL_EGREP])dnl
64886343
64896344 AC_LANG_PUSH(C++)
64906345 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
65066361 _LT_TAGVAR(module_expsym_cmds, $1)=
65076362 _LT_TAGVAR(link_all_deplibs, $1)=unknown
65086363 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6509 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6510 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
65116364 _LT_TAGVAR(no_undefined_flag, $1)=
65126365 _LT_TAGVAR(whole_archive_flag_spec, $1)=
65136366 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
66106463 # Commands to make compiler produce verbose output that lists
66116464 # what "hidden" libraries, object files and flags are used when
66126465 # linking a shared library.
6613 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
66146467
66156468 else
66166469 GXX=no
67226575 _LT_SYS_MODULE_PATH_AIX
67236576 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
67246577
6725 _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"
6578 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
67266579 else
67276580 if test "$host_cpu" = ia64; then
67286581 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
67376590 # -berok will link without error, but may produce a broken library.
67386591 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
67396592 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6740 if test "$with_gnu_ld" = yes; then
6741 # We only use this code for GNU lds that support --whole-archive.
6742 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6743 else
6744 # Exported symbols can be pulled into shared objects from archives
6745 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6746 fi
6593 # Exported symbols can be pulled into shared objects from archives
6594 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
67476595 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
67486596 # This is similar to how AIX traditionally builds its shared
67496597 # libraries.
67766624 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
67776625 # as there is no search path for DLLs.
67786626 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6779 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
67806627 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
67816628 _LT_TAGVAR(always_export_symbols, $1)=no
67826629 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
68376684 gnu*)
68386685 ;;
68396686
6840 haiku*)
6841 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6842 _LT_TAGVAR(link_all_deplibs, $1)=yes
6843 ;;
6844
68456687 hpux9*)
68466688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
68476689 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
68666708 # explicitly linking system object files so we need to strip them
68676709 # from the output so that they don't get included in the library
68686710 # dependencies.
6869 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"'
6711 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; $ECHO "X$list" | $Xsed'
68706712 ;;
68716713 *)
68726714 if test "$GXX" = yes; then
69316773 # explicitly linking system object files so we need to strip them
69326774 # from the output so that they don't get included in the library
69336775 # dependencies.
6934 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"'
6776 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; $ECHO "X$list" | $Xsed'
69356777 ;;
69366778 *)
69376779 if test "$GXX" = yes; then
69746816 case $cc_basename in
69756817 CC*)
69766818 # SGI C++
6977 _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'
6819 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
69786820
69796821 # Archives containing C++ object files must be created using
69806822 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
69856827 *)
69866828 if test "$GXX" = yes; then
69876829 if test "$with_gnu_ld" = no; then
6988 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
69896831 else
6990 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
6832 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
69916833 fi
69926834 fi
69936835 _LT_TAGVAR(link_all_deplibs, $1)=yes
70166858 # explicitly linking system object files so we need to strip them
70176859 # from the output so that they don't get included in the library
70186860 # dependencies.
7019 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"'
6861 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; $ECHO "X$list" | $Xsed'
70206862
70216863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
70226864 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
70536895 pgCC* | pgcpp*)
70546896 # Portland Group C++ compiler
70556897 case `$CC -V` in
7056 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6898 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
70576899 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
70586900 rm -rf $tpldir~
70596901 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7060 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6902 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
70616903 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
70626904 rm -rf $tpldir~
70636905 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7064 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6906 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
70656907 $RANLIB $oldlib'
70666908 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
70676909 rm -rf $tpldir~
70686910 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7069 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6911 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
70706912 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
70716913 rm -rf $tpldir~
70726914 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7073 $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'
6915 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
70746916 ;;
7075 *) # Version 6 and above use weak symbols
6917 *) # Version 6 will use weak symbols
70766918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
70776919 _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'
70786920 ;;
70806922
70816923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
70826924 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7083 _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'
6925 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
70846926 ;;
70856927 cxx*)
70866928 # Compaq C++
70996941 # explicitly linking system object files so we need to strip them
71006942 # from the output so that they don't get included in the library
71016943 # dependencies.
7102 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'
6944 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
71036945 ;;
7104 xl* | mpixl* | bgxl*)
6946 xl*)
71056947 # IBM XL 8.0 on PPC, with GNU ld
71066948 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
71076949 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
71216963 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
71226964 _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'
71236965 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7124 _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'
6966 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
71256967 _LT_TAGVAR(compiler_needs_object, $1)=yes
71266968
71276969 # Not sure whether something based on
71286970 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
71296971 # would be better.
7130 output_verbose_link_cmd='func_echo_all'
6972 output_verbose_link_cmd='echo'
71316973
71326974 # Archives containing C++ object files must be created using
71336975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
71967038 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
71977039 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
71987040 fi
7199 output_verbose_link_cmd=func_echo_all
7041 output_verbose_link_cmd=echo
72007042 else
72017043 _LT_TAGVAR(ld_shlibs, $1)=no
72027044 fi
72317073 case $host in
72327074 osf3*)
72337075 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7234 _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'
7076 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
72357077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
72367078 ;;
72377079 *)
72387080 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7239 _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'
7081 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
72407082 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
72417083 echo "-hidden">> $lib.exp~
7242 $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~
7084 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
72437085 $RM $lib.exp'
72447086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
72457087 ;;
72557097 # explicitly linking system object files so we need to strip them
72567098 # from the output so that they don't get included in the library
72577099 # dependencies.
7258 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"'
7100 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
72597101 ;;
72607102 *)
72617103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
72627104 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
72637105 case $host in
72647106 osf3*)
7265 _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'
7107 _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
72667108 ;;
72677109 *)
7268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
7110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
72697111 ;;
72707112 esac
72717113
72757117 # Commands to make compiler produce verbose output that lists
72767118 # what "hidden" libraries, object files and flags are used when
72777119 # linking a shared library.
7278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
72797121
72807122 else
72817123 # FIXME: insert proper C++ library support
73117153
73127154 solaris*)
73137155 case $cc_basename in
7314 CC* | sunCC*)
7156 CC*)
73157157 # Sun C++ 4.2, 5.x and Centerline C++
73167158 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
73177159 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
73327174 esac
73337175 _LT_TAGVAR(link_all_deplibs, $1)=yes
73347176
7335 output_verbose_link_cmd='func_echo_all'
7177 output_verbose_link_cmd='echo'
73367178
73377179 # Archives containing C++ object files must be created using
73387180 # "CC -xar", where "CC" is the Sun C++ compiler. This is
73597201 # Commands to make compiler produce verbose output that lists
73607202 # what "hidden" libraries, object files and flags are used when
73617203 # linking a shared library.
7362 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
73637205 else
73647206 # g++ 2.7 appears to require `-G' NOT `-shared' on this
73657207 # platform.
73707212 # Commands to make compiler produce verbose output that lists
73717213 # what "hidden" libraries, object files and flags are used when
73727214 # linking a shared library.
7373 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7215 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
73747216 fi
73757217
73767218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
74247266 CC*)
74257267 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
74267268 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7427 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7428 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7429 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7430 '"$_LT_TAGVAR(reload_cmds, $1)"
74317269 ;;
74327270 *)
74337271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
76747512
76757513 solaris*)
76767514 case $cc_basename in
7677 CC* | sunCC*)
7515 CC*)
76787516 # The more standards-conforming stlport4 library is
76797517 # incompatible with the Cstd library. Avoid specifying
76807518 # it if it's in CXXFLAGS. Ignore libCrun as
77187556 ])# _LT_SYS_HIDDEN_LIBDEPS
77197557
77207558
7559 # _LT_PROG_F77
7560 # ------------
7561 # Since AC_PROG_F77 is broken, in that it returns the empty string
7562 # if there is no fortran compiler, we have our own version here.
7563 m4_defun([_LT_PROG_F77],
7564 [
7565 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7566 AC_PROG_F77
7567 if test -z "$F77" || test "X$F77" = "Xno"; then
7568 _lt_disable_F77=yes
7569 fi
7570 popdef([AC_MSG_ERROR])
7571 ])# _LT_PROG_F77
7572
7573 dnl aclocal-1.4 backwards compatibility:
7574 dnl AC_DEFUN([_LT_PROG_F77], [])
7575
7576
77217577 # _LT_LANG_F77_CONFIG([TAG])
77227578 # --------------------------
77237579 # Ensure that the configuration variables for a Fortran 77 compiler are
77247580 # suitably defined. These variables are subsequently used by _LT_CONFIG
77257581 # to write the compiler configuration to `libtool'.
77267582 m4_defun([_LT_LANG_F77_CONFIG],
7727 [AC_LANG_PUSH(Fortran 77)
7728 if test -z "$F77" || test "X$F77" = "Xno"; then
7729 _lt_disable_F77=yes
7730 fi
7583 [AC_REQUIRE([_LT_PROG_F77])dnl
7584 AC_LANG_PUSH(Fortran 77)
77317585
77327586 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
77337587 _LT_TAGVAR(allow_undefined_flag, $1)=
77467600 _LT_TAGVAR(module_expsym_cmds, $1)=
77477601 _LT_TAGVAR(link_all_deplibs, $1)=unknown
77487602 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7749 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7750 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
77517603 _LT_TAGVAR(no_undefined_flag, $1)=
77527604 _LT_TAGVAR(whole_archive_flag_spec, $1)=
77537605 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
78477699 ])# _LT_LANG_F77_CONFIG
78487700
78497701
7702 # _LT_PROG_FC
7703 # -----------
7704 # Since AC_PROG_FC is broken, in that it returns the empty string
7705 # if there is no fortran compiler, we have our own version here.
7706 m4_defun([_LT_PROG_FC],
7707 [
7708 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7709 AC_PROG_FC
7710 if test -z "$FC" || test "X$FC" = "Xno"; then
7711 _lt_disable_FC=yes
7712 fi
7713 popdef([AC_MSG_ERROR])
7714 ])# _LT_PROG_FC
7715
7716 dnl aclocal-1.4 backwards compatibility:
7717 dnl AC_DEFUN([_LT_PROG_FC], [])
7718
7719
78507720 # _LT_LANG_FC_CONFIG([TAG])
78517721 # -------------------------
78527722 # Ensure that the configuration variables for a Fortran compiler are
78537723 # suitably defined. These variables are subsequently used by _LT_CONFIG
78547724 # to write the compiler configuration to `libtool'.
78557725 m4_defun([_LT_LANG_FC_CONFIG],
7856 [AC_LANG_PUSH(Fortran)
7857
7858 if test -z "$FC" || test "X$FC" = "Xno"; then
7859 _lt_disable_FC=yes
7860 fi
7726 [AC_REQUIRE([_LT_PROG_FC])dnl
7727 AC_LANG_PUSH(Fortran)
78617728
78627729 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
78637730 _LT_TAGVAR(allow_undefined_flag, $1)=
78767743 _LT_TAGVAR(module_expsym_cmds, $1)=
78777744 _LT_TAGVAR(link_all_deplibs, $1)=unknown
78787745 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7879 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7880 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
78817746 _LT_TAGVAR(no_undefined_flag, $1)=
78827747 _LT_TAGVAR(whole_archive_flag_spec, $1)=
78837748 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
80237888 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
80247889
80257890 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8026 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8027 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
80287891
80297892 if test -n "$compiler"; then
80307893 _LT_COMPILER_NO_RTTI($1)
83868249 func_dirname ()
83878250 {
83888251 # Extract subdirectory from the argument.
8389 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8252 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
83908253 if test "X$func_dirname_result" = "X${1}"; then
83918254 func_dirname_result="${3}"
83928255 else
83978260 # func_basename file
83988261 func_basename ()
83998262 {
8400 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8263 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
84018264 }
84028265
84038266 dnl func_dirname_and_basename
84138276 func_stripname ()
84148277 {
84158278 case ${2} in
8416 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8417 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8279 .*) func_stripname_result=`$ECHO "X${3}" \
8280 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8281 *) func_stripname_result=`$ECHO "X${3}" \
8282 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
84188283 esac
84198284 }
84208285
84258290 # func_opt_split
84268291 func_opt_split ()
84278292 {
8428 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8429 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8293 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8294 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
84308295 }
84318296
84328297 # func_lo2o object
84338298 func_lo2o ()
84348299 {
8435 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8300 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
84368301 }
84378302
84388303 # func_xform libobj-or-source
84398304 func_xform ()
84408305 {
8441 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8306 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
84428307 }
84438308
84448309 # func_arith arithmetic-term...
84868351
84878352 # Helper functions for option handling. -*- Autoconf -*-
84888353 #
8489 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8490 # Inc.
8354 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
84918355 # Written by Gary V. Vaughan, 2004
84928356 #
84938357 # This file is free software; the Free Software Foundation gives
84948358 # unlimited permission to copy and/or distribute it, with or without
84958359 # modifications, as long as this notice is preserved.
84968360
8497 # serial 7 ltoptions.m4
8361 # serial 6 ltoptions.m4
84988362
84998363 # This is to help aclocal find these macros, as it can't see m4_define.
85008364 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
86098473 [enable_win32_dll=yes
86108474
86118475 case $host in
8612 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8476 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
86138477 AC_CHECK_TOOL(AS, as, false)
86148478 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
86158479 AC_CHECK_TOOL(OBJDUMP, objdump, false)
86178481 esac
86188482
86198483 test -z "$AS" && AS=as
8620 _LT_DECL([], [AS], [1], [Assembler program])dnl
8484 _LT_DECL([], [AS], [0], [Assembler program])dnl
86218485
86228486 test -z "$DLLTOOL" && DLLTOOL=dlltool
8623 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8487 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
86248488
86258489 test -z "$OBJDUMP" && OBJDUMP=objdump
8626 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8490 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
86278491 ])# win32-dll
86288492
86298493 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
89838847
89848848 # Generated from ltversion.in.
89858849
8986 # serial 3175 ltversion.m4
8850 # serial 3017 ltversion.m4
89878851 # This file is part of GNU Libtool
89888852
8989 m4_define([LT_PACKAGE_VERSION], [2.2.10])
8990 m4_define([LT_PACKAGE_REVISION], [1.3175])
8853 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8854 m4_define([LT_PACKAGE_REVISION], [1.3017])
89918855
89928856 AC_DEFUN([LTVERSION_VERSION],
8993 [macro_version='2.2.10'
8994 macro_revision='1.3175'
8857 [macro_version='2.2.6b'
8858 macro_revision='1.3017'
89958859 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
89968860 _LT_DECL(, macro_revision, 0)
89978861 ])
89988862
89998863 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
90008864 #
9001 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8865 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
90028866 # Written by Scott James Remnant, 2004.
90038867 #
90048868 # This file is free software; the Free Software Foundation gives
90058869 # unlimited permission to copy and/or distribute it, with or without
90068870 # modifications, as long as this notice is preserved.
90078871
9008 # serial 5 lt~obsolete.m4
8872 # serial 4 lt~obsolete.m4
90098873
90108874 # These exist entirely to fool aclocal when bootstrapping libtool.
90118875 #
90758939 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
90768940 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
90778941 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8942 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
90788943 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
90798944 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
90808945 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
90878952 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
90888953 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
90898954 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
9090 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
9091 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
9092 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
9093 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
9094 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
9095 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
9096 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8955
8956 dnl -*- mode: autoconf -*-
8957
8958 # serial 1
8959
8960 dnl Usage:
8961 dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
8962 AC_DEFUN([GTK_DOC_CHECK],
8963 [
8964 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
8965 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
8966
8967 dnl check for tools we added during development
8968 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
8969 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
8970 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
8971
8972 dnl for overriding the documentation installation directory
8973 AC_ARG_WITH([html-dir],
8974 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
8975 [with_html_dir='${datadir}/gtk-doc/html'])
8976 HTML_DIR="$with_html_dir"
8977 AC_SUBST([HTML_DIR])
8978
8979 dnl enable/disable documentation building
8980 AC_ARG_ENABLE([gtk-doc],
8981 AS_HELP_STRING([--enable-gtk-doc],
8982 [use gtk-doc to build documentation [[default=no]]]),,
8983 [enable_gtk_doc=no])
8984
8985 if test x$enable_gtk_doc = xyes; then
8986 ifelse([$1],[],
8987 [PKG_CHECK_EXISTS([gtk-doc],,
8988 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
8989 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
8990 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
8991 fi
8992
8993 AC_MSG_CHECKING([whether to build gtk-doc documentation])
8994 AC_MSG_RESULT($enable_gtk_doc)
8995
8996 dnl enable/disable output formats
8997 AC_ARG_ENABLE([gtk-doc-html],
8998 AS_HELP_STRING([--enable-gtk-doc-html],
8999 [build documentation in html format [[default=yes]]]),,
9000 [enable_gtk_doc_html=yes])
9001 AC_ARG_ENABLE([gtk-doc-pdf],
9002 AS_HELP_STRING([--enable-gtk-doc-pdf],
9003 [build documentation in pdf format [[default=no]]]),,
9004 [enable_gtk_doc_pdf=no])
9005
9006 if test -z "$GTKDOC_MKPDF"; then
9007 enable_gtk_doc_pdf=no
9008 fi
9009
9010
9011 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
9012 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
9013 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
9014 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
9015 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
9016 ])
90979017
90989018 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9099 # serial 1 (pkg-config-0.24)
91009019 #
91019020 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
91029021 #
91249043 AC_DEFUN([PKG_PROG_PKG_CONFIG],
91259044 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
91269045 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9127 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
9128 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
9129 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9130
9046 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
91319047 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
91329048 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
91339049 fi
91409056 AC_MSG_RESULT([no])
91419057 PKG_CONFIG=""
91429058 fi
9059
91439060 fi[]dnl
91449061 ])# PKG_PROG_PKG_CONFIG
91459062
91489065 # Check to see whether a particular set of modules exists. Similar
91499066 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
91509067 #
9151 # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9152 # only at the first occurence in configure.ac, so if the first place
9153 # it's called might be skipped (such as if it is within an "if", you
9154 # have to call PKG_CHECK_EXISTS manually
9068 #
9069 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
9070 # this or PKG_CHECK_MODULES is called, or make sure to call
9071 # PKG_CHECK_EXISTS manually
91559072 # --------------------------------------------------------------
91569073 AC_DEFUN([PKG_CHECK_EXISTS],
91579074 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
91589075 if test -n "$PKG_CONFIG" && \
91599076 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9160 m4_default([$2], [:])
9077 m4_ifval([$2], [$2], [:])
91619078 m4_ifvaln([$3], [else
91629079 $3])dnl
91639080 fi])
9081
91649082
91659083 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
91669084 # ---------------------------------------------
92149132 See the pkg-config man page for more details.])
92159133
92169134 if test $pkg_failed = yes; then
9217 AC_MSG_RESULT([no])
92189135 _PKG_SHORT_ERRORS_SUPPORTED
92199136 if test $_pkg_short_errors_supported = yes; then
92209137 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
92249141 # Put the nasty error message in config.log where it belongs
92259142 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
92269143
9227 m4_default([$4], [AC_MSG_ERROR(
9144 ifelse([$4], , [AC_MSG_ERROR(dnl
92289145 [Package requirements ($2) were not met:
92299146
92309147 $$1_PKG_ERRORS
92329149 Consider adjusting the PKG_CONFIG_PATH environment variable if you
92339150 installed software in a non-standard prefix.
92349151
9235 _PKG_TEXT])dnl
9236 ])
9152 _PKG_TEXT
9153 ])],
9154 [AC_MSG_RESULT([no])
9155 $4])
92379156 elif test $pkg_failed = untried; then
9238 AC_MSG_RESULT([no])
9239 m4_default([$4], [AC_MSG_FAILURE(
9157 ifelse([$4], , [AC_MSG_FAILURE(dnl
92409158 [The pkg-config script could not be found or is too old. Make sure it
92419159 is in your PATH or set the PKG_CONFIG environment variable to the full
92429160 path to pkg-config.
92439161
92449162 _PKG_TEXT
92459163
9246 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])dnl
9247 ])
9164 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9165 [$4])
92489166 else
92499167 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
92509168 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
92519169 AC_MSG_RESULT([yes])
9252 $3
9170 ifelse([$3], , :, [$3])
92539171 fi[]dnl
92549172 ])# PKG_CHECK_MODULES
92559173
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2010-04-03'
6 timestamp='2009-06-10'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
2626 # the same distribution terms that you use for the rest of that program.
2727
2828
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
3232 #
3333 # This script attempts to guess a canonical system name similar to
3434 # config.sub. If it succeeds, it prints the system name on stdout, and
3535 # exits with 0. Otherwise, it exits with 1.
3636 #
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
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
3939
4040 me=`echo "$0" | sed -e 's,.*/,,'`
4141
5555 GNU config.guess ($timestamp)
5656
5757 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
59 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60 Software Foundation, Inc.
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.
6160
6261 This is free software; see the source for copying conditions. There is NO
6362 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
9190 exit 1
9291 fi
9392
94 trap 'exit 1' HUP INT TERM
93 trap 'exit 1' 1 2 15
9594
9695 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
9796 # compiler to aid in system detection is discouraged as it requires
105104
106105 set_cc_for_build='
107106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
108 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
109108 : ${TMPDIR=/tmp} ;
110109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
111110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
138137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
139138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
141
142 case "${UNAME_SYSTEM}" in
143 Linux|GNU/*)
144 eval $set_cc_for_build
145 cat <<-EOF > $dummy.c
146 #include <features.h>
147 #ifdef __UCLIBC__
148 # ifdef __UCLIBC_CONFIG_VERSION__
149 LIBC=uclibc __UCLIBC_CONFIG_VERSION__
150 # else
151 LIBC=uclibc
152 # endif
153 #else
154 # ifdef __dietlibc__
155 LIBC=dietlibc
156 # else
157 LIBC=gnu
158 # endif
159 #endif
160 EOF
161 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
162 ;;
163 esac
164140
165141 # Note: order is significant - the case branches are not exclusive.
166142
356332 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
357333 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
358334 exit ;;
359 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
360 echo i386-pc-auroraux${UNAME_RELEASE}
361 exit ;;
362335 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
363336 eval $set_cc_for_build
364337 SUN_ARCH="i386"
833806 i*:PW*:*)
834807 echo ${UNAME_MACHINE}-pc-pw32
835808 exit ;;
836 *:Interix*:*)
809 *:Interix*:[3456]*)
837810 case ${UNAME_MACHINE} in
838811 x86)
839812 echo i586-pc-interix${UNAME_RELEASE}
840813 exit ;;
841 authenticamd | genuineintel | EM64T)
814 EM64T | authenticamd | genuineintel)
842815 echo x86_64-unknown-interix${UNAME_RELEASE}
843816 exit ;;
844817 IA64)
871844 exit ;;
872845 *:GNU:*:*)
873846 # the GNU system
874 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
847 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
875848 exit ;;
876849 *:GNU/*:*:*)
877850 # other systems with GNU libc and userland
878 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
851 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
879852 exit ;;
880853 i*86:Minix:*:*)
881854 echo ${UNAME_MACHINE}-pc-minix
882 exit ;;
883 alpha:Linux:*:*)
884 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
885 EV5) UNAME_MACHINE=alphaev5 ;;
886 EV56) UNAME_MACHINE=alphaev56 ;;
887 PCA56) UNAME_MACHINE=alphapca56 ;;
888 PCA57) UNAME_MACHINE=alphapca56 ;;
889 EV6) UNAME_MACHINE=alphaev6 ;;
890 EV67) UNAME_MACHINE=alphaev67 ;;
891 EV68*) UNAME_MACHINE=alphaev68 ;;
892 esac
893 objdump --private-headers /bin/sh | grep -q ld.so.1
894 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
895 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
896855 exit ;;
897856 arm*:Linux:*:*)
898857 eval $set_cc_for_build
899858 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
900859 | grep -q __ARM_EABI__
901860 then
902 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
861 echo ${UNAME_MACHINE}-unknown-linux-gnu
903862 else
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
863 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
905864 fi
906865 exit ;;
907866 avr32*:Linux:*:*)
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
867 echo ${UNAME_MACHINE}-unknown-linux-gnu
909868 exit ;;
910869 cris:Linux:*:*)
911 echo cris-axis-linux-${LIBC}
870 echo cris-axis-linux-gnu
912871 exit ;;
913872 crisv32:Linux:*:*)
914 echo crisv32-axis-linux-${LIBC}
873 echo crisv32-axis-linux-gnu
915874 exit ;;
916875 frv:Linux:*:*)
917 echo frv-unknown-linux-${LIBC}
918 exit ;;
919 i*86:Linux:*:*)
920 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
876 echo frv-unknown-linux-gnu
921877 exit ;;
922878 ia64:Linux:*:*)
923 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
924880 exit ;;
925881 m32r*:Linux:*:*)
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
927883 exit ;;
928884 m68*:Linux:*:*)
929 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
930886 exit ;;
931887 mips:Linux:*:* | mips64:Linux:*:*)
932888 eval $set_cc_for_build
944900 #endif
945901 #endif
946902 EOF
947 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
948 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
903 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
904 /^CPU/{
905 s: ::g
906 p
907 }'`"
908 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
949909 ;;
950910 or32:Linux:*:*)
951 echo or32-unknown-linux-${LIBC}
911 echo or32-unknown-linux-gnu
912 exit ;;
913 ppc:Linux:*:*)
914 echo powerpc-unknown-linux-gnu
915 exit ;;
916 ppc64:Linux:*:*)
917 echo powerpc64-unknown-linux-gnu
918 exit ;;
919 alpha:Linux:*:*)
920 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
921 EV5) UNAME_MACHINE=alphaev5 ;;
922 EV56) UNAME_MACHINE=alphaev56 ;;
923 PCA56) UNAME_MACHINE=alphapca56 ;;
924 PCA57) UNAME_MACHINE=alphapca56 ;;
925 EV6) UNAME_MACHINE=alphaev6 ;;
926 EV67) UNAME_MACHINE=alphaev67 ;;
927 EV68*) UNAME_MACHINE=alphaev68 ;;
928 esac
929 objdump --private-headers /bin/sh | grep -q ld.so.1
930 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
931 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
952932 exit ;;
953933 padre:Linux:*:*)
954 echo sparc-unknown-linux-${LIBC}
955 exit ;;
956 parisc64:Linux:*:* | hppa64:Linux:*:*)
957 echo hppa64-unknown-linux-${LIBC}
934 echo sparc-unknown-linux-gnu
958935 exit ;;
959936 parisc:Linux:*:* | hppa:Linux:*:*)
960937 # Look for CPU level
961938 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
962 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
963 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
964 *) echo hppa-unknown-linux-${LIBC} ;;
939 PA7*) echo hppa1.1-unknown-linux-gnu ;;
940 PA8*) echo hppa2.0-unknown-linux-gnu ;;
941 *) echo hppa-unknown-linux-gnu ;;
965942 esac
966943 exit ;;
967 ppc64:Linux:*:*)
968 echo powerpc64-unknown-linux-${LIBC}
969 exit ;;
970 ppc:Linux:*:*)
971 echo powerpc-unknown-linux-${LIBC}
944 parisc64:Linux:*:* | hppa64:Linux:*:*)
945 echo hppa64-unknown-linux-gnu
972946 exit ;;
973947 s390:Linux:*:* | s390x:Linux:*:*)
974948 echo ${UNAME_MACHINE}-ibm-linux
975949 exit ;;
976950 sh64*:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
951 echo ${UNAME_MACHINE}-unknown-linux-gnu
978952 exit ;;
979953 sh*:Linux:*:*)
980 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
954 echo ${UNAME_MACHINE}-unknown-linux-gnu
981955 exit ;;
982956 sparc:Linux:*:* | sparc64:Linux:*:*)
983 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
957 echo ${UNAME_MACHINE}-unknown-linux-gnu
984958 exit ;;
985959 vax:Linux:*:*)
986 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
960 echo ${UNAME_MACHINE}-dec-linux-gnu
987961 exit ;;
988962 x86_64:Linux:*:*)
989 echo x86_64-unknown-linux-${LIBC}
963 echo x86_64-unknown-linux-gnu
990964 exit ;;
991965 xtensa*:Linux:*:*)
992 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
993 exit ;;
966 echo ${UNAME_MACHINE}-unknown-linux-gnu
967 exit ;;
968 i*86:Linux:*:*)
969 # The BFD linker knows what the default object file format is, so
970 # first see if it will tell us. cd to the root directory to prevent
971 # problems with other programs or directories called `ld' in the path.
972 # Set LC_ALL=C to ensure ld outputs messages in English.
973 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
974 | sed -ne '/supported targets:/!d
975 s/[ ][ ]*/ /g
976 s/.*supported targets: *//
977 s/ .*//
978 p'`
979 case "$ld_supported_targets" in
980 elf32-i386)
981 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
982 ;;
983 esac
984 # Determine whether the default compiler is a.out or elf
985 eval $set_cc_for_build
986 sed 's/^ //' << EOF >$dummy.c
987 #include <features.h>
988 #ifdef __ELF__
989 # ifdef __GLIBC__
990 # if __GLIBC__ >= 2
991 LIBC=gnu
992 # else
993 LIBC=gnulibc1
994 # endif
995 # else
996 LIBC=gnulibc1
997 # endif
998 #else
999 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1000 LIBC=gnu
1001 #else
1002 LIBC=gnuaout
1003 #endif
1004 #endif
1005 #ifdef __dietlibc__
1006 LIBC=dietlibc
1007 #endif
1008 EOF
1009 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1010 /^LIBC/{
1011 s: ::g
1012 p
1013 }'`"
1014 test x"${LIBC}" != x && {
1015 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1016 exit
1017 }
1018 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1019 ;;
9941020 i*86:DYNIX/ptx:4*:*)
9951021 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9961022 # earlier versions are messed up and put the nodename in both
12201246 *:Darwin:*:*)
12211247 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
12221248 case $UNAME_PROCESSOR in
1223 i386)
1224 eval $set_cc_for_build
1225 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1226 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1227 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1228 grep IS_64BIT_ARCH >/dev/null
1229 then
1230 UNAME_PROCESSOR="x86_64"
1231 fi
1232 fi ;;
12331249 unknown) UNAME_PROCESSOR=powerpc ;;
12341250 esac
12351251 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
44 # Free Software Foundation, Inc.
55
6 timestamp='2010-03-22'
6 timestamp='2009-06-11'
77
88 # This file is (in principle) common to ALL GNU software.
99 # The presence of a machine in this file suggests that SOME GNU software
3131
3232
3333 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
34 # diff and a properly formatted ChangeLog entry.
3535 #
3636 # Configuration subroutine to validate and canonicalize a configuration type.
3737 # Supply the specified configuration type as an argument.
3838 # If it is invalid, we print an error message on stderr and exit with code 1.
3939 # 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
4340
4441 # This file is supposed to be the same for all GNU packages
4542 # and recognize all the CPU types, system types and aliases
7471 version="\
7572 GNU config.sub ($timestamp)
7673
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
78 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
79 Software Foundation, Inc.
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8076
8177 This is free software; see the source for copying conditions. There is NO
8278 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
152148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
153149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
154150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
155 -apple | -axis | -knuth | -cray | -microblaze)
151 -apple | -axis | -knuth | -cray)
156152 os=
157153 basic_machine=$1
158154 ;;
251247 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
252248 | bfin \
253249 | c4x | clipper \
254 | d10v | d30v | dlx | dsp16xx | dvp \
250 | d10v | d30v | dlx | dsp16xx \
255251 | fido | fr30 | frv \
256252 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
257253 | i370 | i860 | i960 | ia64 \
287283 | pdp10 | pdp11 | pj | pjl \
288284 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
289285 | pyramid \
290 | rx \
291286 | score \
292287 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
293288 | sh64 | sh64le \
294289 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
295290 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
296291 | spu | strongarm \
297 | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
298 | ubicom32 \
292 | tahoe | thumb | tic4x | tic80 | tron \
299293 | v850 | v850e \
300294 | we32k \
301295 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
302296 | z8k | z80)
303297 basic_machine=$basic_machine-unknown
304298 ;;
305 c54x)
306 basic_machine=tic54x-unknown
307 ;;
308 c55x)
309 basic_machine=tic55x-unknown
310 ;;
311 c6x)
312 basic_machine=tic6x-unknown
313 ;;
314 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
299 m6811 | m68hc11 | m6812 | m68hc12)
315300 # Motorola 68HC11/12.
316301 basic_machine=$basic_machine-unknown
317302 os=-none
342327 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
343328 | avr-* | avr32-* \
344329 | bfin-* | bs2000-* \
345 | c[123]* | c30-* | [cjt]90-* | c4x-* \
330 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
346331 | clipper-* | craynv-* | cydra-* \
347332 | d10v-* | d30v-* | dlx-* \
348333 | elxsi-* \
354339 | lm32-* \
355340 | m32c-* | m32r-* | m32rle-* \
356341 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
357 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
342 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
358343 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
359344 | mips16-* \
360345 | mips64-* | mips64el-* \
382367 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
383368 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
384369 | pyramid-* \
385 | romp-* | rs6000-* | rx-* \
370 | romp-* | rs6000-* \
386371 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
387372 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
388373 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
389374 | sparclite-* \
390375 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
391376 | tahoe-* | thumb-* \
392 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
393 | tile-* | tilegx-* \
377 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
394378 | tron-* \
395 | ubicom32-* \
396379 | v850-* | v850e-* | vax-* \
397380 | we32k-* \
398381 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
489472 bluegene*)
490473 basic_machine=powerpc-ibm
491474 os=-cnk
492 ;;
493 c54x-*)
494 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
495 ;;
496 c55x-*)
497 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
498 ;;
499 c6x-*)
500 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
501475 ;;
502476 c90)
503477 basic_machine=c90-cray
751725 basic_machine=ns32k-utek
752726 os=-sysv
753727 ;;
754 microblaze)
755 basic_machine=microblaze-xilinx
756 ;;
757728 mingw32)
758729 basic_machine=i386-pc
759730 os=-mingw32
768739 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
769740 basic_machine=m68k-atari
770741 os=-mint
771 ;;
772 mipsEE* | ee | ps2)
773 basic_machine=mips64r5900el-scei
774 case $os in
775 -linux*)
776 ;;
777 *)
778 os=-elf
779 ;;
780 esac
781 ;;
782 iop)
783 basic_machine=mipsel-scei
784 os=-irx
785 ;;
786 dvp)
787 basic_machine=dvp-scei
788 os=-elf
789742 ;;
790743 mips3*-*)
791744 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
11101063 basic_machine=t90-cray
11111064 os=-unicos
11121065 ;;
1113 # This must be matched before tile*.
1114 tilegx*)
1115 basic_machine=tilegx-unknown
1116 os=-linux-gnu
1066 tic54x | c54x*)
1067 basic_machine=tic54x-unknown
1068 os=-coff
1069 ;;
1070 tic55x | c55x*)
1071 basic_machine=tic55x-unknown
1072 os=-coff
1073 ;;
1074 tic6x | c6x*)
1075 basic_machine=tic6x-unknown
1076 os=-coff
11171077 ;;
11181078 tile*)
11191079 basic_machine=tile-unknown
12861246 # First match some system type aliases
12871247 # that might get confused with valid system types.
12881248 # -solaris* is a basic system type, with this one exception.
1289 -auroraux)
1290 os=-auroraux
1291 ;;
12921249 -solaris1 | -solaris1.*)
12931250 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12941251 ;;
13101267 # -sysv* is not here because it comes later, after sysvr4.
13111268 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13121269 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1313 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1314 | -sym* | -kopensolaris* \
1270 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1271 | -kopensolaris* \
13151272 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13161273 | -aos* | -aros* \
13171274 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13281285 | -uxpv* | -beos* | -mpeix* | -udk* \
13291286 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13301287 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1331 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
1288 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13321289 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13331290 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13341291 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1335 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1292 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
13361293 # Remember, each alternative MUST END IN *, to match a version number.
13371294 ;;
13381295 -qnx*)
14651422 -dicos*)
14661423 os=-dicos
14671424 ;;
1468 -nacl*)
1469 ;;
14701425 -none)
14711426 ;;
14721427 *)
15061461 ;;
15071462 c4x-* | tic4x-*)
15081463 os=-coff
1509 ;;
1510 tic54x-*)
1511 os=-coff
1512 ;;
1513 tic55x-*)
1514 os=-coff
1515 ;;
1516 tic6x-*)
1517 os=-coff
15181464 ;;
15191465 # This must come before the *-dec entry.
15201466 pdp10-*)
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.65 for gupnp-dlna 0.2.1.
2 # Generated by GNU Autoconf 2.65 for gupnp-dlna 0.3.0.
33 #
44 # Report bugs to <http://www.gupnp.org/>.
55 #
172172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
175 test \$(( 1 + 1 )) = 2 || exit 1"
184176 if (eval "$as_required") 2>/dev/null; then :
185177 as_have_required=yes
186178 else
535527 # Sed expression to map a string onto a valid variable name.
536528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537529
530
531
532 # Check that we are running under the correct shell.
538533 SHELL=${CONFIG_SHELL-/bin/sh}
534
535 case X$lt_ECHO in
536 X*--fallback-echo)
537 # Remove one level of quotation (which was required for Make).
538 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 ;;
540 esac
541
542 ECHO=${lt_ECHO-echo}
543 if test "X$1" = X--no-reexec; then
544 # Discard the --no-reexec flag, and continue.
545 shift
546 elif test "X$1" = X--fallback-echo; then
547 # Avoid inline document here, it may be left over
548 :
549 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
550 # Yippee, $ECHO works!
551 :
552 else
553 # Restart under the correct shell.
554 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 fi
556
557 if test "X$1" = X--fallback-echo; then
558 # used as fallback echo
559 shift
560 cat <<_LT_EOF
561 $*
562 _LT_EOF
563 exit 0
564 fi
565
566 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 # if CDPATH is set.
568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569
570 if test -z "$lt_ECHO"; then
571 if test "X${echo_test_string+set}" != Xset; then
572 # find a string as large as possible, as long as the shell can cope with it
573 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
574 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
575 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
576 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
577 then
578 break
579 fi
580 done
581 fi
582
583 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
586 :
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
591 #
592 # So, first we look for a working echo in the user's PATH.
593
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 ECHO="$dir/echo"
602 break
603 fi
604 done
605 IFS="$lt_save_ifs"
606
607 if test "X$ECHO" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 ECHO='print -r'
614 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622 else
623 # Try using printf.
624 ECHO='printf %s\n'
625 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
629 :
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 ECHO="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
647
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
650 then
651 break
652 fi
653 prev="$cmd"
654 done
655
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 ECHO=echo
663 fi
664 fi
665 fi
666 fi
667 fi
668 fi
669
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 lt_ECHO=$ECHO
673 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
675 fi
676
677
539678
540679
541680 test -n "$DJDIR" || exec 7<&0 </dev/null
561700 # Identity of this package.
562701 PACKAGE_NAME='gupnp-dlna'
563702 PACKAGE_TARNAME='gupnp-dlna'
564 PACKAGE_VERSION='0.2.1'
565 PACKAGE_STRING='gupnp-dlna 0.2.1'
703 PACKAGE_VERSION='0.3.0'
704 PACKAGE_STRING='gupnp-dlna 0.3.0'
566705 PACKAGE_BUGREPORT='http://www.gupnp.org/'
567706 PACKAGE_URL=''
568707
633772 GST_CFLAGS
634773 LIBXML_LIBS
635774 LIBXML_CFLAGS
636 PKG_CONFIG_LIBDIR
637 PKG_CONFIG_PATH
638775 PKG_CONFIG
639776 OTOOL64
640777 OTOOL
641778 LIPO
642779 NMEDIT
643780 DSYMUTIL
781 lt_ECHO
644782 RANLIB
645783 AR
646784 LN_S
771909 CPPFLAGS
772910 CPP
773911 PKG_CONFIG
774 PKG_CONFIG_PATH
775 PKG_CONFIG_LIBDIR
776912 LIBXML_CFLAGS
777913 LIBXML_LIBS
778914 GST_CFLAGS
13241460 # Omit some internal or obsolete options to make the list less imposing.
13251461 # This message is too long to be a string in the A/UX 3.1 sh.
13261462 cat <<_ACEOF
1327 \`configure' configures gupnp-dlna 0.2.1 to adapt to many kinds of systems.
1463 \`configure' configures gupnp-dlna 0.3.0 to adapt to many kinds of systems.
13281464
13291465 Usage: $0 [OPTION]... [VAR=VALUE]...
13301466
13941530
13951531 if test -n "$ac_init_help"; then
13961532 case $ac_init_help in
1397 short | recursive ) echo "Configuration of gupnp-dlna 0.2.1:";;
1533 short | recursive ) echo "Configuration of gupnp-dlna 0.3.0:";;
13981534 esac
13991535 cat <<\_ACEOF
14001536
14341570 you have headers in a nonstandard directory <include dir>
14351571 CPP C preprocessor
14361572 PKG_CONFIG path to pkg-config utility
1437 PKG_CONFIG_PATH
1438 directories to add to pkg-config's search path
1439 PKG_CONFIG_LIBDIR
1440 path overriding pkg-config's built-in search path
14411573 LIBXML_CFLAGS
14421574 C compiler flags for LIBXML, overriding pkg-config
14431575 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
15221654 test -n "$ac_init_help" && exit $ac_status
15231655 if $ac_init_version; then
15241656 cat <<\_ACEOF
1525 gupnp-dlna configure 0.2.1
1657 gupnp-dlna configure 0.3.0
15261658 generated by GNU Autoconf 2.65
15271659
15281660 Copyright (C) 2009 Free Software Foundation, Inc.
18001932 This file contains any messages produced by compilers while
18011933 running configure, to aid debugging if configure makes a mistake.
18021934
1803 It was created by gupnp-dlna $as_me 0.2.1, which was
1935 It was created by gupnp-dlna $as_me 0.3.0, which was
18041936 generated by GNU Autoconf 2.65. Invocation command line was
18051937
18061938 $ $0 $@
26082740
26092741 # Define the identity of the package.
26102742 PACKAGE='gupnp-dlna'
2611 VERSION='0.2.1'
2743 VERSION='0.3.0'
26122744
26132745
26142746 cat >>confdefs.h <<_ACEOF
48234955 enable_win32_dll=yes
48244956
48254957 case $host in
4826 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4958 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
48274959 if test -n "$ac_tool_prefix"; then
48284960 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
48294961 set dummy ${ac_tool_prefix}as; ac_word=$2
51315263
51325264
51335265
5134 macro_version='2.2.10'
5135 macro_revision='1.3175'
5266 macro_version='2.2.6b'
5267 macro_revision='1.3017'
51365268
51375269
51385270
51475279
51485280
51495281 ltmain="$ac_aux_dir/ltmain.sh"
5150
5151 # Backslashify metacharacters that are still active within
5152 # double-quoted strings.
5153 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5154
5155 # Same as above, but do not quote variable references.
5156 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5157
5158 # Sed substitution to delay expansion of an escaped shell variable in a
5159 # double_quote_subst'ed string.
5160 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5161
5162 # Sed substitution to delay expansion of an escaped single quote.
5163 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5164
5165 # Sed substitution to avoid accidental globbing in evaled expressions
5166 no_glob_subst='s/\*/\\\*/g'
5167
5168 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5169 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5170 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5173 $as_echo_n "checking how to print strings... " >&6; }
5174 # Test print first, because it will be a builtin if present.
5175 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5176 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5177 ECHO='print -r --'
5178 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5179 ECHO='printf %s\n'
5180 else
5181 # Use this function as a fallback that always works.
5182 func_fallback_echo ()
5183 {
5184 eval 'cat <<_LTECHO_EOF
5185 $1
5186 _LTECHO_EOF'
5187 }
5188 ECHO='func_fallback_echo'
5189 fi
5190
5191 # func_echo_all arg...
5192 # Invoke $ECHO with all args, space-separated.
5193 func_echo_all ()
5194 {
5195 $ECHO ""
5196 }
5197
5198 case "$ECHO" in
5199 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5200 $as_echo "printf" >&6; } ;;
5201 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5202 $as_echo "print -r" >&6; } ;;
5203 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5204 $as_echo "cat" >&6; } ;;
5205 esac
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
52195282
52205283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
52215284 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
55525615 NM="$lt_cv_path_NM"
55535616 else
55545617 # Didn't find any BSD compatible name lister, look for dumpbin.
5555 if test -n "$DUMPBIN"; then :
5556 # Let the user override the test.
5557 else
5558 if test -n "$ac_tool_prefix"; then
5559 for ac_prog in dumpbin "link -dump"
5618 if test -n "$ac_tool_prefix"; then
5619 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
55605620 do
55615621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
55625622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
56005660 fi
56015661 if test -z "$DUMPBIN"; then
56025662 ac_ct_DUMPBIN=$DUMPBIN
5603 for ac_prog in dumpbin "link -dump"
5663 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
56045664 do
56055665 # Extract the first word of "$ac_prog", so it can be a program name with args.
56065666 set dummy $ac_prog; ac_word=$2
56555715 fi
56565716 fi
56575717
5658 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5659 *COFF*)
5660 DUMPBIN="$DUMPBIN -symbols"
5661 ;;
5662 *)
5663 DUMPBIN=:
5664 ;;
5665 esac
5666 fi
56675718
56685719 if test "$DUMPBIN" != ":"; then
56695720 NM="$DUMPBIN"
56835734 else
56845735 lt_cv_nm_interface="BSD nm"
56855736 echo "int some_variable = 0;" > conftest.$ac_ext
5686 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5737 (eval echo "\"\$as_me:5738: $ac_compile\"" >&5)
56875738 (eval "$ac_compile" 2>conftest.err)
56885739 cat conftest.err >&5
5689 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5740 (eval echo "\"\$as_me:5741: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
56905741 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
56915742 cat conftest.err >&5
5692 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5743 (eval echo "\"\$as_me:5744: output\"" >&5)
56935744 cat conftest.out >&5
56945745 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
56955746 lt_cv_nm_interface="MS dumpbin"
57435794 # the test eventually succeeds (with a max line length of 256k).
57445795 # Instead, let's just punt: use the minimum linelength reported by
57455796 # all of the supported platforms: 8192 (on NT/2K/XP).
5746 lt_cv_sys_max_cmd_len=8192;
5747 ;;
5748
5749 mint*)
5750 # On MiNT this can take a long time and run out of memory.
57515797 lt_cv_sys_max_cmd_len=8192;
57525798 ;;
57535799
58155861 # If test is not a shell built-in, we'll probably end up computing a
58165862 # maximum length that is only half of the actual maximum length, but
58175863 # we can't tell.
5818 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5819 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5864 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5865 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
58205866 test $i != 17 # 1/2 MB should be enough
58215867 do
58225868 i=`expr $i + 1`
60846130 # Base MSYS/MinGW do not provide the 'file' command needed by
60856131 # func_win32_libid shell function, so use a weaker test based on 'objdump',
60866132 # unless we find 'file', for example because we are cross-compiling.
6087 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6088 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6133 if ( file / ) >/dev/null 2>&1; then
60896134 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
60906135 lt_cv_file_magic_cmd='func_win32_libid'
60916136 else
6092 # Keep this pattern in sync with the one in func_win32_libid.
6093 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6137 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
60946138 lt_cv_file_magic_cmd='$OBJDUMP -f'
60956139 fi
60966140 ;;
60976141
6098 cegcc*)
6142 cegcc)
60996143 # use the weaker test based on 'objdump'. See mingw*.
61006144 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
61016145 lt_cv_file_magic_cmd='$OBJDUMP -f'
61256169 lt_cv_deplibs_check_method=pass_all
61266170 ;;
61276171
6128 haiku*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
61326172 hpux10.20* | hpux11*)
61336173 lt_cv_file_magic_cmd=/usr/bin/file
61346174 case $host_cpu in
61376177 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
61386178 ;;
61396179 hppa*64*)
6140 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]'
6180 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
61416181 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
61426182 ;;
61436183 *)
6144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6184 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
61456185 lt_cv_file_magic_test_file=/usr/lib/libc.sl
61466186 ;;
61476187 esac
61676207 lt_cv_deplibs_check_method=pass_all
61686208 ;;
61696209
6170 netbsd*)
6210 netbsd* | netbsdelf*-gnu)
61716211 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
61726212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
61736213 else
65796619 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
65806620 fi
65816621
6582 case $host_os in
6583 darwin*)
6584 lock_old_archive_extraction=yes ;;
6585 *)
6586 lock_old_archive_extraction=no ;;
6587 esac
6588
6589
6590
6591
6592
6593
65946622
65956623
65966624
67606788 test $ac_status = 0; }; then
67616789 # Now try to grab the symbols.
67626790 nlist=conftest.nm
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6764 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6792 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
67656793 ac_status=$?
67666794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
67676795 test $ac_status = 0; } && test -s "$nlist"; then
69146942 ;;
69156943 *-*-irix6*)
69166944 # Find out which ABI we are using.
6917 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6945 echo '#line 6946 "configure"' > conftest.$ac_ext
69186946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
69196947 (eval $ac_compile) 2>&5
69206948 ac_status=$?
76267654 fi
76277655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
76287656 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7630 $as_echo_n "checking for -force_load linker flag... " >&6; }
7631 if test "${lt_cv_ld_force_load+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 lt_cv_ld_force_load=no
7635 cat > conftest.c << _LT_EOF
7636 int forced_loaded() { return 2;}
7637 _LT_EOF
7638 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7639 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7640 echo "$AR cru libconftest.a conftest.o" >&5
7641 $AR cru libconftest.a conftest.o 2>&5
7642 echo "$RANLIB libconftest.a" >&5
7643 $RANLIB libconftest.a 2>&5
7644 cat > conftest.c << _LT_EOF
7645 int main() { return 0;}
7646 _LT_EOF
7647 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7648 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7649 _lt_result=$?
7650 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7651 lt_cv_ld_force_load=yes
7652 else
7653 cat conftest.err >&5
7654 fi
7655 rm -f conftest.err libconftest.a conftest conftest.c
7656 rm -rf conftest.dSYM
7657
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7660 $as_echo "$lt_cv_ld_force_load" >&6; }
76617657 case $host_os in
76627658 rhapsody* | darwin1.[012])
76637659 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
76857681 else
76867682 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
76877683 fi
7688 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7684 if test "$DSYMUTIL" != ":"; then
76897685 _lt_dsymutil='~$DSYMUTIL $lib || :'
76907686 else
76917687 _lt_dsymutil=
77237719 fi
77247720
77257721 done
7726
7727
77287722
77297723
77307724
78787872
78797873
78807874
7881
78827875 test -z "$LN_S" && LN_S="ln -s"
78837876
78847877
79247917 cat >>confdefs.h <<_ACEOF
79257918 #define LT_OBJDIR "$lt_cv_objdir/"
79267919 _ACEOF
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
79277933
79287934
79297935
79407946 ;;
79417947 esac
79427948
7949 # Sed substitution that helps us do robust quoting. It backslashifies
7950 # metacharacters that are still active within double-quoted strings.
7951 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7952
7953 # Same as above, but do not quote variable references.
7954 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7955
7956 # Sed substitution to delay expansion of an escaped shell variable in a
7957 # double_quote_subst'ed string.
7958 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7959
7960 # Sed substitution to delay expansion of an escaped single quote.
7961 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7962
7963 # Sed substitution to avoid accidental globbing in evaled expressions
7964 no_glob_subst='s/\*/\\\*/g'
7965
79437966 # Global variables:
79447967 ofile=libtool
79457968 can_build_shared=yes
79687991 *) break;;
79697992 esac
79707993 done
7971 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7994 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
79727995
79737996
79747997 # Only perform the check for file, if the check method requires it
81738196 lt_prog_compiler_no_builtin_flag=
81748197
81758198 if test "$GCC" = yes; then
8176 case $cc_basename in
8177 nvcc*)
8178 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8179 *)
8180 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8181 esac
8199 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
81828200
81838201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
81848202 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
81988216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
81998217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
82008218 -e 's:$: $lt_compiler_flag:'`
8201 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8219 (eval echo "\"\$as_me:8220: $lt_compile\"" >&5)
82028220 (eval "$lt_compile" 2>conftest.err)
82038221 ac_status=$?
82048222 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 echo "$as_me:8224: \$? = $ac_status" >&5
82068224 if (exit $ac_status) && test -s "$ac_outfile"; then
82078225 # The compiler can only warn and ignore the option if not recognized
82088226 # So say no if there are warnings other than the usual output.
8209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8227 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
82108228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
82118229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
82128230 lt_cv_prog_compiler_rtti_exceptions=yes
82848302 lt_prog_compiler_pic='-fno-common'
82858303 ;;
82868304
8287 haiku*)
8288 # PIC is the default for Haiku.
8289 # The "-static" flag exists, but is broken.
8290 lt_prog_compiler_static=
8291 ;;
8292
82938305 hpux*)
82948306 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
82958307 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
83308342
83318343 *)
83328344 lt_prog_compiler_pic='-fPIC'
8333 ;;
8334 esac
8335
8336 case $cc_basename in
8337 nvcc*) # Cuda Compiler Driver 2.2
8338 lt_prog_compiler_wl='-Xlinker '
8339 lt_prog_compiler_pic='-Xcompiler -fPIC'
83408345 ;;
83418346 esac
83428347 else
84018406 lt_prog_compiler_pic='--shared'
84028407 lt_prog_compiler_static='--static'
84038408 ;;
8404 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8409 pgcc* | pgf77* | pgf90* | pgf95*)
84058410 # Portland Group compilers (*not* the Pentium gcc compiler,
84068411 # which looks to be a dead project)
84078412 lt_prog_compiler_wl='-Wl,'
84138418 # All Alpha code is PIC.
84148419 lt_prog_compiler_static='-non_shared'
84158420 ;;
8416 xl* | bgxl* | bgf* | mpixl*)
8417 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8421 xl*)
8422 # IBM XL C 8.0/Fortran 10.1 on PPC
84188423 lt_prog_compiler_wl='-Wl,'
84198424 lt_prog_compiler_pic='-qpic'
84208425 lt_prog_compiler_static='-qstaticlink'
84218426 ;;
84228427 *)
84238428 case `$CC -V 2>&1 | sed 5q` in
8424 *Sun\ F* | *Sun*Fortran*)
8425 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8426 lt_prog_compiler_pic='-KPIC'
8427 lt_prog_compiler_static='-Bstatic'
8428 lt_prog_compiler_wl=''
8429 ;;
84308429 *Sun\ C*)
84318430 # Sun C 5.9
84328431 lt_prog_compiler_pic='-KPIC'
84338432 lt_prog_compiler_static='-Bstatic'
84348433 lt_prog_compiler_wl='-Wl,'
84358434 ;;
8435 *Sun\ F*)
8436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8437 lt_prog_compiler_pic='-KPIC'
8438 lt_prog_compiler_static='-Bstatic'
8439 lt_prog_compiler_wl=''
8440 ;;
84368441 esac
84378442 ;;
84388443 esac
84638468 lt_prog_compiler_pic='-KPIC'
84648469 lt_prog_compiler_static='-Bstatic'
84658470 case $cc_basename in
8466 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8471 f77* | f90* | f95*)
84678472 lt_prog_compiler_wl='-Qoption ld ';;
84688473 *)
84698474 lt_prog_compiler_wl='-Wl,';;
85508555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
85518556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
85528557 -e 's:$: $lt_compiler_flag:'`
8553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558 (eval echo "\"\$as_me:8559: $lt_compile\"" >&5)
85548559 (eval "$lt_compile" 2>conftest.err)
85558560 ac_status=$?
85568561 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 echo "$as_me:8563: \$? = $ac_status" >&5
85588563 if (exit $ac_status) && test -s "$ac_outfile"; then
85598564 # The compiler can only warn and ignore the option if not recognized
85608565 # So say no if there are warnings other than the usual output.
8561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
85628567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
85638568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
85648569 lt_cv_prog_compiler_pic_works=yes
86068611 if test -s conftest.err; then
86078612 # Append any errors to the config.log.
86088613 cat conftest.err 1>&5
8609 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8614 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
86108615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
86118616 if diff conftest.exp conftest.er2 >/dev/null; then
86128617 lt_cv_prog_compiler_static_works=yes
86558660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
86568661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
86578662 -e 's:$: $lt_compiler_flag:'`
8658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8663 (eval echo "\"\$as_me:8664: $lt_compile\"" >&5)
86598664 (eval "$lt_compile" 2>out/conftest.err)
86608665 ac_status=$?
86618666 cat out/conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 echo "$as_me:8668: \$? = $ac_status" >&5
86638668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
86648669 then
86658670 # The compiler can only warn and ignore the option if not recognized
86668671 # So say no if there are warnings
8667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
86688673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
86698674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
86708675 lt_cv_prog_compiler_c_o=yes
87108715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
87118716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
87128717 -e 's:$: $lt_compiler_flag:'`
8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8718 (eval echo "\"\$as_me:8719: $lt_compile\"" >&5)
87148719 (eval "$lt_compile" 2>out/conftest.err)
87158720 ac_status=$?
87168721 cat out/conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 echo "$as_me:8723: \$? = $ac_status" >&5
87188723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
87198724 then
87208725 # The compiler can only warn and ignore the option if not recognized
87218726 # So say no if there are warnings
8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
87238728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
87248729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
87258730 lt_cv_prog_compiler_c_o=yes
88298834 openbsd*)
88308835 with_gnu_ld=no
88318836 ;;
8837 linux* | k*bsd*-gnu)
8838 link_all_deplibs=no
8839 ;;
88328840 esac
88338841
88348842 ld_shlibs=yes
8835
8836 # On some targets, GNU ld is compatible enough with the native linker
8837 # that we're better off using the native interface for both.
8838 lt_use_gnu_ld_interface=no
88398843 if test "$with_gnu_ld" = yes; then
8840 case $host_os in
8841 aix*)
8842 # The AIX port of GNU ld has always aspired to compatibility
8843 # with the native linker. However, as the warning in the GNU ld
8844 # block says, versions before 2.19.5* couldn't really create working
8845 # shared libraries, regardless of the interface used.
8846 case `$LD -v 2>&1` in
8847 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8848 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8849 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8850 *)
8851 lt_use_gnu_ld_interface=yes
8852 ;;
8853 esac
8854 ;;
8855 *)
8856 lt_use_gnu_ld_interface=yes
8857 ;;
8858 esac
8859 fi
8860
8861 if test "$lt_use_gnu_ld_interface" = yes; then
88628844 # If archive_cmds runs LD, not CC, wlarc should be empty
88638845 wlarc='${wl}'
88648846
88928874 ld_shlibs=no
88938875 cat <<_LT_EOF 1>&2
88948876
8895 *** Warning: the GNU linker, at least up to release 2.19, is reported
8877 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
88968878 *** to be unable to reliably create shared libraries on AIX.
88978879 *** Therefore, libtool is disabling shared libraries support. If you
8898 *** really care for shared libraries, you may want to install binutils
8899 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8900 *** You will then need to restart the configuration process.
8880 *** really care for shared libraries, you may want to modify your PATH
8881 *** so that a non-GNU linker is found, and then restart.
89018882
89028883 _LT_EOF
89038884 fi
89338914 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
89348915 # as there is no search path for DLLs.
89358916 hardcode_libdir_flag_spec='-L$libdir'
8936 export_dynamic_flag_spec='${wl}--export-all-symbols'
89378917 allow_undefined_flag=unsupported
89388918 always_export_symbols=no
89398919 enable_shared_with_static_runtimes=yes
89558935 fi
89568936 ;;
89578937
8958 haiku*)
8959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960 link_all_deplibs=yes
8961 ;;
8962
89638938 interix[3-9]*)
89648939 hardcode_direct=no
89658940 hardcode_shlibpath_var=no
89898964 tmp_sharedflag='-shared'
89908965 case $cc_basename,$host_cpu in
89918966 pgcc*) # Portland Group C compiler
8992 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'
8967 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
89938968 tmp_addflag=' $pic_flag'
89948969 ;;
8995 pgf77* | pgf90* | pgf95* | pgfortran*)
8996 # Portland Group f77 and f90 compilers
8997 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'
8970 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8971 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
89988972 tmp_addflag=' $pic_flag -Mnomain' ;;
89998973 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
90008974 tmp_addflag=' -i_dynamic' ;;
90058979 lf95*) # Lahey Fortran 8.1
90068980 whole_archive_flag_spec=
90078981 tmp_sharedflag='--shared' ;;
9008 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8982 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
90098983 tmp_sharedflag='-qmkshrobj'
90108984 tmp_addflag= ;;
9011 nvcc*) # Cuda Compiler Driver 2.2
9012 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'
9013 compiler_needs_object=yes
9014 ;;
90158985 esac
90168986 case `$CC -V 2>&1 | sed 5q` in
90178987 *Sun\ C*) # Sun C 5.9
9018 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'
8988 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
90198989 compiler_needs_object=yes
90208990 tmp_sharedflag='-G' ;;
90218991 *Sun\ F*) # Sun Fortran 8.3
90319001 fi
90329002
90339003 case $cc_basename in
9034 xlf* | bgf* | bgxlf* | mpixlf*)
9004 xlf*)
90359005 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
90369006 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
90379007 hardcode_libdir_flag_spec=
90389008 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9039 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9009 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
90409010 if test "x$supports_anon_versioning" = xyes; then
90419011 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
90429012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
90439013 echo "local: *; };" >> $output_objdir/$libname.ver~
9044 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9014 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
90459015 fi
90469016 ;;
90479017 esac
90509020 fi
90519021 ;;
90529022
9053 netbsd*)
9023 netbsd* | netbsdelf*-gnu)
90549024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
90559025 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
90569026 wlarc=
91629132 else
91639133 # If we're using GNU nm, then we don't want the "-C" option.
91649134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9165 # Also, AIX nm treats weak defined symbols like other global
9166 # defined symbols, whereas GNU nm marks them as "W".
91679135 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9168 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'
9136 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
91699137 else
91709138 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'
91719139 fi
92279195 if test "$aix_use_runtimelinking" = yes; then
92289196 shared_flag="$shared_flag "'${wl}-G'
92299197 fi
9198 link_all_deplibs=no
92309199 else
92319200 # not using gcc
92329201 if test "$host_cpu" = ia64; then
92839252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
92849253
92859254 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9286 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"
9255 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
92879256 else
92889257 if test "$host_cpu" = ia64; then
92899258 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
93279296 # -berok will link without error, but may produce a broken library.
93289297 no_undefined_flag=' ${wl}-bernotok'
93299298 allow_undefined_flag=' ${wl}-berok'
9330 if test "$with_gnu_ld" = yes; then
9331 # We only use this code for GNU lds that support --whole-archive.
9332 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9333 else
9334 # Exported symbols can be pulled into shared objects from archives
9335 whole_archive_flag_spec='$convenience'
9336 fi
9299 # Exported symbols can be pulled into shared objects from archives
9300 whole_archive_flag_spec='$convenience'
93379301 archive_cmds_need_lc=yes
93389302 # This is similar to how AIX traditionally builds its shared libraries.
93399303 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'
93729336 # Tell ltmain to make .dll files, not .so files.
93739337 shrext_cmds=".dll"
93749338 # FIXME: Setting linknames here is a bad hack.
9375 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9339 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
93769340 # The linker will automatically build a .lib file if we build a DLL.
93779341 old_archive_from_new_cmds='true'
93789342 # FIXME: Should let the user specify the lib program.
93889352 hardcode_direct=no
93899353 hardcode_automatic=yes
93909354 hardcode_shlibpath_var=unsupported
9391 if test "$lt_cv_ld_force_load" = "yes"; then
9392 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\"`'
9393 else
9394 whole_archive_flag_spec=''
9395 fi
9355 whole_archive_flag_spec=''
93969356 link_all_deplibs=yes
93979357 allow_undefined_flag="$_lt_dar_allow_undefined"
93989358 case $cc_basename in
94009360 *) _lt_dar_can_shared=$GCC ;;
94019361 esac
94029362 if test "$_lt_dar_can_shared" = "yes"; then
9403 output_verbose_link_cmd=func_echo_all
9363 output_verbose_link_cmd=echo
94049364 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
94059365 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
94069366 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}"
94669426 ;;
94679427
94689428 hpux10*)
9469 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9429 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
94709430 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
94719431 else
94729432 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
94859445 ;;
94869446
94879447 hpux11*)
9488 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9448 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
94899449 case $host_cpu in
94909450 hppa*64*)
94919451 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
95069466 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
95079467 ;;
95089468 *)
9509
9510 # Older versions of the 11.00 compiler do not understand -b yet
9511 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9513 $as_echo_n "checking if $CC understands -b... " >&6; }
9514 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 lt_cv_prog_compiler__b=no
9518 save_LDFLAGS="$LDFLAGS"
9519 LDFLAGS="$LDFLAGS -b"
9520 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9521 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9522 # The linker can only warn and ignore the option if not recognized
9523 # So say no if there are warnings
9524 if test -s conftest.err; then
9525 # Append any errors to the config.log.
9526 cat conftest.err 1>&5
9527 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9528 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9529 if diff conftest.exp conftest.er2 >/dev/null; then
9530 lt_cv_prog_compiler__b=yes
9531 fi
9532 else
9533 lt_cv_prog_compiler__b=yes
9534 fi
9535 fi
9536 $RM -r conftest*
9537 LDFLAGS="$save_LDFLAGS"
9538
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9541 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9542
9543 if test x"$lt_cv_prog_compiler__b" = xyes; then
9544 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9545 else
9546 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9547 fi
9548
9469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
95499470 ;;
95509471 esac
95519472 fi
95739494
95749495 irix5* | irix6* | nonstopux*)
95759496 if test "$GCC" = yes; then
9576 archive_cmds='$CC -shared $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'
9497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
95779498 # Try to use the -exported_symbol ld option, if it does not
95789499 # work, assume that -exports_file does not work either and
95799500 # implicitly export all symbols.
95849505 int foo(void) {}
95859506 _ACEOF
95869507 if ac_fn_c_try_link "$LINENO"; then :
9587 archive_expsym_cmds='$CC -shared $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'
9508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
95889509
95899510 fi
95909511 rm -f core conftest.err conftest.$ac_objext \
95919512 conftest$ac_exeext conftest.$ac_ext
95929513 LDFLAGS="$save_LDFLAGS"
95939514 else
9594 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'
9595 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'
9515 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9516 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
95969517 fi
95979518 archive_cmds_need_lc='no'
95989519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
96019522 link_all_deplibs=yes
96029523 ;;
96039524
9604 netbsd*)
9525 netbsd* | netbsdelf*-gnu)
96059526 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
96069527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
96079528 else
96549575 hardcode_libdir_flag_spec='-L$libdir'
96559576 hardcode_minus_L=yes
96569577 allow_undefined_flag=unsupported
9657 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'
9578 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'
96589579 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
96599580 ;;
96609581
96619582 osf3*)
96629583 if test "$GCC" = yes; then
96639584 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9664 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'
9585 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
96659586 else
96669587 allow_undefined_flag=' -expect_unresolved \*'
9667 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'
9588 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
96689589 fi
96699590 archive_cmds_need_lc='no'
96709591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
96749595 osf4* | osf5*) # as osf3* with the addition of -msym flag
96759596 if test "$GCC" = yes; then
96769597 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9677 archive_cmds='$CC -shared${allow_undefined_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'
9598 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
96789599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
96799600 else
96809601 allow_undefined_flag=' -expect_unresolved \*'
9681 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'
9602 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
96829603 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~
9683 $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'
9604 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
96849605
96859606 # Both c and cxx compiler support -rpath directly
96869607 hardcode_libdir_flag_spec='-rpath $libdir'
98839804 # to ld, don't add -lc before -lgcc.
98849805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
98859806 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9886 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 $RM conftest*
9890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9891
9892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9807 $RM conftest*
9808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9809
9810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
98939811 (eval $ac_compile) 2>&5
98949812 ac_status=$?
98959813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
98969814 test $ac_status = 0; } 2>conftest.err; then
9897 soname=conftest
9898 lib=conftest
9899 libobjs=conftest.$ac_objext
9900 deplibs=
9901 wl=$lt_prog_compiler_wl
9902 pic_flag=$lt_prog_compiler_pic
9903 compiler_flags=-v
9904 linker_flags=-v
9905 verstring=
9906 output_objdir=.
9907 libname=conftest
9908 lt_save_allow_undefined_flag=$allow_undefined_flag
9909 allow_undefined_flag=
9910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9815 soname=conftest
9816 lib=conftest
9817 libobjs=conftest.$ac_objext
9818 deplibs=
9819 wl=$lt_prog_compiler_wl
9820 pic_flag=$lt_prog_compiler_pic
9821 compiler_flags=-v
9822 linker_flags=-v
9823 verstring=
9824 output_objdir=.
9825 libname=conftest
9826 lt_save_allow_undefined_flag=$allow_undefined_flag
9827 allow_undefined_flag=
9828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
99119829 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
99129830 ac_status=$?
99139831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
99149832 test $ac_status = 0; }
9915 then
9916 lt_cv_archive_cmds_need_lc=no
9917 else
9918 lt_cv_archive_cmds_need_lc=yes
9919 fi
9920 allow_undefined_flag=$lt_save_allow_undefined_flag
9921 else
9922 cat conftest.err 1>&5
9923 fi
9924 $RM conftest*
9925
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9928 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9929 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9833 then
9834 archive_cmds_need_lc=no
9835 else
9836 archive_cmds_need_lc=yes
9837 fi
9838 allow_undefined_flag=$lt_save_allow_undefined_flag
9839 else
9840 cat conftest.err 1>&5
9841 fi
9842 $RM conftest*
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9844 $as_echo "$archive_cmds_need_lc" >&6; }
99309845 ;;
99319846 esac
99329847 fi
1009710012 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1009810013 *) lt_awk_arg="/^libraries:/" ;;
1009910014 esac
10100 case $host_os in
10101 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10102 *) lt_sed_strip_eq="s,=/,/,g" ;;
10103 esac
10104 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10105 case $lt_search_path_spec in
10106 *\;*)
10015 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10016 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
1010710017 # if the path contains ";" then we assume it to be the separator
1010810018 # otherwise default to the standard path separator (i.e. ":") - it is
1010910019 # assumed that no part of a normal pathname contains ";" but that should
1011010020 # okay in the real world where ";" in dirpaths is itself problematic.
10111 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10112 ;;
10113 *)
10114 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10115 ;;
10116 esac
10021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10022 else
10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10024 fi
1011710025 # Ok, now we have the path, separated by spaces, we can step through it
1011810026 # and add multilib dir if necessary.
1011910027 lt_tmp_lt_search_path_spec=
1012610034 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1012710035 fi
1012810036 done
10129 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10037 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
1013010038 BEGIN {RS=" "; FS="/|\n";} {
1013110039 lt_foo="";
1013210040 lt_count=0;
1014610054 if (lt_foo != "") { lt_freq[lt_foo]++; }
1014710055 if (lt_freq[lt_foo] == 1) { print lt_foo; }
1014810056 }'`
10149 # AWK program above erroneously prepends '/' to C:/dos/paths
10150 # for these hosts.
10151 case $host_os in
10152 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10153 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10154 esac
10155 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10057 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
1015610058 else
1015710059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1015810060 fi
1024010142 m68k)
1024110143 library_names_spec='$libname.ixlibrary $libname.a'
1024210144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10243 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'
10145 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
1024410146 ;;
1024510147 esac
1024610148 ;;
1029310195 cygwin*)
1029410196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1029510197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10296
10297 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10198 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1029810199 ;;
1029910200 mingw* | cegcc*)
1030010201 # MinGW DLLs use traditional 'lib' prefix
1030110202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10203 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10204 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10205 # It is most probably a Windows format PATH printed by
10206 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10207 # path with ; separators, and with drive letters. We can handle the
10208 # drive letters (cygwin fileutils understands them), so leave them,
10209 # especially as we might pass files found there to a mingw objdump,
10210 # which wouldn't understand a cygwinified path. Ahh.
10211 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10212 else
10213 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10214 fi
1030210215 ;;
1030310216 pw32*)
1030410217 # pw32 DLLs use 'pw' prefix rather than 'lib'
1035510268 *) objformat=elf ;;
1035610269 esac
1035710270 fi
10358 # Handle Gentoo/FreeBSD as it was Linux
10359 case $host_vendor in
10360 gentoo)
10361 version_type=linux ;;
10362 *)
10363 version_type=freebsd-$objformat ;;
10364 esac
10365
10271 version_type=freebsd-$objformat
1036610272 case $version_type in
1036710273 freebsd-elf*)
1036810274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1037210278 freebsd-*)
1037310279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1037410280 need_version=yes
10375 ;;
10376 linux)
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10378 soname_spec='${libname}${release}${shared_ext}$major'
10379 need_lib_prefix=no
10380 need_version=no
1038110281 ;;
1038210282 esac
1038310283 shlibpath_var=LD_LIBRARY_PATH
1040810308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1040910309 soname_spec='${libname}${release}${shared_ext}$major'
1041010310 shlibpath_var=LD_LIBRARY_PATH
10411 hardcode_into_libs=yes
10412 ;;
10413
10414 haiku*)
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 dynamic_linker="$host_os runtime_loader"
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 shlibpath_var=LIBRARY_PATH
10422 shlibpath_overrides_runpath=yes
10423 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1042410311 hardcode_into_libs=yes
1042510312 ;;
1042610313
1046610353 soname_spec='${libname}${release}${shared_ext}$major'
1046710354 ;;
1046810355 esac
10469 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10356 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1047010357 postinstall_cmds='chmod 555 $lib'
10471 # or fails outright, so override atomically:
10472 install_override_mode=555
1047310358 ;;
1047410359
1047510360 interix[3-9]*)
1053610421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1053710422 shlibpath_var=LD_LIBRARY_PATH
1053810423 shlibpath_overrides_runpath=no
10539
1054010424 # Some binutils ld are patched to set DT_RUNPATH
10541 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 lt_cv_shlibpath_overrides_runpath=no
10545 save_LDFLAGS=$LDFLAGS
10546 save_libdir=$libdir
10547 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10548 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 save_LDFLAGS=$LDFLAGS
10426 save_libdir=$libdir
10427 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10428 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1055010430 /* end confdefs.h. */
1055110431
1055210432 int
1055910439 _ACEOF
1056010440 if ac_fn_c_try_link "$LINENO"; then :
1056110441 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10562 lt_cv_shlibpath_overrides_runpath=yes
10442 shlibpath_overrides_runpath=yes
1056310443 fi
1056410444 fi
1056510445 rm -f core conftest.err conftest.$ac_objext \
1056610446 conftest$ac_exeext conftest.$ac_ext
10567 LDFLAGS=$save_LDFLAGS
10568 libdir=$save_libdir
10569
10570 fi
10571
10572 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10447 LDFLAGS=$save_LDFLAGS
10448 libdir=$save_libdir
1057310449
1057410450 # This implies no fast_install, which is unacceptable.
1057510451 # Some rework will be needed to allow for fast_install
1057810454
1057910455 # Append ld.so.conf contents to the search path
1058010456 if test -f /etc/ld.so.conf; then
10581 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' ' '`
10457 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;/^$/d' | tr '\n' ' '`
1058210458 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1058310459 fi
1058410460
1058910465 # people can always --disable-shared, the test was removed, and we
1059010466 # assume the GNU/Linux dynamic linker is in use.
1059110467 dynamic_linker='GNU/Linux ld.so'
10468 ;;
10469
10470 netbsdelf*-gnu)
10471 version_type=linux
10472 need_lib_prefix=no
10473 need_version=no
10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10475 soname_spec='${libname}${release}${shared_ext}$major'
10476 shlibpath_var=LD_LIBRARY_PATH
10477 shlibpath_overrides_runpath=no
10478 hardcode_into_libs=yes
10479 dynamic_linker='NetBSD ld.elf_so'
1059210480 ;;
1059310481
1059410482 netbsd*)
1088110769
1088210770
1088310771
10884
10885
10886
10887
10888
1088910772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
1089010773 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
1089110774 hardcode_action=
1121611099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1121711100 lt_status=$lt_dlunknown
1121811101 cat > conftest.$ac_ext <<_LT_EOF
11219 #line $LINENO "configure"
11102 #line 11103 "configure"
1122011103 #include "confdefs.h"
1122111104
1122211105 #if HAVE_DLFCN_H
1125711140 # endif
1125811141 #endif
1125911142
11260 /* When -fvisbility=hidden is used, assume the code has been annotated
11261 correspondingly for the symbols needed. */
11262 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11263 void fnord () __attribute__((visibility("default")));
11264 #endif
11265
11266 void fnord () { int i=42; }
11143 void fnord() { int i=42;}
1126711144 int main ()
1126811145 {
1126911146 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1127211149 if (self)
1127311150 {
1127411151 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11275 else
11276 {
11277 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11278 else puts (dlerror ());
11279 }
11152 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1128011153 /* dlclose (self); */
1128111154 }
1128211155 else
1132211195 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1132311196 lt_status=$lt_dlunknown
1132411197 cat > conftest.$ac_ext <<_LT_EOF
11325 #line $LINENO "configure"
11198 #line 11199 "configure"
1132611199 #include "confdefs.h"
1132711200
1132811201 #if HAVE_DLFCN_H
1136311236 # endif
1136411237 #endif
1136511238
11366 /* When -fvisbility=hidden is used, assume the code has been annotated
11367 correspondingly for the symbols needed. */
11368 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11369 void fnord () __attribute__((visibility("default")));
11370 #endif
11371
11372 void fnord () { int i=42; }
11239 void fnord() { int i=42;}
1137311240 int main ()
1137411241 {
1137511242 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1137811245 if (self)
1137911246 {
1138011247 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11381 else
11382 {
11383 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11384 else puts (dlerror ());
11385 }
11248 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1138611249 /* dlclose (self); */
1138711250 }
1138811251 else
1156211425
1156311426
1156411427
11565
11566
11567
11568
1156911428 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1157011429 if test -n "$ac_tool_prefix"; then
1157111430 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1167811537 $as_echo "no" >&6; }
1167911538 PKG_CONFIG=""
1168011539 fi
11540
1168111541 fi
1168211542
1168311543 pkg_failed=no
1172011580
1172111581
1172211582 if test $pkg_failed = yes; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
1172511583
1172611584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1172711585 _pkg_short_errors_supported=yes
1174511603
1174611604 Alternatively, you may set the environment variables LIBXML_CFLAGS
1174711605 and LIBXML_LIBS to avoid the need to call pkg-config.
11748 See the pkg-config man page for more details." "$LINENO" 5
11606 See the pkg-config man page for more details.
11607 " "$LINENO" 5
1174911608 elif test $pkg_failed = untried; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11751 $as_echo "no" >&6; }
1175211609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1175311610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1175411611 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
1176611623 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
1176711624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1176811625 $as_echo "yes" >&6; }
11769
11626 :
1177011627 fi
1177111628
1177211629 GST_MAJORMINOR=0.10
1181511672
1181611673
1181711674 if test $pkg_failed = yes; then
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
1182011675
1182111676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1182211677 _pkg_short_errors_supported=yes
1184011695
1184111696 Alternatively, you may set the environment variables GST_CFLAGS
1184211697 and GST_LIBS to avoid the need to call pkg-config.
11843 See the pkg-config man page for more details." "$LINENO" 5
11698 See the pkg-config man page for more details.
11699 " "$LINENO" 5
1184411700 elif test $pkg_failed = untried; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
1184711701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1184811702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1184911703 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
1186111715 GST_LIBS=$pkg_cv_GST_LIBS
1186211716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1186311717 $as_echo "yes" >&6; }
11864
11718 :
1186511719 fi
1186611720
1186711721 pkg_failed=no
1190411758
1190511759
1190611760 if test $pkg_failed = yes; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11908 $as_echo "no" >&6; }
1190911761
1191011762 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1191111763 _pkg_short_errors_supported=yes
1192911781
1193011782 Alternatively, you may set the environment variables GST_BASE_CFLAGS
1193111783 and GST_BASE_LIBS to avoid the need to call pkg-config.
11932 See the pkg-config man page for more details." "$LINENO" 5
11784 See the pkg-config man page for more details.
11785 " "$LINENO" 5
1193311786 elif test $pkg_failed = untried; then
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
1193611787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1193711788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1193811789 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
1195011801 GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS
1195111802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1195211803 $as_echo "yes" >&6; }
11953
11804 :
1195411805 fi
1195511806
1195611807 pkg_failed=no
1199311844
1199411845
1199511846 if test $pkg_failed = yes; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
1199811847
1199911848 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1200011849 _pkg_short_errors_supported=yes
1201811867
1201911868 Alternatively, you may set the environment variables GST_VIDEO_CFLAGS
1202011869 and GST_VIDEO_LIBS to avoid the need to call pkg-config.
12021 See the pkg-config man page for more details." "$LINENO" 5
11870 See the pkg-config man page for more details.
11871 " "$LINENO" 5
1202211872 elif test $pkg_failed = untried; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
1202511873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1202611874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1202711875 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
1203911887 GST_VIDEO_LIBS=$pkg_cv_GST_VIDEO_LIBS
1204011888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1204111889 $as_echo "yes" >&6; }
12042
11890 :
1204311891 fi
1204411892
1204511893 pkg_failed=no
1208211930
1208311931
1208411932 if test $pkg_failed = yes; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
1208711933
1208811934 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1208911935 _pkg_short_errors_supported=yes
1210711953
1210811954 Alternatively, you may set the environment variables GST_PBU_CFLAGS
1210911955 and GST_PBU_LIBS to avoid the need to call pkg-config.
12110 See the pkg-config man page for more details." "$LINENO" 5
11956 See the pkg-config man page for more details.
11957 " "$LINENO" 5
1211111958 elif test $pkg_failed = untried; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
1211411959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1211511960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1211611961 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
1212811973 GST_PBU_LIBS=$pkg_cv_GST_PBU_LIBS
1212911974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1213011975 $as_echo "yes" >&6; }
12131
11976 :
1213211977 fi
1213311978
1213411979
1237912224
1238012225
1238112226
12382 ac_config_files="$ac_config_files Makefile gst-convenience/Makefile gst-convenience/gst-libs/Makefile gst-convenience/gst-libs/gst/Makefile gst-convenience/gst-libs/gst/discoverer/Makefile gst-convenience/gst-libs/gst/profile/Makefile libgupnp-dlna/Makefile tools/Makefile tests/Makefile doc/Makefile doc/version.xml data/Makefile gupnp-dlna-1.0.pc gupnp-dlna-1.0-uninstalled.pc"
12227 ac_config_files="$ac_config_files Makefile gst-convenience/Makefile gst-convenience/gst-libs/Makefile gst-convenience/gst-libs/gst/Makefile gst-convenience/gst-libs/gst/discoverer/Makefile gst-convenience/gst-libs/gst/profile/Makefile libgupnp-dlna/Makefile tools/Makefile tests/Makefile tests/test-discoverer.sh doc/Makefile doc/version.xml data/Makefile gupnp-dlna-1.0.pc gupnp-dlna-1.0-uninstalled.pc"
1238312228
1238412229 cat >confcache <<\_ACEOF
1238512230 # This file is a shell script that caches the results of configure
1292612771 # report actual input values of CONFIG_FILES etc. instead of their
1292712772 # values after options handling.
1292812773 ac_log="
12929 This file was extended by gupnp-dlna $as_me 0.2.1, which was
12774 This file was extended by gupnp-dlna $as_me 0.3.0, which was
1293012775 generated by GNU Autoconf 2.65. Invocation command line was
1293112776
1293212777 CONFIG_FILES = $CONFIG_FILES
1299212837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1299312838 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1299412839 ac_cs_version="\\
12995 gupnp-dlna config.status 0.2.1
12840 gupnp-dlna config.status 0.3.0
1299612841 configured by $0, generated by GNU Autoconf 2.65,
1299712842 with options \\"\$ac_cs_config\\"
1299812843
1311512960 sed_quote_subst='$sed_quote_subst'
1311612961 double_quote_subst='$double_quote_subst'
1311712962 delay_variable_subst='$delay_variable_subst'
13118 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13119 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13120 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13121 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13122 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13123 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13124 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13125 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13126 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13127 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13128 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13129 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13130 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13131 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13132 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13133 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13134 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13135 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13136 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13137 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13138 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13139 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13140 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13141 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13142 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13143 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13144 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13145 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13149 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13150 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13151 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13152 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13153 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13154 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13155 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13156 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13157 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13158 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13159 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13160 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13161 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13162 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13163 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13164 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13165 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13166 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13167 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13168 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"`'
13169 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13170 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13171 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13172 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13173 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13174 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13175 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13176 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13177 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13178 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13179 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13180 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13181 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13182 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13183 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13184 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13185 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13186 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13187 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13188 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13189 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13190 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13191 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13192 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13193 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13194 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13195 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13196 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13197 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13198 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13199 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13200 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13201 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13202 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13203 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13204 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13205 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13206 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13207 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13208 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13209 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13210 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13211 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13212 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13213 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13214 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13215 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13216 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13217 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13218 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13219 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13220 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13221 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13222 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13223 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13224 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13225 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13226 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13227 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13228 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13229 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13230 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13231 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13232 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13233 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13234 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13235 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13236 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13237 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13238 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13239 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12963 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12964 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12965 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12966 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12967 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12968 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12969 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12970 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12971 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12972 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12973 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12974 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12975 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12976 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12977 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12978 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12979 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12980 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12981 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12982 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12983 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12984 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12985 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12986 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12987 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12988 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12989 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12990 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12991 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12992 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12993 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12994 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12995 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12996 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12997 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12998 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12999 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13000 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13001 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13002 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13003 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13004 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13005 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13006 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13007 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13008 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13009 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13010 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13011 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13012 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13013 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13014 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13015 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13016 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13017 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13018 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13019 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13020 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13021 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13022 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13023 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13024 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13025 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13026 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13027 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13028 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13029 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13030 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13031 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13032 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13033 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13034 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13035 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13036 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13037 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13038 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13039 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13040 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13041 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13042 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13043 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13044 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13045 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13046 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13047 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13048 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13049 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13050 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13051 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13052 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13053 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13054 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13055 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13056 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13057 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13058 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13059 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13060 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13061 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13062 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13063 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13064 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13065 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13066 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13067 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13068 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13069 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13070 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13071 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13072 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13073 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13074 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13075 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13076 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13077 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13078 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13079 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13080 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13081 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13082 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
1324013083
1324113084 LTCC='$LTCC'
1324213085 LTCFLAGS='$LTCFLAGS'
1324313086 compiler='$compiler_DEFAULT'
1324413087
13245 # A function that is used when there is no print builtin or printf.
13246 func_fallback_echo ()
13247 {
13248 eval 'cat <<_LTECHO_EOF
13249 \$1
13250 _LTECHO_EOF'
13251 }
13252
1325313088 # Quote evaled strings.
13254 for var in AS \
13255 DLLTOOL \
13256 OBJDUMP \
13257 SHELL \
13258 ECHO \
13259 SED \
13089 for var in SED \
1326013090 GREP \
1326113091 EGREP \
1326213092 FGREP \
1327913109 lt_cv_sys_global_symbol_to_cdecl \
1328013110 lt_cv_sys_global_symbol_to_c_name_address \
1328113111 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13112 SHELL \
13113 ECHO \
1328213114 lt_prog_compiler_no_builtin_flag \
1328313115 lt_prog_compiler_wl \
1328413116 lt_prog_compiler_pic \
1330813140 libname_spec \
1330913141 library_names_spec \
1331013142 soname_spec \
13311 install_override_mode \
1331213143 finish_eval \
1331313144 old_striplib \
1331413145 striplib; do
13315 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13146 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1331613147 *[\\\\\\\`\\"\\\$]*)
13317 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13148 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1331813149 ;;
1331913150 *)
1332013151 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1334113172 finish_cmds \
1334213173 sys_lib_search_path_spec \
1334313174 sys_lib_dlsearch_path_spec; do
13344 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13175 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1334513176 *[\\\\\\\`\\"\\\$]*)
13346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13177 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1334713178 ;;
1334813179 *)
1334913180 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1335013181 ;;
1335113182 esac
1335213183 done
13184
13185 # Fix-up fallback echo if it was mangled by the above quoting rules.
13186 case \$lt_ECHO in
13187 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13188 ;;
13189 esac
1335313190
1335413191 ac_aux_dir='$ac_aux_dir'
1335513192 xsi_shell='$xsi_shell'
1339113228 "libgupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-dlna/Makefile" ;;
1339213229 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
1339313230 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13231 "tests/test-discoverer.sh") CONFIG_FILES="$CONFIG_FILES tests/test-discoverer.sh" ;;
1339413232 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
1339513233 "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
1339613234 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
1409613934 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1409713935 #
1409813936 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14099 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14100 # Inc.
13937 # 2006, 2007, 2008 Free Software Foundation, Inc.
1410113938 # Written by Gordon Matzigkeit, 1996
1410213939 #
1410313940 # This file is part of GNU Libtool.
1413013967 # ### BEGIN LIBTOOL CONFIG
1413113968
1413213969 # Assembler program.
14133 AS=$lt_AS
13970 AS=$AS
1413413971
1413513972 # DLL creation program.
14136 DLLTOOL=$lt_DLLTOOL
13973 DLLTOOL=$DLLTOOL
1413713974
1413813975 # Object dumper program.
14139 OBJDUMP=$lt_OBJDUMP
13976 OBJDUMP=$OBJDUMP
1414013977
1414113978 # Which release of libtool.m4 was used?
1414213979 macro_version=$macro_version
1415313990
1415413991 # Whether or not to optimize for fast installation.
1415513992 fast_install=$enable_fast_install
14156
14157 # Shell to use when invoking shell scripts.
14158 SHELL=$lt_SHELL
14159
14160 # An echo program that protects backslashes.
14161 ECHO=$lt_ECHO
1416213993
1416313994 # The host system.
1416413995 host_alias=$host_alias
1420914040 # turn newlines into spaces.
1421014041 NL2SP=$lt_lt_NL2SP
1421114042
14043 # How to create reloadable object files.
14044 reload_flag=$lt_reload_flag
14045 reload_cmds=$lt_reload_cmds
14046
1421214047 # Method to check whether dependent libraries are shared objects.
1421314048 deplibs_check_method=$lt_deplibs_check_method
1421414049
1422714062 old_postinstall_cmds=$lt_old_postinstall_cmds
1422814063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
1422914064
14230 # Whether to use a lock for old archive extraction.
14231 lock_old_archive_extraction=$lock_old_archive_extraction
14232
1423314065 # A C compiler.
1423414066 LTCC=$lt_CC
1423514067
1425014082
1425114083 # The name of the directory that contains temporary libtool files.
1425214084 objdir=$objdir
14085
14086 # Shell to use when invoking shell scripts.
14087 SHELL=$lt_SHELL
14088
14089 # An echo program that does not interpret backslashes.
14090 ECHO=$lt_ECHO
1425314091
1425414092 # Used to examine libraries when file_magic_cmd begins with "file".
1425514093 MAGIC_CMD=$MAGIC_CMD
1431314151 # The coded name of the library, if different from the real name.
1431414152 soname_spec=$lt_soname_spec
1431514153
14316 # Permission mode override for installation of shared libraries.
14317 install_override_mode=$lt_install_override_mode
14318
1431914154 # Command to use after installation of a shared archive.
1432014155 postinstall_cmds=$lt_postinstall_cmds
1432114156
1435414189
1435514190 # The linker used to build libraries.
1435614191 LD=$lt_LD
14357
14358 # How to create reloadable object files.
14359 reload_flag=$lt_reload_flag
14360 reload_cmds=$lt_reload_cmds
1436114192
1436214193 # Commands used to build an old-style archive.
1436314194 old_archive_cmds=$lt_old_archive_cmds
1461814449 func_dirname ()
1461914450 {
1462014451 # Extract subdirectory from the argument.
14621 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14452 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
1462214453 if test "X$func_dirname_result" = "X${1}"; then
1462314454 func_dirname_result="${3}"
1462414455 else
1462914460 # func_basename file
1463014461 func_basename ()
1463114462 {
14632 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14463 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
1463314464 }
1463414465
1463514466
1464214473 func_stripname ()
1464314474 {
1464414475 case ${2} in
14645 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14646 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14476 .*) func_stripname_result=`$ECHO "X${3}" \
14477 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14478 *) func_stripname_result=`$ECHO "X${3}" \
14479 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
1464714480 esac
1464814481 }
1464914482
1465414487 # func_opt_split
1465514488 func_opt_split ()
1465614489 {
14657 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14658 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14490 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14491 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
1465914492 }
1466014493
1466114494 # func_lo2o object
1466214495 func_lo2o ()
1466314496 {
14664 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14497 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
1466514498 }
1466614499
1466714500 # func_xform libobj-or-source
1466814501 func_xform ()
1466914502 {
14670 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14503 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
1467114504 }
1467214505
1467314506 # func_arith arithmetic-term...
00 AC_PREREQ(2.53)
1 AC_INIT(gupnp-dlna, 0.2.1, http://www.gupnp.org/)
1 AC_INIT(gupnp-dlna, 0.3.0, http://www.gupnp.org/)
22 AM_INIT_AUTOMAKE()
33 AC_CONFIG_SRCDIR(libgupnp-dlna/gupnp-dlna-profile.h)
44 AM_CONFIG_HEADER(config.h)
5151 libgupnp-dlna/Makefile
5252 tools/Makefile
5353 tests/Makefile
54 tests/test-discoverer.sh
5455 doc/Makefile
5556 doc/version.xml
5657 data/Makefile
3939 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4040 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4141 $(ACLOCAL_M4)
42 mkinstalldirs = $(install_sh) -d
42 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4343 CONFIG_HEADER = $(top_builddir)/config.h
4444 CONFIG_CLEAN_FILES =
4545 CONFIG_CLEAN_VPATH_FILES =
148148 PACKAGE_VERSION = @PACKAGE_VERSION@
149149 PATH_SEPARATOR = @PATH_SEPARATOR@
150150 PKG_CONFIG = @PKG_CONFIG@
151 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
152 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
153151 RANLIB = @RANLIB@
154152 SED = @SED@
155153 SET_MAKE = @SET_MAKE@
192190 libexecdir = @libexecdir@
193191 localedir = @localedir@
194192 localstatedir = @localstatedir@
193 lt_ECHO = @lt_ECHO@
195194 mandir = @mandir@
196195 mkdir_p = @mkdir_p@
197196 oldincludedir = @oldincludedir@
00 <?xml version="1.0"?>
11
22 <dlna-profiles>
3 <dlna-profile name="AC3" mime="audio/vnd.dolby.dd-raw">
4 <restriction type="audio">
3 <restrictions>
4 <restriction id="AC3" type="audio">
55 <field name="name" type="string">
66 <value>audio/x-ac3</value>
77 </field>
1818 <range min="64000" max="640000"/>
1919 </field>
2020 </restriction>
21 </restrictions>
22
23 <dlna-profile name="AC3" mime="audio/vnd.dolby.dd-raw">
24 <parent name="AC3" />
2125 </dlna-profile>
2226 </dlna-profiles>
11
22 <dlna-profiles>
33 <include ref="common.xml" />
4 <include ref="aac.xml" />
5 <include ref="mp3.xml" />
6 <include ref="ac3.xml" />
47
58 <restrictions>
69 <restriction id="AVC_BL_L3_AAC" type="audio">
5457 <field name="bitrate" type="int">
5558 <range min="0" max="384000" />
5659 </field>
57 <field name="maximum-bitrate" type="int">
58 <range min="0" max="384000" />
59 </field>
6060 </restriction>
6161
6262 <restriction id="AVC_BL_L3L" type="video">
7272 <value>2.2</value>
7373 <value>3</value>
7474 </field>
75 <field name="bitrate" type="int">
76 <!--- Conservative estimate from a system bitrate of 5 Mbps, and audio
77 bitrate of 256 kbps -->
78 <range min="1" max="4500000" />
79 </field>
7580 </restriction>
7681
7782 <restriction id="AVC_BL_L3" type="video">
177182 <parent name="30fps" />
178183 </restriction>
179184
185 <restriction id="AVC_MP" type="video">
186 <parent name="AVC_BL_C" />
187
188 <field name="profile" type="string">
189 <!-- constrained baseline is a subset of main profile -->
190 <value>constrained-baseline</value>
191 <value>main</value>
192 </field>
193
194 <field name="level" type="string">
195 <value>1</value>
196 <value>1b</value>
197 <value>1.1</value>
198 <value>1.2</value>
199 <value>1.3</value>
200 <value>2</value>
201 <value>2.1</value>
202 <value>2.2</value>
203 <value>3</value>
204 </field>
205
206 <field name="bitrate" type="int">
207 <range min="1" max="10000000" />
208 </field>
209 </restriction>
210
211 <restriction id="AVC_MP4_MP_HD_720p" type="video">
212 <parent name="AVC_MP" />
213
214 <field name="bitrate" type="int">
215 <range min="1" max="14000000" />
216 </field>
217
218 <field name="level" type="string">
219 <value>1</value>
220 <value>1b</value>
221 <value>1.1</value>
222 <value>1.2</value>
223 <value>1.3</value>
224 <value>2</value>
225 <value>2.1</value>
226 <value>2.2</value>
227 <value>3</value>
228 <value>3.1</value>
229 </field>
230 </restriction>
231
232 <restriction id="AVC_MP4_MP_HD_1080i" type="video">
233 <parent name="AVC_MP" />
234
235 <field name="bitrate" type="int">
236 <range min="1" max="20000000" />
237 </field>
238
239 <field name="level" type="string">
240 <value>1</value>
241 <value>1b</value>
242 <value>1.1</value>
243 <value>1.2</value>
244 <value>1.3</value>
245 <value>2</value>
246 <value>2.1</value>
247 <value>2.2</value>
248 <value>3</value>
249 <value>3.1</value>
250 <value>3.2</value>
251 <value>4</value>
252 </field>
253 </restriction>
180254 </restrictions>
181255
182256 <dlna-profile id="AVC_MP4_BL_CIF15">
273347 </restriction>
274348 </dlna-profile>
275349
276 <dlna-profile name="AVC_MP4_L3L_SD_AAC" mime="video/mp4">
350 <dlna-profile name="AVC_MP4_BL_L3L_SD_AAC" mime="video/mp4">
277351 <parent name="MP4" />
278352
279353 <parent name="AVC_BL_L3_AAC" />
304378 </restriction>
305379 </dlna-profile>
306380
307 <dlna-profile name="AVC_MP4_L3_SD_AAC" mime="video/mp4">
381 <dlna-profile name="AVC_MP4_BL_L3_SD_AAC" mime="video/mp4">
308382 <parent name="MP4" />
309383
310384 <parent name="AVC_BL_L3_AAC" />
329403 <parent name="AVC_BL_VGA_16:9" />
330404 </restriction>
331405 </dlna-profile>
406
407 <dlna-profile id="AVC_MP4_MP_SD">
408 <parent name="MP4" />
409
410 <restriction type="video">
411 <parent name="AVC_MP" />
412 <parent name="625_D1" />
413 <parent name="30fps" />
414 </restriction>
415
416 <restriction type="video">
417 <parent name="AVC_MP" />
418 <parent name="525_D1" />
419 <parent name="30fps" />
420 </restriction>
421
422 <restriction type="video">
423 <parent name="AVC_MP" />
424 <parent name="625_4SIF" />
425 <parent name="30fps" />
426 </restriction>
427
428 <restriction type="video">
429 <parent name="AVC_MP" />
430 <parent name="525_4SIF" />
431 <parent name="30fps" />
432 </restriction>
433
434 <restriction type="video">
435 <parent name="AVC_MP" />
436 <parent name="VGA" />
437 <parent name="30fps" />
438 </restriction>
439
440 <restriction type="video">
441 <parent name="AVC_MP" />
442 <parent name="VGA_16:9" />
443 <parent name="30fps" />
444 </restriction>
445
446 <restriction type="video">
447 <parent name="AVC_MP" />
448 <parent name="625_3/4D1" />
449 <parent name="30fps" />
450 </restriction>
451
452 <restriction type="video">
453 <parent name="AVC_MP" />
454 <parent name="525_3/4D1" />
455 <parent name="30fps" />
456 </restriction>
457
458 <restriction type="video">
459 <parent name="AVC_MP" />
460 <parent name="625_2/3D1" />
461 <parent name="30fps" />
462 </restriction>
463
464 <restriction type="video">
465 <parent name="AVC_MP" />
466 <parent name="525_2/3D1" />
467 <parent name="30fps" />
468 </restriction>
469
470 <restriction type="video">
471 <parent name="AVC_MP" />
472 <parent name="9/16_VGA_4:3" />
473 <parent name="30fps" />
474 </restriction>
475
476 <restriction type="video">
477 <parent name="AVC_MP" />
478 <parent name="9/16_VGA_16:9" />
479 <parent name="30fps" />
480 </restriction>
481
482 <restriction type="video">
483 <parent name="AVC_MP" />
484 <parent name="625_1/2D1" />
485 <parent name="30fps" />
486 </restriction>
487
488 <restriction type="video">
489 <parent name="AVC_MP" />
490 <parent name="525_1/2D1" />
491 <parent name="30fps" />
492 </restriction>
493
494 <restriction type="video">
495 <parent name="AVC_MP" />
496 <parent name="CIF" />
497 <parent name="30fps" />
498 </restriction>
499
500 <restriction type="video">
501 <parent name="AVC_MP" />
502 <parent name="525SIF" />
503 <parent name="30fps" />
504 </restriction>
505
506 <restriction type="video">
507 <parent name="AVC_MP" />
508 <parent name="QVGA_4:3" />
509 <parent name="30fps" />
510 </restriction>
511
512 <restriction type="video">
513 <parent name="AVC_MP" />
514 <parent name="QVGA_16:9" />
515 <parent name="30fps" />
516 </restriction>
517
518 <restriction type="video">
519 <parent name="AVC_MP" />
520 <parent name="1/7_VGA_4:3" />
521 <parent name="30fps" />
522 </restriction>
523
524 <restriction type="video">
525 <parent name="AVC_MP" />
526 <parent name="1/9_VGA_4:3" />
527 <parent name="30fps" />
528 </restriction>
529
530 <restriction type="video">
531 <parent name="AVC_MP" />
532 <parent name="QCIF" />
533 <parent name="30fps" />
534 </restriction>
535
536 <restriction type="video">
537 <parent name="AVC_MP" />
538 <parent name="525QSIF" />
539 <parent name="30fps" />
540 </restriction>
541
542 <restriction type="video">
543 <parent name="AVC_MP" />
544 <parent name="SQVGA_4:3" />
545 <parent name="30fps" />
546 </restriction>
547
548 <restriction type="video">
549 <parent name="AVC_MP" />
550 <parent name="1/16_VGA_4:3" />
551 <parent name="30fps" />
552 </restriction>
553
554 <restriction type="video">
555 <parent name="AVC_MP" />
556 <parent name="SQVGA_16:9" />
557 <parent name="30fps" />
558 </restriction>
559
560 <restriction type="video">
561 <parent name="AVC_MP" />
562 <parent name="SQCIF" />
563 <parent name="30fps" />
564 </restriction>
565
566 </dlna-profile>
567
568 <dlna-profile name="AVC_MP4_MP_SD_AAC_MULT5" mime="video/mp4"
569 base-profile="AVC_MP4_MP_SD">
570
571 <parent name="AAC-MULT5" />
572 </dlna-profile>
573
574 <dlna-profile name="AVC_MP4_MP_SD_MPEG1_L3" mime="video/mp4"
575 base-profile="AVC_MP4_MP_SD">
576
577 <parent name="MP3" />
578 </dlna-profile>
579
580 <dlna-profile name="AVC_MP4_MP_SD_AC3" mime="video/mp4"
581 base-profile="AVC_MP4_MP_SD">
582
583 <parent name="AC3" />
584 </dlna-profile>
585
586 <dlna-profile name="AVC_MP4_MP_HD_720p_AAC" mime="video/mp4">
587 <parent name="MP4" />
588 <parent name="AAC-576" />
589
590 <restriction type="video">
591 <parent name="AVC_MP4_MP_HD_720p" />
592 <parent name="1280x720" />
593 <parent name="30fps" />
594 </restriction>
595
596 <restriction type="video">
597 <parent name="AVC_MP4_MP_HD_720p" />
598 <parent name="VGA" />
599 <parent name="60fps" />
600 </restriction>
601 </dlna-profile>
602
603 <dlna-profile name="AVC_MP4_MP_HD_1080i_AAC" mime="video/mp4">
604 <parent name="MP4" />
605 <parent name="AAC-576" />
606
607 <restriction type="video">
608 <parent name="AVC_MP4_MP_HD_1080i" />
609 <parent name="1920x1080" />
610 <parent name="30fps" />
611 <field name="interlaced" type="boolean">
612 <value>true</value>
613 </field>
614 </restriction>
615
616 <restriction type="video">
617 <parent name="AVC_MP4_MP_HD_1080i" />
618 <parent name="1280x720" />
619 <parent name="60fps" />
620 </restriction>
621 </dlna-profile>
332622 </dlna-profiles>
5757 </restriction>
5858
5959 <!-- Video resolutions -->
60 <restriction id="1920x1080" type="video">
61 <field name="width" type="int">
62 <value>1920</value>
63 </field>
64 <field name="height" type="int">
65 <value>1080</value>
66 </field>
67 </restriction>
68
69 <restriction id="1280x720" type="video">
70 <field name="width" type="int">
71 <value>1280</value>
72 </field>
73 <field name="height" type="int">
74 <value>720</value>
75 </field>
76 </restriction>
77
6078 <restriction id="625_D1" type="video">
6179 <field name="width" type="int">
6280 <value>720</value>
324342 <range min="0/1" max="30/1" />
325343 </field>
326344 </restriction>
345
346 <restriction id="60fps" type="video">
347 <field name="framerate" type="fraction">
348 <range min="0/1" max="60/1" />
349 </field>
350 </restriction>
327351 </restrictions>
328352 </dlna-profiles>
00 <?xml version="1.0"?>
11
22 <dlna-profiles>
3 <include ref="common.xml" />
4
35 <restrictions>
46 <restriction id="MPEG_TS" type="container">
57 <field name="name" type="string">
132134 </restriction>
133135
134136 <!-- HD resolutions -->
135 <restriction id="1920x1080" type="video">
136 <field name="height" type="int">
137 <value>1080</value>
138 </field>
139 <field name="width" type="int">
140 <value>1920</value>
141 </field>
137 <restriction id="MPEG_TS_1920x1080" type="video">
138 <parent name="1920x1080" />
142139 <field name="framerate" type="fraction">
143140 <value>30000/1001</value>
144141 <value>30/1</value>
151148 </field>
152149 </restriction>
153150
154 <restriction id="1280x720" type="video">
155 <field name="height" type="int">
156 <value>720</value>
157 </field>
158 <field name="width" type="int">
159 <value>1280</value>
160 </field>
151 <restriction id="MPEG_TS_1280x720" type="video">
152 <parent name="1280x720" />
153
161154 <field name="framerate" type="fraction">
162155 <value>30000/1001</value>
163156 <value>30/1</value>
295288
296289 <restriction type="video">
297290 <parent name="MPEG_TS_VIDEO" />
298 <parent name="1920x1080" />
299 </restriction>
300
301 <restriction type="video">
302 <parent name="MPEG_TS_VIDEO" />
303 <parent name="1280x720" />
291 <parent name="MPEG_TS_1920x1080" />
292 </restriction>
293
294 <restriction type="video">
295 <parent name="MPEG_TS_VIDEO" />
296 <parent name="MPEG_TS_1280x720" />
304297 </restriction>
305298
306299 <restriction type="video">
6464 <value>0</value>
6565 <value>1</value>
6666 </field>
67 <field name="maximum-bitrate" type="int">
67 <field name="bitrate" type="int">
6868 <range min="1" max="64000" />
6969 </field>
7070 </restriction>
7676 <value>0b</value>
7777 <value>2</value>
7878 </field>
79 <field name="maximum-bitrate" type="int">
79 <field name="bitrate" type="int">
8080 <range min="1" max="128000" />
8181 </field>
8282 </restriction>
8787 <field name="level" type="string">
8888 <value>3</value>
8989 </field>
90 <field name="maximum-bitrate" type="int">
90 <field name="bitrate" type="int">
9191 <range min="1" max="384000" />
9292 </field>
9393 </restriction>
104104 <value>1</value>
105105 <value>2</value>
106106 </field>
107 <field name="maximum-bitrate" type="int">
107 <field name="bitrate" type="int">
108108 <range min="1" max="128000" />
109109 </field>
110110 </restriction>
111111
112112 <restriction id="SP_L3_VGA" type="video">
113113 <parent name="MPEG4V" />
114 <parent name="30fps" />
114115
115116 <field name="profile" type="string">
116117 <value>simple</value>
122123 <value>2</value>
123124 <value>3</value>
124125 </field>
125 <field name="maximum-bitrate" type="int">
126 <field name="bitrate" type="int">
126127 <range min="1" max="3000000" />
127128 </field>
128129 </restriction>
370371
371372 <restriction type="audio">
372373 <parent name="AAC" />
373 <field name="maximum-bitrate" type="int">
374 <field name="bitrate" type="int">
374375 <range min="1" max="128000" />
375376 </field>
376377 </restriction>
4949 IGNORE_HFILES= xml-util.h \
5050 gvalue-util.h \
5151 gupnp-dlna-load.h \
52 gupnp-dlna-profile.h \
5352 gupnp-dlna-marshal.h
5453
5554 # Images to copy into HTML directory.
4545 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4646 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4747 $(ACLOCAL_M4)
48 mkinstalldirs = $(install_sh) -d
48 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4949 CONFIG_HEADER = $(top_builddir)/config.h
5050 CONFIG_CLEAN_FILES = version.xml
5151 CONFIG_CLEAN_VPATH_FILES =
131131 PACKAGE_VERSION = @PACKAGE_VERSION@
132132 PATH_SEPARATOR = @PATH_SEPARATOR@
133133 PKG_CONFIG = @PKG_CONFIG@
134 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
135 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
136134 RANLIB = @RANLIB@
137135 SED = @SED@
138136 SET_MAKE = @SET_MAKE@
175173 libexecdir = @libexecdir@
176174 localedir = @localedir@
177175 localstatedir = @localstatedir@
176 lt_ECHO = @lt_ECHO@
178177 mandir = @mandir@
179178 mkdir_p = @mkdir_p@
180179 oldincludedir = @oldincludedir@
241240 IGNORE_HFILES = xml-util.h \
242241 gvalue-util.h \
243242 gupnp-dlna-load.h \
244 gupnp-dlna-profile.h \
245243 gupnp-dlna-marshal.h
246244
247245
5252 MediaServer implementations, such as DLNA media profile guessing.
5353 </para>
5454
55 <para>
56 Before using the GUPnP DLNA API, you must initialise GStreamer by calling
57 gst_init() or gst_init_check().
58 </para>
59
5560 <xi:include href="xml/gupnp-dlna-discoverer.xml"/>
5661 <xi:include href="xml/gupnp-dlna-information.xml"/>
62 <xi:include href="xml/gupnp-dlna-profile.xml"/>
5763
5864 </chapter>
5965
33 GUPnPDLNAProfile
44 GUPnPDLNAProfileClass
55 gupnp_dlna_profile_new
6 gupnp_dlna_profile_get_name
7 gupnp_dlna_profile_get_mime
8 gupnp_dlna_profile_get_encoding_profile
69 <SUBSECTION Standard>
710 GUPNP_DLNA_PROFILE
811 GUPNP_IS_DLNA_PROFILE
77 <link rel="up" href="ch01.html" title="GUPnP DLNA">
88 <link rel="prev" href="ch01.html" title="GUPnP DLNA">
99 <link rel="next" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation">
10 <meta name="generator" content="GTK-Doc V1.15 (XML mode)">
10 <meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
1111 <link rel="stylesheet" href="style.css" type="text/css">
1212 </head>
1313 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
2626  | 
2727 <a href="#GUPnPDLNADiscoverer.object-hierarchy" class="shortcut">Object Hierarchy</a>
2828  | 
29 <a href="#GUPnPDLNADiscoverer.properties" class="shortcut">Properties</a>
30  | 
2931 <a href="#GUPnPDLNADiscoverer.signals" class="shortcut">Signals</a>
3032 </td></tr>
3133 </table>
32 <div class="refentry" title="GUPnPDLNADiscoverer">
34 <div class="refentry">
3335 <a name="GUPnPDLNADiscoverer"></a><div class="titlepage"></div>
3436 <div class="refnamediv"><table width="100%"><tr>
3537 <td valign="top">
3941 </td>
4042 <td valign="top" align="right"></td>
4143 </tr></table></div>
42 <div class="refsynopsisdiv" title="Synopsis">
44 <div class="refsynopsisdiv">
4345 <a name="GUPnPDLNADiscoverer.synopsis"></a><h2>Synopsis</h2>
4446 <pre class="synopsis"> <a class="link" href="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-struct" title="GUPnPDLNADiscoverer">GUPnPDLNADiscoverer</a>;
45 <a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="returnvalue">GUPnPDLNADiscoverer</span></a>* <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-new" title="gupnp_dlna_discoverer_new ()">gupnp_dlna_discoverer_new</a> (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> timeout</code></em>);
46 <span class="returnvalue">void</span> <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-start" title="gupnp_dlna_discoverer_start ()">gupnp_dlna_discoverer_start</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>);
47 <span class="returnvalue">void</span> <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop" title="gupnp_dlna_discoverer_stop ()">gupnp_dlna_discoverer_stop</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>);
48 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri" title="gupnp_dlna_discoverer_discover_uri ()">gupnp_dlna_discoverer_discover_uri</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>,
49 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>);
47 <a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="returnvalue">GUPnPDLNADiscoverer</span></a> * <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-new" title="gupnp_dlna_discoverer_new ()">gupnp_dlna_discoverer_new</a> (<em class="parameter"><code><span class="type">GstClockTime</span> timeout</code></em>,
48 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> relaxed_mode</code></em>,
49 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extended_mode</code></em>);
50 #define <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-start" title="gupnp_dlna_discoverer_start()">gupnp_dlna_discoverer_start</a> (discoverer)
51 #define <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop" title="gupnp_dlna_discoverer_stop()">gupnp_dlna_discoverer_stop</a> (discoverer)
52 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri" title="gupnp_dlna_discoverer_discover_uri ()">gupnp_dlna_discoverer_discover_uri</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>,
53 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>);
5054 <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * <a class="link" href="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri-sync" title="gupnp_dlna_discoverer_discover_uri_sync ()">gupnp_dlna_discoverer_discover_uri_sync</a>
5155 (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>,
52 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>,
53 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
56 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>,
57 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);
5458 </pre>
5559 </div>
56 <div class="refsect1" title="Object Hierarchy">
60 <div class="refsect1">
5761 <a name="GUPnPDLNADiscoverer.object-hierarchy"></a><h2>Object Hierarchy</h2>
5862 <pre class="synopsis">
59 <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
60 +----<a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscoverer">GstDiscoverer</a>
63 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
64 +----<a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscoverer">GstDiscoverer</a>
6165 +----GUPnPDLNADiscoverer
6266 </pre>
6367 </div>
64 <div class="refsect1" title="Signals">
68 <div class="refsect1">
69 <a name="GUPnPDLNADiscoverer.properties"></a><h2>Properties</h2>
70 <pre class="synopsis">
71 "<a class="link" href="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--extended-mode" title='The "extended-mode" property'>extended-mode</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only
72 "<a class="link" href="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--relaxed-mode" title='The "relaxed-mode" property'>relaxed-mode</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only
73 </pre>
74 </div>
75 <div class="refsect1">
6576 <a name="GUPnPDLNADiscoverer.signals"></a><h2>Signals</h2>
6677 <pre class="synopsis">
6778 "<a class="link" href="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done" title='The "done" signal'>done</a>" : Run Last
6879 </pre>
6980 </div>
70 <div class="refsect1" title="Description">
81 <div class="refsect1">
7182 <a name="GUPnPDLNADiscoverer.description"></a><h2>Description</h2>
7283 <p>
7384 The GUPnPDLNADiscoverer object provides a light-weight wrapper over the
74 <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscoverer"><span class="type">GstDiscoverer</span></a> API. The latter provides a simple interface to discover
85 <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscoverer"><span class="type">GstDiscoverer</span></a> API. The latter provides a simple interface to discover
7586 media metadata given a URI. GUPnPDLNADiscoverer extends this API to also
7687 provide a DLNA profile name and mime type for the media.
7788 </p>
7889 <p>
7990 The API provided corresponds very closely to the API provided by
80 <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscoverer"><span class="type">GstDiscoverer</span></a> - both synchronous and asynchronous discovery of metadata
91 <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscoverer"><span class="type">GstDiscoverer</span></a> - both synchronous and asynchronous discovery of metadata
8192 are possible.
8293 </p>
8394 <p>
84 The asynchronous mode requires a running <a href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> in the default
85 <a href="/usr/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html#GMainContext"><span class="type">GMainContext</span></a>, where one connects to the various signals, appends the
95 The asynchronous mode requires a running <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainLoop"><span class="type">GMainLoop</span></a> in the default
96 <a href="http://library.gnome.org/devel/glib/unstable/glib-The-Main-Event-Loop.html#GMainContext"><span class="type">GMainContext</span></a>, where one connects to the various signals, appends the
8697 URIs to be processed and then asks for the discovery to begin.
8798 </p>
8899 </div>
89 <div class="refsect1" title="Details">
100 <div class="refsect1">
90101 <a name="GUPnPDLNADiscoverer.details"></a><h2>Details</h2>
91 <div class="refsect2" title="GUPnPDLNADiscoverer">
102 <div class="refsect2">
92103 <a name="GUPnPDLNADiscoverer-struct"></a><h3>GUPnPDLNADiscoverer</h3>
93104 <pre class="programlisting">typedef struct _GUPnPDLNADiscoverer GUPnPDLNADiscoverer;</pre>
94105 <p>
96107 </p>
97108 </div>
98109 <hr>
99 <div class="refsect2" title="gupnp_dlna_discoverer_new ()">
110 <div class="refsect2">
100111 <a name="gupnp-dlna-discoverer-new"></a><h3>gupnp_dlna_discoverer_new ()</h3>
101 <pre class="programlisting"><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="returnvalue">GUPnPDLNADiscoverer</span></a>* gupnp_dlna_discoverer_new (<em class="parameter"><code><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstClock.html#GstClockTime"><span class="type">GstClockTime</span></a> timeout</code></em>);</pre>
112 <pre class="programlisting"><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="returnvalue">GUPnPDLNADiscoverer</span></a> * gupnp_dlna_discoverer_new (<em class="parameter"><code><span class="type">GstClockTime</span> timeout</code></em>,
113 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> relaxed_mode</code></em>,
114 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extended_mode</code></em>);</pre>
102115 <p>
103116 Creates a new <a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> object with the given default timeout
104117 value.
120133 </table></div>
121134 </div>
122135 <hr>
123 <div class="refsect2" title="gupnp_dlna_discoverer_start ()">
124 <a name="gupnp-dlna-discoverer-start"></a><h3>gupnp_dlna_discoverer_start ()</h3>
125 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_dlna_discoverer_start (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>);</pre>
136 <div class="refsect2">
137 <a name="gupnp-dlna-discoverer-start"></a><h3>gupnp_dlna_discoverer_start()</h3>
138 <pre class="programlisting">#define gupnp_dlna_discoverer_start(discoverer)</pre>
126139 <p>
127140 Allows asynchronous discovery of URIs to begin.
128141 </p>
137150 </table></div>
138151 </div>
139152 <hr>
140 <div class="refsect2" title="gupnp_dlna_discoverer_stop ()">
141 <a name="gupnp-dlna-discoverer-stop"></a><h3>gupnp_dlna_discoverer_stop ()</h3>
142 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_dlna_discoverer_stop (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>);</pre>
153 <div class="refsect2">
154 <a name="gupnp-dlna-discoverer-stop"></a><h3>gupnp_dlna_discoverer_stop()</h3>
155 <pre class="programlisting">#define gupnp_dlna_discoverer_stop(discoverer)</pre>
143156 <p>
144157 Stops asynchronous discovery of URIs.
145158 </p>
154167 </table></div>
155168 </div>
156169 <hr>
157 <div class="refsect2" title="gupnp_dlna_discoverer_discover_uri ()">
170 <div class="refsect2">
158171 <a name="gupnp-dlna-discoverer-discover-uri"></a><h3>gupnp_dlna_discoverer_discover_uri ()</h3>
159 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gupnp_dlna_discoverer_discover_uri (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>,
160 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>);</pre>
172 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gupnp_dlna_discoverer_discover_uri (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>,
173 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>);</pre>
161174 <p>
162175 Queues <em class="parameter"><code>uri</code></em> for metadata discovery. When discovery is completed, the
163176 "discovered" signal is emitted on <em class="parameter"><code>discoverer</code></em>.
185198 </table></div>
186199 </div>
187200 <hr>
188 <div class="refsect2" title="gupnp_dlna_discoverer_discover_uri_sync ()">
201 <div class="refsect2">
189202 <a name="gupnp-dlna-discoverer-discover-uri-sync"></a><h3>gupnp_dlna_discoverer_discover_uri_sync ()</h3>
190203 <pre class="programlisting"><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * gupnp_dlna_discoverer_discover_uri_sync
191204 (<em class="parameter"><code><a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer</code></em>,
192 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>,
193 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
205 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *uri</code></em>,
206 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **err</code></em>);</pre>
194207 <p>
195208 Synchronously gathers metadata for <em class="parameter"><code>uri</code></em>.
196209 </p>
223236 </table></div>
224237 </div>
225238 </div>
226 <div class="refsect1" title="Signal Details">
239 <div class="refsect1">
240 <a name="GUPnPDLNADiscoverer.property-details"></a><h2>Property Details</h2>
241 <div class="refsect2">
242 <a name="GUPnPDLNADiscoverer--extended-mode"></a><h3>The <code class="literal">"extended-mode"</code> property</h3>
243 <pre class="programlisting"> "extended-mode" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only</pre>
244 <p>Indicates support for profiles that are not part of the DLNA specification.</p>
245 <p>Default value: FALSE</p>
246 </div>
247 <hr>
248 <div class="refsect2">
249 <a name="GUPnPDLNADiscoverer--relaxed-mode"></a><h3>The <code class="literal">"relaxed-mode"</code> property</h3>
250 <pre class="programlisting"> "relaxed-mode" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only</pre>
251 <p>Indicates that profile matching shouldbe strictly compliant with the DLNA specification.</p>
252 <p>Default value: FALSE</p>
253 </div>
254 </div>
255 <div class="refsect1">
227256 <a name="GUPnPDLNADiscoverer.signal-details"></a><h2>Signal Details</h2>
228 <div class="refsect2" title='The "done" signal'>
257 <div class="refsect2">
229258 <a name="GUPnPDLNADiscoverer-done"></a><h3>The <code class="literal">"done"</code> signal</h3>
230259 <pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> *discoverer,
231260 <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *dlna,
232 <a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *err,
233 <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre>
261 <a href="http://library.gnome.org/devel/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> *err,
262 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last</pre>
234263 <p>
235264 Will be emitted when all information on a URI could be discovered.
236265 </p>
266295 </div>
267296 <div class="footer">
268297 <hr>
269 Generated by GTK-Doc V1.15</div>
298 Generated by GTK-Doc V1.15.1</div>
270299 </body>
271300 </html>
66 <link rel="home" href="index.html" title="GUPnP DLNA Reference Manual">
77 <link rel="up" href="ch01.html" title="GUPnP DLNA">
88 <link rel="prev" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer">
9 <meta name="generator" content="GTK-Doc V1.15 (XML mode)">
9 <link rel="next" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile">
10 <meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
1011 <link rel="stylesheet" href="style.css" type="text/css">
1112 </head>
1213 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
1617 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
1718 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
1819 <th width="100%" align="center">GUPnP DLNA Reference Manual</th>
19 <td> </td>
20 <td><a accesskey="n" href="GUPnPDLNAProfile.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
2021 </tr>
2122 <tr><td colspan="5" class="shortcuts">
2223 <a href="#GUPnPDLNAInformation.synopsis" class="shortcut">Top</a>
2829 <a href="#GUPnPDLNAInformation.properties" class="shortcut">Properties</a>
2930 </td></tr>
3031 </table>
31 <div class="refentry" title="GUPnPDLNAInformation">
32 <div class="refentry">
3233 <a name="GUPnPDLNAInformation"></a><div class="titlepage"></div>
3334 <div class="refnamediv"><table width="100%"><tr>
3435 <td valign="top">
3839 </td>
3940 <td valign="top" align="right"></td>
4041 </tr></table></div>
41 <div class="refsynopsisdiv" title="Synopsis">
42 <div class="refsynopsisdiv">
4243 <a name="GUPnPDLNAInformation.synopsis"></a><h2>Synopsis</h2>
4344 <pre class="synopsis"> <a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation-struct" title="GUPnPDLNAInformation">GUPnPDLNAInformation</a>;
44 <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-new" title="gupnp_dlna_information_new ()">gupnp_dlna_information_new</a> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
45 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mime</code></em>,
46 <em class="parameter"><code><a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="type">GstDiscovererInformation</span></a> *info</code></em>);
47 const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-get-name" title="gupnp_dlna_information_get_name ()">gupnp_dlna_information_get_name</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);
48 const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-get-mime" title="gupnp_dlna_information_get_mime ()">gupnp_dlna_information_get_mime</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);
49 const <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="returnvalue">GstDiscovererInformation</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-get-info" title="gupnp_dlna_information_get_info ()">gupnp_dlna_information_get_info</a>
45 <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-new" title="gupnp_dlna_information_new ()">gupnp_dlna_information_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
46 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mime</code></em>,
47 <em class="parameter"><code><span class="type">GstDiscovererInformation</span> *info</code></em>);
48 const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-get-name" title="gupnp_dlna_information_get_name ()">gupnp_dlna_information_get_name</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);
49 const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-get-mime" title="gupnp_dlna_information_get_mime ()">gupnp_dlna_information_get_mime</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);
50 const <span class="returnvalue">GstDiscovererInformation</span> * <a class="link" href="GUPnPDLNAInformation.html#gupnp-dlna-information-get-info" title="gupnp_dlna_information_get_info ()">gupnp_dlna_information_get_info</a>
5051 (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);
5152 </pre>
5253 </div>
53 <div class="refsect1" title="Object Hierarchy">
54 <div class="refsect1">
5455 <a name="GUPnPDLNAInformation.object-hierarchy"></a><h2>Object Hierarchy</h2>
5556 <pre class="synopsis">
56 <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
57 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
5758 +----GUPnPDLNAInformation
5859 </pre>
5960 </div>
60 <div class="refsect1" title="Properties">
61 <div class="refsect1">
6162 <a name="GUPnPDLNAInformation.properties"></a><h2>Properties</h2>
6263 <pre class="synopsis">
63 "<a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation--info" title='The "info" property'>info</a>" <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="type">GstDiscovererInformation</span></a>* : Read / Write / Construct Only
64 "<a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime" title='The "mime" property'>mime</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
65 "<a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation--name" title='The "name" property'>name</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
64 "<a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation--info" title='The "info" property'>info</a>" <span class="type">GstDiscovererInformation</span>* : Read / Write / Construct Only
65 "<a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime" title='The "mime" property'>mime</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
66 "<a class="link" href="GUPnPDLNAInformation.html#GUPnPDLNAInformation--name" title='The "name" property'>name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
6667 </pre>
6768 </div>
68 <div class="refsect1" title="Description">
69 <div class="refsect1">
6970 <a name="GUPnPDLNAInformation.description"></a><h2>Description</h2>
7071 <p>
7172 The GUPnPDLNAInformation object holds metadata information discovered by the
7475 All fields are read-only.
7576 </p>
7677 </div>
77 <div class="refsect1" title="Details">
78 <div class="refsect1">
7879 <a name="GUPnPDLNAInformation.details"></a><h2>Details</h2>
79 <div class="refsect2" title="GUPnPDLNAInformation">
80 <div class="refsect2">
8081 <a name="GUPnPDLNAInformation-struct"></a><h3>GUPnPDLNAInformation</h3>
8182 <pre class="programlisting">typedef struct _GUPnPDLNAInformation GUPnPDLNAInformation;</pre>
8283 </div>
8384 <hr>
84 <div class="refsect2" title="gupnp_dlna_information_new ()">
85 <div class="refsect2">
8586 <a name="gupnp-dlna-information-new"></a><h3>gupnp_dlna_information_new ()</h3>
86 <pre class="programlisting"><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * gupnp_dlna_information_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
87 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mime</code></em>,
88 <em class="parameter"><code><a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="type">GstDiscovererInformation</span></a> *info</code></em>);</pre>
87 <pre class="programlisting"><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * gupnp_dlna_information_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
88 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mime</code></em>,
89 <em class="parameter"><code><span class="type">GstDiscovererInformation</span> *info</code></em>);</pre>
8990 <p>
9091 Creates a new <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> object with the given properties.
9192 </p>
105106 <tr>
106107 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
107108 <td>
108 <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="type">GstDiscovererInformation</span></a> type with additional metadata about the
109 <span class="type">GstDiscovererInformation</span> type with additional metadata about the
109110 stream
110111 </td>
111112 </tr>
118119 </table></div>
119120 </div>
120121 <hr>
121 <div class="refsect2" title="gupnp_dlna_information_get_name ()">
122 <div class="refsect2">
122123 <a name="gupnp-dlna-information-get-name"></a><h3>gupnp_dlna_information_get_name ()</h3>
123 <pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gupnp_dlna_information_get_name (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);</pre>
124 <div class="variablelist"><table border="0">
125 <col align="left" valign="top">
126 <tbody><tr>
124 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gupnp_dlna_information_get_name (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);</pre>
125 <div class="variablelist"><table border="0">
126 <col align="left" valign="top">
127 <tbody>
128 <tr>
129 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
130 <td>The <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> object
131 </td>
132 </tr>
133 <tr>
127134 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
128135 <td> the DLNA profile name of the stream represented by <em class="parameter"><code>self</code></em>. Do not
129136 free this string.
130137 </td>
131 </tr></tbody>
132 </table></div>
133 </div>
134 <hr>
135 <div class="refsect2" title="gupnp_dlna_information_get_mime ()">
138 </tr>
139 </tbody>
140 </table></div>
141 </div>
142 <hr>
143 <div class="refsect2">
136144 <a name="gupnp-dlna-information-get-mime"></a><h3>gupnp_dlna_information_get_mime ()</h3>
137 <pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gupnp_dlna_information_get_mime (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);</pre>
138 <div class="variablelist"><table border="0">
139 <col align="left" valign="top">
140 <tbody><tr>
145 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gupnp_dlna_information_get_mime (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);</pre>
146 <div class="variablelist"><table border="0">
147 <col align="left" valign="top">
148 <tbody>
149 <tr>
150 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
151 <td>The <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> object
152 </td>
153 </tr>
154 <tr>
141155 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
142156 <td> the DLNA MIME type of the stream represented by <em class="parameter"><code>self</code></em>. Do not
143157 free this string.
144158 </td>
145 </tr></tbody>
146 </table></div>
147 </div>
148 <hr>
149 <div class="refsect2" title="gupnp_dlna_information_get_info ()">
159 </tr>
160 </tbody>
161 </table></div>
162 </div>
163 <hr>
164 <div class="refsect2">
150165 <a name="gupnp-dlna-information-get-info"></a><h3>gupnp_dlna_information_get_info ()</h3>
151 <pre class="programlisting">const <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="returnvalue">GstDiscovererInformation</span></a> * gupnp_dlna_information_get_info
166 <pre class="programlisting">const <span class="returnvalue">GstDiscovererInformation</span> * gupnp_dlna_information_get_info
152167 (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);</pre>
153168 <div class="variablelist"><table border="0">
154169 <col align="left" valign="top">
155 <tbody><tr>
170 <tbody>
171 <tr>
172 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
173 <td>The <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> object
174 </td>
175 </tr>
176 <tr>
156177 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
157178 <td> additional stream metadata for <em class="parameter"><code>self</code></em> in the form of a
158 <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="type">GstDiscovererInformation</span></a> structure. Do not free this structure.
159 </td>
160 </tr></tbody>
161 </table></div>
162 </div>
163 </div>
164 <div class="refsect1" title="Property Details">
179 <span class="type">GstDiscovererInformation</span> structure. Do not free this structure.
180 </td>
181 </tr>
182 </tbody>
183 </table></div>
184 </div>
185 </div>
186 <div class="refsect1">
165187 <a name="GUPnPDLNAInformation.property-details"></a><h2>Property Details</h2>
166 <div class="refsect2" title='The "info" property'>
188 <div class="refsect2">
167189 <a name="GUPnPDLNAInformation--info"></a><h3>The <code class="literal">"info"</code> property</h3>
168 <pre class="programlisting"> "info" <a href="../gst-convenience-0.10/gst-convenience-gstdiscoverer.html#GstDiscovererInformation"><span class="type">GstDiscovererInformation</span></a>* : Read / Write / Construct Only</pre>
190 <pre class="programlisting"> "info" <span class="type">GstDiscovererInformation</span>* : Read / Write / Construct Only</pre>
169191 <p>Metadata of the stream in a GstDiscovererInformation structure.</p>
170192 </div>
171193 <hr>
172 <div class="refsect2" title='The "mime" property'>
194 <div class="refsect2">
173195 <a name="GUPnPDLNAInformation--mime"></a><h3>The <code class="literal">"mime"</code> property</h3>
174 <pre class="programlisting"> "mime" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre>
196 <pre class="programlisting"> "mime" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre>
175197 <p>The DLNA MIME type of the stream.</p>
176198 <p>Default value: NULL</p>
177199 </div>
178200 <hr>
179 <div class="refsect2" title='The "name" property'>
201 <div class="refsect2">
180202 <a name="GUPnPDLNAInformation--name"></a><h3>The <code class="literal">"name"</code> property</h3>
181 <pre class="programlisting"> "name" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre>
203 <pre class="programlisting"> "name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre>
182204 <p>The name of the DLNA profile corresponding to the strream.</p>
183205 <p>Default value: NULL</p>
184206 </div>
186208 </div>
187209 <div class="footer">
188210 <hr>
189 Generated by GTK-Doc V1.15</div>
211 Generated by GTK-Doc V1.15.1</div>
190212 </body>
191213 </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>GUPnPDLNAProfile</title>
5 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
6 <link rel="home" href="index.html" title="GUPnP DLNA Reference Manual">
7 <link rel="up" href="ch01.html" title="GUPnP DLNA">
8 <link rel="prev" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation">
9 <meta name="generator" content="GTK-Doc V1.15.1 (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="GUPnPDLNAInformation.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
16 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></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">GUPnP DLNA Reference Manual</th>
19 <td> </td>
20 </tr>
21 <tr><td colspan="5" class="shortcuts">
22 <a href="#GUPnPDLNAProfile.synopsis" class="shortcut">Top</a>
23  | 
24 <a href="#GUPnPDLNAProfile.description" class="shortcut">Description</a>
25  | 
26 <a href="#GUPnPDLNAProfile.object-hierarchy" class="shortcut">Object Hierarchy</a>
27  | 
28 <a href="#GUPnPDLNAProfile.properties" class="shortcut">Properties</a>
29 </td></tr>
30 </table>
31 <div class="refentry">
32 <a name="GUPnPDLNAProfile"></a><div class="titlepage"></div>
33 <div class="refnamediv"><table width="100%"><tr>
34 <td valign="top">
35 <h2><span class="refentrytitle"><a name="GUPnPDLNAProfile.top_of_page"></a>GUPnPDLNAProfile</span></h2>
36 <p>GUPnPDLNAProfile — Object representing a DLNA profile</p>
37 </td>
38 <td valign="top" align="right"></td>
39 </tr></table></div>
40 <div class="refsynopsisdiv">
41 <a name="GUPnPDLNAProfile.synopsis"></a><h2>Synopsis</h2>
42 <pre class="synopsis"> <a class="link" href="GUPnPDLNAProfile.html#GUPnPDLNAProfile-struct" title="GUPnPDLNAProfile">GUPnPDLNAProfile</a>;
43 <a class="link" href="GUPnPDLNAProfile.html#GUPnPDLNAProfileClass" title="GUPnPDLNAProfileClass">GUPnPDLNAProfileClass</a>;
44 <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="returnvalue">GUPnPDLNAProfile</span></a> * <a class="link" href="GUPnPDLNAProfile.html#gupnp-dlna-profile-new" title="gupnp_dlna_profile_new ()">gupnp_dlna_profile_new</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
45 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mime</code></em>,
46 <em class="parameter"><code><a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="type">GstEncodingProfile</span></a> *enc_profile</code></em>,
47 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extended</code></em>);
48 const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-name" title="gupnp_dlna_profile_get_name ()">gupnp_dlna_profile_get_name</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> *self</code></em>);
49 const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-mime" title="gupnp_dlna_profile_get_mime ()">gupnp_dlna_profile_get_mime</a> (<em class="parameter"><code><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> *self</code></em>);
50 const <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="returnvalue">GstEncodingProfile</span></a> * <a class="link" href="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-encoding-profile" title="gupnp_dlna_profile_get_encoding_profile ()">gupnp_dlna_profile_get_encoding_profile</a>
51 (<em class="parameter"><code><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> *self</code></em>);
52 </pre>
53 </div>
54 <div class="refsect1">
55 <a name="GUPnPDLNAProfile.object-hierarchy"></a><h2>Object Hierarchy</h2>
56 <pre class="synopsis">
57 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
58 +----GUPnPDLNAProfile
59 </pre>
60 </div>
61 <div class="refsect1">
62 <a name="GUPnPDLNAProfile.properties"></a><h2>Properties</h2>
63 <pre class="synopsis">
64 "<a class="link" href="GUPnPDLNAProfile.html#GUPnPDLNAProfile--encoding-profile" title='The "encoding-profile" property'>encoding-profile</a>" <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="type">GstEncodingProfile</span></a>* : Read / Write / Construct Only
65 "<a class="link" href="GUPnPDLNAProfile.html#GUPnPDLNAProfile--extended" title='The "extended" property'>extended</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only
66 "<a class="link" href="GUPnPDLNAProfile.html#GUPnPDLNAProfile--mime" title='The "mime" property'>mime</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
67 "<a class="link" href="GUPnPDLNAProfile.html#GUPnPDLNAProfile--name" title='The "name" property'>name</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only
68 </pre>
69 </div>
70 <div class="refsect1">
71 <a name="GUPnPDLNAProfile.description"></a><h2>Description</h2>
72 <p>
73 The <a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> object provides a few APIs that return
74 <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> objects. These represent a single DLNA profile. Each
75 <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> has a name (the name of the DLNA profile), the
76 corresponding MIME type, and a <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="type">GstEncodingProfile</span></a> which represents the
77 various audio/video/container restrictions specified for that DLNA profile.
78 </p>
79 </div>
80 <div class="refsect1">
81 <a name="GUPnPDLNAProfile.details"></a><h2>Details</h2>
82 <div class="refsect2">
83 <a name="GUPnPDLNAProfile-struct"></a><h3>GUPnPDLNAProfile</h3>
84 <pre class="programlisting">typedef struct _GUPnPDLNAProfile GUPnPDLNAProfile;</pre>
85 </div>
86 <hr>
87 <div class="refsect2">
88 <a name="GUPnPDLNAProfileClass"></a><h3>GUPnPDLNAProfileClass</h3>
89 <pre class="programlisting">typedef struct {
90 GObjectClass parent_class;
91 } GUPnPDLNAProfileClass;
92 </pre>
93 </div>
94 <hr>
95 <div class="refsect2">
96 <a name="gupnp-dlna-profile-new"></a><h3>gupnp_dlna_profile_new ()</h3>
97 <pre class="programlisting"><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="returnvalue">GUPnPDLNAProfile</span></a> * gupnp_dlna_profile_new (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
98 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *mime</code></em>,
99 <em class="parameter"><code><a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="type">GstEncodingProfile</span></a> *enc_profile</code></em>,
100 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> extended</code></em>);</pre>
101 <p>
102 Creates a new <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> object.
103 </p>
104 <div class="variablelist"><table border="0">
105 <col align="left" valign="top">
106 <tbody><tr>
107 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
108 <td> A new <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> object.
109 </td>
110 </tr></tbody>
111 </table></div>
112 </div>
113 <hr>
114 <div class="refsect2">
115 <a name="gupnp-dlna-profile-get-name"></a><h3>gupnp_dlna_profile_get_name ()</h3>
116 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gupnp_dlna_profile_get_name (<em class="parameter"><code><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> *self</code></em>);</pre>
117 <div class="variablelist"><table border="0">
118 <col align="left" valign="top">
119 <tbody>
120 <tr>
121 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
122 <td>The <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> object
123 </td>
124 </tr>
125 <tr>
126 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
127 <td> the name of the DLNA profile represented by <em class="parameter"><code>self</code></em>
128 </td>
129 </tr>
130 </tbody>
131 </table></div>
132 </div>
133 <hr>
134 <div class="refsect2">
135 <a name="gupnp-dlna-profile-get-mime"></a><h3>gupnp_dlna_profile_get_mime ()</h3>
136 <pre class="programlisting">const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * gupnp_dlna_profile_get_mime (<em class="parameter"><code><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> *self</code></em>);</pre>
137 <div class="variablelist"><table border="0">
138 <col align="left" valign="top">
139 <tbody>
140 <tr>
141 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
142 <td>The <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> object
143 </td>
144 </tr>
145 <tr>
146 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
147 <td> the DLNA MIME type of the DLNA profile represented by <em class="parameter"><code>self</code></em>
148 </td>
149 </tr>
150 </tbody>
151 </table></div>
152 </div>
153 <hr>
154 <div class="refsect2">
155 <a name="gupnp-dlna-profile-get-encoding-profile"></a><h3>gupnp_dlna_profile_get_encoding_profile ()</h3>
156 <pre class="programlisting">const <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="returnvalue">GstEncodingProfile</span></a> * gupnp_dlna_profile_get_encoding_profile
157 (<em class="parameter"><code><a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> *self</code></em>);</pre>
158 <div class="variablelist"><table border="0">
159 <col align="left" valign="top">
160 <tbody>
161 <tr>
162 <td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
163 <td>The <a class="link" href="GUPnPDLNAProfile.html" title="GUPnPDLNAProfile"><span class="type">GUPnPDLNAProfile</span></a> object
164 </td>
165 </tr>
166 <tr>
167 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
168 <td> a <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="type">GstEncodingProfile</span></a> object that, in a future version, can be used
169 to transcode a given stream to match the DLNA profile represented
170 by <em class="parameter"><code>self</code></em>.
171 </td>
172 </tr>
173 </tbody>
174 </table></div>
175 </div>
176 </div>
177 <div class="refsect1">
178 <a name="GUPnPDLNAProfile.property-details"></a><h2>Property Details</h2>
179 <div class="refsect2">
180 <a name="GUPnPDLNAProfile--encoding-profile"></a><h3>The <code class="literal">"encoding-profile"</code> property</h3>
181 <pre class="programlisting"> "encoding-profile" <a href="/opt/gnome2/share/gtk-doc/html/gst-convenience-0.10/gst-convenience-gstprofile.html#GstEncodingProfile"><span class="type">GstEncodingProfile</span></a>* : Read / Write / Construct Only</pre>
182 <p>GstEncodingProfile object corresponding to the DLNA profile.</p>
183 </div>
184 <hr>
185 <div class="refsect2">
186 <a name="GUPnPDLNAProfile--extended"></a><h3>The <code class="literal">"extended"</code> property</h3>
187 <pre class="programlisting"> "extended" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write / Construct Only</pre>
188 <p>Indicates that this profile is not part of the DLNA specification.</p>
189 <p>Default value: FALSE</p>
190 </div>
191 <hr>
192 <div class="refsect2">
193 <a name="GUPnPDLNAProfile--mime"></a><h3>The <code class="literal">"mime"</code> property</h3>
194 <pre class="programlisting"> "mime" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre>
195 <p>The MIME type of the DLNA profile.</p>
196 <p>Default value: NULL</p>
197 </div>
198 <hr>
199 <div class="refsect2">
200 <a name="GUPnPDLNAProfile--name"></a><h3>The <code class="literal">"name"</code> property</h3>
201 <pre class="programlisting"> "name" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write / Construct Only</pre>
202 <p>The name of the DLNA profile .</p>
203 <p>Default value: NULL</p>
204 </div>
205 </div>
206 </div>
207 <div class="footer">
208 <hr>
209 Generated by GTK-Doc V1.15.1</div>
210 </body>
211 </html>
77 <link rel="up" href="index.html" title="GUPnP DLNA Reference Manual">
88 <link rel="prev" href="index.html" title="GUPnP DLNA Reference Manual">
99 <link rel="next" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer">
10 <meta name="generator" content="GTK-Doc V1.15 (XML mode)">
10 <meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
1111 <link rel="stylesheet" href="style.css" type="text/css">
1212 </head>
1313 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
1818 <th width="100%" align="center">GUPnP DLNA Reference Manual</th>
1919 <td><a accesskey="n" href="GUPnPDLNADiscoverer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
2020 </tr></table>
21 <div class="chapter" title="GUPnP DLNA">
21 <div class="chapter">
2222 <div class="titlepage"><div><div><h2 class="title">
23 <a name="id444028"></a>GUPnP DLNA</h2></div></div></div>
23 <a name="id2861468"></a>GUPnP DLNA</h2></div></div></div>
2424 <div class="toc"><dl>
2525 <dt>
2626 <span class="refentrytitle"><a href="GUPnPDLNADiscoverer.html">GUPnPDLNADiscoverer</a></span><span class="refpurpose"> — Utility API for discovering DLNA profile/mime type and
3030 <span class="refentrytitle"><a href="GUPnPDLNAInformation.html">GUPnPDLNAInformation</a></span><span class="refpurpose"> — Object containing metadata information returned by the
3131 <span class="type">GUPNPDLNADiscoverer</span> API</span>
3232 </dt>
33 <dt>
34 <span class="refentrytitle"><a href="GUPnPDLNAProfile.html">GUPnPDLNAProfile</a></span><span class="refpurpose"> — Object representing a DLNA profile</span>
35 </dt>
3336 </dl></div>
3437 <p>
3538 GUPnP DLNA is a set of utility APIs to simplify DLNA-specific bits of
3639 MediaServer implementations, such as DLNA media profile guessing.
3740 </p>
41 <p>
42 Before using the GUPnP DLNA API, you must initialise GStreamer by calling
43 gst_init() or gst_init_check().
44 </p>
3845 </div>
3946 <div class="footer">
4047 <hr>
41 Generated by GTK-Doc V1.15</div>
48 Generated by GTK-Doc V1.15.1</div>
4249 </body>
4350 </html>
44 <sub name="GUPnP DLNA" link="ch01.html">
55 <sub name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html"/>
66 <sub name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html"/>
7 <sub name="GUPnPDLNAProfile" link="GUPnPDLNAProfile.html"/>
78 </sub>
89 </chapters>
910 <functions>
1011 <function name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-struct"/>
1112 <function name="gupnp_dlna_discoverer_new ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-new"/>
12 <function name="gupnp_dlna_discoverer_start ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-start"/>
13 <function name="gupnp_dlna_discoverer_stop ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop"/>
13 <function name="gupnp_dlna_discoverer_start()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-start"/>
14 <function name="gupnp_dlna_discoverer_stop()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop"/>
1415 <function name="gupnp_dlna_discoverer_discover_uri ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri"/>
1516 <function name="gupnp_dlna_discoverer_discover_uri_sync ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri-sync"/>
17 <function name="The &quot;extended-mode&quot; property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--extended-mode"/>
18 <function name="The &quot;relaxed-mode&quot; property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--relaxed-mode"/>
1619 <function name="The &quot;done&quot; signal" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done"/>
1720 <function name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation-struct"/>
1821 <function name="gupnp_dlna_information_new ()" link="GUPnPDLNAInformation.html#gupnp-dlna-information-new"/>
2225 <function name="The &quot;info&quot; property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--info"/>
2326 <function name="The &quot;mime&quot; property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime"/>
2427 <function name="The &quot;name&quot; property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--name"/>
28 <function name="GUPnPDLNAProfile" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile-struct"/>
29 <function name="GUPnPDLNAProfileClass" link="GUPnPDLNAProfile.html#GUPnPDLNAProfileClass"/>
30 <function name="gupnp_dlna_profile_new ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-new"/>
31 <function name="gupnp_dlna_profile_get_name ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-name"/>
32 <function name="gupnp_dlna_profile_get_mime ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-mime"/>
33 <function name="gupnp_dlna_profile_get_encoding_profile ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-encoding-profile"/>
34 <function name="The &quot;encoding-profile&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--encoding-profile"/>
35 <function name="The &quot;extended&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--extended"/>
36 <function name="The &quot;mime&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--mime"/>
37 <function name="The &quot;name&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--name"/>
2538 </functions>
2639 </book>
44 <sub name="GUPnP DLNA" link="ch01.html">
55 <sub name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html"/>
66 <sub name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html"/>
7 <sub name="GUPnPDLNAProfile" link="GUPnPDLNAProfile.html"/>
78 </sub>
89 </chapters>
910 <functions>
1011 <keyword type="struct" name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-struct"/>
1112 <keyword type="function" name="gupnp_dlna_discoverer_new ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-new"/>
12 <keyword type="function" name="gupnp_dlna_discoverer_start ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-start"/>
13 <keyword type="function" name="gupnp_dlna_discoverer_stop ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop"/>
13 <keyword type="macro" name="gupnp_dlna_discoverer_start()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-start"/>
14 <keyword type="macro" name="gupnp_dlna_discoverer_stop()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop"/>
1415 <keyword type="function" name="gupnp_dlna_discoverer_discover_uri ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri"/>
1516 <keyword type="function" name="gupnp_dlna_discoverer_discover_uri_sync ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri-sync"/>
17 <keyword type="property" name="The &quot;extended-mode&quot; property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--extended-mode"/>
18 <keyword type="property" name="The &quot;relaxed-mode&quot; property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--relaxed-mode"/>
1619 <keyword type="signal" name="The &quot;done&quot; signal" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done"/>
1720 <keyword type="struct" name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation-struct"/>
1821 <keyword type="function" name="gupnp_dlna_information_new ()" link="GUPnPDLNAInformation.html#gupnp-dlna-information-new"/>
2225 <keyword type="property" name="The &quot;info&quot; property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--info"/>
2326 <keyword type="property" name="The &quot;mime&quot; property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime"/>
2427 <keyword type="property" name="The &quot;name&quot; property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--name"/>
28 <keyword type="struct" name="GUPnPDLNAProfile" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile-struct"/>
29 <keyword type="struct" name="GUPnPDLNAProfileClass" link="GUPnPDLNAProfile.html#GUPnPDLNAProfileClass"/>
30 <keyword type="function" name="gupnp_dlna_profile_new ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-new"/>
31 <keyword type="function" name="gupnp_dlna_profile_get_name ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-name"/>
32 <keyword type="function" name="gupnp_dlna_profile_get_mime ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-mime"/>
33 <keyword type="function" name="gupnp_dlna_profile_get_encoding_profile ()" link="GUPnPDLNAProfile.html#gupnp-dlna-profile-get-encoding-profile"/>
34 <keyword type="property" name="The &quot;encoding-profile&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--encoding-profile"/>
35 <keyword type="property" name="The &quot;extended&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--extended"/>
36 <keyword type="property" name="The &quot;mime&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--mime"/>
37 <keyword type="property" name="The &quot;name&quot; property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--name"/>
2538 </functions>
2639 </book>
55 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
66 <link rel="home" href="index.html" title="GUPnP DLNA Reference Manual">
77 <link rel="next" href="ch01.html" title="GUPnP DLNA">
8 <meta name="generator" content="GTK-Doc V1.15 (XML mode)">
8 <meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
99 <link rel="stylesheet" href="style.css" type="text/css">
1010 </head>
1111 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
12 <div class="book" title="GUPnP DLNA Reference Manual">
12 <div class="book">
1313 <div class="titlepage">
1414 <div>
1515 <div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GUPnP DLNA Reference Manual</p></th></tr></table></div>
16 <div><p class="releaseinfo">Version 0.2.1
16 <div><p class="releaseinfo">Version 0.3.0
1717 </p></div>
1818 <div><p class="copyright">Copyright © 2010 Arun Raghavan &lt;arun.raghavan@collabora.co.uk&gt;</p></div>
1919 <div><p class="copyright">Copyright © 2010 Collabora Multimedia</p></div>
2020 <div><p class="copyright">Copyright © 2010 Nokia Corporation</p></div>
21 <div><div class="legalnotice" title="Legal Notice">
22 <a name="id419032"></a><p>
21 <div><div class="legalnotice">
22 <a name="id2861415"></a><p>
2323 Permission is granted to copy, distribute and/or modify this
2424 document under the terms of the <em class="citetitle">GNU Free
2525 Documentation License</em>, Version 1.1 or any later
5454 <span class="refentrytitle"><a href="GUPnPDLNAInformation.html">GUPnPDLNAInformation</a></span><span class="refpurpose"> — Object containing metadata information returned by the
5555 <span class="type">GUPNPDLNADiscoverer</span> API</span>
5656 </dt>
57 <dt>
58 <span class="refentrytitle"><a href="GUPnPDLNAProfile.html">GUPnPDLNAProfile</a></span><span class="refpurpose"> — Object representing a DLNA profile</span>
59 </dt>
5760 </dl></dd>
5861 </dl></div>
5962 </div>
6063 <div class="footer">
6164 <hr>
62 Generated by GTK-Doc V1.15</div>
65 Generated by GTK-Doc V1.15.1</div>
6366 </body>
6467 </html>
00 <ANCHOR id="GUPnPDLNADiscoverer" href="gupnp-dlna/GUPnPDLNADiscoverer.html">
11 <ANCHOR id="GUPnPDLNADiscoverer.synopsis" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.synopsis">
22 <ANCHOR id="GUPnPDLNADiscoverer.object-hierarchy" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.object-hierarchy">
3 <ANCHOR id="GUPnPDLNADiscoverer.properties" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.properties">
34 <ANCHOR id="GUPnPDLNADiscoverer.signals" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.signals">
45 <ANCHOR id="GUPnPDLNADiscoverer.description" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.description">
56 <ANCHOR id="GUPnPDLNADiscoverer.details" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.details">
910 <ANCHOR id="gupnp-dlna-discoverer-stop" href="gupnp-dlna/GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop">
1011 <ANCHOR id="gupnp-dlna-discoverer-discover-uri" href="gupnp-dlna/GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri">
1112 <ANCHOR id="gupnp-dlna-discoverer-discover-uri-sync" href="gupnp-dlna/GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri-sync">
13 <ANCHOR id="GUPnPDLNADiscoverer.property-details" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.property-details">
14 <ANCHOR id="GUPnPDLNADiscoverer--extended-mode" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--extended-mode">
15 <ANCHOR id="GUPnPDLNADiscoverer--relaxed-mode" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--relaxed-mode">
1216 <ANCHOR id="GUPnPDLNADiscoverer.signal-details" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.signal-details">
1317 <ANCHOR id="GUPnPDLNADiscoverer-done" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done">
1418 <ANCHOR id="GUPnPDLNAInformation" href="gupnp-dlna/GUPnPDLNAInformation.html">
2630 <ANCHOR id="GUPnPDLNAInformation--info" href="gupnp-dlna/GUPnPDLNAInformation.html#GUPnPDLNAInformation--info">
2731 <ANCHOR id="GUPnPDLNAInformation--mime" href="gupnp-dlna/GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime">
2832 <ANCHOR id="GUPnPDLNAInformation--name" href="gupnp-dlna/GUPnPDLNAInformation.html#GUPnPDLNAInformation--name">
33 <ANCHOR id="GUPnPDLNAProfile" href="gupnp-dlna/GUPnPDLNAProfile.html">
34 <ANCHOR id="GUPnPDLNAProfile.synopsis" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile.synopsis">
35 <ANCHOR id="GUPnPDLNAProfile.object-hierarchy" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile.object-hierarchy">
36 <ANCHOR id="GUPnPDLNAProfile.properties" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile.properties">
37 <ANCHOR id="GUPnPDLNAProfile.description" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile.description">
38 <ANCHOR id="GUPnPDLNAProfile.details" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile.details">
39 <ANCHOR id="GUPnPDLNAProfile-struct" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile-struct">
40 <ANCHOR id="GUPnPDLNAProfileClass" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfileClass">
41 <ANCHOR id="gupnp-dlna-profile-new" href="gupnp-dlna/GUPnPDLNAProfile.html#gupnp-dlna-profile-new">
42 <ANCHOR id="gupnp-dlna-profile-get-name" href="gupnp-dlna/GUPnPDLNAProfile.html#gupnp-dlna-profile-get-name">
43 <ANCHOR id="gupnp-dlna-profile-get-mime" href="gupnp-dlna/GUPnPDLNAProfile.html#gupnp-dlna-profile-get-mime">
44 <ANCHOR id="gupnp-dlna-profile-get-encoding-profile" href="gupnp-dlna/GUPnPDLNAProfile.html#gupnp-dlna-profile-get-encoding-profile">
45 <ANCHOR id="GUPnPDLNAProfile.property-details" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile.property-details">
46 <ANCHOR id="GUPnPDLNAProfile--encoding-profile" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile--encoding-profile">
47 <ANCHOR id="GUPnPDLNAProfile--extended" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile--extended">
48 <ANCHOR id="GUPnPDLNAProfile--mime" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile--mime">
49 <ANCHOR id="GUPnPDLNAProfile--name" href="gupnp-dlna/GUPnPDLNAProfile.html#GUPnPDLNAProfile--name">
0 0.2.1
0 0.3.0
3838 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
3939 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4040 $(ACLOCAL_M4)
41 mkinstalldirs = $(install_sh) -d
41 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4242 CONFIG_HEADER = $(top_builddir)/config.h
4343 CONFIG_CLEAN_FILES =
4444 CONFIG_CLEAN_VPATH_FILES =
164164 PACKAGE_VERSION = @PACKAGE_VERSION@
165165 PATH_SEPARATOR = @PATH_SEPARATOR@
166166 PKG_CONFIG = @PKG_CONFIG@
167 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
168 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
169167 RANLIB = @RANLIB@
170168 SED = @SED@
171169 SET_MAKE = @SET_MAKE@
208206 libexecdir = @libexecdir@
209207 localedir = @localedir@
210208 localstatedir = @localstatedir@
209 lt_ECHO = @lt_ECHO@
211210 mandir = @mandir@
212211 mkdir_p = @mkdir_p@
213212 oldincludedir = @oldincludedir@
3838 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
3939 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4040 $(ACLOCAL_M4)
41 mkinstalldirs = $(install_sh) -d
41 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4242 CONFIG_HEADER = $(top_builddir)/config.h
4343 CONFIG_CLEAN_FILES =
4444 CONFIG_CLEAN_VPATH_FILES =
164164 PACKAGE_VERSION = @PACKAGE_VERSION@
165165 PATH_SEPARATOR = @PATH_SEPARATOR@
166166 PKG_CONFIG = @PKG_CONFIG@
167 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
168 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
169167 RANLIB = @RANLIB@
170168 SED = @SED@
171169 SET_MAKE = @SET_MAKE@
208206 libexecdir = @libexecdir@
209207 localedir = @localedir@
210208 localstatedir = @localstatedir@
209 lt_ECHO = @lt_ECHO@
211210 mandir = @mandir@
212211 mkdir_p = @mkdir_p@
213212 oldincludedir = @oldincludedir@
4040 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4141 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4242 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
43 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4444 CONFIG_HEADER = $(top_builddir)/config.h
4545 CONFIG_CLEAN_FILES =
4646 CONFIG_CLEAN_VPATH_FILES =
167167 PACKAGE_VERSION = @PACKAGE_VERSION@
168168 PATH_SEPARATOR = @PATH_SEPARATOR@
169169 PKG_CONFIG = @PKG_CONFIG@
170 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
171 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
172170 RANLIB = @RANLIB@
173171 SED = @SED@
174172 SET_MAKE = @SET_MAKE@
211209 libexecdir = @libexecdir@
212210 localedir = @localedir@
213211 localstatedir = @localstatedir@
212 lt_ECHO = @lt_ECHO@
214213 mandir = @mandir@
215214 mkdir_p = @mkdir_p@
216215 oldincludedir = @oldincludedir@
4141 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4242 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4343 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
44 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4545 CONFIG_HEADER = $(top_builddir)/config.h
4646 CONFIG_CLEAN_FILES =
4747 CONFIG_CLEAN_VPATH_FILES =
203203 PACKAGE_VERSION = @PACKAGE_VERSION@
204204 PATH_SEPARATOR = @PATH_SEPARATOR@
205205 PKG_CONFIG = @PKG_CONFIG@
206 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
207 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
208206 RANLIB = @RANLIB@
209207 SED = @SED@
210208 SET_MAKE = @SET_MAKE@
247245 libexecdir = @libexecdir@
248246 localedir = @localedir@
249247 localstatedir = @localstatedir@
248 lt_ECHO = @lt_ECHO@
250249 mandir = @mandir@
251250 mkdir_p = @mkdir_p@
252251 oldincludedir = @oldincludedir@
4242 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4343 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4444 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
45 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4646 CONFIG_HEADER = $(top_builddir)/config.h
4747 CONFIG_CLEAN_FILES =
4848 CONFIG_CLEAN_VPATH_FILES =
204204 PACKAGE_VERSION = @PACKAGE_VERSION@
205205 PATH_SEPARATOR = @PATH_SEPARATOR@
206206 PKG_CONFIG = @PKG_CONFIG@
207 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
208 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
209207 RANLIB = @RANLIB@
210208 SED = @SED@
211209 SET_MAKE = @SET_MAKE@
248246 libexecdir = @libexecdir@
249247 localedir = @localedir@
250248 localstatedir = @localstatedir@
249 lt_ECHO = @lt_ECHO@
251250 mandir = @mandir@
252251 mkdir_p = @mkdir_p@
253252 oldincludedir = @oldincludedir@
1616 $(GST_CFLAGS) \
1717 $(GST_BASE_CFLAGS) \
1818 $(GST_VIDEO_CFLAGS) \
19 -DDATA_DIR='"$(shareddir)"'
19 -DDATA_DIR='"$(shareddir)"' \
20 -DG_LOG_DOMAIN='"gupnp-dlna"'
2021
2122 lib_LTLIBRARIES = libgupnp-dlna-1.0.la
2223
4141 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4242 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4343 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
44 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4545 CONFIG_HEADER = $(top_builddir)/config.h
4646 CONFIG_CLEAN_FILES =
4747 CONFIG_CLEAN_VPATH_FILES =
190190 PACKAGE_VERSION = @PACKAGE_VERSION@
191191 PATH_SEPARATOR = @PATH_SEPARATOR@
192192 PKG_CONFIG = @PKG_CONFIG@
193 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
194 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
195193 RANLIB = @RANLIB@
196194 SED = @SED@
197195 SET_MAKE = @SET_MAKE@
234232 libexecdir = @libexecdir@
235233 localedir = @localedir@
236234 localstatedir = @localstatedir@
235 lt_ECHO = @lt_ECHO@
237236 mandir = @mandir@
238237 mkdir_p = @mkdir_p@
239238 oldincludedir = @oldincludedir@
267266 $(GST_CFLAGS) \
268267 $(GST_BASE_CFLAGS) \
269268 $(GST_VIDEO_CFLAGS) \
270 -DDATA_DIR='"$(shareddir)"'
269 -DDATA_DIR='"$(shareddir)"' \
270 -DG_LOG_DOMAIN='"gupnp-dlna"'
271271
272272 lib_LTLIBRARIES = libgupnp-dlna-1.0.la
273273 BUILT_SOURCES = gupnp-dlna-marshal.c gupnp-dlna-marshal.h
2020
2121 #include "gupnp-dlna-discoverer.h"
2222 #include "gupnp-dlna-marshal.h"
23 #include "gupnp-dlna-load.h"
2324
2425 /**
2526 * SECTION:gupnp-dlna-discoverer
4950
5051 G_DEFINE_TYPE (GUPnPDLNADiscoverer, gupnp_dlna_discoverer, GST_TYPE_DISCOVERER)
5152
53 #define GET_PRIVATE(o) \
54 (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
55 GUPNP_TYPE_DLNA_DISCOVERER, \
56 GUPnPDLNADiscovererPrivate))
57
58 typedef struct _GUPnPDLNADiscovererPrivate GUPnPDLNADiscovererPrivate;
59
60 struct _GUPnPDLNADiscovererPrivate {
61 gboolean relaxed_mode;
62 gboolean extended_mode;
63 };
64
65 enum {
66 PROP_0,
67 PROP_DLNA_RELAXED_MODE,
68 PROP_DLNA_EXTENDED_MODE,
69 };
70
71 static void
72 gupnp_dlna_discoverer_set_property (GObject *object,
73 guint property_id,
74 const GValue *value,
75 GParamSpec *pspec)
76 {
77 GUPnPDLNADiscoverer *self = GUPNP_DLNA_DISCOVERER (object);
78 GUPnPDLNADiscovererPrivate *priv = GET_PRIVATE (self);
79
80 switch (property_id) {
81 case PROP_DLNA_RELAXED_MODE:
82 priv->relaxed_mode = g_value_get_boolean (value);
83 break;
84
85 case PROP_DLNA_EXTENDED_MODE:
86 priv->extended_mode = g_value_get_boolean (value);
87 break;
88
89 default:
90 G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
91 property_id,
92 pspec);
93 break;
94 }
95 }
96
97 static void
98 gupnp_dlna_discoverer_get_property (GObject *object,
99 guint property_id,
100 GValue *value,
101 GParamSpec *pspec)
102 {
103 GUPnPDLNADiscoverer *self = GUPNP_DLNA_DISCOVERER (object);
104 GUPnPDLNADiscovererPrivate *priv = GET_PRIVATE (self);
105
106 switch (property_id) {
107 case PROP_DLNA_RELAXED_MODE:
108 g_value_set_boolean (value, priv->relaxed_mode);
109 break;
110
111 case PROP_DLNA_EXTENDED_MODE:
112 g_value_set_boolean (value, priv->extended_mode);
113 break;
114
115 default:
116 G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
117 property_id,
118 pspec);
119 break;
120 }
121 }
122
52123 static void
53124 gupnp_dlna_discoverer_dispose (GObject *object)
54125 {
66137 GError *err)
67138 {
68139 GUPnPDLNAInformation *dlna = NULL;
140 GUPnPDLNADiscovererClass *klass = GUPNP_DLNA_DISCOVERER_GET_CLASS (discoverer);
69141
70142 if (info)
71 dlna = gupnp_dlna_information_new_from_discoverer_info (info);
143 dlna = gupnp_dlna_information_new_from_discoverer_info (info,
144 klass->profiles_list);
72145
73146 g_signal_emit (GUPNP_DLNA_DISCOVERER (discoverer),
74147 signals[DONE], 0, dlna, err);
81154 gupnp_dlna_discoverer_class_init (GUPnPDLNADiscovererClass *klass)
82155 {
83156 GObjectClass *object_class = G_OBJECT_CLASS (klass);
84
157 GParamSpec *pspec;
158
159 g_type_class_add_private (klass, sizeof (GUPnPDLNADiscovererPrivate));
160
161 object_class->get_property = gupnp_dlna_discoverer_get_property;
162 object_class->set_property = gupnp_dlna_discoverer_set_property;
85163 object_class->dispose = gupnp_dlna_discoverer_dispose;
86164 object_class->finalize = gupnp_dlna_discoverer_finalize;
165
166 /**
167 * GUPnPDLNADiscoverer::relaxed-mode:
168 * @relaxed_mode: setting to true will enable relaxed mode
169 *
170 * The current release does not support relaxed mode yet
171 */
172 pspec = g_param_spec_boolean ("relaxed-mode",
173 "Relaxed mode property",
174 "Indicates that profile matching should"
175 "be strictly compliant with the DLNA "
176 "specification",
177 FALSE,
178 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
179 g_object_class_install_property (object_class,
180 PROP_DLNA_RELAXED_MODE,
181 pspec);
182
183 /**
184 * GUPnPDLNADiscoverer::extended-mode:
185 * @extended: setting true will enable extended profile support
186 *
187 * The current release does not support extended mode yet
188 */
189 pspec = g_param_spec_boolean ("extended-mode",
190 "Extended mode property",
191 "Indicates support for profiles that are "
192 "not part of the DLNA specification",
193 FALSE,
194 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
195 g_object_class_install_property (object_class,
196 PROP_DLNA_EXTENDED_MODE,
197 pspec);
87198
88199 /**
89200 * GUPnPDLNADiscoverer::done:
103214 gupnp_dlna_marshal_VOID__OBJECT_BOXED,
104215 G_TYPE_NONE, 2, GUPNP_TYPE_DLNA_INFORMATION,
105216 GST_TYPE_G_ERROR);
217
218 /* Load DLNA profiles from disk */
219 if (g_type_from_name ("GstElement"))
220 klass->profiles_list = gupnp_dlna_load_profiles_from_disk ();
221 else {
222 klass->profiles_list = NULL;
223 g_warning ("GStreamer has not yet been initialised. You need "
224 "to call gst_init()/gst_init_check() for discovery "
225 "to work.");
226 }
106227 }
107228
108229 static void
124245 * Returns: A new #GUPnPDLNADiscoverer object.
125246 */
126247 GUPnPDLNADiscoverer*
127 gupnp_dlna_discoverer_new (GstClockTime timeout)
248 gupnp_dlna_discoverer_new (GstClockTime timeout,
249 gboolean relaxed_mode,
250 gboolean extended_mode)
128251 {
129252 return g_object_new (GUPNP_TYPE_DLNA_DISCOVERER,
130253 "timeout", timeout,
254 "relaxed-mode", relaxed_mode,
255 "extended-mode", extended_mode,
131256 NULL);
132257 }
133258
139264 *
140265 * Allows asynchronous discovery of URIs to begin.
141266 */
142 void gupnp_dlna_discoverer_start (GUPnPDLNADiscoverer *discoverer)
143 {
144 gst_discoverer_start (GST_DISCOVERER (discoverer));
145 }
146267
147268 /**
148269 * gupnp_dlna_discoverer_stop:
150271 *
151272 * Stops asynchronous discovery of URIs.
152273 */
153 void gupnp_dlna_discoverer_stop (GUPnPDLNADiscoverer *discoverer)
154 {
155 gst_discoverer_stop (GST_DISCOVERER (discoverer));
156 }
157274
158275 /**
159276 * gupnp_dlna_discoverer_discover_uri:
190307 GError **err)
191308 {
192309 GstDiscovererInformation *info;
310 GUPnPDLNADiscovererClass *klass = GUPNP_DLNA_DISCOVERER_GET_CLASS (discoverer);
193311
194312 info = gst_discoverer_discover_uri (GST_DISCOVERER (discoverer),
195313 uri,
196314 err);
197315
198316 if (info)
199 return gupnp_dlna_information_new_from_discoverer_info (info);
317 return gupnp_dlna_information_new_from_discoverer_info (info,
318 klass->profiles_list);
200319
201320 return NULL;
202321 }
322
323 /**
324 * gupnp_dlna_discoverer_get_profile:
325 * @self: The #GUPnPDLNADiscoverer object
326 * @name: The name of the DLNA profile to be retrieved
327 *
328 * Given @name, this finds the corresponding DLNA profile information (stored
329 * as a #GUPnPDLNAProfile).
330 *
331 * Returns: a #GUPnPDLNAProfile on success, NULL otherwise.
332 **/
333 GUPnPDLNAProfile *
334 gupnp_dlna_discoverer_get_profile (GUPnPDLNADiscoverer *self,
335 const gchar *name)
336 {
337 GList *i;
338 GUPnPDLNADiscovererClass *klass;
339
340 g_return_val_if_fail (self != NULL, NULL);
341 klass = GUPNP_DLNA_DISCOVERER_GET_CLASS (self);
342
343 for (i = klass->profiles_list; i != NULL; i = i->next) {
344 GUPnPDLNAProfile *profile = (GUPnPDLNAProfile *) i->data;
345
346 if (g_str_equal (gupnp_dlna_profile_get_name (profile), name)) {
347 g_object_ref (profile);
348 return profile;
349 }
350 }
351
352 return NULL;
353 }
354
355 /**
356 * gupnp_dlna_discoverer_list_profiles:
357 * @self: The #GUPnPDLNADiscoverer whose profile list is required
358 *
359 * Retuns a list of the all the DLNA profiles supported by @self.
360 *
361 * Returns: a #GList of #GUPnPDLNAProfile on success, NULL otherwise.
362 **/
363 const GList *
364 gupnp_dlna_discoverer_list_profiles (GUPnPDLNADiscoverer *self)
365 {
366 GUPnPDLNADiscovererClass *klass;
367
368 g_return_val_if_fail (self != NULL, NULL);
369
370 klass = GUPNP_DLNA_DISCOVERER_GET_CLASS (self);
371
372 return klass->profiles_list;
373 }
374
375 /**
376 * gupnp_dlna_discoverer_get_relaxed_mode:
377 * @self: The #GUPnPDLNADiscoverer object
378 *
379 * Returns: true if relaxed mode is set and false otherwise
380 */
381 gboolean
382 gupnp_dlna_discoverer_get_relaxed_mode (GUPnPDLNADiscoverer *self)
383 {
384 GUPnPDLNADiscovererPrivate *priv = GET_PRIVATE (self);
385 return priv->relaxed_mode;
386 }
387
388 /**
389 * gupnp_dlna_discoverer_get_extended_mode:
390 * @self: The #GUPnPDLNADiscoverer object
391 *
392 * Returns: true if application is using extended mode and false otherwise
393 */
394 gboolean
395 gupnp_dlna_discoverer_get_extended_mode (GUPnPDLNADiscoverer *self)
396 {
397 GUPnPDLNADiscovererPrivate *priv = GET_PRIVATE (self);
398 return priv->extended_mode;
399 }
2424 #include <glib-object.h>
2525 #include <gst/discoverer/gstdiscoverer.h>
2626 #include "gupnp-dlna-information.h"
27 #include "gupnp-dlna-profile.h"
2728
2829 G_BEGIN_DECLS
2930
6869 void (*done) (GUPnPDLNADiscoverer *discoverer,
6970 GUPnPDLNAInformation *dlna,
7071 GError *err);
72
73 /*< private >*/
74 GList *profiles_list;
75
7176 } GUPnPDLNADiscovererClass;
7277
7378 GType gupnp_dlna_discoverer_get_type (void);
7479
75 GUPnPDLNADiscoverer* gupnp_dlna_discoverer_new (GstClockTime timeout);
80 GUPnPDLNADiscoverer *
81 gupnp_dlna_discoverer_new (GstClockTime timeout,
82 gboolean relaxed_mode,
83 gboolean extended_mode);
7684
7785 /* Asynchronous API */
78 void gupnp_dlna_discoverer_start (GUPnPDLNADiscoverer *discoverer);
79 void gupnp_dlna_discoverer_stop (GUPnPDLNADiscoverer *discoverer);
86 #define gupnp_dlna_discoverer_start(discoverer) \
87 gst_discoverer_start(GST_DISCOVERER((discoverer)))
88 #define gupnp_dlna_discoverer_stop(discoverer) \
89 gst_discoverer_stop(GST_DISCOVERER((discoverer)))
8090 gboolean
8191 gupnp_dlna_discoverer_discover_uri (GUPnPDLNADiscoverer *discoverer,
8292 gchar *uri);
8797 gchar *uri,
8898 GError **err);
8999
100 /* Get a GUPnPDLNAProfile by name */
101 GUPnPDLNAProfile *
102 gupnp_dlna_discoverer_get_profile (GUPnPDLNADiscoverer *self,
103 const gchar *name);
104
105 /* API to list all available profiles */
106 const GList *
107 gupnp_dlna_discoverer_list_profiles (GUPnPDLNADiscoverer *self);
108 gboolean
109 gupnp_dlna_discoverer_get_relaxed_mode (GUPnPDLNADiscoverer *self);
110 gboolean
111 gupnp_dlna_discoverer_get_extended_mode (GUPnPDLNADiscoverer *self);
112
90113 G_END_DECLS
91114
92115 #endif /* _GUPNP_DLNA_DISCOVERER */
138138 GObjectClass *object_class = G_OBJECT_CLASS (klass);
139139 GParamSpec *pspec;
140140
141 g_type_class_add_private (klass, sizeof (GUPnPDLNAInformation));
141 g_type_class_add_private (klass, sizeof (GUPnPDLNAInformationPrivate));
142142
143143 object_class->get_property = gupnp_dlna_information_get_property;
144144 object_class->set_property = gupnp_dlna_information_set_property;
206206
207207 /**
208208 * gupnp_dlna_information_get_name:
209 * @self: The #GUPnPDLNAInformation object
209210 *
210211 * Returns: the DLNA profile name of the stream represented by @self. Do not
211212 * free this string.
219220
220221 /**
221222 * gupnp_dlna_information_get_mime:
223 * @self: The #GUPnPDLNAInformation object
222224 *
223225 * Returns: the DLNA MIME type of the stream represented by @self. Do not
224226 * free this string.
232234
233235 /**
234236 * gupnp_dlna_information_get_info:
237 * @self: The #GUPnPDLNAInformation object
235238 *
236239 * Returns: additional stream metadata for @self in the form of a
237240 * #GstDiscovererInformation structure. Do not free this structure.
6464 gupnp_dlna_information_get_info (GUPnPDLNAInformation *self);
6565
6666 G_GNUC_INTERNAL GUPnPDLNAInformation *
67 gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation * info);
67 gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation *info,
68 GList *profiles);
6869
6970
7071 G_END_DECLS
591591
592592 profile = gupnp_dlna_profile_new ((gchar *) name,
593593 (gchar *) mime,
594 enc_profile);
594 enc_profile,
595 FALSE);
595596 *profiles = g_list_append (*profiles, profile);
596597
597598 if (id)
818819 g_str_equal,
819820 g_free,
820821 NULL);
821 GList *ret;
822 GList *ret, *i;
822823
823824 ret = gupnp_dlna_load_profiles_from_dir (DLNA_DATA_DIR, files_hash);
825
826 /* Now that we're done loading profiles, remove all profiles with no
827 * name which are only used for inheritance and not matching. */
828 i = ret;
829 while (i) {
830 GUPnPDLNAProfile *profile = i->data;
831 const GstEncodingProfile *enc_profile =
832 gupnp_dlna_profile_get_encoding_profile (profile);
833 GList *tmp = g_list_next (i);
834
835 if (enc_profile->name[0] == '\0') {
836 ret = g_list_delete_link (ret, i);
837 g_object_unref (profile);
838 }
839
840 i = tmp;
841 }
824842
825843 g_hash_table_unref (files_hash);
826844 return ret;
2424 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
2525 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
2626 #define g_marshal_value_peek_object(v) g_value_get_object (v)
27 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
2827 #else /* !G_ENABLE_DEBUG */
2928 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
3029 * Do not access GValues directly in your code. Instead, use the
4847 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
4948 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
5049 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
51 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
5250 #endif /* !G_ENABLE_DEBUG */
5351
5452
2020
2121 #include "gupnp-dlna-profile.h"
2222
23 /**
24 * SECTION:gupnp-dlna-profile
25 * @short_description: Object representing a DLNA profile
26 *
27 * The #GUPnPDLNADiscoverer object provides a few APIs that return
28 * #GUPnPDLNAProfile objects. These represent a single DLNA profile. Each
29 * #GUPnPDLNAProfile has a name (the name of the DLNA profile), the
30 * corresponding MIME type, and a #GstEncodingProfile which represents the
31 * various audio/video/container restrictions specified for that DLNA profile.
32 */
2333 G_DEFINE_TYPE (GUPnPDLNAProfile, gupnp_dlna_profile, G_TYPE_OBJECT)
2434
35 #define GET_PRIVATE(o) \
36 (G_TYPE_INSTANCE_GET_PRIVATE ((o), \
37 GUPNP_TYPE_DLNA_PROFILE, \
38 GUPnPDLNAProfilePrivate))
39
40 typedef struct _GUPnPDLNAProfilePrivate GUPnPDLNAProfilePrivate;
41
42 struct _GUPnPDLNAProfilePrivate {
43 gchar *name;
44 gchar *mime;
45 GstEncodingProfile *enc_profile;
46 gboolean extended;
47 };
48
49 enum {
50 PROP_0,
51 PROP_DLNA_NAME,
52 PROP_DLNA_MIME,
53 PROP_ENCODING_PROFILE,
54 PROP_DLNA_EXTENDED,
55 };
56
57 static void
58 gupnp_dlna_profile_get_property (GObject *object,
59 guint property_id,
60 GValue *value,
61 GParamSpec *pspec)
62 {
63 GUPnPDLNAProfile *self = GUPNP_DLNA_PROFILE (object);
64 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
65
66 switch (property_id) {
67 case PROP_DLNA_NAME:
68 g_value_set_string (value, priv->name);
69 break;
70
71 case PROP_DLNA_MIME:
72 g_value_set_string (value, priv->mime);
73 break;
74
75 case PROP_ENCODING_PROFILE:
76 g_value_set_boxed (value, priv->enc_profile);
77 break;
78
79 case PROP_DLNA_EXTENDED:
80 g_value_set_boolean (value, priv->extended);
81 break;
82
83 default:
84 G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
85 property_id,
86 pspec);
87 break;
88 }
89 }
90
91 static void
92 gupnp_dlna_profile_set_property (GObject *object,
93 guint property_id,
94 const GValue *value,
95 GParamSpec *pspec)
96 {
97 GUPnPDLNAProfile *self = GUPNP_DLNA_PROFILE (object);
98 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
99
100 switch (property_id) {
101 case PROP_DLNA_NAME:
102 g_free (priv->name);
103 priv->name = g_value_dup_string (value);
104 break;
105
106 case PROP_DLNA_MIME:
107 g_free (priv->mime);
108 priv->mime = g_value_dup_string (value);
109 break;
110
111 case PROP_ENCODING_PROFILE:
112 if (priv->enc_profile)
113 gst_encoding_profile_free (priv->enc_profile);
114 priv->enc_profile = g_value_dup_boxed (value);
115 break;
116
117 case PROP_DLNA_EXTENDED:
118 priv->extended = g_value_get_boolean (value);
119 break;
120
121 default:
122 G_OBJECT_WARN_INVALID_PROPERTY_ID (object,
123 property_id,
124 pspec);
125 break;
126 }
127 }
25128 static void
26129 gupnp_dlna_profile_finalize (GObject *object)
27130 {
28131 GUPnPDLNAProfile *self = GUPNP_DLNA_PROFILE (object);
29
30 if (self->name)
31 g_free (self->name);
32 if (self->mime)
33 g_free (self->mime);
34 if (self->enc_profile)
35 gst_encoding_profile_free (self->enc_profile);
132 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
133
134 g_free (priv->name);
135 g_free (priv->mime);
136 if (priv->enc_profile)
137 gst_encoding_profile_free (priv->enc_profile);
36138
37139 G_OBJECT_CLASS (gupnp_dlna_profile_parent_class)->finalize (object);
38140 }
41143 gupnp_dlna_profile_class_init (GUPnPDLNAProfileClass *klass)
42144 {
43145 GObjectClass *object_class = G_OBJECT_CLASS (klass);
44
146 GParamSpec *pspec;
147
148 g_type_class_add_private (klass, sizeof (GUPnPDLNAProfilePrivate));
149
150 object_class->get_property = gupnp_dlna_profile_get_property;
151 object_class->set_property = gupnp_dlna_profile_set_property;
45152 object_class->finalize = gupnp_dlna_profile_finalize;
153
154 pspec = g_param_spec_string ("name",
155 "DLNA profile name",
156 "The name of the DLNA profile ",
157 NULL,
158 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
159 g_object_class_install_property (object_class, PROP_DLNA_NAME, pspec);
160
161 pspec = g_param_spec_string ("mime",
162 "DLNA profile MIME type",
163 "The MIME type of the DLNA profile",
164 NULL,
165 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
166 g_object_class_install_property (object_class, PROP_DLNA_MIME, pspec);
167
168 pspec = g_param_spec_boxed ("encoding-profile",
169 "Encoding profile for the DLNA profile",
170 "GstEncodingProfile object corresponding "
171 "to the DLNA profile",
172 GST_TYPE_ENCODING_PROFILE,
173 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
174 g_object_class_install_property (object_class,
175 PROP_ENCODING_PROFILE,
176 pspec);
177
178 pspec = g_param_spec_boolean ("extended",
179 "Extended mode property",
180 "Indicates that this profile is not "
181 "part of the DLNA specification",
182 FALSE,
183 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
184 g_object_class_install_property (object_class,
185 PROP_DLNA_EXTENDED,
186 pspec);
187
46188 }
47189
48190 static void
49191 gupnp_dlna_profile_init (GUPnPDLNAProfile *self)
50192 {
51 self->name = NULL;
52 self->mime = NULL;
53 self->enc_profile = NULL;
54 }
55
193 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
194
195 priv->name = NULL;
196 priv->mime = NULL;
197 priv->enc_profile = NULL;
198 priv->extended = FALSE;
199 }
200
201 /**
202 * gupnp_dlna_profile_new:
203 *
204 * Creates a new #GUPnPDLNAProfile object.
205 *
206 * Returns: A new #GUPnPDLNAProfile object.
207 */
56208 GUPnPDLNAProfile*
57209 gupnp_dlna_profile_new (gchar *name,
58210 gchar *mime,
59 GstEncodingProfile *enc_profile)
60 {
61 GUPnPDLNAProfile *profile = g_object_new (GUPNP_TYPE_DLNA_PROFILE,
62 NULL);
63
64 profile->name = g_strdup (name);
65 profile->mime = g_strdup (mime);
66 profile->enc_profile = gst_encoding_profile_copy (enc_profile);
67
68 return profile;
69 }
211 GstEncodingProfile *enc_profile,
212 gboolean extended)
213 {
214 return g_object_new (GUPNP_TYPE_DLNA_PROFILE,
215 "name", name,
216 "mime", mime,
217 "encoding-profile", enc_profile,
218 "extended", extended,
219 NULL);
220 }
221
222 /**
223 * gupnp_dlna_profile_get_name:
224 * @self: The #GUPnPDLNAProfile object
225 *
226 * Returns: the name of the DLNA profile represented by @self
227 */
228 const gchar *
229 gupnp_dlna_profile_get_name (GUPnPDLNAProfile *self)
230 {
231 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
232 return priv->name;
233 }
234
235 /**
236 * gupnp_dlna_profile_get_mime:
237 * @self: The #GUPnPDLNAProfile object
238 *
239 * Returns: the DLNA MIME type of the DLNA profile represented by @self
240 */
241 const gchar *
242 gupnp_dlna_profile_get_mime (GUPnPDLNAProfile *self)
243 {
244 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
245 return priv->mime;
246 }
247
248 /**
249 * gupnp_dlna_profile_get_encoding_profile:
250 * @self: The #GUPnPDLNAProfile object
251 *
252 * Returns: a #GstEncodingProfile object that, in a future version, can be used
253 * to transcode a given stream to match the DLNA profile represented
254 * by @self.
255 */
256 const GstEncodingProfile *
257 gupnp_dlna_profile_get_encoding_profile (GUPnPDLNAProfile *self)
258 {
259 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
260 return priv->enc_profile;
261 }
262
263 /**
264 * gupnp_dlna_profile_get_extended:
265 * @self: The #GUPnPDLNAProfile object
266 *
267 * Returns: true if application is using extended mode and false otherwise
268 */
269 gboolean
270 gupnp_dlna_profile_get_extended (GUPnPDLNAProfile *self)
271 {
272 GUPnPDLNAProfilePrivate *priv = GET_PRIVATE (self);
273 return priv->extended;
274 }
5151
5252 typedef struct {
5353 GObject parent;
54
55 gchar *name;
56 gchar *mime;
57 GstEncodingProfile *enc_profile;
5854 } GUPnPDLNAProfile;
5955
6056 typedef struct {
6561
6662 GUPnPDLNAProfile* gupnp_dlna_profile_new (gchar *name,
6763 gchar *mime,
68 GstEncodingProfile *enc_profile);
64 GstEncodingProfile *enc_profile,
65 gboolean extended);
6966
70 GUPnPDLNAProfile * gupnp_dlna_profile_from_name (const gchar *name);
67 const gchar * gupnp_dlna_profile_get_name (GUPnPDLNAProfile *self);
68 const gchar * gupnp_dlna_profile_get_mime (GUPnPDLNAProfile *self);
69 const GstEncodingProfile *
70 gupnp_dlna_profile_get_encoding_profile (GUPnPDLNAProfile *self);
71 gboolean gupnp_dlna_profile_get_extended (GUPnPDLNAProfile *self);
7172
7273 G_END_DECLS
7374
6464
6565 /* New profile guessing API */
6666
67 static GList *profiles = NULL;
68
69 static gboolean is_video_profile (GstEncodingProfile *profile)
67 #define GUPNP_DLNA_DEBUG_ENV "GUPNP_DLNA_DEBUG"
68
69 #define gupnp_dlna_debug(args...) \
70 do { \
71 const gchar *_e = g_getenv (GUPNP_DLNA_DEBUG_ENV); \
72 if (_e && !g_str_equal (_e, "0")) \
73 g_debug (args); \
74 } while (0)
75
76 static gboolean is_video_profile (const GstEncodingProfile *profile)
7077 {
7178 GList *i;
7279
105112 for (i = 0; i < gst_structure_n_fields (st2); i++) {
106113 const gchar *name = gst_structure_nth_field_name (st2, i);
107114
108 if (!gst_structure_has_field(st1, name))
115 if (!gst_structure_has_field(st1, name)) {
116 gupnp_dlna_debug (" missing field %s", name);
109117 return FALSE;
118 }
110119 }
111120
112121 return TRUE;
140149 }
141150
142151 static gboolean
143 match_profile (GstEncodingProfile *profile,
144 GstCaps *caps,
145 GstEncodingProfileType type)
152 match_profile (const GstEncodingProfile *profile,
153 GstCaps *caps,
154 GstEncodingProfileType type)
146155 {
147156 GList *i;
148157
164173 }
165174
166175 static gboolean
167 check_container (GstDiscovererInformation *info, GstEncodingProfile *profile)
176 check_container (GstDiscovererInformation *info,
177 const GstEncodingProfile *profile)
168178 {
169179 /* Top-level GstStreamInformation in the topology will be
170180 * the container */
203213 }
204214
205215 static gboolean
206 check_audio_profile (GstEncodingProfile *profile,
216 check_audio_profile (const GstEncodingProfile *profile,
207217 GstDiscovererInformation *info)
208218 {
209219 GstCaps *caps;
236246 }
237247
238248 static void
239 guess_audio_profile (GstDiscovererInformation *info, gchar **name, gchar **mime)
240 {
241 GList *i;
249 guess_audio_profile (GstDiscovererInformation *info,
250 gchar **name,
251 gchar **mime,
252 GList *profiles)
253 {
254 GList *i;
255 GUPnPDLNAProfile *profile;
256 const GstEncodingProfile *enc_profile;
242257
243258 for (i = profiles; i; i = i->next) {
244 GUPnPDLNAProfile *profile = (GUPnPDLNAProfile *)(i->data);
245
246 if (check_audio_profile (profile->enc_profile, info) &&
247 check_container (info, profile->enc_profile)) {
248 *name = g_strdup (profile->name);
249 *mime = g_strdup (profile->mime);
259 profile = (GUPnPDLNAProfile *)(i->data);
260 enc_profile = gupnp_dlna_profile_get_encoding_profile (profile);
261
262 gupnp_dlna_debug ("Checking DLNA profile %s",
263 gupnp_dlna_profile_get_name (profile));
264 if (!check_audio_profile (enc_profile, info))
265 gupnp_dlna_debug (" Audio did not match");
266 else if (!check_container (info, enc_profile))
267 gupnp_dlna_debug (" Container did not match");
268 else {
269 *name = g_strdup (
270 gupnp_dlna_profile_get_name (profile));
271 *mime = g_strdup (
272 gupnp_dlna_profile_get_mime (profile));
250273 break;
251274 }
252275 }
279302 gst_caps_set_simple (caps, "pixel-aspect-ratio",
280303 GST_TYPE_FRACTION, n, d, NULL);
281304 }
305 if (video->interlaced)
306 gst_caps_set_simple (caps, "interlaced", G_TYPE_BOOLEAN,
307 video->interlaced, NULL);
282308 if (video->format != GST_VIDEO_FORMAT_UNKNOWN)
283309 gst_caps_set_simple (caps, "format", GST_TYPE_FOURCC,
284310 gst_video_format_to_fourcc (video->format),
298324 }
299325
300326 static gboolean
301 check_video_profile (GstEncodingProfile *profile,
327 check_video_profile (const GstEncodingProfile *profile,
302328 GstDiscovererInformation *info)
303329 {
304330 GList *i;
321347 caps,
322348 GST_ENCODING_PROFILE_VIDEO))
323349 found_video = TRUE;
350 else
351 gupnp_dlna_debug (" Video did not match");
324352 } else if (!found_audio &&
325353 stream->streamtype == GST_STREAM_AUDIO) {
326354 caps = caps_from_audio_stream_info (
329357 caps,
330358 GST_ENCODING_PROFILE_AUDIO))
331359 found_audio = TRUE;
360 else
361 gupnp_dlna_debug (" Audio did not match");
332362 }
333363
334364 if (caps)
339369 return FALSE;
340370
341371 /* Check container restrictions */
342 if (!check_container (info, profile))
372 if (!check_container (info, profile)) {
373 gupnp_dlna_debug (" Container did not match");
343374 return FALSE;
375 }
344376
345377 return TRUE;
346378 }
347379
348380 static void
349 guess_video_profile (GstDiscovererInformation *info, gchar **name, gchar **mime)
381 guess_video_profile (GstDiscovererInformation *info,
382 gchar **name,
383 gchar **mime,
384 GList *profiles)
350385 {
351386 GUPnPDLNAProfile *profile = NULL;
387 const GstEncodingProfile *enc_profile;
352388 GList *i;
353389
354390 for (i = profiles; i; i = i->next) {
355391 profile = (GUPnPDLNAProfile *)(i->data);
356
357 if (check_video_profile (profile->enc_profile, info)) {
358 *name = g_strdup (profile->name);
359 *mime = g_strdup (profile->mime);
392 enc_profile = gupnp_dlna_profile_get_encoding_profile (profile);
393
394 gupnp_dlna_debug ("Checking DLNA profile %s",
395 gupnp_dlna_profile_get_name (profile));
396 if (check_video_profile (enc_profile, info)) {
397 *name = g_strdup (
398 gupnp_dlna_profile_get_name (profile));
399 *mime = g_strdup (
400 gupnp_dlna_profile_get_mime (profile));
360401 break;
361402 }
362403 }
363404 }
364405
365406 static void
366 guess_image_profile (GstStreamInformation *info, gchar **name, gchar **mime)
407 guess_image_profile (GstStreamInformation *info,
408 gchar **name,
409 gchar **mime,
410 GList *profiles)
367411 {
368412 GstStreamVideoInformation *video = GST_STREAM_VIDEO_INFORMATION (info);
369413 GstCaps *caps;
370414 GList *i;
371415 gboolean found = FALSE;
416 GUPnPDLNAProfile *profile;
417 const GstEncodingProfile *enc_profile;
372418
373419 if (!info || info->streamtype != GST_STREAM_IMAGE)
374420 return;
376422 caps = caps_from_video_stream_info (video);
377423
378424 for (i = profiles; !found && i; i = i->next) {
379 GUPnPDLNAProfile *profile = (GUPnPDLNAProfile *)(i->data);
425 profile = (GUPnPDLNAProfile *)(i->data);
426 enc_profile = gupnp_dlna_profile_get_encoding_profile (profile);
380427
381428 /* Optimisation TODO: this can be pre-computed */
382 if (is_video_profile (profile->enc_profile))
429 if (is_video_profile (enc_profile))
383430 continue;
384431
385 if (match_profile (profile->enc_profile,
432 if (match_profile (enc_profile,
386433 caps,
387434 GST_ENCODING_PROFILE_IMAGE)) {
388435 /* Found a match */
389 *name = g_strdup (profile->name);
390 *mime = g_strdup (profile->mime);
436 *name = g_strdup (
437 gupnp_dlna_profile_get_name (profile));
438 *mime = g_strdup (
439 gupnp_dlna_profile_get_mime (profile));
391440 break;
392441 }
393442 }
396445 }
397446
398447 GUPnPDLNAInformation *
399 gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation * info)
448 gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation *info,
449 GList *profiles)
400450 {
401451 GUPnPDLNAInformation *dlna;
402452 GstStreamType type = GST_STREAM_UNKNOWN;
403453 GList *tmp = info->stream_list;
404454 gchar *name = NULL, *mime = NULL;
405
406 if (!profiles) {
407 profiles = g_list_concat (profiles,
408 gupnp_dlna_load_profiles_from_disk ());
409 }
410455
411456 while (tmp) {
412457 GstStreamInformation *stream_info =
424469 }
425470
426471 if (type == GST_STREAM_AUDIO)
427 guess_audio_profile (info, &name, &mime);
472 guess_audio_profile (info, &name, &mime, profiles);
428473 else if (type == GST_STREAM_VIDEO)
429 guess_video_profile (info, &name, &mime);
474 guess_video_profile (info, &name, &mime, profiles);
430475 else if (type == GST_STREAM_IMAGE)
431476 /* There will be only one GstStreamInformation for images */
432 guess_image_profile (info->stream_info, &name, &mime);
477 guess_image_profile (info->stream_info, &name, &mime, profiles);
433478
434479 dlna = gupnp_dlna_information_new (name, mime, info);
435480
437482 g_free (mime);
438483 return dlna;
439484 }
440
441 GUPnPDLNAProfile *
442 gupnp_dlna_profile_from_name (const gchar *name)
443 {
444 GList *i;
445
446 if (!profiles) {
447 profiles = g_list_concat (profiles,
448 gupnp_dlna_load_profiles_from_disk ());
449 }
450
451 for (i = profiles; i != NULL; i = i->next) {
452 GUPnPDLNAProfile *profile = (GUPnPDLNAProfile *) i->data;
453
454 if (g_str_equal (profile->name, name)) {
455 g_object_ref (profile);
456 return profile;
457 }
458 }
459
460 return NULL;
461 }
+869
-1201
ltmain.sh less more
00 # Generated from ltmain.m4sh.
11
2 # libtool (GNU libtool) 2.2.10
2 # ltmain.sh (GNU libtool) 2.2.6b
33 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
44
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
76 # This is free software; see the source for copying conditions. There is NO
87 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
98
3231 #
3332 # Provide generalized library-building support services.
3433 #
35 # --config show all configuration variables
36 # --debug enable verbose shell tracing
37 # -n, --dry-run display commands without modifying any files
38 # --features display basic configuration information and exit
39 # --mode=MODE use operation mode MODE
40 # --preserve-dup-deps don't remove duplicate dependency libraries
41 # --quiet, --silent don't print informational messages
42 # --no-quiet, --no-silent
43 # print informational messages (default)
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
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 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
4945 #
5046 # MODE must be one of the following:
5147 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
5955 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
56 # MODE-ARGS vary depending on the MODE.
6257 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
6358 #
6459 # When reporting a bug, please describe a test case to reproduce it and
6560 # include the following information:
6661 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.2.10
73 # automake: $automake_version
74 # autoconf: $autoconf_version
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
68 # automake: $automake_version
69 # autoconf: $autoconf_version
7570 #
7671 # Report bugs to <bug-libtool@gnu.org>.
7772
78 PROGRAM=libtool
73 PROGRAM=ltmain.sh
7974 PACKAGE=libtool
80 VERSION=2.2.10
75 VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
8176 TIMESTAMP=""
82 package_revision=1.3175
77 package_revision=1.3017
8378
8479 # Be Bourne compatible
8580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9590 BIN_SH=xpg4; export BIN_SH # for Tru64
9691 DUALCASE=1; export DUALCASE # for MKS sh
9792
98 # A function that is used when there is no print builtin or printf.
99 func_fallback_echo ()
100 {
101 eval 'cat <<_LTECHO_EOF
102 $1
103 _LTECHO_EOF'
104 }
105
10693 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
10797 lt_user_locale=
10898 lt_safe_locale=
10999 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
116106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
117107 fi"
118108 done
119 LC_ALL=C
120 LANGUAGE=C
121 export LANGUAGE LC_ALL
122109
123110 $lt_unset CDPATH
124111
125112
126 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
127 # is ksh but when the shell is invoked as "sh" and the current value of
128 # the _XPG environment variable is not equal to 1 (one), the special
129 # positional parameter $0, within a function call, is the name of the
130 # function.
131 progpath="$0"
132113
133114
134115
135116 : ${CP="cp -f"}
136 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
137 : ${EGREP="grep -E"}
138 : ${FGREP="grep -F"}
139 : ${GREP="grep"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
140121 : ${LN_S="ln -s"}
141122 : ${MAKE="make"}
142123 : ${MKDIR="mkdir"}
143124 : ${MV="mv -f"}
144125 : ${RM="rm -f"}
145 : ${SED="sed"}
126 : ${SED="/bin/sed"}
146127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
147128 : ${Xsed="$SED -e 1s/^X//"}
148129
177158 func_dirname_and_basename ()
178159 {
179160 # Extract subdirectory from the argument.
180 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
181162 if test "X$func_dirname_result" = "X${1}"; then
182163 func_dirname_result="${3}"
183164 else
184165 func_dirname_result="$func_dirname_result${2}"
185166 fi
186 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
187168 }
188169
189170 # Generated shell functions inserted here.
190171
191 # These SED scripts presuppose an absolute path with a trailing slash.
192 pathcar='s,^/\([^/]*\).*$,\1,'
193 pathcdr='s,^/[^/]*,,'
194 removedotparts=':dotsl
195 s@/\./@/@g
196 t dotsl
197 s,/\.$,/,'
198 collapseslashes='s@/\{1,\}@/@g'
199 finalslash='s,/*$,/,'
200
201 # func_normal_abspath PATH
202 # Remove doubled-up and trailing slashes, "." path components,
203 # and cancel out any ".." path components in PATH after making
204 # it an absolute path.
205 # value returned in "$func_normal_abspath_result"
206 func_normal_abspath ()
207 {
208 # Start from root dir and reassemble the path.
209 func_normal_abspath_result=
210 func_normal_abspath_tpath=$1
211 func_normal_abspath_altnamespace=
212 case $func_normal_abspath_tpath in
213 "")
214 # Empty path, that just means $cwd.
215 func_stripname '' '/' "`pwd`"
216 func_normal_abspath_result=$func_stripname_result
217 return
218 ;;
219 # The next three entries are used to spot a run of precisely
220 # two leading slashes without using negated character classes;
221 # we take advantage of case's first-match behaviour.
222 ///*)
223 # Unusual form of absolute path, do nothing.
224 ;;
225 //*)
226 # Not necessarily an ordinary path; POSIX reserves leading '//'
227 # and for example Cygwin uses it to access remote file shares
228 # over CIFS/SMB, so we conserve a leading double slash if found.
229 func_normal_abspath_altnamespace=/
230 ;;
231 /*)
232 # Absolute path, do nothing.
233 ;;
234 *)
235 # Relative path, prepend $cwd.
236 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
237 ;;
238 esac
239 # Cancel out all the simple stuff to save iterations. We also want
240 # the path to end with a slash for ease of parsing, so make sure
241 # there is one (and only one) here.
242 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
243 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
244 while :; do
245 # Processed it all yet?
246 if test "$func_normal_abspath_tpath" = / ; then
247 # If we ascended to the root using ".." the result may be empty now.
248 if test -z "$func_normal_abspath_result" ; then
249 func_normal_abspath_result=/
250 fi
251 break
252 fi
253 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
254 -e "$pathcar"`
255 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
256 -e "$pathcdr"`
257 # Figure out what to do with it
258 case $func_normal_abspath_tcomponent in
259 "")
260 # Trailing empty path component, ignore it.
261 ;;
262 ..)
263 # Parent dir; strip last assembled component from result.
264 func_dirname "$func_normal_abspath_result"
265 func_normal_abspath_result=$func_dirname_result
266 ;;
267 *)
268 # Actual path component, append it.
269 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
270 ;;
271 esac
272 done
273 # Restore leading double-slash if one was found on entry.
274 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
275 }
276
277 # func_relative_path SRCDIR DSTDIR
278 # generates a relative path from SRCDIR to DSTDIR, with a trailing
279 # slash if non-empty, suitable for immediately appending a filename
280 # without needing to append a separator.
281 # value returned in "$func_relative_path_result"
282 func_relative_path ()
283 {
284 func_relative_path_result=
285 func_normal_abspath "$1"
286 func_relative_path_tlibdir=$func_normal_abspath_result
287 func_normal_abspath "$2"
288 func_relative_path_tbindir=$func_normal_abspath_result
289
290 # Ascend the tree starting from libdir
291 while :; do
292 # check if we have found a prefix of bindir
293 case $func_relative_path_tbindir in
294 $func_relative_path_tlibdir)
295 # found an exact match
296 func_relative_path_tcancelled=
297 break
298 ;;
299 $func_relative_path_tlibdir*)
300 # found a matching prefix
301 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
302 func_relative_path_tcancelled=$func_stripname_result
303 if test -z "$func_relative_path_result"; then
304 func_relative_path_result=.
305 fi
306 break
307 ;;
308 *)
309 func_dirname $func_relative_path_tlibdir
310 func_relative_path_tlibdir=${func_dirname_result}
311 if test "x$func_relative_path_tlibdir" = x ; then
312 # Have to descend all the way to the root!
313 func_relative_path_result=../$func_relative_path_result
314 func_relative_path_tcancelled=$func_relative_path_tbindir
315 break
316 fi
317 func_relative_path_result=../$func_relative_path_result
318 ;;
319 esac
320 done
321
322 # Now calculate path; take care to avoid doubling-up slashes.
323 func_stripname '' '/' "$func_relative_path_result"
324 func_relative_path_result=$func_stripname_result
325 func_stripname '/' '/' "$func_relative_path_tcancelled"
326 if test "x$func_stripname_result" != x ; then
327 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
328 fi
329
330 # Normalisation. If bindir is libdir, return empty string,
331 # else relative path ending with a slash; either way, target
332 # file name can be directly appended.
333 if test ! -z "$func_relative_path_result"; then
334 func_stripname './' '' "$func_relative_path_result/"
335 func_relative_path_result=$func_stripname_result
336 fi
337 }
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
338178
339179 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
340182 func_dirname_and_basename "$progpath"
341183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
342187
343188 # Make sure we have an absolute path for reexecution:
344189 case $progpath in
412257 :
413258 }
414259
415 # func_echo_all arg...
416 # Invoke $ECHO with all args, space-separated.
417 func_echo_all ()
418 {
419 $ECHO "$*"
420 }
421
422260 # func_error arg...
423261 # Echo program name prefixed message to standard error.
424262 func_error ()
487325 case $my_directory_path in */*) ;; *) break ;; esac
488326
489327 # ...otherwise throw away the child directory and loop
490 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
491329 done
492 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
493331
494332 save_mkdir_p_IFS="$IFS"; IFS=':'
495333 for my_dir in $my_dir_list; do
539377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
540378 fi
541379
542 $ECHO "$my_tmpdir"
380 $ECHO "X$my_tmpdir" | $Xsed
543381 }
544382
545383
553391 {
554392 case $1 in
555393 *[\\\`\"\$]*)
556 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
557395 *)
558396 func_quote_for_eval_unquoted_result="$1" ;;
559397 esac
580418 {
581419 case $1 in
582420 *[\\\`\"]*)
583 my_arg=`$ECHO "$1" | $SED \
421 my_arg=`$ECHO "X$1" | $Xsed \
584422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
585423 *)
586424 my_arg="$1" ;;
650488 }
651489
652490
491
492
493
653494 # func_version
654495 # Echo version message to standard output and exit.
655496 func_version ()
656497 {
657 $SED -n '/(C)/!b go
658 :more
659 /\./!{
660 N
661 s/\n# / /
662 b more
663 }
664 :go
665 /^# '$PROGRAM' (GNU /,/# warranty; / {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
666499 s/^# //
667500 s/^# *$//
668501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
675508 # Echo short help message to standard output and exit.
676509 func_usage ()
677510 {
678 $SED -n '/^# Usage:/,/^# *.*--help/ {
511 $SED -n '/^# Usage:/,/# -h/ {
679512 s/^# //
680513 s/^# *$//
681514 s/\$progname/'$progname'/
682515 p
683516 }' < "$progpath"
684 echo
517 $ECHO
685518 $ECHO "run \`$progname --help | more' for full usage"
686519 exit $?
687520 }
688521
689 # func_help [NOEXIT]
690 # Echo long help message to standard output and exit,
691 # unless 'noexit' is passed as argument.
522 # func_help
523 # Echo long help message to standard output and exit.
692524 func_help ()
693525 {
694526 $SED -n '/^# Usage:/,/# Report bugs to/ {
705537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
706538 p
707539 }' < "$progpath"
708 ret=$?
709 if test -z "$1"; then
710 exit $ret
711 fi
540 exit $?
712541 }
713542
714543 # func_missing_arg argname
716545 # exit_cmd.
717546 func_missing_arg ()
718547 {
719 func_error "missing argument for $1."
548 func_error "missing argument for $1"
720549 exit_cmd=exit
721550 }
722551
726555
727556
728557
558 # Check that we have a working $ECHO.
559 if test "X$1" = X--no-reexec; then
560 # Discard the --no-reexec flag, and continue.
561 shift
562 elif test "X$1" = X--fallback-echo; then
563 # Avoid inline document here, it may be left over
564 :
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
567 :
568 else
569 # Restart under the correct shell, and then maybe $ECHO will work.
570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
571 fi
572
573 if test "X$1" = X--fallback-echo; then
574 # used as fallback echo
575 shift
576 cat <<EOF
577 $*
578 EOF
579 exit $EXIT_SUCCESS
580 fi
729581
730582 magic="%%%MAGIC variable%%%"
731583 magic_exe="%%%MAGIC EXE variable%%%"
783635 # Display the features supported by this script.
784636 func_features ()
785637 {
786 echo "host: $host"
638 $ECHO "host: $host"
787639 if test "$build_libtool_libs" = yes; then
788 echo "enable shared libraries"
640 $ECHO "enable shared libraries"
789641 else
790 echo "disable shared libraries"
642 $ECHO "disable shared libraries"
791643 fi
792644 if test "$build_old_libs" = yes; then
793 echo "enable static libraries"
645 $ECHO "enable static libraries"
794646 else
795 echo "disable static libraries"
647 $ECHO "disable static libraries"
796648 fi
797649
798650 exit $?
919771
920772 --quiet|--silent) preserve_args="$preserve_args $opt"
921773 opt_silent=:
922 opt_verbose=false
923 ;;
924
925 --no-quiet|--no-silent)
926 preserve_args="$preserve_args $opt"
927 opt_silent=false
928774 ;;
929775
930776 --verbose| -v) preserve_args="$preserve_args $opt"
931777 opt_silent=false
932 opt_verbose=:
933 ;;
934
935 --no-verbose) preserve_args="$preserve_args $opt"
936 opt_verbose=false
937778 ;;
938779
939780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
951792
952793 -\?|-h) func_usage ;;
953794 --help) opt_help=: ;;
954 --help-all) opt_help=': help-all' ;;
955795 --version) func_version ;;
956796
957797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
11751015 func_quote_for_eval "$arg"
11761016 CC_quoted="$CC_quoted $func_quote_for_eval_result"
11771017 done
1178 CC_expanded=`func_echo_all $CC`
1179 CC_quoted_expanded=`func_echo_all $CC_quoted`
11801018 case $@ in
11811019 # Blanks in the command may have been stripped by the calling shell,
11821020 # but not from the CC environment variable when configure was run.
1183 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1184 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
1021 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
11851022 # Blanks at the start of $base_compile will cause this to fail
11861023 # if we don't check for them as well.
11871024 *)
11951032 func_quote_for_eval "$arg"
11961033 CC_quoted="$CC_quoted $func_quote_for_eval_result"
11971034 done
1198 CC_expanded=`func_echo_all $CC`
1199 CC_quoted_expanded=`func_echo_all $CC_quoted`
12001035 case "$@ " in
1201 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
1202 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
1036 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
12031037 # The compiler in the base compile command matches
12041038 # the one in the tagged configuration.
12051039 # Assume this is the tagged configuration we want.
13781212 *.[cCFSifmso] | \
13791213 *.ada | *.adb | *.ads | *.asm | \
13801214 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1381 *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
1215 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
13821216 func_xform "$libobj"
13831217 libobj=$func_xform_result
13841218 ;;
14531287 # Calculate the filename of the output object if compiler does
14541288 # not support -o with -c
14551289 if test "$compiler_c_o" = no; then
1456 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
1290 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
14571291 lockfile="$output_obj.lock"
14581292 else
14591293 output_obj=
16101444 }
16111445
16121446 $opt_help || {
1613 test "$mode" = compile && func_mode_compile ${1+"$@"}
1447 test "$mode" = compile && func_mode_compile ${1+"$@"}
16141448 }
16151449
16161450 func_mode_help ()
16471481
16481482 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
16491483 -no-suppress do not suppress compiler output for multiple passes
1650 -prefer-pic try to build PIC objects only
1651 -prefer-non-pic try to build non-PIC objects only
1484 -prefer-pic try to building PIC objects only
1485 -prefer-non-pic try to building non-PIC objects only
16521486 -shared do not build a \`.o' file suitable for static linking
16531487 -static only build a \`.o' file suitable for static linking
1654 -Wc,FLAG pass FLAG directly to the compiler
16551488
16561489 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
16571490 from the given SOURCEFILE.
17041537
17051538 The following components of INSTALL-COMMAND are treated specially:
17061539
1707 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1540 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
17081541
17091542 The rest of the components are interpreted as arguments to that command (only
17101543 BSD-compatible install options are recognized)."
17241557
17251558 -all-static do not do any dynamic linking at all
17261559 -avoid-version do not add a version suffix if possible
1727 -bindir BINDIR specify path to binaries directory (for systems where
1728 libraries must be found in the PATH setting at runtime)
17291560 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
17301561 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
17311562 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
17541585 -version-info CURRENT[:REVISION[:AGE]]
17551586 specify library version info [each variable defaults to 0]
17561587 -weak LIBNAME declare that the target provides the LIBNAME interface
1757 -Wc,FLAG
1758 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
1759 -Wl,FLAG
1760 -Xlinker FLAG pass linker-specific FLAG directly to the linker
1761 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
17621588
17631589 All other options (arguments beginning with \`-') are ignored.
17641590
17961622 ;;
17971623 esac
17981624
1799 echo
1625 $ECHO
18001626 $ECHO "Try \`$progname --help' for more information about other modes."
1627
1628 exit $?
18011629 }
18021630
1803 # Now that we've collected a possible --mode arg, show help if necessary
1804 if $opt_help; then
1805 if test "$opt_help" = :; then
1806 func_mode_help
1807 else
1808 {
1809 func_help noexit
1810 for mode in compile link execute install finish uninstall clean; do
1811 func_mode_help
1812 done
1813 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
1814 {
1815 func_help noexit
1816 for mode in compile link execute install finish uninstall clean; do
1817 echo
1818 func_mode_help
1819 done
1820 } |
1821 sed '1d
1822 /^When reporting/,/^Report/{
1823 H
1824 d
1825 }
1826 $x
1827 /information about other modes/d
1828 /more detailed .*MODE/d
1829 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
1830 fi
1831 exit $?
1832 fi
1631 # Now that we've collected a possible --mode arg, show help if necessary
1632 $opt_help && func_mode_help
18331633
18341634
18351635 # func_mode_execute arg...
19111711 for file
19121712 do
19131713 case $file in
1914 -* | *.la | *.lo ) ;;
1714 -*) ;;
19151715 *)
19161716 # Do a test to see if this is really a libtool program.
19171717 if func_ltwrapper_script_p "$file"; then
19531753 # Display what would be done.
19541754 if test -n "$shlibpath_var"; then
19551755 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1956 echo "export $shlibpath_var"
1756 $ECHO "export $shlibpath_var"
19571757 fi
19581758 $ECHO "$cmd$args"
19591759 exit $EXIT_SUCCESS
19941794 # Exit here if they wanted silent mode.
19951795 $opt_silent && exit $EXIT_SUCCESS
19961796
1997 echo "----------------------------------------------------------------------"
1998 echo "Libraries have been installed in:"
1797 $ECHO "X----------------------------------------------------------------------" | $Xsed
1798 $ECHO "Libraries have been installed in:"
19991799 for libdir in $libdirs; do
20001800 $ECHO " $libdir"
20011801 done
2002 echo
2003 echo "If you ever happen to want to link against installed libraries"
2004 echo "in a given directory, LIBDIR, you must either use libtool, and"
2005 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2006 echo "flag during linking and do at least one of the following:"
1802 $ECHO
1803 $ECHO "If you ever happen to want to link against installed libraries"
1804 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1805 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1806 $ECHO "flag during linking and do at least one of the following:"
20071807 if test -n "$shlibpath_var"; then
2008 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2009 echo " during execution"
1808 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1809 $ECHO " during execution"
20101810 fi
20111811 if test -n "$runpath_var"; then
2012 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2013 echo " during linking"
1812 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1813 $ECHO " during linking"
20141814 fi
20151815 if test -n "$hardcode_libdir_flag_spec"; then
20161816 libdir=LIBDIR
20221822 $ECHO " - have your system administrator run these commands:$admincmds"
20231823 fi
20241824 if test -f /etc/ld.so.conf; then
2025 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1825 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
20261826 fi
2027 echo
2028
2029 echo "See any operating system documentation about shared libraries for"
1827 $ECHO
1828
1829 $ECHO "See any operating system documentation about shared libraries for"
20301830 case $host in
20311831 solaris2.[6789]|solaris2.1[0-9])
2032 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2033 echo "pages."
1832 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1833 $ECHO "pages."
20341834 ;;
20351835 *)
2036 echo "more information, such as the ld(1) and ld.so(8) manual pages."
1836 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
20371837 ;;
20381838 esac
2039 echo "----------------------------------------------------------------------"
1839 $ECHO "X----------------------------------------------------------------------" | $Xsed
20401840 exit $EXIT_SUCCESS
20411841 }
20421842
20511851 # install_prog (especially on Windows NT).
20521852 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
20531853 # Allow the use of GNU shtool's install command.
2054 case $nonopt in *shtool*) :;; *) false;; esac; then
1854 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
20551855 # Aesthetically quote it.
20561856 func_quote_for_eval "$nonopt"
20571857 install_prog="$func_quote_for_eval_result "
20661866 # Aesthetically quote it.
20671867 func_quote_for_eval "$arg"
20681868 install_prog="$install_prog$func_quote_for_eval_result"
2069 install_shared_prog=$install_prog
2070 case " $install_prog " in
2071 *[\\\ /]cp\ *) install_cp=: ;;
2072 *) install_cp=false ;;
2073 esac
20741869
20751870 # We need to accept at least all the BSD install flags.
20761871 dest=
20801875 install_type=
20811876 isdir=no
20821877 stripme=
2083 no_mode=:
20841878 for arg
20851879 do
2086 arg2=
20871880 if test -n "$dest"; then
20881881 files="$files $dest"
20891882 dest=$arg
20931886 case $arg in
20941887 -d) isdir=yes ;;
20951888 -f)
2096 if $install_cp; then :; else
2097 prev=$arg
2098 fi
1889 case " $install_prog " in
1890 *[\\\ /]cp\ *) ;;
1891 *) prev=$arg ;;
1892 esac
20991893 ;;
21001894 -g | -m | -o)
21011895 prev=$arg
21091903 *)
21101904 # If the previous option needed an argument, then skip it.
21111905 if test -n "$prev"; then
2112 if test "x$prev" = x-m && test -n "$install_override_mode"; then
2113 arg2=$install_override_mode
2114 no_mode=false
2115 fi
21161906 prev=
21171907 else
21181908 dest=$arg
21241914 # Aesthetically quote the argument.
21251915 func_quote_for_eval "$arg"
21261916 install_prog="$install_prog $func_quote_for_eval_result"
2127 if test -n "$arg2"; then
2128 func_quote_for_eval "$arg2"
2129 fi
2130 install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
21311917 done
21321918
21331919 test -z "$install_prog" && \
21351921
21361922 test -n "$prev" && \
21371923 func_fatal_help "the \`$prev' option requires an argument"
2138
2139 if test -n "$install_override_mode" && $no_mode; then
2140 if $install_cp; then :; else
2141 func_quote_for_eval "$install_override_mode"
2142 install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
2143 fi
2144 fi
21451924
21461925 if test -z "$files"; then
21471926 if test -z "$dest"; then
22302009
22312010 if test -n "$relink_command"; then
22322011 # Determine the prefix the user has applied to our future dir.
2233 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
2012 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
22342013
22352014 # Don't allow the user to place us outside of our expected
22362015 # location b/c this prevents finding dependent libraries that
22432022
22442023 if test -n "$inst_prefix_dir"; then
22452024 # Stick the inst_prefix_dir data into the link command.
2246 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2025 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
22472026 else
2248 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
2027 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
22492028 fi
22502029
22512030 func_warning "relinking \`$file'"
22632042 test -n "$relink_command" && srcname="$realname"T
22642043
22652044 # Install the shared library and build the symlinks.
2266 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
2045 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
22672046 'exit $?'
22682047 tstripme="$stripme"
22692048 case $host_os in
24032182 if test -f "$lib"; then
24042183 func_source "$lib"
24052184 fi
2406 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
2185 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
24072186 if test -n "$libdir" && test ! -f "$libfile"; then
24082187 func_warning "\`$lib' has not been installed in \`$libdir'"
24092188 finalize=no
24222201 file="$func_basename_result"
24232202 outputname="$tmpdir/$file"
24242203 # Replace the output file specification.
2425 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
2204 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
24262205
24272206 $opt_silent || {
24282207 func_quote_for_expand "$relink_command"
24412220 }
24422221 else
24432222 # Install the binary that we compiled earlier.
2444 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
2223 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
24452224 fi
24462225 fi
24472226
25432322 extern \"C\" {
25442323 #endif
25452324
2546 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
2547 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
2548 #endif
2549
25502325 /* External symbol declarations for the compiler. */\
25512326 "
25522327
25562331 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
25572332
25582333 # Add our own program objects to the symbol list.
2559 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
2334 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
25602335 for progfile in $progfiles; do
25612336 func_verbose "extracting global C symbols from \`$progfile'"
25622337 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
25952370 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
25962371 eval '$MV "$nlist"T "$nlist"'
25972372 case $host in
2598 *cygwin* | *mingw* | *cegcc* )
2373 *cygwin | *mingw* | *cegcc* )
25992374 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
26002375 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
26012376 ;;
26392414 if test -f "$nlist"S; then
26402415 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
26412416 else
2642 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
2417 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
26432418 fi
26442419
2645 echo >> "$output_objdir/$my_dlsyms" "\
2420 $ECHO >> "$output_objdir/$my_dlsyms" "\
26462421
26472422 /* The mapping between symbol names and symbols. */
26482423 typedef struct {
26522427 "
26532428 case $host in
26542429 *cygwin* | *mingw* | *cegcc* )
2655 echo >> "$output_objdir/$my_dlsyms" "\
2430 $ECHO >> "$output_objdir/$my_dlsyms" "\
26562431 /* DATA imports from DLLs on WIN32 con't be const, because
26572432 runtime relocations are performed -- see ld's documentation
26582433 on pseudo-relocs. */"
26652440 lt_dlsym_const=const ;;
26662441 esac
26672442
2668 echo >> "$output_objdir/$my_dlsyms" "\
2443 $ECHO >> "$output_objdir/$my_dlsyms" "\
26692444 extern $lt_dlsym_const lt_dlsymlist
26702445 lt_${my_prefix}_LTX_preloaded_symbols[];
26712446 $lt_dlsym_const lt_dlsymlist
26812456 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
26822457 ;;
26832458 esac
2684 echo >> "$output_objdir/$my_dlsyms" "\
2459 $ECHO >> "$output_objdir/$my_dlsyms" "\
26852460 {0, (void *) 0}
26862461 };
26872462
27392514 case $host in
27402515 *cygwin* | *mingw* | *cegcc* )
27412516 if test -f "$output_objdir/$my_outputname.def"; then
2742 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2743 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2517 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
27442519 else
2745 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
2746 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
2520 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
27472522 fi
27482523 ;;
27492524 *)
2750 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
2751 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
2525 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
27522527 ;;
27532528 esac
27542529 ;;
27622537 # really was required.
27632538
27642539 # Nullify the symbol file.
2765 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
2766 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
2540 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
27672542 fi
27682543 }
27692544
27732548 # Need a lot of goo to handle *both* DLLs and import libs
27742549 # Has to be a shell function in order to 'eat' the argument
27752550 # that is supplied when $file_magic_command is called.
2776 # Despite the name, also deal with 64 bit binaries.
27772551 func_win32_libid ()
27782552 {
27792553 $opt_debug
27842558 win32_libid_type="x86 archive import"
27852559 ;;
27862560 *ar\ archive*) # could be an import, or static
2787 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
27882561 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2789 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
2562 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
27902563 win32_nmres=`eval $NM -f posix -A $1 |
27912564 $SED -n -e '
27922565 1,100{
28242597 $opt_debug
28252598 f_ex_an_ar_dir="$1"; shift
28262599 f_ex_an_ar_oldlib="$1"
2827 if test "$lock_old_archive_extraction" = yes; then
2828 lockfile=$f_ex_an_ar_oldlib.lock
2829 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
2830 func_echo "Waiting for $lockfile to be removed"
2831 sleep 2
2832 done
2833 fi
2834 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
2835 'stat=$?; rm -f "$lockfile"; exit $stat'
2836 if test "$lock_old_archive_extraction" = yes; then
2837 $opt_dry_run || rm -f "$lockfile"
2838 fi
2600 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
28392601 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
28402602 :
28412603 else
29062668 darwin_file=
29072669 darwin_files=
29082670 for darwin_file in $darwin_filelist; do
2909 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
2671 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
29102672 $LIPO -create -output "$darwin_file" $darwin_files
29112673 done # $darwin_filelist
29122674 $RM -rf unfat-$$
29212683 func_extract_an_archive "$my_xdir" "$my_xabs"
29222684 ;;
29232685 esac
2924 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
2686 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
29252687 done
29262688
29272689 func_extract_archives_result="$my_oldobjs"
29282690 }
2691
2692
2693
2694 # func_emit_wrapper_part1 [arg=no]
2695 #
2696 # Emit the first part of a libtool wrapper script on stdout.
2697 # For more information, see the description associated with
2698 # func_emit_wrapper(), below.
2699 func_emit_wrapper_part1 ()
2700 {
2701 func_emit_wrapper_part1_arg1=no
2702 if test -n "$1" ; then
2703 func_emit_wrapper_part1_arg1=$1
2704 fi
2705
2706 $ECHO "\
2707 #! $SHELL
2708
2709 # $output - temporary wrapper script for $objdir/$outputname
2710 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2711 #
2712 # The $output program cannot be directly executed until all the libtool
2713 # libraries that it depends on are installed.
2714 #
2715 # This wrapper script should never be moved out of the build directory.
2716 # If it is, it will not operate correctly.
2717
2718 # Sed substitution that helps us do robust quoting. It backslashifies
2719 # metacharacters that are still active within double-quoted strings.
2720 Xsed='${SED} -e 1s/^X//'
2721 sed_quote_subst='$sed_quote_subst'
2722
2723 # Be Bourne compatible
2724 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2725 emulate sh
2726 NULLCMD=:
2727 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2728 # is contrary to our usage. Disable this feature.
2729 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2730 setopt NO_GLOB_SUBST
2731 else
2732 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2733 fi
2734 BIN_SH=xpg4; export BIN_SH # for Tru64
2735 DUALCASE=1; export DUALCASE # for MKS sh
2736
2737 # The HP-UX ksh and POSIX shell print the target directory to stdout
2738 # if CDPATH is set.
2739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2740
2741 relink_command=\"$relink_command\"
2742
2743 # This environment variable determines our operation mode.
2744 if test \"\$libtool_install_magic\" = \"$magic\"; then
2745 # install mode needs the following variables:
2746 generated_by_libtool_version='$macro_version'
2747 notinst_deplibs='$notinst_deplibs'
2748 else
2749 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2750 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2751 ECHO=\"$qecho\"
2752 file=\"\$0\"
2753 # Make sure echo works.
2754 if test \"X\$1\" = X--no-reexec; then
2755 # Discard the --no-reexec flag, and continue.
2756 shift
2757 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2758 # Yippee, \$ECHO works!
2759 :
2760 else
2761 # Restart under the correct shell, and then maybe \$ECHO will work.
2762 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2763 fi
2764 fi\
2765 "
2766 $ECHO "\
2767
2768 # Find the directory that this script lives in.
2769 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2770 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2771
2772 # Follow symbolic links until we get to the real thisdir.
2773 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2774 while test -n \"\$file\"; do
2775 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2776
2777 # If there was a directory component, then change thisdir.
2778 if test \"x\$destdir\" != \"x\$file\"; then
2779 case \"\$destdir\" in
2780 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2781 *) thisdir=\"\$thisdir/\$destdir\" ;;
2782 esac
2783 fi
2784
2785 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2786 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2787 done
2788 "
2789 }
2790 # end: func_emit_wrapper_part1
2791
2792 # func_emit_wrapper_part2 [arg=no]
2793 #
2794 # Emit the second part of a libtool wrapper script on stdout.
2795 # For more information, see the description associated with
2796 # func_emit_wrapper(), below.
2797 func_emit_wrapper_part2 ()
2798 {
2799 func_emit_wrapper_part2_arg1=no
2800 if test -n "$1" ; then
2801 func_emit_wrapper_part2_arg1=$1
2802 fi
2803
2804 $ECHO "\
2805
2806 # Usually 'no', except on cygwin/mingw when embedded into
2807 # the cwrapper.
2808 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
2809 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2810 # special case for '.'
2811 if test \"\$thisdir\" = \".\"; then
2812 thisdir=\`pwd\`
2813 fi
2814 # remove .libs from thisdir
2815 case \"\$thisdir\" in
2816 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2817 $objdir ) thisdir=. ;;
2818 esac
2819 fi
2820
2821 # Try to get the absolute directory name.
2822 absdir=\`cd \"\$thisdir\" && pwd\`
2823 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2824 "
2825
2826 if test "$fast_install" = yes; then
2827 $ECHO "\
2828 program=lt-'$outputname'$exeext
2829 progdir=\"\$thisdir/$objdir\"
2830
2831 if test ! -f \"\$progdir/\$program\" ||
2832 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2833 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2834
2835 file=\"\$\$-\$program\"
2836
2837 if test ! -d \"\$progdir\"; then
2838 $MKDIR \"\$progdir\"
2839 else
2840 $RM \"\$progdir/\$file\"
2841 fi"
2842
2843 $ECHO "\
2844
2845 # relink executable if necessary
2846 if test -n \"\$relink_command\"; then
2847 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2848 else
2849 $ECHO \"\$relink_command_output\" >&2
2850 $RM \"\$progdir/\$file\"
2851 exit 1
2852 fi
2853 fi
2854
2855 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2856 { $RM \"\$progdir/\$program\";
2857 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2858 $RM \"\$progdir/\$file\"
2859 fi"
2860 else
2861 $ECHO "\
2862 program='$outputname'
2863 progdir=\"\$thisdir/$objdir\"
2864 "
2865 fi
2866
2867 $ECHO "\
2868
2869 if test -f \"\$progdir/\$program\"; then"
2870
2871 # Export our shlibpath_var if we have one.
2872 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2873 $ECHO "\
2874 # Add our own library path to $shlibpath_var
2875 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2876
2877 # Some systems cannot cope with colon-terminated $shlibpath_var
2878 # The second colon is a workaround for a bug in BeOS R4 sed
2879 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2880
2881 export $shlibpath_var
2882 "
2883 fi
2884
2885 # fixup the dll searchpath if we need to.
2886 if test -n "$dllsearchpath"; then
2887 $ECHO "\
2888 # Add the dll search path components to the executable PATH
2889 PATH=$dllsearchpath:\$PATH
2890 "
2891 fi
2892
2893 $ECHO "\
2894 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2895 # Run the actual program with our arguments.
2896 "
2897 case $host in
2898 # Backslashes separate directories on plain windows
2899 *-*-mingw | *-*-os2* | *-cegcc*)
2900 $ECHO "\
2901 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2902 "
2903 ;;
2904
2905 *)
2906 $ECHO "\
2907 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2908 "
2909 ;;
2910 esac
2911 $ECHO "\
2912 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2913 exit 1
2914 fi
2915 else
2916 # The program doesn't exist.
2917 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2918 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2919 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2920 exit 1
2921 fi
2922 fi\
2923 "
2924 }
2925 # end: func_emit_wrapper_part2
29292926
29302927
29312928 # func_emit_wrapper [arg=no]
29442941 # behavior.
29452942 func_emit_wrapper ()
29462943 {
2947 func_emit_wrapper_arg1=${1-no}
2948
2949 $ECHO "\
2950 #! $SHELL
2951
2952 # $output - temporary wrapper script for $objdir/$outputname
2953 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2954 #
2955 # The $output program cannot be directly executed until all the libtool
2956 # libraries that it depends on are installed.
2957 #
2958 # This wrapper script should never be moved out of the build directory.
2959 # If it is, it will not operate correctly.
2960
2961 # Sed substitution that helps us do robust quoting. It backslashifies
2962 # metacharacters that are still active within double-quoted strings.
2963 sed_quote_subst='$sed_quote_subst'
2964
2965 # Be Bourne compatible
2966 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2967 emulate sh
2968 NULLCMD=:
2969 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2970 # is contrary to our usage. Disable this feature.
2971 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2972 setopt NO_GLOB_SUBST
2973 else
2974 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2975 fi
2976 BIN_SH=xpg4; export BIN_SH # for Tru64
2977 DUALCASE=1; export DUALCASE # for MKS sh
2978
2979 # The HP-UX ksh and POSIX shell print the target directory to stdout
2980 # if CDPATH is set.
2981 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2982
2983 relink_command=\"$relink_command\"
2984
2985 # This environment variable determines our operation mode.
2986 if test \"\$libtool_install_magic\" = \"$magic\"; then
2987 # install mode needs the following variables:
2988 generated_by_libtool_version='$macro_version'
2989 notinst_deplibs='$notinst_deplibs'
2990 else
2991 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2992 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2993 file=\"\$0\""
2994
2995 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
2996 $ECHO "\
2997
2998 # A function that is used when there is no print builtin or printf.
2999 func_fallback_echo ()
3000 {
3001 eval 'cat <<_LTECHO_EOF
3002 \$1
3003 _LTECHO_EOF'
3004 }
3005 ECHO=\"$qECHO\"
3006 fi
3007
3008 # Very basic option parsing. These options are (a) specific to
3009 # the libtool wrapper, (b) are identical between the wrapper
3010 # /script/ and the wrapper /executable/ which is used only on
3011 # windows platforms, and (c) all begin with the string "--lt-"
3012 # (application programs are unlikely to have options which match
3013 # this pattern).
3014 #
3015 # There are only two supported options: --lt-debug and
3016 # --lt-dump-script. There is, deliberately, no --lt-help.
3017 #
3018 # The first argument to this parsing function should be the
3019 # script's $0 value, followed by "$@".
3020 lt_option_debug=
3021 func_parse_lt_options ()
3022 {
3023 lt_script_arg0=\$0
3024 shift
3025 for lt_opt
3026 do
3027 case \"\$lt_opt\" in
3028 --lt-debug) lt_option_debug=1 ;;
3029 --lt-dump-script)
3030 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
3031 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
3032 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
3033 cat \"\$lt_dump_D/\$lt_dump_F\"
3034 exit 0
3035 ;;
3036 --lt-*)
3037 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
3038 exit 1
3039 ;;
3040 esac
3041 done
3042
3043 # Print the debug banner immediately:
3044 if test -n \"\$lt_option_debug\"; then
3045 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
3046 fi
3047 }
3048
3049 # Used when --lt-debug. Prints its arguments to stdout
3050 # (redirection is the responsibility of the caller)
3051 func_lt_dump_args ()
3052 {
3053 lt_dump_args_N=1;
3054 for lt_arg
3055 do
3056 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
3057 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
3058 done
3059 }
3060
3061 # Core function for launching the target application
3062 func_exec_program_core ()
3063 {
3064 "
3065 case $host in
3066 # Backslashes separate directories on plain windows
3067 *-*-mingw | *-*-os2* | *-cegcc*)
3068 $ECHO "\
3069 if test -n \"\$lt_option_debug\"; then
3070 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
3071 func_lt_dump_args \${1+\"\$@\"} 1>&2
3072 fi
3073 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
3074 "
3075 ;;
3076
3077 *)
3078 $ECHO "\
3079 if test -n \"\$lt_option_debug\"; then
3080 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
3081 func_lt_dump_args \${1+\"\$@\"} 1>&2
3082 fi
3083 exec \"\$progdir/\$program\" \${1+\"\$@\"}
3084 "
3085 ;;
3086 esac
3087 $ECHO "\
3088 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
3089 exit 1
3090 }
3091
3092 # A function to encapsulate launching the target application
3093 # Strips options in the --lt-* namespace from \$@ and
3094 # launches target application with the remaining arguments.
3095 func_exec_program ()
3096 {
3097 for lt_wr_arg
3098 do
3099 case \$lt_wr_arg in
3100 --lt-*) ;;
3101 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3102 esac
3103 shift
3104 done
3105 func_exec_program_core \${1+\"\$@\"}
3106 }
3107
3108 # Parse options
3109 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
3110
3111 # Find the directory that this script lives in.
3112 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
3113 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
3114
3115 # Follow symbolic links until we get to the real thisdir.
3116 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
3117 while test -n \"\$file\"; do
3118 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
3119
3120 # If there was a directory component, then change thisdir.
3121 if test \"x\$destdir\" != \"x\$file\"; then
3122 case \"\$destdir\" in
3123 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
3124 *) thisdir=\"\$thisdir/\$destdir\" ;;
3125 esac
3126 fi
3127
3128 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
3129 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
3130 done
3131
3132 # Usually 'no', except on cygwin/mingw when embedded into
3133 # the cwrapper.
3134 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
3135 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
3136 # special case for '.'
3137 if test \"\$thisdir\" = \".\"; then
3138 thisdir=\`pwd\`
3139 fi
3140 # remove .libs from thisdir
3141 case \"\$thisdir\" in
3142 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
3143 $objdir ) thisdir=. ;;
3144 esac
3145 fi
3146
3147 # Try to get the absolute directory name.
3148 absdir=\`cd \"\$thisdir\" && pwd\`
3149 test -n \"\$absdir\" && thisdir=\"\$absdir\"
3150 "
3151
3152 if test "$fast_install" = yes; then
3153 $ECHO "\
3154 program=lt-'$outputname'$exeext
3155 progdir=\"\$thisdir/$objdir\"
3156
3157 if test ! -f \"\$progdir/\$program\" ||
3158 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
3159 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
3160
3161 file=\"\$\$-\$program\"
3162
3163 if test ! -d \"\$progdir\"; then
3164 $MKDIR \"\$progdir\"
3165 else
3166 $RM \"\$progdir/\$file\"
3167 fi"
3168
3169 $ECHO "\
3170
3171 # relink executable if necessary
3172 if test -n \"\$relink_command\"; then
3173 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
3174 else
3175 $ECHO \"\$relink_command_output\" >&2
3176 $RM \"\$progdir/\$file\"
3177 exit 1
3178 fi
3179 fi
3180
3181 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
3182 { $RM \"\$progdir/\$program\";
3183 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
3184 $RM \"\$progdir/\$file\"
3185 fi"
3186 else
3187 $ECHO "\
3188 program='$outputname'
3189 progdir=\"\$thisdir/$objdir\"
3190 "
2944 func_emit_wrapper_arg1=no
2945 if test -n "$1" ; then
2946 func_emit_wrapper_arg1=$1
31912947 fi
31922948
3193 $ECHO "\
3194
3195 if test -f \"\$progdir/\$program\"; then"
3196
3197 # Export our shlibpath_var if we have one.
3198 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3199 $ECHO "\
3200 # Add our own library path to $shlibpath_var
3201 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
3202
3203 # Some systems cannot cope with colon-terminated $shlibpath_var
3204 # The second colon is a workaround for a bug in BeOS R4 sed
3205 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
3206
3207 export $shlibpath_var
3208 "
3209 fi
3210
3211 # fixup the dll searchpath if we need to.
3212 if test -n "$dllsearchpath"; then
3213 $ECHO "\
3214 # Add the dll search path components to the executable PATH
3215 PATH=$dllsearchpath:\$PATH
3216 "
3217 fi
3218
3219 $ECHO "\
3220 if test \"\$libtool_execute_magic\" != \"$magic\"; then
3221 # Run the actual program with our arguments.
3222 func_exec_program \${1+\"\$@\"}
3223 fi
3224 else
3225 # The program doesn't exist.
3226 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
3227 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
3228 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
3229 exit 1
3230 fi
3231 fi\
3232 "
2949 # split this up so that func_emit_cwrapperexe_src
2950 # can call each part independently.
2951 func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
2952 func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
32332953 }
32342954
32352955
32572977 func_to_host_path ()
32582978 {
32592979 func_to_host_path_result="$1"
3260 if test -n "$1"; then
2980 if test -n "$1" ; then
32612981 case $host in
32622982 *mingw* )
32632983 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
32642984 case $build in
32652985 *mingw* ) # actually, msys
32662986 # awkward: cmd appends spaces to result
3267 func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
3268 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2987 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
2988 func_to_host_path_tmp1=`( cmd //c echo "$1" |\
2989 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
2990 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2991 $SED -e "$lt_sed_naive_backslashify"`
32692992 ;;
32702993 *cygwin* )
3271 func_to_host_path_result=`cygpath -w "$1" |
3272 $SED -e "$lt_sed_naive_backslashify"`
2994 func_to_host_path_tmp1=`cygpath -w "$1"`
2995 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
2996 $SED -e "$lt_sed_naive_backslashify"`
32732997 ;;
32742998 * )
32752999 # Unfortunately, winepath does not exit with a non-zero
32813005 # the odd construction:
32823006 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
32833007 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3284 func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
3008 func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
32853009 $SED -e "$lt_sed_naive_backslashify"`
32863010 else
32873011 # Allow warning below.
3288 func_to_host_path_result=
3012 func_to_host_path_result=""
32893013 fi
32903014 ;;
32913015 esac
32923016 if test -z "$func_to_host_path_result" ; then
32933017 func_error "Could not determine host path corresponding to"
3294 func_error " \`$1'"
3018 func_error " '$1'"
32953019 func_error "Continuing, but uninstalled executables may not work."
32963020 # Fallback:
32973021 func_to_host_path_result="$1"
33243048 func_to_host_pathlist ()
33253049 {
33263050 func_to_host_pathlist_result="$1"
3327 if test -n "$1"; then
3051 if test -n "$1" ; then
33283052 case $host in
33293053 *mingw* )
33303054 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
33313055 # Remove leading and trailing path separator characters from
33323056 # ARG. msys behavior is inconsistent here, cygpath turns them
33333057 # into '.;' and ';.', and winepath ignores them completely.
3334 func_stripname : : "$1"
3335 func_to_host_pathlist_tmp1=$func_stripname_result
3058 func_to_host_pathlist_tmp2="$1"
3059 # Once set for this call, this variable should not be
3060 # reassigned. It is used in tha fallback case.
3061 func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
3062 $SED -e 's|^:*||' -e 's|:*$||'`
33363063 case $build in
33373064 *mingw* ) # Actually, msys.
33383065 # Awkward: cmd appends spaces to result.
3339 func_to_host_pathlist_result=`
3340 ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
3341 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3066 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3067 func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
3068 $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
3069 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
3070 $SED -e "$lt_sed_naive_backslashify"`
33423071 ;;
33433072 *cygwin* )
3344 func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
3073 func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
3074 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
33453075 $SED -e "$lt_sed_naive_backslashify"`
33463076 ;;
33473077 * )
33573087 if test -z "$func_to_host_pathlist_result" ; then
33583088 func_to_host_pathlist_result="$func_to_host_path_result"
33593089 else
3360 func_append func_to_host_pathlist_result ";$func_to_host_path_result"
3090 func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
33613091 fi
33623092 fi
33633093 fi
3094 IFS=:
33643095 done
33653096 IFS=$func_to_host_pathlist_oldIFS
33663097 ;;
33673098 esac
3368 if test -z "$func_to_host_pathlist_result"; then
3099 if test -z "$func_to_host_pathlist_result" ; then
33693100 func_error "Could not determine the host path(s) corresponding to"
3370 func_error " \`$1'"
3101 func_error " '$1'"
33713102 func_error "Continuing, but uninstalled executables may not work."
33723103 # Fallback. This may break if $1 contains DOS-style drive
33733104 # specifications. The fix is not to complicate the expression
33843115 ;;
33853116 esac
33863117 case "$1" in
3387 *: ) func_append func_to_host_pathlist_result ";"
3118 *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
33883119 ;;
33893120 esac
33903121 ;;
34093140
34103141 This wrapper executable should never be moved out of the build directory.
34113142 If it is, it will not operate correctly.
3143
3144 Currently, it simply execs the wrapper *script* "$SHELL $output",
3145 but could eventually absorb all of the scripts functionality and
3146 exec $objdir/$outputname directly.
34123147 */
34133148 EOF
34143149 cat <<"EOF"
3415 #ifdef _MSC_VER
3416 # define _CRT_SECURE_NO_DEPRECATE 1
3417 #endif
34183150 #include <stdio.h>
34193151 #include <stdlib.h>
34203152 #ifdef _MSC_VER
34213153 # include <direct.h>
34223154 # include <process.h>
34233155 # include <io.h>
3156 # define setmode _setmode
34243157 #else
34253158 # include <unistd.h>
34263159 # include <stdint.h>
34273160 # ifdef __CYGWIN__
34283161 # include <io.h>
3162 # define HAVE_SETENV
3163 # ifdef __STRICT_ANSI__
3164 char *realpath (const char *, char *);
3165 int putenv (char *);
3166 int setenv (const char *, const char *, int);
3167 # endif
34293168 # endif
34303169 #endif
34313170 #include <malloc.h>
34373176 #include <fcntl.h>
34383177 #include <sys/stat.h>
34393178
3440 /* declarations of non-ANSI functions */
3441 #if defined(__MINGW32__)
3442 # ifdef __STRICT_ANSI__
3443 int _putenv (const char *);
3444 # endif
3445 #elif defined(__CYGWIN__)
3446 # ifdef __STRICT_ANSI__
3447 char *realpath (const char *, char *);
3448 int putenv (char *);
3449 int setenv (const char *, const char *, int);
3450 # endif
3451 /* #elif defined (other platforms) ... */
3452 #endif
3453
3454 /* portability defines, excluding path handling macros */
3455 #if defined(_MSC_VER)
3456 # define setmode _setmode
3457 # define stat _stat
3458 # define chmod _chmod
3459 # define getcwd _getcwd
3460 # define putenv _putenv
3461 # define S_IXUSR _S_IEXEC
3462 # ifndef _INTPTR_T_DEFINED
3463 # define _INTPTR_T_DEFINED
3464 # define intptr_t int
3465 # endif
3466 #elif defined(__MINGW32__)
3467 # define setmode _setmode
3468 # define stat _stat
3469 # define chmod _chmod
3470 # define getcwd _getcwd
3471 # define putenv _putenv
3472 #elif defined(__CYGWIN__)
3473 # define HAVE_SETENV
3474 # define FOPEN_WB "wb"
3475 /* #elif defined (other platforms) ... */
3476 #endif
3477
34783179 #if defined(PATH_MAX)
34793180 # define LT_PATHMAX PATH_MAX
34803181 #elif defined(MAXPATHLEN)
34903191 # define S_IXGRP 0
34913192 #endif
34923193
3493 /* path handling portability macros */
3194 #ifdef _MSC_VER
3195 # define S_IXUSR _S_IEXEC
3196 # define stat _stat
3197 # ifndef _INTPTR_T_DEFINED
3198 # define intptr_t int
3199 # endif
3200 #endif
3201
34943202 #ifndef DIR_SEPARATOR
34953203 # define DIR_SEPARATOR '/'
34963204 # define PATH_SEPARATOR ':'
35213229 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
35223230 #endif /* PATH_SEPARATOR_2 */
35233231
3232 #ifdef __CYGWIN__
3233 # define FOPEN_WB "wb"
3234 #endif
3235
35243236 #ifndef FOPEN_WB
35253237 # define FOPEN_WB "w"
35263238 #endif
35333245 if (stale) { free ((void *) stale); stale = 0; } \
35343246 } while (0)
35353247
3536 #if defined(LT_DEBUGWRAPPER)
3537 static int lt_debug = 1;
3248 #undef LTWRAPPER_DEBUGPRINTF
3249 #if defined DEBUGWRAPPER
3250 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3251 static void
3252 ltwrapper_debugprintf (const char *fmt, ...)
3253 {
3254 va_list args;
3255 va_start (args, fmt);
3256 (void) vfprintf (stderr, fmt, args);
3257 va_end (args);
3258 }
35383259 #else
3539 static int lt_debug = 0;
3260 # define LTWRAPPER_DEBUGPRINTF(args)
35403261 #endif
35413262
3542 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
3263 const char *program_name = NULL;
35433264
35443265 void *xmalloc (size_t num);
35453266 char *xstrdup (const char *string);
35493270 int make_executable (const char *path);
35503271 int check_executable (const char *path);
35513272 char *strendzap (char *str, const char *pat);
3552 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
3553 void lt_fatal (const char *file, int line, const char *message, ...);
3554 static const char *nonnull (const char *s);
3555 static const char *nonempty (const char *s);
3273 void lt_fatal (const char *message, ...);
35563274 void lt_setenv (const char *name, const char *value);
35573275 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
3276 void lt_opt_process_env_set (const char *arg);
3277 void lt_opt_process_env_prepend (const char *arg);
3278 void lt_opt_process_env_append (const char *arg);
3279 int lt_split_name_value (const char *arg, char** name, char** value);
35583280 void lt_update_exe_path (const char *name, const char *value);
35593281 void lt_update_lib_path (const char *name, const char *value);
3560 char **prepare_spawn (char **argv);
3561 void lt_dump_script (FILE *f);
3282
3283 static const char *script_text_part1 =
35623284 EOF
3285
3286 func_emit_wrapper_part1 yes |
3287 $SED -e 's/\([\\"]\)/\\\1/g' \
3288 -e 's/^/ "/' -e 's/$/\\n"/'
3289 echo ";"
3290 cat <<EOF
3291
3292 static const char *script_text_part2 =
3293 EOF
3294 func_emit_wrapper_part2 yes |
3295 $SED -e 's/\([\\"]\)/\\\1/g' \
3296 -e 's/^/ "/' -e 's/$/\\n"/'
3297 echo ";"
35633298
35643299 cat <<EOF
35653300 const char * MAGIC_EXE = "$magic_exe";
36043339 cat <<"EOF"
36053340
36063341 #define LTWRAPPER_OPTION_PREFIX "--lt-"
3607
3342 #define LTWRAPPER_OPTION_PREFIX_LENGTH 5
3343
3344 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
36083345 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
3346
36093347 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
3610 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
3348
3349 static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
3350 static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
3351 /* argument is putenv-style "foo=bar", value of foo is set to bar */
3352
3353 static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
3354 static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
3355 /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
3356
3357 static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
3358 static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
3359 /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
36113360
36123361 int
36133362 main (int argc, char *argv[])
36243373 int i;
36253374
36263375 program_name = (char *) xstrdup (base_name (argv[0]));
3627 newargz = XMALLOC (char *, argc + 1);
3628
3629 /* very simple arg parsing; don't want to rely on getopt
3630 * also, copy all non cwrapper options to newargz, except
3631 * argz[0], which is handled differently
3632 */
3633 newargc=0;
3376 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3377 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3378
3379 /* very simple arg parsing; don't want to rely on getopt */
36343380 for (i = 1; i < argc; i++)
36353381 {
36363382 if (strcmp (argv[i], dumpscript_opt) == 0)
36443390 esac
36453391
36463392 cat <<"EOF"
3647 lt_dump_script (stdout);
3393 printf ("%s", script_text_part1);
3394 printf ("%s", script_text_part2);
36483395 return 0;
36493396 }
3650 if (strcmp (argv[i], debug_opt) == 0)
3651 {
3652 lt_debug = 1;
3653 continue;
3654 }
3655 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
3656 {
3657 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3658 namespace, but it is not one of the ones we know about and
3659 have already dealt with, above (inluding dump-script), then
3660 report an error. Otherwise, targets might begin to believe
3661 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3662 namespace. The first time any user complains about this, we'll
3663 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3664 or a configure.ac-settable value.
3665 */
3666 lt_fatal (__FILE__, __LINE__,
3667 "unrecognized %s option: '%s'",
3668 ltwrapper_option_prefix, argv[i]);
3669 }
3670 /* otherwise ... */
3671 newargz[++newargc] = xstrdup (argv[i]);
36723397 }
3673 newargz[++newargc] = NULL;
3674
3675 EOF
3676 cat <<EOF
3677 /* The GNU banner must be the first non-error debug message */
3678 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
3679 EOF
3680 cat <<"EOF"
3681 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
3682 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
3683
3398
3399 newargz = XMALLOC (char *, argc + 1);
36843400 tmp_pathspec = find_executable (argv[0]);
36853401 if (tmp_pathspec == NULL)
3686 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
3687 lt_debugprintf (__FILE__, __LINE__,
3688 "(main) found exe (before symlink chase) at: %s\n",
3689 tmp_pathspec);
3402 lt_fatal ("Couldn't find %s", argv[0]);
3403 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3404 tmp_pathspec));
36903405
36913406 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3692 lt_debugprintf (__FILE__, __LINE__,
3693 "(main) found exe (after symlink chase) at: %s\n",
3694 actual_cwrapper_path);
3407 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3408 actual_cwrapper_path));
36953409 XFREE (tmp_pathspec);
36963410
3697 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
3411 actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
36983412 strendzap (actual_cwrapper_path, actual_cwrapper_name);
36993413
37003414 /* wrapper name transforms */
37123426 target_name = tmp_pathspec;
37133427 tmp_pathspec = 0;
37143428
3715 lt_debugprintf (__FILE__, __LINE__,
3716 "(main) libtool target name: %s\n",
3717 target_name);
3429 LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
3430 target_name));
37183431 EOF
37193432
37203433 cat <<EOF
37673480 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
37683481 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37693482
3770 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
3771 nonnull (lt_argv_zero));
3483 newargc=0;
3484 for (i = 1; i < argc; i++)
3485 {
3486 if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
3487 {
3488 if (argv[i][env_set_opt_len] == '=')
3489 {
3490 const char *p = argv[i] + env_set_opt_len + 1;
3491 lt_opt_process_env_set (p);
3492 }
3493 else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
3494 {
3495 lt_opt_process_env_set (argv[++i]); /* don't copy */
3496 }
3497 else
3498 lt_fatal ("%s missing required argument", env_set_opt);
3499 continue;
3500 }
3501 if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
3502 {
3503 if (argv[i][env_prepend_opt_len] == '=')
3504 {
3505 const char *p = argv[i] + env_prepend_opt_len + 1;
3506 lt_opt_process_env_prepend (p);
3507 }
3508 else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
3509 {
3510 lt_opt_process_env_prepend (argv[++i]); /* don't copy */
3511 }
3512 else
3513 lt_fatal ("%s missing required argument", env_prepend_opt);
3514 continue;
3515 }
3516 if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
3517 {
3518 if (argv[i][env_append_opt_len] == '=')
3519 {
3520 const char *p = argv[i] + env_append_opt_len + 1;
3521 lt_opt_process_env_append (p);
3522 }
3523 else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
3524 {
3525 lt_opt_process_env_append (argv[++i]); /* don't copy */
3526 }
3527 else
3528 lt_fatal ("%s missing required argument", env_append_opt);
3529 continue;
3530 }
3531 if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
3532 {
3533 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
3534 namespace, but it is not one of the ones we know about and
3535 have already dealt with, above (inluding dump-script), then
3536 report an error. Otherwise, targets might begin to believe
3537 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
3538 namespace. The first time any user complains about this, we'll
3539 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
3540 or a configure.ac-settable value.
3541 */
3542 lt_fatal ("Unrecognized option in %s namespace: '%s'",
3543 ltwrapper_option_prefix, argv[i]);
3544 }
3545 /* otherwise ... */
3546 newargz[++newargc] = xstrdup (argv[i]);
3547 }
3548 newargz[++newargc] = NULL;
3549
3550 LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
37723551 for (i = 0; i < newargc; i++)
37733552 {
3774 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
3775 i, nonnull (newargz[i]));
3553 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
37763554 }
37773555
37783556 EOF
37813559 mingw*)
37823560 cat <<"EOF"
37833561 /* execv doesn't actually work on mingw as expected on unix */
3784 newargz = prepare_spawn (newargz);
37853562 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
37863563 if (rval == -1)
37873564 {
37883565 /* failed to start process */
3789 lt_debugprintf (__FILE__, __LINE__,
3790 "(main) failed to launch target \"%s\": %s\n",
3791 lt_argv_zero, nonnull (strerror (errno)));
3566 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
37923567 return 127;
37933568 }
37943569 return rval;
38103585 {
38113586 void *p = (void *) malloc (num);
38123587 if (!p)
3813 lt_fatal (__FILE__, __LINE__, "memory exhausted");
3588 lt_fatal ("Memory exhausted");
38143589
38153590 return p;
38163591 }
38443619 {
38453620 struct stat st;
38463621
3847 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
3848 nonempty (path));
3622 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3623 path ? (*path ? path : "EMPTY!") : "NULL!"));
38493624 if ((!path) || (!*path))
38503625 return 0;
38513626
38623637 int rval = 0;
38633638 struct stat st;
38643639
3865 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
3866 nonempty (path));
3640 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3641 path ? (*path ? path : "EMPTY!") : "NULL!"));
38673642 if ((!path) || (!*path))
38683643 return 0;
38693644
38893664 int tmp_len;
38903665 char *concat_name;
38913666
3892 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
3893 nonempty (wrapper));
3667 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3668 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
38943669
38953670 if ((wrapper == NULL) || (*wrapper == '\0'))
38963671 return NULL;
39433718 {
39443719 /* empty path: current directory */
39453720 if (getcwd (tmp, LT_PATHMAX) == NULL)
3946 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
3947 nonnull (strerror (errno)));
3721 lt_fatal ("getcwd failed");
39483722 tmp_len = strlen (tmp);
39493723 concat_name =
39503724 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
39693743 }
39703744 /* Relative path | not found in path: prepend cwd */
39713745 if (getcwd (tmp, LT_PATHMAX) == NULL)
3972 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
3973 nonnull (strerror (errno)));
3746 lt_fatal ("getcwd failed");
39743747 tmp_len = strlen (tmp);
39753748 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
39763749 memcpy (concat_name, tmp, tmp_len);
39963769 int has_symlinks = 0;
39973770 while (strlen (tmp_pathspec) && !has_symlinks)
39983771 {
3999 lt_debugprintf (__FILE__, __LINE__,
4000 "checking path component for symlinks: %s\n",
4001 tmp_pathspec);
3772 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3773 tmp_pathspec));
40023774 if (lstat (tmp_pathspec, &s) == 0)
40033775 {
40043776 if (S_ISLNK (s.st_mode) != 0)
40203792 }
40213793 else
40223794 {
4023 lt_fatal (__FILE__, __LINE__,
4024 "error accessing file \"%s\": %s",
4025 tmp_pathspec, nonnull (strerror (errno)));
3795 char *errstr = strerror (errno);
3796 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
40263797 }
40273798 }
40283799 XFREE (tmp_pathspec);
40353806 tmp_pathspec = realpath (pathspec, buf);
40363807 if (tmp_pathspec == 0)
40373808 {
4038 lt_fatal (__FILE__, __LINE__,
4039 "could not follow symlinks for %s", pathspec);
3809 lt_fatal ("Could not follow symlinks for %s", pathspec);
40403810 }
40413811 return xstrdup (tmp_pathspec);
40423812 #endif
40623832 return str;
40633833 }
40643834
4065 void
4066 lt_debugprintf (const char *file, int line, const char *fmt, ...)
4067 {
4068 va_list args;
4069 if (lt_debug)
4070 {
4071 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
4072 va_start (args, fmt);
4073 (void) vfprintf (stderr, fmt, args);
4074 va_end (args);
4075 }
4076 }
4077
40783835 static void
4079 lt_error_core (int exit_status, const char *file,
4080 int line, const char *mode,
3836 lt_error_core (int exit_status, const char *mode,
40813837 const char *message, va_list ap)
40823838 {
4083 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
3839 fprintf (stderr, "%s: %s: ", program_name, mode);
40843840 vfprintf (stderr, message, ap);
40853841 fprintf (stderr, ".\n");
40863842
40893845 }
40903846
40913847 void
4092 lt_fatal (const char *file, int line, const char *message, ...)
3848 lt_fatal (const char *message, ...)
40933849 {
40943850 va_list ap;
40953851 va_start (ap, message);
4096 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
3852 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
40973853 va_end (ap);
4098 }
4099
4100 static const char *
4101 nonnull (const char *s)
4102 {
4103 return s ? s : "(null)";
4104 }
4105
4106 static const char *
4107 nonempty (const char *s)
4108 {
4109 return (s && !*s) ? "(empty)" : nonnull (s);
41103854 }
41113855
41123856 void
41133857 lt_setenv (const char *name, const char *value)
41143858 {
4115 lt_debugprintf (__FILE__, __LINE__,
4116 "(lt_setenv) setting '%s' to '%s'\n",
4117 nonnull (name), nonnull (value));
3859 LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
3860 (name ? name : "<NULL>"),
3861 (value ? value : "<NULL>")));
41183862 {
41193863 #ifdef HAVE_SETENV
41203864 /* always make a copy, for consistency with !HAVE_SETENV */
41593903 return new_value;
41603904 }
41613905
3906 int
3907 lt_split_name_value (const char *arg, char** name, char** value)
3908 {
3909 const char *p;
3910 int len;
3911 if (!arg || !*arg)
3912 return 1;
3913
3914 p = strchr (arg, (int)'=');
3915
3916 if (!p)
3917 return 1;
3918
3919 *value = xstrdup (++p);
3920
3921 len = strlen (arg) - strlen (*value);
3922 *name = XMALLOC (char, len);
3923 strncpy (*name, arg, len-1);
3924 (*name)[len - 1] = '\0';
3925
3926 return 0;
3927 }
3928
3929 void
3930 lt_opt_process_env_set (const char *arg)
3931 {
3932 char *name = NULL;
3933 char *value = NULL;
3934
3935 if (lt_split_name_value (arg, &name, &value) != 0)
3936 {
3937 XFREE (name);
3938 XFREE (value);
3939 lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
3940 }
3941
3942 lt_setenv (name, value);
3943 XFREE (name);
3944 XFREE (value);
3945 }
3946
3947 void
3948 lt_opt_process_env_prepend (const char *arg)
3949 {
3950 char *name = NULL;
3951 char *value = NULL;
3952 char *new_value = NULL;
3953
3954 if (lt_split_name_value (arg, &name, &value) != 0)
3955 {
3956 XFREE (name);
3957 XFREE (value);
3958 lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
3959 }
3960
3961 new_value = lt_extend_str (getenv (name), value, 0);
3962 lt_setenv (name, new_value);
3963 XFREE (new_value);
3964 XFREE (name);
3965 XFREE (value);
3966 }
3967
3968 void
3969 lt_opt_process_env_append (const char *arg)
3970 {
3971 char *name = NULL;
3972 char *value = NULL;
3973 char *new_value = NULL;
3974
3975 if (lt_split_name_value (arg, &name, &value) != 0)
3976 {
3977 XFREE (name);
3978 XFREE (value);
3979 lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
3980 }
3981
3982 new_value = lt_extend_str (getenv (name), value, 1);
3983 lt_setenv (name, new_value);
3984 XFREE (new_value);
3985 XFREE (name);
3986 XFREE (value);
3987 }
3988
41623989 void
41633990 lt_update_exe_path (const char *name, const char *value)
41643991 {
4165 lt_debugprintf (__FILE__, __LINE__,
4166 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
4167 nonnull (name), nonnull (value));
3992 LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
3993 (name ? name : "<NULL>"),
3994 (value ? value : "<NULL>")));
41683995
41693996 if (name && *name && value && *value)
41703997 {
41834010 void
41844011 lt_update_lib_path (const char *name, const char *value)
41854012 {
4186 lt_debugprintf (__FILE__, __LINE__,
4187 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4188 nonnull (name), nonnull (value));
4013 LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
4014 (name ? name : "<NULL>"),
4015 (value ? value : "<NULL>")));
41894016
41904017 if (name && *name && value && *value)
41914018 {
41954022 }
41964023 }
41974024
4198 EOF
4199 case $host_os in
4200 mingw*)
4201 cat <<"EOF"
4202
4203 /* Prepares an argument vector before calling spawn().
4204 Note that spawn() does not by itself call the command interpreter
4205 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
4206 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
4207 GetVersionEx(&v);
4208 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
4209 }) ? "cmd.exe" : "command.com").
4210 Instead it simply concatenates the arguments, separated by ' ', and calls
4211 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
4212 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
4213 special way:
4214 - Space and tab are interpreted as delimiters. They are not treated as
4215 delimiters if they are surrounded by double quotes: "...".
4216 - Unescaped double quotes are removed from the input. Their only effect is
4217 that within double quotes, space and tab are treated like normal
4218 characters.
4219 - Backslashes not followed by double quotes are not special.
4220 - But 2*n+1 backslashes followed by a double quote become
4221 n backslashes followed by a double quote (n >= 0):
4222 \" -> "
4223 \\\" -> \"
4224 \\\\\" -> \\"
4225 */
4226 #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"
4227 #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"
4228 char **
4229 prepare_spawn (char **argv)
4230 {
4231 size_t argc;
4232 char **new_argv;
4233 size_t i;
4234
4235 /* Count number of arguments. */
4236 for (argc = 0; argv[argc] != NULL; argc++)
4237 ;
4238
4239 /* Allocate new argument vector. */
4240 new_argv = XMALLOC (char *, argc + 1);
4241
4242 /* Put quoted arguments into the new argument vector. */
4243 for (i = 0; i < argc; i++)
4244 {
4245 const char *string = argv[i];
4246
4247 if (string[0] == '\0')
4248 new_argv[i] = xstrdup ("\"\"");
4249 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
4250 {
4251 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
4252 size_t length;
4253 unsigned int backslashes;
4254 const char *s;
4255 char *quoted_string;
4256 char *p;
4257
4258 length = 0;
4259 backslashes = 0;
4260 if (quote_around)
4261 length++;
4262 for (s = string; *s != '\0'; s++)
4263 {
4264 char c = *s;
4265 if (c == '"')
4266 length += backslashes + 1;
4267 length++;
4268 if (c == '\\')
4269 backslashes++;
4270 else
4271 backslashes = 0;
4272 }
4273 if (quote_around)
4274 length += backslashes + 1;
4275
4276 quoted_string = XMALLOC (char, length + 1);
4277
4278 p = quoted_string;
4279 backslashes = 0;
4280 if (quote_around)
4281 *p++ = '"';
4282 for (s = string; *s != '\0'; s++)
4283 {
4284 char c = *s;
4285 if (c == '"')
4286 {
4287 unsigned int j;
4288 for (j = backslashes + 1; j > 0; j--)
4289 *p++ = '\\';
4290 }
4291 *p++ = c;
4292 if (c == '\\')
4293 backslashes++;
4294 else
4295 backslashes = 0;
4296 }
4297 if (quote_around)
4298 {
4299 unsigned int j;
4300 for (j = backslashes; j > 0; j--)
4301 *p++ = '\\';
4302 *p++ = '"';
4303 }
4304 *p = '\0';
4305
4306 new_argv[i] = quoted_string;
4307 }
4308 else
4309 new_argv[i] = (char *) string;
4310 }
4311 new_argv[argc] = NULL;
4312
4313 return new_argv;
4314 }
4315 EOF
4316 ;;
4317 esac
4318
4319 cat <<"EOF"
4320 void lt_dump_script (FILE* f)
4321 {
4322 EOF
4323 func_emit_wrapper yes |
4324 $SED -e 's/\([\\"]\)/\\\1/g' \
4325 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
4326
4327 cat <<"EOF"
4328 }
4025
43294026 EOF
43304027 }
43314028 # end: func_emit_cwrapperexe_src
4332
4333 # func_win32_import_lib_p ARG
4334 # True if ARG is an import lib, as indicated by $file_magic_cmd
4335 func_win32_import_lib_p ()
4336 {
4337 $opt_debug
4338 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
4339 *import*) : ;;
4340 *) false ;;
4341 esac
4342 }
43434029
43444030 # func_mode_link arg...
43454031 func_mode_link ()
43854071 new_inherited_linker_flags=
43864072
43874073 avoid_version=no
4388 bindir=
43894074 dlfiles=
43904075 dlprefiles=
43914076 dlself=no
44784163 esac
44794164
44804165 case $prev in
4481 bindir)
4482 bindir="$arg"
4483 prev=
4484 continue
4485 ;;
44864166 dlfiles|dlprefiles)
44874167 if test "$preload" = no; then
44884168 # Add the symbol object into the linking commands.
47444424 continue
47454425 ;;
47464426
4747 -bindir)
4748 prev=bindir
4749 continue
4750 ;;
4751
47524427 -dlopen)
47534428 prev=dlfiles
47544429 continue
48274502 esac
48284503 case $host in
48294504 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
4830 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
4505 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
48314506 case :$dllsearchpath: in
48324507 *":$dir:"*) ;;
48334508 ::) dllsearchpath=$dir;;
48464521 -l*)
48474522 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
48484523 case $host in
4849 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
48504525 # These systems don't actually have a C or math library (as such)
48514526 continue
48524527 ;;
50324707 for flag in $args; do
50334708 IFS="$save_ifs"
50344709 func_quote_for_eval "$flag"
5035 arg="$arg $func_quote_for_eval_result"
4710 arg="$arg $wl$func_quote_for_eval_result"
50364711 compiler_flags="$compiler_flags $func_quote_for_eval_result"
50374712 done
50384713 IFS="$save_ifs"
50784753 arg="$func_quote_for_eval_result"
50794754 ;;
50804755
5081 # Flags to be passed through unchanged, with rationale:
5082 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
5083 # -r[0-9][0-9]* specify processor for the SGI compiler
5084 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
5085 # +DA*, +DD* enable 64-bit mode for the HP compiler
5086 # -q* compiler args for the IBM compiler
5087 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
5088 # -F/path path to uninstalled frameworks, gcc on darwin
5089 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
5090 # @file GCC response files
5091 # -tp=* Portland pgcc target processor selection
4756 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4757 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4758 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4759 # +DA*, +DD* enable 64-bit mode on the HP compiler
4760 # -q* pass through compiler args for the IBM compiler
4761 # -m*, -t[45]*, -txscale* pass through architecture-specific
4762 # compiler args for GCC
4763 # -F/path gives path to uninstalled frameworks, gcc on darwin
4764 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4765 # @file GCC response files
50924766 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5093 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
4767 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
50944768 func_quote_for_eval "$arg"
50954769 arg="$func_quote_for_eval_result"
50964770 func_append compile_command " $arg"
52504924
52514925 if test -n "$shlibpath_var"; then
52524926 # get the directories listed in $shlibpath_var
5253 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
4927 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
52544928 else
52554929 shlib_search_path=
52564930 fi
53585032 case $pass in
53595033 dlopen) libs="$dlfiles" ;;
53605034 dlpreopen) libs="$dlprefiles" ;;
5361 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
5035 link)
5036 libs="$deplibs %DEPLIBS%"
5037 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
5038 ;;
53625039 esac
53635040 fi
53645041 if test "$linkmode,$pass" = "lib,dlpreopen"; then
53735050 # Collect preopened libtool deplibs, except any this library
53745051 # has declared as weak libs
53755052 for deplib in $dependency_libs; do
5376 func_basename "$deplib"
5377 deplib_base=$func_basename_result
5053 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
53785054 case " $weak_libs " in
53795055 *" $deplib_base "*) ;;
53805056 *) deplibs="$deplibs $deplib" ;;
55535229 match_pattern*)
55545230 set dummy $deplibs_check_method; shift
55555231 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
5556 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
5232 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
55575233 | $EGREP "$match_pattern_regex" > /dev/null; then
55585234 valid_a_lib=yes
55595235 fi
55635239 ;;
55645240 esac
55655241 if test "$valid_a_lib" != yes; then
5566 echo
5242 $ECHO
55675243 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
5568 echo "*** I have the capability to make that library automatically link in when"
5569 echo "*** you link to this library. But I can only do this if you have a"
5570 echo "*** shared version of the library, which you do not appear to have"
5571 echo "*** because the file extensions .$libext of this argument makes me believe"
5572 echo "*** that it is just a static archive that I should not use here."
5244 $ECHO "*** I have the capability to make that library automatically link in when"
5245 $ECHO "*** you link to this library. But I can only do this if you have a"
5246 $ECHO "*** shared version of the library, which you do not appear to have"
5247 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
5248 $ECHO "*** that it is just a static archive that I should not use here."
55735249 else
5574 echo
5250 $ECHO
55755251 $ECHO "*** Warning: Linking the shared library $output against the"
55765252 $ECHO "*** static library $deplib is not portable!"
55775253 deplibs="$deplib $deplibs"
56445320
56455321 # Convert "-framework foo" to "foo.ltframework"
56465322 if test -n "$inherited_linker_flags"; then
5647 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
5323 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
56485324 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
56495325 case " $new_inherited_linker_flags " in
56505326 *" $tmp_inherited_linker_flag "*) ;;
56525328 esac
56535329 done
56545330 fi
5655 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
5331 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
56565332 if test "$linkmode,$pass" = "lib,link" ||
56575333 test "$linkmode,$pass" = "prog,scan" ||
56585334 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
56705346 # It is a libtool convenience library, so add in its objects.
56715347 convenience="$convenience $ladir/$objdir/$old_library"
56725348 old_convenience="$old_convenience $ladir/$objdir/$old_library"
5349 tmp_libs=
5350 for deplib in $dependency_libs; do
5351 deplibs="$deplib $deplibs"
5352 if $opt_duplicate_deps ; then
5353 case "$tmp_libs " in
5354 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5355 esac
5356 fi
5357 tmp_libs="$tmp_libs $deplib"
5358 done
56735359 elif test "$linkmode" != prog && test "$linkmode" != lib; then
56745360 func_fatal_error "\`$lib' is not a convenience library"
56755361 fi
5676 tmp_libs=
5677 for deplib in $dependency_libs; do
5678 deplibs="$deplib $deplibs"
5679 if $opt_duplicate_deps ; then
5680 case "$tmp_libs " in
5681 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
5682 esac
5683 fi
5684 tmp_libs="$tmp_libs $deplib"
5685 done
56865362 continue
56875363 fi # $pass = conv
56885364
59065582 fi
59075583 done
59085584 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5909 echo
5585 $ECHO
59105586 if test "$linkmode" = prog; then
59115587 $ECHO "*** Warning: Linking the executable $output against the loadable module"
59125588 else
60095685 if test "X$dlopenmodule" != "X$lib"; then
60105686 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
60115687 if test -z "$old_library" ; then
6012 echo
6013 echo "*** And there doesn't seem to be a static archive available"
6014 echo "*** The link will probably fail, sorry"
5688 $ECHO
5689 $ECHO "*** And there doesn't seem to be a static archive available"
5690 $ECHO "*** The link will probably fail, sorry"
60155691 else
60165692 add="$dir/$old_library"
60175693 fi
61515827
61525828 # Just print a warning and add the library to dependency_libs so
61535829 # that the program can be linked against the static library.
6154 echo
5830 $ECHO
61555831 $ECHO "*** Warning: This system can not link to static lib archive $lib."
6156 echo "*** I have the capability to make that library automatically link in when"
6157 echo "*** you link to this library. But I can only do this if you have a"
6158 echo "*** shared version of the library, which you do not appear to have."
5832 $ECHO "*** I have the capability to make that library automatically link in when"
5833 $ECHO "*** you link to this library. But I can only do this if you have a"
5834 $ECHO "*** shared version of the library, which you do not appear to have."
61595835 if test "$module" = yes; then
6160 echo "*** But as you try to build a module library, libtool will still create "
6161 echo "*** a static module, that should work as long as the dlopening application"
6162 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
5836 $ECHO "*** But as you try to build a module library, libtool will still create "
5837 $ECHO "*** a static module, that should work as long as the dlopening application"
5838 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
61635839 if test -z "$global_symbol_pipe"; then
6164 echo
6165 echo "*** However, this would only work if libtool was able to extract symbol"
6166 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
6167 echo "*** not find such a program. So, this module is probably useless."
6168 echo "*** \`nm' from GNU binutils and a full rebuild may help."
5840 $ECHO
5841 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5842 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5843 $ECHO "*** not find such a program. So, this module is probably useless."
5844 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
61695845 fi
61705846 if test "$build_old_libs" = no; then
61715847 build_libtool_libs=module
62855961 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
62865962 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
62875963 else
6288 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
5964 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
62895965 fi
62905966 fi
62915967 dependency_libs="$newdependency_libs"
64536129 if test "$deplibs_check_method" != pass_all; then
64546130 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
64556131 else
6456 echo
6132 $ECHO
64576133 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
64586134 $ECHO "*** objects $objs is not portable!"
64596135 libobjs="$libobjs $objs"
65216197 age="$number_minor"
65226198 revision="$number_revision"
65236199 ;;
6524 freebsd-aout|freebsd-elf|qnx|sunos)
6200 freebsd-aout|freebsd-elf|sunos)
65256201 current="$number_major"
65266202 revision="$number_minor"
65276203 age="0"
65326208 age="$number_minor"
65336209 revision="$number_minor"
65346210 lt_irix_increment=no
6211 ;;
6212 *)
6213 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
65356214 ;;
65366215 esac
65376216 ;;
67556434 oldlibs="$oldlibs $output_objdir/$libname.$libext"
67566435
67576436 # Transform .lo files to .o files.
6758 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
6437 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
67596438 fi
67606439
67616440 # Eliminate all temporary directories.
67626441 #for path in $notinst_path; do
6763 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
6764 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
6765 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
6442 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
6443 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
6444 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
67666445 #done
67676446
67686447 if test -n "$xrpath"; then
68036482 if test "$build_libtool_libs" = yes; then
68046483 if test -n "$rpath"; then
68056484 case $host in
6806 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
6485 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
68076486 # these systems don't actually have a c library (as such)!
68086487 ;;
68096488 *-*-rhapsody* | *-*-darwin1.[012])
68886567 newdeplibs="$newdeplibs $i"
68896568 else
68906569 droppeddeps=yes
6891 echo
6570 $ECHO
68926571 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6893 echo "*** I have the capability to make that library automatically link in when"
6894 echo "*** you link to this library. But I can only do this if you have a"
6895 echo "*** shared version of the library, which I believe you do not have"
6896 echo "*** because a test_compile did reveal that the linker did not use it for"
6897 echo "*** its dynamic dependency list that programs get resolved with at runtime."
6572 $ECHO "*** I have the capability to make that library automatically link in when"
6573 $ECHO "*** you link to this library. But I can only do this if you have a"
6574 $ECHO "*** shared version of the library, which I believe you do not have"
6575 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6576 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
68986577 fi
68996578 fi
69006579 ;;
69316610 newdeplibs="$newdeplibs $i"
69326611 else
69336612 droppeddeps=yes
6934 echo
6613 $ECHO
69356614 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6936 echo "*** I have the capability to make that library automatically link in when"
6937 echo "*** you link to this library. But I can only do this if you have a"
6938 echo "*** shared version of the library, which you do not appear to have"
6939 echo "*** because a test_compile did reveal that the linker did not use this one"
6940 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
6615 $ECHO "*** I have the capability to make that library automatically link in when"
6616 $ECHO "*** you link to this library. But I can only do this if you have a"
6617 $ECHO "*** shared version of the library, which you do not appear to have"
6618 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6619 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
69416620 fi
69426621 fi
69436622 else
69446623 droppeddeps=yes
6945 echo
6624 $ECHO
69466625 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6947 echo "*** make it link in! You will probably need to install it or some"
6948 echo "*** library that it depends on before this library will be fully"
6949 echo "*** functional. Installing it before continuing would be even better."
6626 $ECHO "*** make it link in! You will probably need to install it or some"
6627 $ECHO "*** library that it depends on before this library will be fully"
6628 $ECHO "*** functional. Installing it before continuing would be even better."
69506629 fi
69516630 ;;
69526631 *)
69926671 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
69936672 case $potliblink in
69946673 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
6995 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
6674 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
69966675 esac
69976676 done
69986677 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
70076686 fi
70086687 if test -n "$a_deplib" ; then
70096688 droppeddeps=yes
7010 echo
6689 $ECHO
70116690 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7012 echo "*** I have the capability to make that library automatically link in when"
7013 echo "*** you link to this library. But I can only do this if you have a"
7014 echo "*** shared version of the library, which you do not appear to have"
7015 echo "*** because I did check the linker path looking for a file starting"
6691 $ECHO "*** I have the capability to make that library automatically link in when"
6692 $ECHO "*** you link to this library. But I can only do this if you have a"
6693 $ECHO "*** shared version of the library, which you do not appear to have"
6694 $ECHO "*** because I did check the linker path looking for a file starting"
70166695 if test -z "$potlib" ; then
70176696 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
70186697 else
70506729 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
70516730 for potent_lib in $potential_libs; do
70526731 potlib="$potent_lib" # see symlink-check above in file_magic test
7053 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
6732 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
70546733 $EGREP "$match_pattern_regex" > /dev/null; then
70556734 newdeplibs="$newdeplibs $a_deplib"
70566735 a_deplib=""
70616740 fi
70626741 if test -n "$a_deplib" ; then
70636742 droppeddeps=yes
7064 echo
6743 $ECHO
70656744 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
7066 echo "*** I have the capability to make that library automatically link in when"
7067 echo "*** you link to this library. But I can only do this if you have a"
7068 echo "*** shared version of the library, which you do not appear to have"
7069 echo "*** because I did check the linker path looking for a file starting"
6745 $ECHO "*** I have the capability to make that library automatically link in when"
6746 $ECHO "*** you link to this library. But I can only do this if you have a"
6747 $ECHO "*** shared version of the library, which you do not appear to have"
6748 $ECHO "*** because I did check the linker path looking for a file starting"
70706749 if test -z "$potlib" ; then
70716750 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
70726751 else
70846763 ;;
70856764 none | unknown | *)
70866765 newdeplibs=""
7087 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
6766 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6767 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
70886768 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
70896769 for i in $predeps $postdeps ; do
70906770 # can't use Xsed below, because $i might contain '/'
7091 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
6771 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
70926772 done
70936773 fi
7094 case $tmp_deplibs in
7095 *[!\ \ ]*)
7096 echo
6774 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6775 $GREP . >/dev/null; then
6776 $ECHO
70976777 if test "X$deplibs_check_method" = "Xnone"; then
7098 echo "*** Warning: inter-library dependencies are not supported in this platform."
6778 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
70996779 else
7100 echo "*** Warning: inter-library dependencies are not known to be supported."
6780 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
71016781 fi
7102 echo "*** All declared inter-library dependencies are being dropped."
6782 $ECHO "*** All declared inter-library dependencies are being dropped."
71036783 droppeddeps=yes
7104 ;;
7105 esac
6784 fi
71066785 ;;
71076786 esac
71086787 versuffix=$versuffix_save
71146793 case $host in
71156794 *-*-rhapsody* | *-*-darwin1.[012])
71166795 # On Rhapsody replace the C library with the System framework
7117 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
6796 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
71186797 ;;
71196798 esac
71206799
71216800 if test "$droppeddeps" = yes; then
71226801 if test "$module" = yes; then
7123 echo
7124 echo "*** Warning: libtool could not satisfy all declared inter-library"
6802 $ECHO
6803 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
71256804 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
7126 echo "*** a static module, that should work as long as the dlopening"
7127 echo "*** application is linked with the -dlopen flag."
6805 $ECHO "*** a static module, that should work as long as the dlopening"
6806 $ECHO "*** application is linked with the -dlopen flag."
71286807 if test -z "$global_symbol_pipe"; then
7129 echo
7130 echo "*** However, this would only work if libtool was able to extract symbol"
7131 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
7132 echo "*** not find such a program. So, this module is probably useless."
7133 echo "*** \`nm' from GNU binutils and a full rebuild may help."
6808 $ECHO
6809 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6810 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6811 $ECHO "*** not find such a program. So, this module is probably useless."
6812 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
71346813 fi
71356814 if test "$build_old_libs" = no; then
71366815 oldlibs="$output_objdir/$libname.$libext"
71406819 build_libtool_libs=no
71416820 fi
71426821 else
7143 echo "*** The inter-library dependencies that have been dropped here will be"
7144 echo "*** automatically added whenever a program is linked with this library"
7145 echo "*** or is declared to -dlopen it."
6822 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6823 $ECHO "*** automatically added whenever a program is linked with this library"
6824 $ECHO "*** or is declared to -dlopen it."
71466825
71476826 if test "$allow_undefined" = no; then
7148 echo
7149 echo "*** Since this library must not contain undefined symbols,"
7150 echo "*** because either the platform does not support them or"
7151 echo "*** it was explicitly requested with -no-undefined,"
7152 echo "*** libtool will only create a static version of it."
6827 $ECHO
6828 $ECHO "*** Since this library must not contain undefined symbols,"
6829 $ECHO "*** because either the platform does not support them or"
6830 $ECHO "*** it was explicitly requested with -no-undefined,"
6831 $ECHO "*** libtool will only create a static version of it."
71536832 if test "$build_old_libs" = no; then
71546833 oldlibs="$output_objdir/$libname.$libext"
71556834 build_libtool_libs=module
71666845 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
71676846 case $host in
71686847 *-*-darwin*)
7169 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7170 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7171 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6848 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6849 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6850 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
71726851 ;;
71736852 esac
71746853
72906969 done
72916970
72926971 # Use standard objects if they are pic
7293 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
6972 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
72946973 test "X$libobjs" = "X " && libobjs=
72956974
72966975 delfiles=
73567035 if test -n "$export_symbols" && test -n "$include_expsyms"; then
73577036 tmp_export_symbols="$export_symbols"
73587037 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7359 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
7038 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
73607039 fi
73617040
73627041 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
74577136 save_libobjs=$libobjs
74587137 fi
74597138 save_output=$output
7460 func_basename "$output"
7461 output_la=$func_basename_result
7139 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
74627140
74637141 # Clear the reloadable object creation command queue and
74647142 # initialize k to one.
74717149 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
74727150 output=${output_objdir}/${output_la}.lnkscript
74737151 func_verbose "creating GNU ld script: $output"
7474 echo 'INPUT (' > $output
7152 $ECHO 'INPUT (' > $output
74757153 for obj in $save_libobjs
74767154 do
74777155 $ECHO "$obj" >> $output
74787156 done
7479 echo ')' >> $output
7157 $ECHO ')' >> $output
74807158 delfiles="$delfiles $output"
74817159 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
74827160 output=${output_objdir}/${output_la}.lnk
75187196 # command to the queue.
75197197 if test "$k" -eq 1 ; then
75207198 # The first file doesn't have a previous command to add.
7521 reload_objs=$objlist
7522 eval concat_cmds=\"$reload_cmds\"
7199 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
75237200 else
75247201 # All subsequent reloadable object files will link in
75257202 # the last one created.
7526 reload_objs="$objlist $last_robj"
7527 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
7203 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
75287204 fi
75297205 last_robj=$output_objdir/$output_la-${k}.$objext
75307206 func_arith $k + 1
75317207 k=$func_arith_result
75327208 output=$output_objdir/$output_la-${k}.$objext
7533 objlist=" $obj"
7209 objlist=$obj
75347210 func_len " $last_robj"
75357211 func_arith $len0 + $func_len_result
75367212 len=$func_arith_result
75407216 # reloadable object file. All subsequent reloadable object
75417217 # files will link in the last one created.
75427218 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
7543 reload_objs="$objlist $last_robj"
7544 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
7219 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
75457220 if test -n "$last_robj"; then
75467221 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
75477222 fi
76007275 if test -n "$export_symbols" && test -n "$include_expsyms"; then
76017276 tmp_export_symbols="$export_symbols"
76027277 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
7603 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
7278 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
76047279 fi
76057280
76067281 if test -n "$orig_export_symbols"; then
77657440 if test -n "$convenience"; then
77667441 if test -n "$whole_archive_flag_spec"; then
77677442 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
7768 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
7443 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
77697444 else
77707445 gentop="$output_objdir/${obj}x"
77717446 generated="$generated $gentop"
77767451 fi
77777452
77787453 # Create the old-style object.
7779 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
7454 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
77807455
77817456 output="$obj"
77827457 func_execute_cmds "$reload_cmds" 'exit $?'
78367511 case $host in
78377512 *-*-rhapsody* | *-*-darwin1.[012])
78387513 # On Rhapsody replace the C library is the System framework
7839 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
7840 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
7514 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
7515 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
78417516 ;;
78427517 esac
78437518
78547529 esac
78557530 fi
78567531 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7857 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7858 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7532 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7533 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
78597534 ;;
78607535 esac
78617536
79927667
79937668 if test -n "$libobjs" && test "$build_old_libs" = yes; then
79947669 # Transform all the library objects into standard objects.
7995 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
7996 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
7670 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7671 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
79977672 fi
79987673
79997674 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
80057680
80067681 wrappers_required=yes
80077682 case $host in
8008 *cegcc* | *mingw32ce*)
8009 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8010 wrappers_required=no
8011 ;;
80127683 *cygwin* | *mingw* )
80137684 if test "$build_libtool_libs" != yes; then
80147685 wrappers_required=no
80157686 fi
7687 ;;
7688 *cegcc)
7689 # Disable wrappers for cegcc, we are cross compiling anyway.
7690 wrappers_required=no
80167691 ;;
80177692 *)
80187693 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
80227697 esac
80237698 if test "$wrappers_required" = no; then
80247699 # Replace the output file specification.
8025 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
7700 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
80267701 link_command="$compile_command$compile_rpath"
80277702
80287703 # We have no uninstalled library dependencies, so finalize right now.
80697744 # We don't need to create a wrapper script.
80707745 link_command="$compile_var$compile_command$compile_rpath"
80717746 # Replace the output file specification.
8072 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
7747 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
80737748 # Delete the old output file.
80747749 $opt_dry_run || $RM $output
80757750 # Link the executable and exit
80887763 if test "$fast_install" != no; then
80897764 link_command="$finalize_var$compile_command$finalize_rpath"
80907765 if test "$fast_install" = yes; then
8091 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
7766 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
80927767 else
80937768 # fast_install is set to needless
80947769 relink_command=
81007775 fi
81017776
81027777 # Replace the output file specification.
8103 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7778 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
81047779
81057780 # Delete the old output files.
81067781 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
81247799 fi
81257800 done
81267801 relink_command="(cd `pwd`; $relink_command)"
8127 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
7802 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
7803 fi
7804
7805 # Quote $ECHO for shipping.
7806 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
7807 case $progpath in
7808 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
7809 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
7810 esac
7811 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
7812 else
7813 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
81287814 fi
81297815
81307816 # Only actually do things if not in dry run mode.
82457931 done | sort | sort -uc >/dev/null 2>&1); then
82467932 :
82477933 else
8248 echo "copying selected object files to avoid basename conflicts..."
7934 $ECHO "copying selected object files to avoid basename conflicts..."
82497935 gentop="$output_objdir/${outputname}x"
82507936 generated="$generated $gentop"
82517937 func_mkdir_p "$gentop"
83568042 done
83578043 # Quote the link command for shipping.
83588044 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
8359 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
8045 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
83608046 if test "$hardcode_automatic" = yes ; then
83618047 relink_command=
83628048 fi
84418127 fi
84428128 $RM $output
84438129 # place dlname in correct position for cygwin
8444 # In fact, it would be nice if we could use this code for all target
8445 # systems that can't hard-code library paths into their executables
8446 # and that have no shared library path variable independent of PATH,
8447 # but it turns out we can't easily determine that from inspecting
8448 # libtool variables, so we have to hard-code the OSs to which it
8449 # applies here; at the moment, that means platforms that use the PE
8450 # object format with DLL files. See the long comment at the top of
8451 # tests/bindir.at for full details.
84528130 tdlname=$dlname
84538131 case $host,$output,$installed,$module,$dlname in
8454 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
8455 # If a -bindir argument was supplied, place the dll there.
8456 if test "x$bindir" != x ;
8457 then
8458 func_relative_path "$install_libdir" "$bindir"
8459 tdlname=$func_relative_path_result$dlname
8460 else
8461 # Otherwise fall back on heuristic.
8462 tdlname=../bin/$dlname
8463 fi
8464 ;;
8132 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
84658133 esac
84668134 $ECHO > $output "\
84678135 # $outputname - a libtool library file
0 #! /bin/sh
1 # mkinstalldirs --- make directory hierarchy
2 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
3 # Created: 1993-05-16
4 # Public domain
5
6 errstatus=0
7 dirmode=""
8
9 usage="\
10 Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
11
12 # process command line arguments
13 while test $# -gt 0 ; do
14 case $1 in
15 -h | --help | --h*) # -h for help
16 echo "$usage" 1>&2
17 exit 0
18 ;;
19 -m) # -m PERM arg
20 shift
21 test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
22 dirmode=$1
23 shift
24 ;;
25 --) # stop option processing
26 shift
27 break
28 ;;
29 -*) # unknown option
30 echo "$usage" 1>&2
31 exit 1
32 ;;
33 *) # first non-opt arg
34 break
35 ;;
36 esac
37 done
38
39 for file
40 do
41 if test -d "$file"; then
42 shift
43 else
44 break
45 fi
46 done
47
48 case $# in
49 0) exit 0 ;;
50 esac
51
52 case $dirmode in
53 '')
54 if mkdir -p -- . 2>/dev/null; then
55 echo "mkdir -p -- $*"
56 exec mkdir -p -- "$@"
57 fi
58 ;;
59 *)
60 if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
61 echo "mkdir -m $dirmode -p -- $*"
62 exec mkdir -m "$dirmode" -p -- "$@"
63 fi
64 ;;
65 esac
66
67 for file
68 do
69 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
70 shift
71
72 pathcomp=
73 for d
74 do
75 pathcomp="$pathcomp$d"
76 case $pathcomp in
77 -*) pathcomp=./$pathcomp ;;
78 esac
79
80 if test ! -d "$pathcomp"; then
81 echo "mkdir $pathcomp"
82
83 mkdir "$pathcomp" || lasterr=$?
84
85 if test ! -d "$pathcomp"; then
86 errstatus=$lasterr
87 else
88 if test ! -z "$dirmode"; then
89 echo "chmod $dirmode $pathcomp"
90 lasterr=""
91 chmod "$dirmode" "$pathcomp" || lasterr=$?
92
93 if test ! -z "$lasterr"; then
94 errstatus=$lasterr
95 fi
96 fi
97 fi
98 fi
99
100 pathcomp="$pathcomp/"
101 done
102 done
103
104 exit $errstatus
105
106 # Local Variables:
107 # mode: shell-script
108 # sh-indentation: 2
109 # End:
110 # mkinstalldirs ends here
44
55 dlna_profile_parser_SOURCES = dlna-profile-parser.c
66 dlna_encoding_SOURCES = dlna-encoding.c
7
8 TESTS_ENVIRONMENT = MEDIA_DIR="$(srcdir)/media" FILE_LIST="$(srcdir)/media/media-list.txt" ${SHELL}
9 TESTS = test-discoverer.sh
3535 host_triplet = @host@
3636 noinst_PROGRAMS = dlna-profile-parser$(EXEEXT) dlna-encoding$(EXEEXT)
3737 subdir = tests
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
39 $(srcdir)/test-discoverer.sh.in
3940 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4041 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4142 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4243 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4445 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 CONFIG_CLEAN_FILES = test-discoverer.sh
4647 CONFIG_CLEAN_VPATH_FILES =
4748 PROGRAMS = $(noinst_PROGRAMS)
4849 am_dlna_encoding_OBJECTS = dlna-encoding.$(OBJEXT)
8485 DIST_SOURCES = $(dlna_encoding_SOURCES) $(dlna_profile_parser_SOURCES)
8586 ETAGS = etags
8687 CTAGS = ctags
88 am__tty_colors = \
89 red=; grn=; lgn=; blu=; std=
8790 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
8891 ACLOCAL = @ACLOCAL@
8992 AMTAR = @AMTAR@
158161 PACKAGE_VERSION = @PACKAGE_VERSION@
159162 PATH_SEPARATOR = @PATH_SEPARATOR@
160163 PKG_CONFIG = @PKG_CONFIG@
161 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
162 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
163164 RANLIB = @RANLIB@
164165 SED = @SED@
165166 SET_MAKE = @SET_MAKE@
202203 libexecdir = @libexecdir@
203204 localedir = @localedir@
204205 localstatedir = @localstatedir@
206 lt_ECHO = @lt_ECHO@
205207 mandir = @mandir@
206208 mkdir_p = @mkdir_p@
207209 oldincludedir = @oldincludedir@
221223 AM_LDFLAGS = $(top_builddir)/libgupnp-dlna/libgupnp-dlna-1.0.la $(top_builddir)/gst-convenience/gst-libs/gst/profile/.libs/libgstprofile-gupnp-dlna-@GST_MAJORMINOR@.la
222224 dlna_profile_parser_SOURCES = dlna-profile-parser.c
223225 dlna_encoding_SOURCES = dlna-encoding.c
226 TESTS_ENVIRONMENT = MEDIA_DIR="$(srcdir)/media" FILE_LIST="$(srcdir)/media/media-list.txt" ${SHELL}
227 TESTS = test-discoverer.sh
224228 all: all-am
225229
226230 .SUFFIXES:
255259 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
256260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
257261 $(am__aclocal_m4_deps):
262 test-discoverer.sh: $(top_builddir)/config.status $(srcdir)/test-discoverer.sh.in
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
258264
259265 clean-noinstPROGRAMS:
260266 @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
362368 distclean-tags:
363369 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
364370
371 check-TESTS: $(TESTS)
372 @failed=0; all=0; xfail=0; xpass=0; skip=0; \
373 srcdir=$(srcdir); export srcdir; \
374 list=' $(TESTS) '; \
375 $(am__tty_colors); \
376 if test -n "$$list"; then \
377 for tst in $$list; do \
378 if test -f ./$$tst; then dir=./; \
379 elif test -f $$tst; then dir=; \
380 else dir="$(srcdir)/"; fi; \
381 if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
382 all=`expr $$all + 1`; \
383 case " $(XFAIL_TESTS) " in \
384 *[\ \ ]$$tst[\ \ ]*) \
385 xpass=`expr $$xpass + 1`; \
386 failed=`expr $$failed + 1`; \
387 col=$$red; res=XPASS; \
388 ;; \
389 *) \
390 col=$$grn; res=PASS; \
391 ;; \
392 esac; \
393 elif test $$? -ne 77; then \
394 all=`expr $$all + 1`; \
395 case " $(XFAIL_TESTS) " in \
396 *[\ \ ]$$tst[\ \ ]*) \
397 xfail=`expr $$xfail + 1`; \
398 col=$$lgn; res=XFAIL; \
399 ;; \
400 *) \
401 failed=`expr $$failed + 1`; \
402 col=$$red; res=FAIL; \
403 ;; \
404 esac; \
405 else \
406 skip=`expr $$skip + 1`; \
407 col=$$blu; res=SKIP; \
408 fi; \
409 echo "$${col}$$res$${std}: $$tst"; \
410 done; \
411 if test "$$all" -eq 1; then \
412 tests="test"; \
413 All=""; \
414 else \
415 tests="tests"; \
416 All="All "; \
417 fi; \
418 if test "$$failed" -eq 0; then \
419 if test "$$xfail" -eq 0; then \
420 banner="$$All$$all $$tests passed"; \
421 else \
422 if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
423 banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
424 fi; \
425 else \
426 if test "$$xpass" -eq 0; then \
427 banner="$$failed of $$all $$tests failed"; \
428 else \
429 if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
430 banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
431 fi; \
432 fi; \
433 dashes="$$banner"; \
434 skipped=""; \
435 if test "$$skip" -ne 0; then \
436 if test "$$skip" -eq 1; then \
437 skipped="($$skip test was not run)"; \
438 else \
439 skipped="($$skip tests were not run)"; \
440 fi; \
441 test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
442 dashes="$$skipped"; \
443 fi; \
444 report=""; \
445 if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
446 report="Please report to $(PACKAGE_BUGREPORT)"; \
447 test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
448 dashes="$$report"; \
449 fi; \
450 dashes=`echo "$$dashes" | sed s/./=/g`; \
451 if test "$$failed" -eq 0; then \
452 echo "$$grn$$dashes"; \
453 else \
454 echo "$$red$$dashes"; \
455 fi; \
456 echo "$$banner"; \
457 test -z "$$skipped" || echo "$$skipped"; \
458 test -z "$$report" || echo "$$report"; \
459 echo "$$dashes$$std"; \
460 test "$$failed" -eq 0; \
461 else :; fi
462
365463 distdir: $(DISTFILES)
366464 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
367465 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
393491 fi; \
394492 done
395493 check-am: all-am
494 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
396495 check: check-am
397496 all-am: Makefile $(PROGRAMS)
398497 installdirs:
492591
493592 uninstall-am:
494593
495 .MAKE: install-am install-strip
496
497 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-noinstPROGRAMS ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-ps install-ps-am \
505 install-strip installcheck installcheck-am installdirs \
506 maintainer-clean maintainer-clean-generic mostlyclean \
507 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
508 pdf pdf-am ps ps-am tags uninstall uninstall-am
594 .MAKE: check-am install-am install-strip
595
596 .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
597 clean-generic clean-libtool clean-noinstPROGRAMS ctags \
598 distclean distclean-compile distclean-generic \
599 distclean-libtool distclean-tags distdir dvi dvi-am html \
600 html-am info info-am install install-am install-data \
601 install-data-am install-dvi install-dvi-am install-exec \
602 install-exec-am install-html install-html-am install-info \
603 install-info-am install-man install-pdf install-pdf-am \
604 install-ps install-ps-am install-strip installcheck \
605 installcheck-am installdirs maintainer-clean \
606 maintainer-clean-generic mostlyclean mostlyclean-compile \
607 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
608 tags uninstall uninstall-am
509609
510610
511611 # Tell versions [3.59,3.63) of GNU make to not export all variables.
2525 #include <gst/gst.h>
2626 #include <gst/profile/gstprofile.h>
2727 #include <gst/pbutils/pbutils.h>
28 #include <libgupnp-dlna/gupnp-dlna-profile.h>
28 #include <libgupnp-dlna/gupnp-dlna-discoverer.h>
2929
3030 static gboolean silent = FALSE;
3131
9090 }
9191
9292 static void
93 transcode_file (gchar * uri, gchar * outputuri, GstEncodingProfile * prof)
93 transcode_file (gchar * uri, gchar * outputuri, const GstEncodingProfile * prof)
9494 {
9595 GstElement *pipeline;
9696 GstElement *src;
118118 /* Figure out the streams that can be passed as-is to encodebin */
119119 g_object_get (src, "caps", &rescaps, NULL);
120120 rescaps = gst_caps_copy (rescaps);
121 profilecaps = gst_encoding_profile_get_codec_caps (prof);
121 profilecaps = gst_encoding_profile_get_codec_caps ((GstEncodingProfile *) prof);
122122 gst_caps_append (rescaps, profilecaps);
123123
124124 /* Set properties */
193193 {NULL}
194194 };
195195 GOptionContext *ctx;
196 GUPnPDLNADiscoverer *discoverer;
196197 GUPnPDLNAProfile *profile;
197198 gchar *inputuri;
198199
216217 exit (-1);
217218 }
218219
220 gst_init(&argc, &argv);
221
219222 /* Create the profile */
220 profile = gupnp_dlna_profile_from_name (format);
223 discoverer = gupnp_dlna_discoverer_new ((GstClockTime) GST_SECOND,
224 FALSE,
225 FALSE);
226 profile = gupnp_dlna_discoverer_get_profile (discoverer, format);
221227 if (G_UNLIKELY (profile == NULL)) {
222228 g_print ("Encoding arguments are not valid !\n");
223229 return 1;
228234 outputuri = ensure_uri (outputuri);
229235
230236 /* Trancode file */
231 transcode_file (inputuri, outputuri, profile->enc_profile);
237 transcode_file (inputuri,
238 outputuri,
239 gupnp_dlna_profile_get_encoding_profile (profile));
232240
233241 /* cleanup */
234242 g_object_unref (profile);
243 g_object_unref (discoverer);
235244
236245 return 0;
237246 }
4444
4545 static void print_profile (GUPnPDLNAProfile *profile, gpointer unused)
4646 {
47 GList *tmp = profile->enc_profile->encodingprofiles;
48 gchar *caps_str = gst_caps_to_string (profile->enc_profile->format);
47 const GstEncodingProfile *enc_profile;
48 GList *tmp;
49 gchar *caps_str;
50
51 enc_profile = gupnp_dlna_profile_get_encoding_profile (profile);
52 tmp = enc_profile->encodingprofiles;
53 caps_str = gst_caps_to_string (enc_profile->format);
4954
5055 g_print ("Loaded DLNA Profile: %s, %s - format %s\n",
51 profile->name,
52 profile->mime,
56 gupnp_dlna_profile_get_name (profile),
57 gupnp_dlna_profile_get_mime (profile),
5358 caps_str);
5459
5560 while (tmp) {
0 #!/bin/bash
1
2 #
3 # Tests GUPnPDLNADiscoverer by running tools/gupnp-dlna-info on the given list
4 # of media and comparing that against expected DLNA profile name and MIME type.
5 #
6 # Usage:
7 # test-discoverer.sh <file_list> <media_dir> <extra_args ...>
8 #
9 # <file_list> is a CSV file in the format:
10 # path_name,profile_name,mime_type
11 #
12 # Path names in the list are relative to <media_dir>
13 #
14 # <extra_args> are passed on to gupnp-dlna-info
15 #
16 # The first two parameters can be passed as the FILE_LIST and MEDIA_DIR
17 # environment variable as well (but you must either pass both as env vars or
18 # both on the command line).
19 #
20
21 GUPNP_DLNA_INFO=@abs_top_builddir@/tools/gupnp-dlna-info
22
23 # See if params are available in the environment - if yes, carry on, else read
24 # them from the command line
25 if [[ "x${FILE_LIST}" = "x" || "x${MEDIA_DIR}" = "x" ]]; then
26 if [[ ${#} -lt 2 ]]; then
27 echo "Usage:"
28 echo " ${0} <file_list> <media_dir> <extra_args ...>"
29 exit -1
30 fi
31
32 FILE_LIST=${1}
33 shift
34 MEDIA_DIR=${1}
35 shift
36 fi
37
38 ret=0
39
40 while read line; do
41 if [[ "${line:0:1}" = "#" ]]; then
42 # commented line
43 continue
44 fi
45
46 # Parse the input line
47 path=$(echo ${line} | cut -f 1 -d ',')
48 profile=$(echo ${line} | cut -f 2 -d ',')
49 mime=$(echo ${line} | cut -f 3 -d ',')
50
51 # Run discoverer to get profile name/mime
52 out=$(${GUPNP_DLNA_INFO} -a ${@} ${MEDIA_DIR}/${path})
53 out_profile=$(echo ${out} | grep 'Name' | tr -s ' ' | awk '{ print $5 }')
54 out_mime=$(echo ${out} | grep 'Name' | tr -s ' ' | awk '{ print $8 }')
55
56 # Now compare the two
57 echo -n " Testing ${path} ... "
58 if [[ "x${profile}" != "x${out_profile}" || "x${mime}" != "x${out_mime}" ]]; then
59 ret=1
60 echo "FAIL: ${path},${out_profile},${out_mime}"
61 else
62 echo "PASS"
63 fi
64 done <${FILE_LIST}
65
66 exit ${ret}
0 bin_PROGRAMS = gupnp-dlna-info
0 bin_PROGRAMS = gupnp-dlna-info gupnp-dlna-ls-profiles
11
22 AM_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/gst-convenience/gst-libs $(GST_CFLAGS)
33 AM_LDFLAGS = $(top_builddir)/libgupnp-dlna/libgupnp-dlna-1.0.la $(top_builddir)/gst-convenience/gst-libs/gst/profile/.libs/libgstprofile-gupnp-dlna-@GST_MAJORMINOR@.la $(GST_PBU_LIBS)
3333 POST_UNINSTALL = :
3434 build_triplet = @build@
3535 host_triplet = @host@
36 bin_PROGRAMS = gupnp-dlna-info$(EXEEXT)
36 bin_PROGRAMS = gupnp-dlna-info$(EXEEXT) \
37 gupnp-dlna-ls-profiles$(EXEEXT)
3738 subdir = tools
3839 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
3940 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4041 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
4142 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4243 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
4445 CONFIG_HEADER = $(top_builddir)/config.h
4546 CONFIG_CLEAN_FILES =
4647 CONFIG_CLEAN_VPATH_FILES =
5253 AM_V_lt = $(am__v_lt_$(V))
5354 am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
5455 am__v_lt_0 = --silent
56 gupnp_dlna_ls_profiles_SOURCES = gupnp-dlna-ls-profiles.c
57 gupnp_dlna_ls_profiles_OBJECTS = gupnp-dlna-ls-profiles.$(OBJEXT)
58 gupnp_dlna_ls_profiles_LDADD = $(LDADD)
5559 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
5660 depcomp = $(SHELL) $(top_srcdir)/depcomp
5761 am__depfiles_maybe = depfiles
7882 AM_V_GEN = $(am__v_GEN_$(V))
7983 am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
8084 am__v_GEN_0 = @echo " GEN " $@;
81 SOURCES = gupnp-dlna-info.c
82 DIST_SOURCES = gupnp-dlna-info.c
85 SOURCES = gupnp-dlna-info.c gupnp-dlna-ls-profiles.c
86 DIST_SOURCES = gupnp-dlna-info.c gupnp-dlna-ls-profiles.c
8387 ETAGS = etags
8488 CTAGS = ctags
8589 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
156160 PACKAGE_VERSION = @PACKAGE_VERSION@
157161 PATH_SEPARATOR = @PATH_SEPARATOR@
158162 PKG_CONFIG = @PKG_CONFIG@
159 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
160 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
161163 RANLIB = @RANLIB@
162164 SED = @SED@
163165 SET_MAKE = @SET_MAKE@
200202 libexecdir = @libexecdir@
201203 localedir = @localedir@
202204 localstatedir = @localstatedir@
205 lt_ECHO = @lt_ECHO@
203206 mandir = @mandir@
204207 mkdir_p = @mkdir_p@
205208 oldincludedir = @oldincludedir@
297300 gupnp-dlna-info$(EXEEXT): $(gupnp_dlna_info_OBJECTS) $(gupnp_dlna_info_DEPENDENCIES)
298301 @rm -f gupnp-dlna-info$(EXEEXT)
299302 $(AM_V_CCLD)$(LINK) $(gupnp_dlna_info_OBJECTS) $(gupnp_dlna_info_LDADD) $(LIBS)
303 gupnp-dlna-ls-profiles$(EXEEXT): $(gupnp_dlna_ls_profiles_OBJECTS) $(gupnp_dlna_ls_profiles_DEPENDENCIES)
304 @rm -f gupnp-dlna-ls-profiles$(EXEEXT)
305 $(AM_V_CCLD)$(LINK) $(gupnp_dlna_ls_profiles_OBJECTS) $(gupnp_dlna_ls_profiles_LDADD) $(LIBS)
300306
301307 mostlyclean-compile:
302308 -rm -f *.$(OBJEXT)
305311 -rm -f *.tab.c
306312
307313 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gupnp-dlna-info.Po@am__quote@
314 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gupnp-dlna-ls-profiles.Po@am__quote@
308315
309316 .c.o:
310317 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
246246 }
247247
248248 static void
249 print_topology (GstStreamInformation * info, gint depth)
250 {
251 if (!info)
252 return;
253
254 print_stream_info (info, GINT_TO_POINTER (depth));
255
256 if (info->next)
257 print_topology (info->next, depth + 1);
258 else if (info->streamtype == GST_STREAM_CONTAINER) {
259 GstStreamContainerInformation *cont =
260 (GstStreamContainerInformation *) info;
261 GList *tmp;
262
263 for (tmp = cont->streams; tmp; tmp = tmp->next) {
264 GstStreamInformation *tmpinf =
265 (GstStreamInformation *) tmp->data;
266 print_topology (tmpinf, depth + 1);
267 }
268 }
269 }
270
271 static void
249272 print_duration (const GstDiscovererInformation * info, gint tab)
250273 {
251274 g_print ("%*s%" GST_TIME_FORMAT "\n", tab + 1, " ",
252275 GST_TIME_ARGS (info->duration));
253 }
254
255 static void
256 print_list (const GstDiscovererInformation * info, gint tab)
257 {
258 if (!info || !info->stream_list)
259 return;
260
261 g_list_foreach (info->stream_list, (GFunc) print_stream_info,
262 GINT_TO_POINTER (tab));
263276 }
264277
265278 static void
286299 if (verbose) {
287300 if (!(info->result &
288301 (GST_DISCOVERER_ERROR | GST_DISCOVERER_TIMEOUT))) {
289 g_print ("\nStream list:\n");
290 print_list (info, 1);
302 g_print ("\nTopology:\n");
303 print_topology (info->stream_info, 1);
291304 g_print ("\nDuration:\n");
292305 print_duration (info, 1);
293306 }
450463
451464
452465 discover = gupnp_dlna_discoverer_new ((GstClockTime)
453 (timeout * GST_SECOND));
466 (timeout * GST_SECOND),
467 FALSE,
468 FALSE);
454469
455470 if (async == FALSE) {
456471 for ( i = 1 ; i < argc ; i++ ) {
0 /* GUPnPDLNA
1 * gupnp-dlna-ls-profiles.c
2 *
3 * Copyright (C) 2010 Nokia Corporation
4 * Copyright (C) 2010 Collabora Multimedia
5 *
6 * Authors: Parthasarathi Susarla <partha.susarla@collabora.co.uk>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library 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 GNU
16 * Library General Public License for more details.
17 *
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 */
23 #ifdef HAVE_CONFIG_H
24 #include "config.h"
25 #endif
26
27 #include <stdlib.h>
28 #include <string.h>
29
30 #include <glib.h>
31 #include <glib-object.h>
32 #include <gio/gio.h>
33
34 #include <libgupnp-dlna/gupnp-dlna-profile.h>
35 #include <libgupnp-dlna/gupnp-dlna-discoverer.h>
36
37 #include <gst/profile/gstprofile.h>
38
39 static gboolean verbose = FALSE;
40
41 static void print_caps (GstCaps *caps)
42 {
43 int i;
44
45 for (i = 0; i < gst_caps_get_size (caps); i++) {
46 GstStructure *structure = gst_caps_get_structure (caps, i);
47 gchar *tmp = gst_structure_to_string (structure);
48
49 g_print ("%s`- %s\n", i ? " " : "", tmp);
50
51 g_free (tmp);
52 }
53 }
54
55 static void
56 print_profile (GUPnPDLNAProfile *profile, gpointer unused)
57 {
58 const GstEncodingProfile *enc_profile;
59 GList *tmp;
60 gchar *caps_str;
61
62 enc_profile = gupnp_dlna_profile_get_encoding_profile (profile);
63 tmp = enc_profile->encodingprofiles;
64
65 g_print ("%s, %s",
66 gupnp_dlna_profile_get_name (profile),
67 gupnp_dlna_profile_get_mime (profile));
68
69 if (verbose) {
70 caps_str = gst_caps_to_string (enc_profile->format);
71 g_print ("\n`- container: %s\n", caps_str);
72 g_free (caps_str);
73
74 while (tmp) {
75 print_caps (((GstStreamEncodingProfile *) tmp->data)->format);
76 tmp = tmp->next;
77 }
78 }
79
80 g_print ("\n");
81 }
82
83 int
84 main (int argc, char **argv)
85 {
86 GError *err = NULL;
87 GList *profiles = NULL;
88 GUPnPDLNADiscoverer *discover;
89
90 GOptionEntry options[] = {
91 {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
92 "Print (very) verbose output", NULL},
93 {NULL}
94 };
95
96 GOptionContext *ctx;
97
98 g_thread_init(NULL);
99
100 ctx = g_option_context_new (" - program to list all the DLNA profiles supported by gupnp-dlna");
101 g_option_context_add_main_entries (ctx, options, NULL);
102 g_option_context_add_group (ctx, gst_init_get_option_group ());
103
104 if (!g_option_context_parse (ctx, &argc, &argv, &err)) {
105
106 g_print ("Error initializing: %s\n", err->message);
107 exit (1);
108 }
109
110 g_option_context_free (ctx);
111
112 gst_init (&argc, &argv);
113
114 discover = gupnp_dlna_discoverer_new ((GstClockTime) GST_SECOND,
115 FALSE,
116 FALSE);
117
118 profiles = (GList *) gupnp_dlna_discoverer_list_profiles (discover);
119
120 if (!verbose) {
121 g_print ("Name, MIME type\n");
122 g_print ("=================================================\n");
123 }
124 g_list_foreach (profiles, (GFunc) print_profile, NULL);
125
126 g_object_unref (discover);
127
128 return 0;
129 }