Imported Upstream version 0.3.0
Andreas Henriksson
13 years ago
0 | 0 | # Generated by Makefile. Do not edit. |
1 | 1 | |
2 | commit 8a5f2cf659d0877d04f32d062682b66e229d36c8 | |
3 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
2 | [33mcommit: 070933f 070933f6789de719d789a864c85f46550af1808f | |
3 | [32m[32mAuthor: 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 | [33mcommit: 5087e23 5087e23939e5fbe8e917b21a3d959137d939742e | |
17 | [32m[32mAuthor: 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 | [33mcommit: 8854593 8854593127c587b7deab44af2d4acd3702b20f7a | |
31 | [32m[32mAuthor: 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 | [33mcommit: 17aa09a 17aa09acdbb4e96537496f5564c6134b50247d4a | |
47 | [32m[32mAuthor: 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 | [33mcommit: ceb9616 ceb961611db39d1ccb1658977edc702b882cf14a | |
56 | [32m[32mAuthor: 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 | [33mcommit: 53e9880 53e9880c079a2def15a1bc9d16bd4f90641044ad | |
65 | [32m[32mAuthor: 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 | [33mcommit: fdfaed8 fdfaed8ffe4f7e62105c7e8ad03031324150c7ea | |
76 | [32m[32mAuthor: 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 | [33mcommit: 1fe1ec2 1fe1ec2a4103af23e9074ccb9ec1dc7d9843ab28 | |
90 | [32m[32mAuthor: 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 | [33mcommit: eb98d60 eb98d6097beb4499962f1e670e1bef2aed0f20db | |
99 | [32m[32mAuthor: 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 | [33mcommit: 8201eb0 8201eb0b1da45b882571e39f27ca312c87807134 | |
113 | [32m[32mAuthor: 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 | [33mcommit: c30e5f2 c30e5f24afbb24496d56006741f33ac4bef9c486 | |
125 | [32m[32mAuthor: 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 | [33mcommit: f35ea6b f35ea6b091d56e1483ed30d1a168944368280102 | |
138 | [32m[32mAuthor: 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 | [33mcommit: 901adc7 901adc7d1d8a93e113c51cd121312cf081a58ce7 | |
153 | [32m[32mAuthor: 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 | [33mcommit: 33890a3 33890a344053b36deb2ed4717aa65fd968537bd8 | |
162 | [32m[32mAuthor: 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 | [33mcommit: 6a136db 6a136db697f81055194c899d8893ffe53a674b65 | |
175 | [32m[32mAuthor: 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 | [33mcommit: bf75bde bf75bde19c057d8d6341c126b25aa01c9a3f6928 | |
185 | [32m[32mAuthor: 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 | [33mcommit: 62f9c8a 62f9c8aa05599b9cf5af73bdc42d0d5c51ab4b3c | |
197 | [32m[32mAuthor: 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 | [33mcommit: 5d43687 5d436874e7f9d1a94fd6503ed26e44bf086ec5e1 | |
222 | [32m[32mAuthor: 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 | [33mcommit: d752a31 d752a319859f3ea47af84c0d39b66bf88943bb6e | |
235 | [32m[32mAuthor: 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 | [33mcommit: 4bf5dec 4bf5dec94585bec1abdd0ae9cd198cd36c7d41c1 | |
250 | [32m[32mAuthor: 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 | [33mcommit: 836ca74 836ca7468ed934e7a1e669e78bb32d8e31503ce8 | |
262 | [32m[32mAuthor: 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 | [33mcommit: 9d9eed0 9d9eed05bdda24465795c0b43f0b64c9f03c1e5b | |
271 | [32m[32mAuthor: 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 | [33mcommit: c787dea c787dea9be44a7d7502f725369aaca29c77d60f0 | |
280 | [32m[32mAuthor: 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 | [33mcommit: 0210a95 0210a95939bd007733601c6d57b6d435e0abdf2c | |
290 | [32m[32mAuthor: 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 | [33mcommit: 9fa5251 9fa52512614475554da370b90ef24a6251cc9ba4 | |
300 | [32m[32mAuthor: 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 | [33mcommit: 5af0477 5af047746ace3f5541630c40c2a8de9a64b6dfb2 | |
312 | [32m[32mAuthor: 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 | [33mcommit: 9322fbf 9322fbf0f5189354603ef3f6d916dd9a36b7c466 | |
324 | [32m[32mAuthor: 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 | [33mcommit: 224a3a4 224a3a4353e174d462cea58cd6984aaf5ede7601 | |
340 | [32m[32mAuthor: 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 | [33mcommit: c496cf4 c496cf419b363c6f2480695f1892dee959a53ced | |
352 | [32m[32mAuthor: 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 | [33mcommit: e4f878c e4f878c2fc9676d0d5d2e33227b058ebbdd5f39c | |
363 | [32m[32mAuthor: 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 | [33mcommit: 0c95772 0c9577281e2e1693ac3f298c2b295983c66c2567 | |
372 | [32m[32mAuthor: 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 | [33mcommit: 641d762 641d762d884c5808db8c578767677cfceb58ea60 | |
383 | [32m[32mAuthor: 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 | [33mcommit: db90182 db90182b2ae0f9d81769c4954c4c91a2c1760bcd | |
392 | [32m[32mAuthor: 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 | [33mcommit: cd3e7e3 cd3e7e350ea130a201612e7a547abe301c67b60f | |
403 | [32m[32mAuthor: 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 | [33mcommit: cf633b9 cf633b975d9dd4268092b7b1fb1eb6d3b02fc519 | |
412 | [32m[32mAuthor: 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 | [33mcommit: 259e651 259e651385263a385e2dca309dc29d1835979f2d | |
424 | [32m[32mAuthor: 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 | [33mcommit: bac23ee bac23eea15835f3d597eaa4f436fe640b28419ff | |
438 | [32m[32mAuthor: 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 | [33mcommit: f499665 f49966516a811b8e25855f111959b8134f68dc7e | |
453 | [32m[32mAuthor: 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 | [33mcommit: 8a5f2cf 8a5f2cf659d0877d04f32d062682b66e229d36c8 | |
464 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
4 | 465 | Date: Wed Jul 14 19:21:45 2010 +0530 |
5 | 466 | |
6 | 467 | Release 0.2.1 |
468 | ||
7 | 469 | |
8 | 470 | NEWS | 5 +++++ |
9 | 471 | configure.ac | 2 +- |
10 | 472 | 2 files changed, 6 insertions(+), 1 deletions(-) |
11 | ||
12 | commit fcefca6d31953e17f7e3169ddc3908172a477d18 | |
13 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
473 | [33mcommit: fcefca6 fcefca6d31953e17f7e3169ddc3908172a477d18 | |
474 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
14 | 475 | Date: Thu Jul 15 20:56:12 2010 +0530 |
15 | 476 | |
16 | 477 | build: Correct gst-plugins-base dependency |
17 | 478 | |
18 | 479 | We don't (yet) need the latest gst-plugins-base |
480 | ||
19 | 481 | |
20 | 482 | configure.ac | 3 ++- |
21 | 483 | 1 files changed, 2 insertions(+), 1 deletions(-) |
22 | ||
23 | commit f753153e20faf32d301046ecb48fe2b4d290a8ed | |
24 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
484 | [33mcommit: f753153 f753153e20faf32d301046ecb48fe2b4d290a8ed | |
485 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
25 | 486 | Date: Thu Jul 8 21:14:43 2010 +0530 |
26 | 487 | |
27 | 488 | build: Update gstreamer dependency |
28 | 489 | |
29 | 490 | The newly imported gst-convenience will depend on gstreamer-0.10.30 |
491 | ||
30 | 492 | |
31 | 493 | configure.ac | 2 +- |
32 | 494 | 1 files changed, 1 insertions(+), 1 deletions(-) |
33 | ||
34 | commit 458c82f390fbd93bd93a3819186a5fe4b68da9f8 | |
35 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
495 | [33mcommit: 458c82f 458c82f390fbd93bd93a3819186a5fe4b68da9f8 | |
496 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
36 | 497 | Date: Wed Jul 7 15:21:33 2010 +0530 |
37 | 498 | |
38 | 499 | Release 0.2 |
500 | ||
39 | 501 | |
40 | 502 | NEWS | 21 +++++++++++++++++++++ |
41 | 503 | configure.ac | 2 +- |
42 | 504 | 2 files changed, 22 insertions(+), 1 deletions(-) |
43 | ||
44 | commit 7bcba3a31d3cba8ae8cc45c298cefbbbf6de646e | |
45 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
505 | [33mcommit: 7bcba3a 7bcba3a31d3cba8ae8cc45c298cefbbbf6de646e | |
506 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
46 | 507 | Date: Wed Jul 7 13:59:31 2010 +0530 |
47 | 508 | |
48 | 509 | libgupnp-dlna: Remove debug print |
49 | 510 | |
50 | 511 | This message was used for debugging and testing. |
512 | ||
51 | 513 | |
52 | 514 | libgupnp-dlna/gupnp-dlna-profiles.c | 2 -- |
53 | 515 | 1 files changed, 0 insertions(+), 2 deletions(-) |
54 | ||
55 | commit 428d4f7abee173a83732456eb006a2c737731f9f | |
56 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
516 | [33mcommit: 428d4f7 428d4f7abee173a83732456eb006a2c737731f9f | |
517 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
57 | 518 | Date: Wed Jul 7 13:57:33 2010 +0530 |
58 | 519 | |
59 | 520 | gst-convenience: Rebase in-tree version |
61 | 522 | Sync our copy of gst-convenience against upstream (upstream commit |
62 | 523 | fab830b7692200a808655deb4aeb0afa3be4e7b1). Also includes one |
63 | 524 | to-be-merged patch to fix a crash while marshalling. |
525 | ||
64 | 526 | |
65 | 527 | .../gst/discoverer/gstdiscoverer-marshal.c | 2 + |
66 | 528 | .../gst-libs/gst/discoverer/gstdiscoverer-types.c | 10 +- |
74 | 536 | .../gst-libs/gst/profile/gstprofileutils.c | 184 +++++++ |
75 | 537 | .../gstreamer-discoverer-gupnp-dlna-0.10.vapi | 2 +- |
76 | 538 | 11 files changed, 889 insertions(+), 207 deletions(-) |
77 | ||
78 | commit 3e4ba655a3e9fe7a61d57b0a538c05355e10d1cf | |
79 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
539 | [33mcommit: 3e4ba65 3e4ba655a3e9fe7a61d57b0a538c05355e10d1cf | |
540 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
80 | 541 | Date: Fri Jul 2 13:49:31 2010 +0530 |
81 | 542 | |
82 | 543 | xml: Don't require empty name/mime for profiles |
85 | 546 | inheritance, we required the name and mime to be set as empty strings. |
86 | 547 | This makes this unncessary in the XML (the implementation is not |
87 | 548 | changed, but this is now handled transparently). |
549 | ||
88 | 550 | |
89 | 551 | data/avc.xml | 2 +- |
90 | 552 | data/dlna-profiles.rng | 26 ++++++++++++++++---------- |
91 | 553 | data/mpeg4.xml | 4 ++-- |
92 | 554 | libgupnp-dlna/gupnp-dlna-load.c | 10 ++++++++++ |
93 | 555 | 4 files changed, 29 insertions(+), 13 deletions(-) |
94 | ||
95 | commit 79ac1ce24e9565db43d77c514b1eb7e48b684e80 | |
96 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
556 | [33mcommit: 79ac1ce 79ac1ce24e9565db43d77c514b1eb7e48b684e80 | |
557 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
97 | 558 | Date: Thu Jul 1 13:15:07 2010 +0530 |
98 | 559 | |
99 | 560 | xml: Add AVC_MP4_BL_CIF15_AAC profile support |
561 | ||
100 | 562 | |
101 | 563 | data/avc.xml | 36 +++++++++++++++++++++++++----------- |
102 | 564 | 1 files changed, 25 insertions(+), 11 deletions(-) |
103 | ||
104 | commit 303dddf6052cc26468954eb1d2ac8b549fcb7906 | |
105 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
565 | [33mcommit: 303dddf 303dddf6052cc26468954eb1d2ac8b549fcb7906 | |
566 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
106 | 567 | Date: Wed Jun 30 18:11:34 2010 +0530 |
107 | 568 | |
108 | 569 | xml: Add the AVC_MP4_BL_L3(L)_SD_AAC profiles |
570 | ||
109 | 571 | |
110 | 572 | data/avc.xml | 148 ++++++++++++++++++++++++++++++++++++++++++++++++------- |
111 | 573 | data/common.xml | 12 +++++ |
112 | 574 | 2 files changed, 142 insertions(+), 18 deletions(-) |
113 | ||
114 | commit fa4fa00545305c5954d4d9ecdbb1e8e20416667b | |
115 | Author: Parthasarathi Susarla <partha.susarla@collabora.co.uk> | |
575 | [33mcommit: fa4fa00 fa4fa00545305c5954d4d9ecdbb1e8e20416667b | |
576 | [32m[32mAuthor: Parthasarathi Susarla <partha.susarla@collabora.co.uk> | |
116 | 577 | Date: Mon Jul 5 13:23:06 2010 +0530 |
117 | 578 | |
118 | 579 | tools: Add utility for printing discovered info |
580 | ||
119 | 581 | |
120 | 582 | Makefile.am | 2 +- |
121 | 583 | configure.ac | 2 + |
122 | 584 | tools/Makefile.am | 4 + |
123 | 585 | tools/gupnp-dlna-info.c | 484 +++++++++++++++++++++++++++++++++++++++++++++++ |
124 | 586 | 4 files changed, 491 insertions(+), 1 deletions(-) |
125 | ||
126 | commit be91b9ac469172db0b9e5ea2b3f5cc7d2c038652 | |
127 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
587 | [33mcommit: be91b9a be91b9ac469172db0b9e5ea2b3f5cc7d2c038652 | |
588 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
128 | 589 | Date: Wed Jun 30 18:37:22 2010 +0530 |
129 | 590 | |
130 | 591 | doc: Add a TODO |
131 | 592 | |
132 | 593 | Currently a brain dump of the things that I remember need doing. |
594 | ||
133 | 595 | |
134 | 596 | TODO | 44 ++++++++++++++++++++++++++++++++++++++++++++ |
135 | 597 | 1 files changed, 44 insertions(+), 0 deletions(-) |
136 | ||
137 | commit 97ca696811e3e0bf5406b6a1c58e2ae900ae3b21 | |
138 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
598 | [33mcommit: 97ca696 97ca696811e3e0bf5406b6a1c58e2ae900ae3b21 | |
599 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
139 | 600 | Date: Wed Jun 30 15:25:50 2010 +0530 |
140 | 601 | |
141 | 602 | xml: Use bitrate in constraints for AVC* |
143 | 604 | This is more likely to be set than maximum-bitrate. Also, the range |
144 | 605 | starts from 1 instead of 0, to ensure that it is actually known. |
145 | 606 | |
607 | ||
146 | 608 | data/avc.xml | 4 ++-- |
147 | 609 | 1 files changed, 2 insertions(+), 2 deletions(-) |
148 | ||
149 | commit 3690dce6080b317f71850e995dfdce48fab37708 | |
150 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
610 | [33mcommit: 3690dce 3690dce6080b317f71850e995dfdce48fab37708 | |
611 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
151 | 612 | Date: Tue Jun 29 23:07:34 2010 +0530 |
152 | 613 | |
153 | 614 | libgupnp-dlna: only free format caps if present |
155 | 616 | This gets rid of a GStreamer warning in certain cases when we try to |
156 | 617 | free NULL caps. |
157 | 618 | |
619 | ||
158 | 620 | libgupnp-dlna/gupnp-dlna-load.c | 3 ++- |
159 | 621 | 1 files changed, 2 insertions(+), 1 deletions(-) |
160 | ||
161 | commit 00ad1e80bcb71a176bb24609aa09000c06e92b3d | |
162 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
622 | [33mcommit: 00ad1e8 00ad1e80bcb71a176bb24609aa09000c06e92b3d | |
623 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
163 | 624 | Date: Tue Jun 29 19:55:09 2010 +0530 |
164 | 625 | |
165 | 626 | libgupnp-dlna: Detect duplicates in <include> |
172 | 633 | This adds some (not fool-proof, but good enough) duplicate detection, so |
173 | 634 | that we can include one XML file in another. This is particularly useful |
174 | 635 | for reusing audio profile restrictions in video profiles. |
636 | ||
175 | 637 | |
176 | 638 | libgupnp-dlna/gupnp-dlna-load.c | 85 ++++++++++++++++++++++++++++--- |
177 | 639 | libgupnp-dlna/gupnp-dlna-load.h | 5 +- |
179 | 641 | tests/xml/duplicate-detection/dup1.xml | 11 ++++ |
180 | 642 | tests/xml/duplicate-detection/dup2.xml | 7 +++ |
181 | 643 | 5 files changed, 107 insertions(+), 14 deletions(-) |
182 | ||
183 | commit 66ec07fbec61b4858c31c7d5039e869149adc1d5 | |
184 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
644 | [33mcommit: 66ec07f 66ec07fbec61b4858c31c7d5039e869149adc1d5 | |
645 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
185 | 646 | Date: Tue Jun 29 11:30:47 2010 +0530 |
186 | 647 | |
187 | 648 | xml: Fix MPEG_TS_*_NA profile names |
190 | 651 | long (188 byte payload + 4 byte timestamp), the profile must be suffixed |
191 | 652 | with an _ISO. |
192 | 653 | |
654 | ||
193 | 655 | data/mpeg-ts.xml | 4 ++-- |
194 | 656 | 1 files changed, 2 insertions(+), 2 deletions(-) |
195 | ||
196 | commit b5d84443468cb6af8db8a50389f3fe0091bfff13 | |
197 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
657 | [33mcommit: b5d8444 b5d84443468cb6af8db8a50389f3fe0091bfff13 | |
658 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
198 | 659 | Date: Tue Jun 29 03:03:12 2010 +0530 |
199 | 660 | |
200 | 661 | xml: Add more common SD resolutions to common.xml |
201 | 662 | |
202 | 663 | Also makes MPEG_TS* use these factored-out restrictions. |
664 | ||
203 | 665 | |
204 | 666 | data/common.xml | 144 +++++++++++++++++++++++++++++++++++++++++++++++------- |
205 | 667 | data/mpeg-ts.xml | 42 ++------------- |
206 | 668 | 2 files changed, 132 insertions(+), 54 deletions(-) |
207 | ||
208 | commit a98581da83e17a5f77a19afcadf580d5f857c2f3 | |
209 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
669 | [33mcommit: a98581d a98581da83e17a5f77a19afcadf580d5f857c2f3 | |
670 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
210 | 671 | Date: Mon Jun 28 19:30:13 2010 +0530 |
211 | 672 | |
212 | 673 | xml: Fix typo in AVC_BL profile |
674 | ||
213 | 675 | |
214 | 676 | data/avc.xml | 2 +- |
215 | 677 | 1 files changed, 1 insertions(+), 1 deletions(-) |
216 | ||
217 | commit f0edbf7669ca09675e4cc6ee65a0ddd5c18e6d1f | |
218 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
678 | [33mcommit: f0edbf7 f0edbf7669ca09675e4cc6ee65a0ddd5c18e6d1f | |
679 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
219 | 680 | Date: Thu Jun 24 23:03:02 2010 +0530 |
220 | 681 | |
221 | 682 | xml: Fix MP4 container usage |
228 | 689 | |
229 | 690 | When we have smart transcoding, this will be taken care of |
230 | 691 | automatically, since encodebin will be able to transmux to MP4. |
692 | ||
231 | 693 | |
232 | 694 | data/aac.xml | 15 --------------- |
233 | 695 | data/amr.xml | 4 ---- |
235 | 697 | data/common.xml | 5 ++++- |
236 | 698 | data/mpeg4.xml | 19 ------------------- |
237 | 699 | 5 files changed, 4 insertions(+), 45 deletions(-) |
238 | ||
239 | commit ac8046bcc3f3180640e822dfe4b3f0371fc4ea79 | |
240 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
700 | [33mcommit: ac8046b ac8046bcc3f3180640e822dfe4b3f0371fc4ea79 | |
701 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
241 | 702 | Date: Tue Jun 29 11:48:42 2010 +0530 |
242 | 703 | |
243 | 704 | libgupnp-dlna: Fix crash on invalid parent |
705 | ||
244 | 706 | |
245 | 707 | libgupnp-dlna/gupnp-dlna-load.c | 4 +++- |
246 | 708 | 1 files changed, 3 insertions(+), 1 deletions(-) |
247 | ||
248 | commit b8b92ea6f76e79bba0ad89fdfe93968787987999 | |
249 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
709 | [33mcommit: b8b92ea b8b92ea6f76e79bba0ad89fdfe93968787987999 | |
710 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
250 | 711 | Date: Tue Jun 29 15:48:06 2010 +0530 |
251 | 712 | |
252 | 713 | libgupnp-dlna: Fix copy-paste-o in property init |
253 | 714 | |
254 | 715 | Absolutely no cookies for me. |
716 | ||
255 | 717 | |
256 | 718 | libgupnp-dlna/gupnp-dlna-information.c | 2 +- |
257 | 719 | 1 files changed, 1 insertions(+), 1 deletions(-) |
258 | ||
259 | commit e22f03dfb2fc45eac06d4686a4533ad7c7e5db06 | |
260 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
720 | [33mcommit: e22f03d e22f03dfb2fc45eac06d4686a4533ad7c7e5db06 | |
721 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
261 | 722 | Date: Mon Jun 21 14:40:06 2010 +0530 |
262 | 723 | |
263 | 724 | tests: Add a transcoding exmple |
264 | 725 | |
265 | 726 | This takes an input file and transcodes to a given DLNA profile |
727 | ||
266 | 728 | |
267 | 729 | tests/Makefile.am | 4 +- |
268 | 730 | tests/dlna-encoding.c | 238 +++++++++++++++++++++++++++++++++++++++++++++++++ |
269 | 731 | 2 files changed, 241 insertions(+), 1 deletions(-) |
270 | ||
271 | commit dd6fcadd8bb5f438e5b27bd042e667e2d17a13ac | |
272 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
732 | [33mcommit: dd6fcad dd6fcadd8bb5f438e5b27bd042e667e2d17a13ac | |
733 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
273 | 734 | Date: Mon Jun 21 13:33:17 2010 +0530 |
274 | 735 | |
275 | 736 | profiles: API to get encoding profile from name |
276 | 737 | |
277 | 738 | This adds a simple API to get a GstEncodingProfile given a DLNA profile |
278 | 739 | name. This should make automatic transcoding easier for clients. |
740 | ||
279 | 741 | |
280 | 742 | libgupnp-dlna/gupnp-dlna-profile.h | 2 ++ |
281 | 743 | libgupnp-dlna/gupnp-dlna-profiles.c | 22 ++++++++++++++++++++++ |
282 | 744 | 2 files changed, 24 insertions(+), 0 deletions(-) |
283 | ||
284 | commit ce24afc337572ba9f2e0b9693756dde7fcac4543 | |
285 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
745 | [33mcommit: ce24afc ce24afc337572ba9f2e0b9693756dde7fcac4543 | |
746 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
286 | 747 | Date: Mon Jun 21 15:06:25 2010 +0530 |
287 | 748 | |
288 | 749 | xml: Support ID3 in MP3 profiles |
290 | 751 | This also makes encoding work, since a container needs to be provided |
291 | 752 | for encoding. |
292 | 753 | |
754 | ||
293 | 755 | data/mp3.xml | 33 +++++++++++++++++++++++++-------- |
294 | 756 | 1 files changed, 25 insertions(+), 8 deletions(-) |
295 | ||
296 | commit 9f442945c3c0fc3d6f01788deae9c6f248c01d9e | |
297 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
757 | [33mcommit: 9f44294 9f442945c3c0fc3d6f01788deae9c6f248c01d9e | |
758 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
298 | 759 | Date: Thu Jun 24 18:16:57 2010 +0530 |
299 | 760 | |
300 | 761 | build: Get rid of gst-convenience warning |
301 | 762 | |
302 | 763 | Suppress the unstable API warning so we don't miss other warnings. |
764 | ||
303 | 765 | |
304 | 766 | configure.ac | 3 +++ |
305 | 767 | 1 files changed, 3 insertions(+), 0 deletions(-) |
306 | ||
307 | commit 4872007d251da8d5a11c6021388feff4401ca08c | |
308 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
768 | [33mcommit: 4872007 4872007d251da8d5a11c6021388feff4401ca08c | |
769 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
309 | 770 | Date: Thu Jun 24 18:12:46 2010 +0530 |
310 | 771 | |
311 | 772 | tests: Move XML test cases |
312 | 773 | |
313 | 774 | Undo unnecessary nesting now that this is a spearate package. |
775 | ||
314 | 776 | |
315 | 777 | tests/dlna/xml/dlna-profile-illegal-base.xml | 10 ------ |
316 | 778 | tests/dlna/xml/dlna-profile-illegal-parent.xml | 11 ------- |
339 | 801 | tests/xml/value-empty.xml | 13 ++++++++ |
340 | 802 | tests/xml/value-invalid.xml | 13 ++++++++ |
341 | 803 | 26 files changed, 172 insertions(+), 172 deletions(-) |
342 | ||
343 | commit 47b1dd4063a825d5c3b84380ddfb5685e36754d9 | |
344 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
804 | [33mcommit: 47b1dd4 47b1dd4063a825d5c3b84380ddfb5685e36754d9 | |
805 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
345 | 806 | Date: Thu Jun 24 18:11:04 2010 +0530 |
346 | 807 | |
347 | 808 | doc: Build documentation using gtk-doc |
809 | ||
348 | 810 | |
349 | 811 | Makefile.am | 4 +- |
350 | 812 | configure.ac | 2 + |
354 | 816 | doc/gupnp-dlna.types | 3 + |
355 | 817 | doc/version.xml.in | 1 + |
356 | 818 | 7 files changed, 224 insertions(+), 2 deletions(-) |
357 | ||
358 | commit 642cec131c85367cf9b8c218916f0f61e3cd3341 | |
359 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
819 | [33mcommit: 642cec1 642cec131c85367cf9b8c218916f0f61e3cd3341 | |
820 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
360 | 821 | Date: Thu Jun 24 18:00:09 2010 +0530 |
361 | 822 | |
362 | 823 | libgupnp-dlna: Update GUPnPDLNADiscoverer documentation |
363 | 824 | |
364 | 825 | This adds documentation for the undocumented parts of the |
365 | 826 | GUPnPDLNADiscoverer API and updates other bits. |
827 | ||
366 | 828 | |
367 | 829 | libgupnp-dlna/gupnp-dlna-discoverer.c | 67 ++++++++++++++++++++++++++++++++- |
368 | 830 | libgupnp-dlna/gupnp-dlna-discoverer.h | 12 ++---- |
369 | 831 | 2 files changed, 69 insertions(+), 10 deletions(-) |
370 | ||
371 | commit 3794de4597f453c6963fc960648c29bbd0cc5be5 | |
372 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
832 | [33mcommit: 3794de4 3794de4597f453c6963fc960648c29bbd0cc5be5 | |
833 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
373 | 834 | Date: Thu Jun 24 17:59:30 2010 +0530 |
374 | 835 | |
375 | 836 | libgupnp-dlna: Document GUPnPDLNAInformation |
837 | ||
376 | 838 | |
377 | 839 | libgupnp-dlna/gupnp-dlna-information.c | 48 +++++++++++++++++++++++++++++-- |
378 | 840 | 1 files changed, 44 insertions(+), 4 deletions(-) |
379 | ||
380 | commit 44bd40eb2ab735723fba6ccf0c26664fa4030924 | |
381 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
841 | [33mcommit: 44bd40e 44bd40eb2ab735723fba6ccf0c26664fa4030924 | |
842 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
382 | 843 | Date: Thu Jun 24 17:58:15 2010 +0530 |
383 | 844 | |
384 | 845 | libgupnp-dlna: Don't install gupnp-dlna-load.h |
385 | 846 | |
386 | 847 | The API to load profiles from disk is not public. |
848 | ||
387 | 849 | |
388 | 850 | libgupnp-dlna/Makefile.am | 5 +++-- |
389 | 851 | 1 files changed, 3 insertions(+), 2 deletions(-) |
390 | ||
391 | commit 8442ff31df29bf288ac7ae2526fdadfbc9eeca43 | |
392 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
852 | [33mcommit: 8442ff3 8442ff31df29bf288ac7ae2526fdadfbc9eeca43 | |
853 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
393 | 854 | Date: Thu Jun 24 14:51:32 2010 +0530 |
394 | 855 | |
395 | 856 | libgupnp-dlna: Return const pointers from get functions |
398 | 859 | structure members (since these are not expected to be modified), so |
399 | 860 | these should be made const pointers. |
400 | 861 | |
862 | ||
401 | 863 | libgupnp-dlna/gupnp-dlna-information.c | 6 +++--- |
402 | 864 | libgupnp-dlna/gupnp-dlna-information.h | 6 +++--- |
403 | 865 | 2 files changed, 6 insertions(+), 6 deletions(-) |
404 | ||
405 | commit 55ad6adc5846bf244ee1b89b607a6f7a6495c431 | |
406 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
866 | [33mcommit: 55ad6ad 55ad6adc5846bf244ee1b89b607a6f7a6495c431 | |
867 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
407 | 868 | Date: Mon Jun 21 13:22:22 2010 +0530 |
408 | 869 | |
409 | 870 | xml: Use 3GPP container correctly |
410 | 871 | |
411 | 872 | This corrects some ambiguous use of 3GP as an alternative to the ISO |
412 | 873 | MPEG4 container. |
874 | ||
413 | 875 | |
414 | 876 | data/aac.xml | 15 --------------- |
415 | 877 | data/mpeg4.xml | 15 ++------------- |
416 | 878 | 2 files changed, 2 insertions(+), 28 deletions(-) |
417 | ||
418 | commit 7dbc61382a2579a34f6dda09a119d896cd9fe093 | |
419 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
879 | [33mcommit: 7dbc613 7dbc61382a2579a34f6dda09a119d896cd9fe093 | |
880 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
420 | 881 | Date: Sat Jun 19 23:37:44 2010 +0530 |
421 | 882 | |
422 | 883 | Initial commit |
884 | ||
423 | 885 | |
424 | 886 | AUTHORS | 1 + |
425 | 887 | COPYING | 482 ++++++++ |
499 | 961 | tests/dlna/xml/value-empty.xml | 13 + |
500 | 962 | tests/dlna/xml/value-invalid.xml | 13 + |
501 | 963 | 77 files changed, 8878 insertions(+), 0 deletions(-) |
502 | ||
503 | commit 5dc6021842e6d41fb9f87fcfe225ed8c390b4268 | |
504 | Author: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
964 | [33mcommit: 5dc6021 5dc6021842e6d41fb9f87fcfe225ed8c390b4268 | |
965 | [32m[32mAuthor: Arun Raghavan <arun.raghavan@collabora.co.uk> | |
505 | 966 | Date: Sun Jun 20 20:18:16 2010 +0530 |
506 | 967 | |
507 | 968 | misc: Add .gitignore |
969 | ||
508 | 970 | |
509 | 971 | .gitignore | 36 ++++++++++++++++++++++++++++++++++++ |
510 | 972 | 1 files changed, 36 insertions(+), 0 deletions(-) |
39 | 39 | $(srcdir)/gupnp-dlna-1.0-uninstalled.pc.in \ |
40 | 40 | $(srcdir)/gupnp-dlna-1.0.pc.in $(top_srcdir)/configure AUTHORS \ |
41 | 41 | COPYING ChangeLog INSTALL NEWS TODO config.guess config.sub \ |
42 | depcomp install-sh ltmain.sh missing | |
42 | depcomp install-sh ltmain.sh missing mkinstalldirs | |
43 | 43 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
44 | 44 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
45 | 45 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
46 | 46 | $(ACLOCAL_M4) |
47 | 47 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
48 | 48 | configure.lineno config.status.lineno |
49 | mkinstalldirs = $(install_sh) -d | |
49 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
50 | 50 | CONFIG_HEADER = config.h |
51 | 51 | CONFIG_CLEAN_FILES = gupnp-dlna-1.0.pc gupnp-dlna-1.0-uninstalled.pc |
52 | 52 | CONFIG_CLEAN_VPATH_FILES = |
205 | 205 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
206 | 206 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
207 | 207 | PKG_CONFIG = @PKG_CONFIG@ |
208 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
209 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
210 | 208 | RANLIB = @RANLIB@ |
211 | 209 | SED = @SED@ |
212 | 210 | SET_MAKE = @SET_MAKE@ |
249 | 247 | libexecdir = @libexecdir@ |
250 | 248 | localedir = @localedir@ |
251 | 249 | localstatedir = @localstatedir@ |
250 | lt_ECHO = @lt_ECHO@ | |
252 | 251 | mandir = @mandir@ |
253 | 252 | mkdir_p = @mkdir_p@ |
254 | 253 | 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 | ||
0 | 22 | 0.2.1 |
1 | ==== | |
23 | ===== | |
2 | 24 | |
3 | 25 | Brown paper-bag release for bad gstreamer dependency. |
4 | 26 |
41 | 41 | encoder from encodebin. Edward has a plan for this. |
42 | 42 | |
43 | 43 | * 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 |
987 | 987 | AC_SUBST([am__untar]) |
988 | 988 | ]) # _AM_PROG_TAR |
989 | 989 | |
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 | ||
1052 | 990 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1053 | 991 | # |
1054 | 992 | # 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. | |
1057 | 994 | # Written by Gordon Matzigkeit, 1996 |
1058 | 995 | # |
1059 | 996 | # This file is free software; the Free Software Foundation gives |
1062 | 999 | |
1063 | 1000 | m4_define([_LT_COPYING], [dnl |
1064 | 1001 | # 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. | |
1067 | 1003 | # Written by Gordon Matzigkeit, 1996 |
1068 | 1004 | # |
1069 | 1005 | # This file is part of GNU Libtool. |
1090 | 1026 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
1091 | 1027 | ]) |
1092 | 1028 | |
1093 | # serial 57 LT_INIT | |
1029 | # serial 56 LT_INIT | |
1094 | 1030 | |
1095 | 1031 | |
1096 | 1032 | # LT_PREREQ(VERSION) |
1119 | 1055 | # ------------------ |
1120 | 1056 | AC_DEFUN([LT_INIT], |
1121 | 1057 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT |
1122 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
1123 | 1058 | AC_BEFORE([$0], [LT_LANG])dnl |
1124 | 1059 | AC_BEFORE([$0], [LT_OUTPUT])dnl |
1125 | 1060 | AC_BEFORE([$0], [LTDL_INIT])dnl |
1135 | 1070 | AC_REQUIRE([LTVERSION_VERSION])dnl |
1136 | 1071 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl |
1137 | 1072 | m4_require([_LT_PROG_LTMAIN])dnl |
1138 | ||
1139 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
1140 | 1073 | |
1141 | 1074 | dnl Parse OPTIONS |
1142 | 1075 | _LT_SET_OPTIONS([$0], [$1]) |
1174 | 1107 | *) break;; |
1175 | 1108 | esac |
1176 | 1109 | 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-%%"` | |
1178 | 1111 | ]) |
1179 | 1112 | |
1180 | 1113 | |
1194 | 1127 | m4_defun([_LT_SETUP], |
1195 | 1128 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1196 | 1129 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1197 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | |
1198 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
1199 | ||
1200 | 1130 | _LT_DECL([], [host_alias], [0], [The host system])dnl |
1201 | 1131 | _LT_DECL([], [host], [0])dnl |
1202 | 1132 | _LT_DECL([], [host_os], [0])dnl |
1238 | 1168 | _LT_CHECK_OBJDIR |
1239 | 1169 | |
1240 | 1170 | m4_require([_LT_TAG_COMPILER])dnl |
1171 | _LT_PROG_ECHO_BACKSLASH | |
1241 | 1172 | |
1242 | 1173 | case $host_os in |
1243 | 1174 | aix3*) |
1251 | 1182 | ;; |
1252 | 1183 | esac |
1253 | 1184 | |
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 | ||
1254 | 1202 | # Global variables: |
1255 | 1203 | ofile=libtool |
1256 | 1204 | can_build_shared=yes |
1290 | 1238 | _LT_CONFIG_COMMANDS |
1291 | 1239 | ])# _LT_SETUP |
1292 | 1240 | |
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 | ]) | |
1315 | 1241 | |
1316 | 1242 | # _LT_PROG_LTMAIN |
1317 | 1243 | # --------------- |
1465 | 1391 | # declaration there will have the same value as in `configure'. VARNAME |
1466 | 1392 | # must have a single quote delimited value for this to work. |
1467 | 1393 | 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"`']) | |
1469 | 1395 | |
1470 | 1396 | |
1471 | 1397 | # _LT_CONFIG_STATUS_DECLARATIONS |
1475 | 1401 | # embedded single quotes properly. In configure, this macro expands |
1476 | 1402 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: |
1477 | 1403 | # |
1478 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
1404 | # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' | |
1479 | 1405 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], |
1480 | 1406 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), |
1481 | 1407 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) |
1574 | 1500 | LTCFLAGS='$LTCFLAGS' |
1575 | 1501 | compiler='$compiler_DEFAULT' |
1576 | 1502 | |
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 | ||
1585 | 1503 | # Quote evaled strings. |
1586 | 1504 | for var in lt_decl_all_varnames([[ \ |
1587 | 1505 | ]], lt_decl_quote_varnames); do |
1588 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
1506 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
1589 | 1507 | *[[\\\\\\\`\\"\\\$]]*) |
1590 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
1508 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
1591 | 1509 | ;; |
1592 | 1510 | *) |
1593 | 1511 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1598 | 1516 | # Double-quote double-evaled strings. |
1599 | 1517 | for var in lt_decl_all_varnames([[ \ |
1600 | 1518 | ]], lt_decl_dquote_varnames); do |
1601 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
1519 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
1602 | 1520 | *[[\\\\\\\`\\"\\\$]]*) |
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\\"\\\`\\\\\\"" | |
1604 | 1522 | ;; |
1605 | 1523 | *) |
1606 | 1524 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
1608 | 1526 | esac |
1609 | 1527 | done |
1610 | 1528 | |
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 | ||
1611 | 1536 | _LT_OUTPUT_LIBTOOL_INIT |
1612 | 1537 | ]) |
1613 | 1538 | |
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 | |
1643 | 1539 | |
1644 | 1540 | # LT_OUTPUT |
1645 | 1541 | # --------- |
1649 | 1545 | AC_DEFUN([LT_OUTPUT], |
1650 | 1546 | [: ${CONFIG_LT=./config.lt} |
1651 | 1547 | 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 | |
1654 | 1556 | |
1655 | 1557 | cat >>"$CONFIG_LT" <<\_LTEOF |
1656 | lt_cl_silent=false | |
1558 | AS_SHELL_SANITIZE | |
1559 | _AS_PREPARE | |
1560 | ||
1561 | exec AS_MESSAGE_FD>&1 | |
1657 | 1562 | exec AS_MESSAGE_LOG_FD>>config.log |
1658 | 1563 | { |
1659 | 1564 | echo |
1679 | 1584 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) |
1680 | 1585 | configured by $[0], generated by m4_PACKAGE_STRING. |
1681 | 1586 | |
1682 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1587 | Copyright (C) 2008 Free Software Foundation, Inc. | |
1683 | 1588 | This config.lt script is free software; the Free Software Foundation |
1684 | 1589 | gives unlimited permision to copy, distribute and modify it." |
1685 | 1590 | |
1724 | 1629 | # appending to config.log, which fails on DOS, as config.log is still kept |
1725 | 1630 | # open by configure. Here we exec the FD to /dev/null, effectively closing |
1726 | 1631 | # 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 | |
1734 | 1641 | ])# LT_OUTPUT |
1735 | 1642 | |
1736 | 1643 | |
1907 | 1814 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) |
1908 | 1815 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) |
1909 | 1816 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) |
1910 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
1911 | 1817 | dnl aclocal-1.4 backwards compatibility: |
1912 | 1818 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) |
1913 | 1819 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) |
1914 | 1820 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) |
1915 | 1821 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) |
1916 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
1917 | 1822 | |
1918 | 1823 | |
1919 | 1824 | # _LT_TAG_COMPILER |
2018 | 1923 | [lt_cv_ld_exported_symbols_list=no]) |
2019 | 1924 | LDFLAGS="$save_LDFLAGS" |
2020 | 1925 | ]) |
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 | ]) | |
2046 | 1926 | case $host_os in |
2047 | 1927 | rhapsody* | darwin1.[[012]]) |
2048 | 1928 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
2070 | 1950 | else |
2071 | 1951 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
2072 | 1952 | fi |
2073 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
1953 | if test "$DSYMUTIL" != ":"; then | |
2074 | 1954 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
2075 | 1955 | else |
2076 | 1956 | _lt_dsymutil= |
2090 | 1970 | _LT_TAGVAR(hardcode_direct, $1)=no |
2091 | 1971 | _LT_TAGVAR(hardcode_automatic, $1)=yes |
2092 | 1972 | _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)='' | |
2098 | 1974 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
2099 | 1975 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
2100 | 1976 | case $cc_basename in |
2102 | 1978 | *) _lt_dar_can_shared=$GCC ;; |
2103 | 1979 | esac |
2104 | 1980 | if test "$_lt_dar_can_shared" = "yes"; then |
2105 | output_verbose_link_cmd=func_echo_all | |
1981 | output_verbose_link_cmd=echo | |
2106 | 1982 | _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}" |
2107 | 1983 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
2108 | 1984 | _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}" |
2148 | 2024 | # _LT_SHELL_INIT(ARG) |
2149 | 2025 | # ------------------- |
2150 | 2026 | 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 | |
2154 | 2033 | |
2155 | 2034 | |
2156 | 2035 | # _LT_PROG_ECHO_BACKSLASH |
2157 | 2036 | # ----------------------- |
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. | |
2162 | 2039 | 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 | : | |
2174 | 2061 | 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+"[$]@"} | |
2183 | 2064 | fi |
2184 | 2065 | |
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 | ]) | |
2208 | 2188 | _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]) | |
2210 | 2191 | ])# _LT_PROG_ECHO_BACKSLASH |
2211 | 2192 | |
2212 | 2193 | |
2238 | 2219 | ;; |
2239 | 2220 | *-*-irix6*) |
2240 | 2221 | # Find out which ABI we are using. |
2241 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
2222 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | |
2242 | 2223 | if AC_TRY_EVAL(ac_compile); then |
2243 | 2224 | if test "$lt_cv_prog_gnu_ld" = yes; then |
2244 | 2225 | case `/usr/bin/file conftest.$ac_objext` in |
2390 | 2371 | esac |
2391 | 2372 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
2392 | 2373 | fi |
2393 | ||
2394 | case $host_os in | |
2395 | darwin*) | |
2396 | lock_old_archive_extraction=yes ;; | |
2397 | *) | |
2398 | lock_old_archive_extraction=no ;; | |
2399 | esac | |
2400 | 2374 | _LT_DECL([], [old_postinstall_cmds], [2]) |
2401 | 2375 | _LT_DECL([], [old_postuninstall_cmds], [2]) |
2402 | 2376 | _LT_TAGDECL([], [old_archive_cmds], [2], |
2403 | 2377 | [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]) | |
2406 | 2378 | ])# _LT_CMD_OLD_ARCHIVE |
2407 | 2379 | |
2408 | 2380 | |
2427 | 2399 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2428 | 2400 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2429 | 2401 | -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) | |
2431 | 2403 | (eval "$lt_compile" 2>conftest.err) |
2432 | 2404 | ac_status=$? |
2433 | 2405 | 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 | |
2435 | 2407 | if (exit $ac_status) && test -s "$ac_outfile"; then |
2436 | 2408 | # The compiler can only warn and ignore the option if not recognized |
2437 | 2409 | # 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 | |
2439 | 2411 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2440 | 2412 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
2441 | 2413 | $2=yes |
2475 | 2447 | if test -s conftest.err; then |
2476 | 2448 | # Append any errors to the config.log. |
2477 | 2449 | 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 | |
2479 | 2451 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2480 | 2452 | if diff conftest.exp conftest.er2 >/dev/null; then |
2481 | 2453 | $2=yes |
2535 | 2507 | # the test eventually succeeds (with a max line length of 256k). |
2536 | 2508 | # Instead, let's just punt: use the minimum linelength reported by |
2537 | 2509 | # 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. | |
2543 | 2510 | lt_cv_sys_max_cmd_len=8192; |
2544 | 2511 | ;; |
2545 | 2512 | |
2607 | 2574 | # If test is not a shell built-in, we'll probably end up computing a |
2608 | 2575 | # maximum length that is only half of the actual maximum length, but |
2609 | 2576 | # 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 && | |
2612 | 2579 | test $i != 17 # 1/2 MB should be enough |
2613 | 2580 | do |
2614 | 2581 | i=`expr $i + 1` |
2659 | 2626 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2660 | 2627 | lt_status=$lt_dlunknown |
2661 | 2628 | cat > conftest.$ac_ext <<_LT_EOF |
2662 | [#line $LINENO "configure" | |
2629 | [#line __oline__ "configure" | |
2663 | 2630 | #include "confdefs.h" |
2664 | 2631 | |
2665 | 2632 | #if HAVE_DLFCN_H |
2700 | 2667 | # endif |
2701 | 2668 | #endif |
2702 | 2669 | |
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;} | |
2710 | 2671 | int main () |
2711 | 2672 | { |
2712 | 2673 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2715 | 2676 | if (self) |
2716 | 2677 | { |
2717 | 2678 | 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; | |
2723 | 2680 | /* dlclose (self); */ |
2724 | 2681 | } |
2725 | 2682 | else |
2895 | 2852 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2896 | 2853 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2897 | 2854 | -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) | |
2899 | 2856 | (eval "$lt_compile" 2>out/conftest.err) |
2900 | 2857 | ac_status=$? |
2901 | 2858 | 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 | |
2903 | 2860 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2904 | 2861 | then |
2905 | 2862 | # The compiler can only warn and ignore the option if not recognized |
2906 | 2863 | # 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 | |
2908 | 2865 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
2909 | 2866 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2910 | 2867 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
3063 | 3020 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
3064 | 3021 | m4_require([_LT_DECL_OBJDUMP])dnl |
3065 | 3022 | m4_require([_LT_DECL_SED])dnl |
3066 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
3067 | 3023 | AC_MSG_CHECKING([dynamic linker characteristics]) |
3068 | 3024 | m4_if([$1], |
3069 | 3025 | [], [ |
3072 | 3028 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
3073 | 3029 | *) lt_awk_arg="/^libraries:/" ;; |
3074 | 3030 | 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 | |
3082 | 3033 | # if the path contains ";" then we assume it to be the separator |
3083 | 3034 | # otherwise default to the standard path separator (i.e. ":") - it is |
3084 | 3035 | # assumed that no part of a normal pathname contains ";" but that should |
3085 | 3036 | # 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 | |
3092 | 3041 | # Ok, now we have the path, separated by spaces, we can step through it |
3093 | 3042 | # and add multilib dir if necessary. |
3094 | 3043 | lt_tmp_lt_search_path_spec= |
3101 | 3050 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
3102 | 3051 | fi |
3103 | 3052 | 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 ' | |
3105 | 3054 | BEGIN {RS=" "; FS="/|\n";} { |
3106 | 3055 | lt_foo=""; |
3107 | 3056 | lt_count=0; |
3121 | 3070 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
3122 | 3071 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
3123 | 3072 | }'` |
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` | |
3131 | 3074 | else |
3132 | 3075 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
3133 | 3076 | fi]) |
3215 | 3158 | m68k) |
3216 | 3159 | library_names_spec='$libname.ixlibrary $libname.a' |
3217 | 3160 | # 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' | |
3219 | 3162 | ;; |
3220 | 3163 | esac |
3221 | 3164 | ;; |
3268 | 3211 | cygwin*) |
3269 | 3212 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
3270 | 3213 | 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" | |
3273 | 3215 | ;; |
3274 | 3216 | mingw* | cegcc*) |
3275 | 3217 | # MinGW DLLs use traditional 'lib' prefix |
3276 | 3218 | 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 | |
3277 | 3231 | ;; |
3278 | 3232 | pw32*) |
3279 | 3233 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
3330 | 3284 | *) objformat=elf ;; |
3331 | 3285 | esac |
3332 | 3286 | 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 | |
3341 | 3288 | case $version_type in |
3342 | 3289 | freebsd-elf*) |
3343 | 3290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
3347 | 3294 | freebsd-*) |
3348 | 3295 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
3349 | 3296 | 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 | |
3356 | 3297 | ;; |
3357 | 3298 | esac |
3358 | 3299 | shlibpath_var=LD_LIBRARY_PATH |
3383 | 3324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
3384 | 3325 | soname_spec='${libname}${release}${shared_ext}$major' |
3385 | 3326 | 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' | |
3399 | 3327 | hardcode_into_libs=yes |
3400 | 3328 | ;; |
3401 | 3329 | |
3441 | 3369 | soname_spec='${libname}${release}${shared_ext}$major' |
3442 | 3370 | ;; |
3443 | 3371 | 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. | |
3445 | 3373 | postinstall_cmds='chmod 555 $lib' |
3446 | # or fails outright, so override atomically: | |
3447 | install_override_mode=555 | |
3448 | 3374 | ;; |
3449 | 3375 | |
3450 | 3376 | interix[[3-9]]*) |
3511 | 3437 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
3512 | 3438 | shlibpath_var=LD_LIBRARY_PATH |
3513 | 3439 | shlibpath_overrides_runpath=no |
3514 | ||
3515 | 3440 | # 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 | |
3529 | 3450 | |
3530 | 3451 | # This implies no fast_install, which is unacceptable. |
3531 | 3452 | # Some rework will be needed to allow for fast_install |
3534 | 3455 | |
3535 | 3456 | # Append ld.so.conf contents to the search path |
3536 | 3457 | 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' ' '` | |
3538 | 3459 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
3539 | 3460 | fi |
3540 | 3461 | |
3545 | 3466 | # people can always --disable-shared, the test was removed, and we |
3546 | 3467 | # assume the GNU/Linux dynamic linker is in use. |
3547 | 3468 | 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' | |
3548 | 3481 | ;; |
3549 | 3482 | |
3550 | 3483 | netbsd*) |
3767 | 3700 | The last name is the one that the linker finds with -lNAME]]) |
3768 | 3701 | _LT_DECL([], [soname_spec], [1], |
3769 | 3702 | [[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]) | |
3772 | 3703 | _LT_DECL([], [postinstall_cmds], [2], |
3773 | 3704 | [Command to use after installation of a shared archive]) |
3774 | 3705 | _LT_DECL([], [postuninstall_cmds], [2], |
3881 | 3812 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3882 | 3813 | m4_require([_LT_DECL_SED])dnl |
3883 | 3814 | m4_require([_LT_DECL_EGREP])dnl |
3884 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
3885 | 3815 | |
3886 | 3816 | AC_ARG_WITH([gnu-ld], |
3887 | 3817 | [AS_HELP_STRING([--with-gnu-ld], |
4011 | 3941 | fi |
4012 | 3942 | ;; |
4013 | 3943 | 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 | |
4016 | 3946 | ])# _LT_CMD_RELOAD |
4017 | 3947 | |
4018 | 3948 | |
4064 | 3994 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4065 | 3995 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4066 | 3996 | # 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 | |
4069 | 3998 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4070 | 3999 | lt_cv_file_magic_cmd='func_win32_libid' |
4071 | 4000 | 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)?' | |
4074 | 4002 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4075 | 4003 | fi |
4076 | 4004 | ;; |
4077 | 4005 | |
4078 | cegcc*) | |
4006 | cegcc) | |
4079 | 4007 | # use the weaker test based on 'objdump'. See mingw*. |
4080 | 4008 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
4081 | 4009 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4105 | 4033 | lt_cv_deplibs_check_method=pass_all |
4106 | 4034 | ;; |
4107 | 4035 | |
4108 | haiku*) | |
4109 | lt_cv_deplibs_check_method=pass_all | |
4110 | ;; | |
4111 | ||
4112 | 4036 | hpux10.20* | hpux11*) |
4113 | 4037 | lt_cv_file_magic_cmd=/usr/bin/file |
4114 | 4038 | case $host_cpu in |
4117 | 4041 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4118 | 4042 | ;; |
4119 | 4043 | 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]'] | |
4121 | 4045 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4122 | 4046 | ;; |
4123 | 4047 | *) |
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' | |
4125 | 4049 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4126 | 4050 | ;; |
4127 | 4051 | esac |
4147 | 4071 | lt_cv_deplibs_check_method=pass_all |
4148 | 4072 | ;; |
4149 | 4073 | |
4150 | netbsd*) | |
4074 | netbsd* | netbsdelf*-gnu) | |
4151 | 4075 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
4152 | 4076 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
4153 | 4077 | else |
4285 | 4209 | NM="$lt_cv_path_NM" |
4286 | 4210 | else |
4287 | 4211 | # 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"], :) | |
4301 | 4213 | AC_SUBST([DUMPBIN]) |
4302 | 4214 | if test "$DUMPBIN" != ":"; then |
4303 | 4215 | NM="$DUMPBIN" |
4310 | 4222 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], |
4311 | 4223 | [lt_cv_nm_interface="BSD nm" |
4312 | 4224 | 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) | |
4314 | 4226 | (eval "$ac_compile" 2>conftest.err) |
4315 | 4227 | 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) | |
4317 | 4229 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4318 | 4230 | 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) | |
4320 | 4232 | cat conftest.out >&AS_MESSAGE_LOG_FD |
4321 | 4233 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
4322 | 4234 | lt_cv_nm_interface="MS dumpbin" |
4339 | 4251 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4340 | 4252 | LIBM= |
4341 | 4253 | case $host in |
4342 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
4254 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | |
4343 | 4255 | # These system don't have libm, or don't need it |
4344 | 4256 | ;; |
4345 | 4257 | *-ncr-sysv4.3*) |
4367 | 4279 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
4368 | 4280 | |
4369 | 4281 | 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' | |
4376 | 4283 | |
4377 | 4284 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], |
4378 | 4285 | lt_cv_prog_compiler_rtti_exceptions, |
4389 | 4296 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], |
4390 | 4297 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4391 | 4298 | AC_REQUIRE([AC_PROG_CC])dnl |
4392 | AC_REQUIRE([AC_PROG_AWK])dnl | |
4393 | 4299 | AC_REQUIRE([LT_PATH_NM])dnl |
4394 | 4300 | AC_REQUIRE([LT_PATH_LD])dnl |
4395 | 4301 | m4_require([_LT_DECL_SED])dnl |
4515 | 4421 | if AC_TRY_EVAL(ac_compile); then |
4516 | 4422 | # Now try to grab the symbols. |
4517 | 4423 | 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 | |
4519 | 4425 | # Try sorting and uniquifying the output. |
4520 | 4426 | if sort "$nlist" | uniq > "$nlist"T; then |
4521 | 4427 | mv -f "$nlist"T "$nlist" |
4676 | 4582 | *djgpp*) |
4677 | 4583 | # DJGPP does not support shared libraries at all |
4678 | 4584 | _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)= | |
4684 | 4585 | ;; |
4685 | 4586 | interix[[3-9]]*) |
4686 | 4587 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
4820 | 4721 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
4821 | 4722 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
4822 | 4723 | ;; |
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 | |
4825 | 4726 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
4826 | 4727 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
4827 | 4728 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
4851 | 4752 | ;; |
4852 | 4753 | esac |
4853 | 4754 | ;; |
4854 | netbsd*) | |
4755 | netbsd* | netbsdelf*-gnu) | |
4855 | 4756 | ;; |
4856 | 4757 | *qnx* | *nto*) |
4857 | 4758 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
4883 | 4784 | ;; |
4884 | 4785 | solaris*) |
4885 | 4786 | case $cc_basename in |
4886 | CC* | sunCC*) | |
4787 | CC*) | |
4887 | 4788 | # Sun C++ 4.2, 5.x and Centerline C++ |
4888 | 4789 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
4889 | 4790 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
4987 | 4888 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' |
4988 | 4889 | ;; |
4989 | 4890 | |
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 | ||
4996 | 4891 | hpux*) |
4997 | 4892 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
4998 | 4893 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
5033 | 4928 | |
5034 | 4929 | *) |
5035 | 4930 | _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' | |
5043 | 4931 | ;; |
5044 | 4932 | esac |
5045 | 4933 | else |
5105 | 4993 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
5106 | 4994 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
5107 | 4995 | ;; |
5108 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
4996 | pgcc* | pgf77* | pgf90* | pgf95*) | |
5109 | 4997 | # Portland Group compilers (*not* the Pentium gcc compiler, |
5110 | 4998 | # which looks to be a dead project) |
5111 | 4999 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5117 | 5005 | # All Alpha code is PIC. |
5118 | 5006 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
5119 | 5007 | ;; |
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 | |
5122 | 5010 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5123 | 5011 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' |
5124 | 5012 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' |
5125 | 5013 | ;; |
5126 | 5014 | *) |
5127 | 5015 | 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 | ;; | |
5134 | 5016 | *Sun\ C*) |
5135 | 5017 | # Sun C 5.9 |
5136 | 5018 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5137 | 5019 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5138 | 5020 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
5139 | 5021 | ;; |
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 | ;; | |
5140 | 5028 | esac |
5141 | 5029 | ;; |
5142 | 5030 | esac |
5167 | 5055 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
5168 | 5056 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
5169 | 5057 | case $cc_basename in |
5170 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
5058 | f77* | f90* | f95*) | |
5171 | 5059 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; |
5172 | 5060 | *) |
5173 | 5061 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; |
5277 | 5165 | aix[[4-9]]*) |
5278 | 5166 | # If we're using GNU nm, then we don't want the "-C" option. |
5279 | 5167 | # -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". | |
5282 | 5168 | 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' | |
5284 | 5170 | else |
5285 | 5171 | _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' |
5286 | 5172 | fi |
5290 | 5176 | ;; |
5291 | 5177 | cygwin* | mingw* | cegcc*) |
5292 | 5178 | _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 | |
5293 | 5182 | ;; |
5294 | 5183 | *) |
5295 | 5184 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5355 | 5244 | openbsd*) |
5356 | 5245 | with_gnu_ld=no |
5357 | 5246 | ;; |
5247 | linux* | k*bsd*-gnu) | |
5248 | _LT_TAGVAR(link_all_deplibs, $1)=no | |
5249 | ;; | |
5358 | 5250 | esac |
5359 | 5251 | |
5360 | 5252 | _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 | |
5365 | 5253 | 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 | |
5388 | 5254 | # If archive_cmds runs LD, not CC, wlarc should be empty |
5389 | 5255 | wlarc='${wl}' |
5390 | 5256 | |
5418 | 5284 | _LT_TAGVAR(ld_shlibs, $1)=no |
5419 | 5285 | cat <<_LT_EOF 1>&2 |
5420 | 5286 | |
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 | |
5422 | 5288 | *** to be unable to reliably create shared libraries on AIX. |
5423 | 5289 | *** 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. | |
5427 | 5292 | |
5428 | 5293 | _LT_EOF |
5429 | 5294 | fi |
5459 | 5324 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
5460 | 5325 | # as there is no search path for DLLs. |
5461 | 5326 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
5462 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
5463 | 5327 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5464 | 5328 | _LT_TAGVAR(always_export_symbols, $1)=no |
5465 | 5329 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5481 | 5345 | fi |
5482 | 5346 | ;; |
5483 | 5347 | |
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 | ||
5489 | 5348 | interix[[3-9]]*) |
5490 | 5349 | _LT_TAGVAR(hardcode_direct, $1)=no |
5491 | 5350 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
5515 | 5374 | tmp_sharedflag='-shared' |
5516 | 5375 | case $cc_basename,$host_cpu in |
5517 | 5376 | 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' | |
5519 | 5378 | tmp_addflag=' $pic_flag' |
5520 | 5379 | ;; |
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' | |
5524 | 5382 | tmp_addflag=' $pic_flag -Mnomain' ;; |
5525 | 5383 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
5526 | 5384 | tmp_addflag=' -i_dynamic' ;; |
5531 | 5389 | lf95*) # Lahey Fortran 8.1 |
5532 | 5390 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
5533 | 5391 | 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) | |
5535 | 5393 | tmp_sharedflag='-qmkshrobj' |
5536 | 5394 | 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 | ;; | |
5541 | 5395 | esac |
5542 | 5396 | case `$CC -V 2>&1 | sed 5q` in |
5543 | 5397 | *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' | |
5545 | 5399 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
5546 | 5400 | tmp_sharedflag='-G' ;; |
5547 | 5401 | *Sun\ F*) # Sun Fortran 8.3 |
5557 | 5411 | fi |
5558 | 5412 | |
5559 | 5413 | case $cc_basename in |
5560 | xlf* | bgf* | bgxlf* | mpixlf*) | |
5414 | xlf*) | |
5561 | 5415 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
5562 | 5416 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' |
5563 | 5417 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= |
5564 | 5418 | _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' | |
5566 | 5420 | if test "x$supports_anon_versioning" = xyes; then |
5567 | 5421 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ |
5568 | 5422 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
5569 | 5423 | 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' | |
5571 | 5425 | fi |
5572 | 5426 | ;; |
5573 | 5427 | esac |
5576 | 5430 | fi |
5577 | 5431 | ;; |
5578 | 5432 | |
5579 | netbsd*) | |
5433 | netbsd* | netbsdelf*-gnu) | |
5580 | 5434 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
5581 | 5435 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5582 | 5436 | wlarc= |
5688 | 5542 | else |
5689 | 5543 | # If we're using GNU nm, then we don't want the "-C" option. |
5690 | 5544 | # -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". | |
5693 | 5545 | 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' | |
5695 | 5547 | else |
5696 | 5548 | _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' |
5697 | 5549 | fi |
5753 | 5605 | if test "$aix_use_runtimelinking" = yes; then |
5754 | 5606 | shared_flag="$shared_flag "'${wl}-G' |
5755 | 5607 | fi |
5608 | _LT_TAGVAR(link_all_deplibs, $1)=no | |
5756 | 5609 | else |
5757 | 5610 | # not using gcc |
5758 | 5611 | if test "$host_cpu" = ia64; then |
5780 | 5633 | # empty executable. |
5781 | 5634 | _LT_SYS_MODULE_PATH_AIX |
5782 | 5635 | _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" | |
5784 | 5637 | else |
5785 | 5638 | if test "$host_cpu" = ia64; then |
5786 | 5639 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
5795 | 5648 | # -berok will link without error, but may produce a broken library. |
5796 | 5649 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
5797 | 5650 | _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' | |
5805 | 5653 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
5806 | 5654 | # This is similar to how AIX traditionally builds its shared libraries. |
5807 | 5655 | _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' |
5840 | 5688 | # Tell ltmain to make .dll files, not .so files. |
5841 | 5689 | shrext_cmds=".dll" |
5842 | 5690 | # 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=' | |
5844 | 5692 | # The linker will automatically build a .lib file if we build a DLL. |
5845 | 5693 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' |
5846 | 5694 | # FIXME: Should let the user specify the lib program. |
5907 | 5755 | ;; |
5908 | 5756 | |
5909 | 5757 | hpux10*) |
5910 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
5758 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
5911 | 5759 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
5912 | 5760 | else |
5913 | 5761 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
5926 | 5774 | ;; |
5927 | 5775 | |
5928 | 5776 | hpux11*) |
5929 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
5777 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
5930 | 5778 | case $host_cpu in |
5931 | 5779 | hppa*64*) |
5932 | 5780 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
5947 | 5795 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
5948 | 5796 | ;; |
5949 | 5797 | *) |
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' | |
5958 | 5799 | ;; |
5959 | 5800 | esac |
5960 | 5801 | fi |
5982 | 5823 | |
5983 | 5824 | irix5* | irix6* | nonstopux*) |
5984 | 5825 | 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' | |
5986 | 5827 | # Try to use the -exported_symbol ld option, if it does not |
5987 | 5828 | # work, assume that -exports_file does not work either and |
5988 | 5829 | # implicitly export all symbols. |
5989 | 5830 | save_LDFLAGS="$LDFLAGS" |
5990 | 5831 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
5991 | 5832 | 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' | |
5993 | 5834 | ) |
5994 | 5835 | LDFLAGS="$save_LDFLAGS" |
5995 | 5836 | 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' | |
5998 | 5839 | fi |
5999 | 5840 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6000 | 5841 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6003 | 5844 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
6004 | 5845 | ;; |
6005 | 5846 | |
6006 | netbsd*) | |
5847 | netbsd* | netbsdelf*-gnu) | |
6007 | 5848 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
6008 | 5849 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
6009 | 5850 | else |
6056 | 5897 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6057 | 5898 | _LT_TAGVAR(hardcode_minus_L, $1)=yes |
6058 | 5899 | _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' | |
6060 | 5901 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
6061 | 5902 | ;; |
6062 | 5903 | |
6063 | 5904 | osf3*) |
6064 | 5905 | if test "$GCC" = yes; then |
6065 | 5906 | _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' | |
6067 | 5908 | else |
6068 | 5909 | _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' | |
6070 | 5911 | fi |
6071 | 5912 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' |
6072 | 5913 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6076 | 5917 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
6077 | 5918 | if test "$GCC" = yes; then |
6078 | 5919 | _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' | |
6080 | 5921 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6081 | 5922 | else |
6082 | 5923 | _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' | |
6084 | 5925 | _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' | |
6086 | 5927 | |
6087 | 5928 | # Both c and cxx compiler support -rpath directly |
6088 | 5929 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
6273 | 6114 | # Test whether the compiler implicitly links with -lc since on some |
6274 | 6115 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
6275 | 6116 | # 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)]) | |
6308 | 6147 | ;; |
6309 | 6148 | esac |
6310 | 6149 | fi |
6470 | 6309 | ])# _LT_LANG_C_CONFIG |
6471 | 6310 | |
6472 | 6311 | |
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 | |
6481 | 6320 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6482 | 6321 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6483 | 6322 | (test "X$CXX" != "Xg++"))) ; then |
6485 | 6324 | else |
6486 | 6325 | _lt_caught_CXX_error=yes |
6487 | 6326 | 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 | |
6488 | 6343 | |
6489 | 6344 | AC_LANG_PUSH(C++) |
6490 | 6345 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
6506 | 6361 | _LT_TAGVAR(module_expsym_cmds, $1)= |
6507 | 6362 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
6508 | 6363 | _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 | |
6511 | 6364 | _LT_TAGVAR(no_undefined_flag, $1)= |
6512 | 6365 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
6513 | 6366 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
6610 | 6463 | # Commands to make compiler produce verbose output that lists |
6611 | 6464 | # what "hidden" libraries, object files and flags are used when |
6612 | 6465 | # 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"' | |
6614 | 6467 | |
6615 | 6468 | else |
6616 | 6469 | GXX=no |
6722 | 6575 | _LT_SYS_MODULE_PATH_AIX |
6723 | 6576 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6724 | 6577 | |
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" | |
6726 | 6579 | else |
6727 | 6580 | if test "$host_cpu" = ia64; then |
6728 | 6581 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
6737 | 6590 | # -berok will link without error, but may produce a broken library. |
6738 | 6591 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
6739 | 6592 | _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' | |
6747 | 6595 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes |
6748 | 6596 | # This is similar to how AIX traditionally builds its shared |
6749 | 6597 | # libraries. |
6776 | 6624 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
6777 | 6625 | # as there is no search path for DLLs. |
6778 | 6626 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
6779 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
6780 | 6627 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
6781 | 6628 | _LT_TAGVAR(always_export_symbols, $1)=no |
6782 | 6629 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
6837 | 6684 | gnu*) |
6838 | 6685 | ;; |
6839 | 6686 | |
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 | ||
6845 | 6687 | hpux9*) |
6846 | 6688 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
6847 | 6689 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: |
6866 | 6708 | # explicitly linking system object files so we need to strip them |
6867 | 6709 | # from the output so that they don't get included in the library |
6868 | 6710 | # 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' | |
6870 | 6712 | ;; |
6871 | 6713 | *) |
6872 | 6714 | if test "$GXX" = yes; then |
6931 | 6773 | # explicitly linking system object files so we need to strip them |
6932 | 6774 | # from the output so that they don't get included in the library |
6933 | 6775 | # 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' | |
6935 | 6777 | ;; |
6936 | 6778 | *) |
6937 | 6779 | if test "$GXX" = yes; then |
6974 | 6816 | case $cc_basename in |
6975 | 6817 | CC*) |
6976 | 6818 | # 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' | |
6978 | 6820 | |
6979 | 6821 | # Archives containing C++ object files must be created using |
6980 | 6822 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
6985 | 6827 | *) |
6986 | 6828 | if test "$GXX" = yes; then |
6987 | 6829 | 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' | |
6989 | 6831 | 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' | |
6991 | 6833 | fi |
6992 | 6834 | fi |
6993 | 6835 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
7016 | 6858 | # explicitly linking system object files so we need to strip them |
7017 | 6859 | # from the output so that they don't get included in the library |
7018 | 6860 | # 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' | |
7020 | 6862 | |
7021 | 6863 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
7022 | 6864 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
7053 | 6895 | pgCC* | pgcpp*) |
7054 | 6896 | # Portland Group C++ compiler |
7055 | 6897 | case `$CC -V` in |
7056 | *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | |
6898 | *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) | |
7057 | 6899 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ |
7058 | 6900 | rm -rf $tpldir~ |
7059 | 6901 | $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`"' | |
7061 | 6903 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ |
7062 | 6904 | rm -rf $tpldir~ |
7063 | 6905 | $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`~ | |
7065 | 6907 | $RANLIB $oldlib' |
7066 | 6908 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ |
7067 | 6909 | rm -rf $tpldir~ |
7068 | 6910 | $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' | |
7070 | 6912 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ |
7071 | 6913 | rm -rf $tpldir~ |
7072 | 6914 | $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' | |
7074 | 6916 | ;; |
7075 | *) # Version 6 and above use weak symbols | |
6917 | *) # Version 6 will use weak symbols | |
7076 | 6918 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
7077 | 6919 | _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' |
7078 | 6920 | ;; |
7080 | 6922 | |
7081 | 6923 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
7082 | 6924 | _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' | |
7084 | 6926 | ;; |
7085 | 6927 | cxx*) |
7086 | 6928 | # Compaq C++ |
7099 | 6941 | # explicitly linking system object files so we need to strip them |
7100 | 6942 | # from the output so that they don't get included in the library |
7101 | 6943 | # 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' | |
7103 | 6945 | ;; |
7104 | xl* | mpixl* | bgxl*) | |
6946 | xl*) | |
7105 | 6947 | # IBM XL 8.0 on PPC, with GNU ld |
7106 | 6948 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
7107 | 6949 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
7121 | 6963 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7122 | 6964 | _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' |
7123 | 6965 | _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' | |
7125 | 6967 | _LT_TAGVAR(compiler_needs_object, $1)=yes |
7126 | 6968 | |
7127 | 6969 | # Not sure whether something based on |
7128 | 6970 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
7129 | 6971 | # would be better. |
7130 | output_verbose_link_cmd='func_echo_all' | |
6972 | output_verbose_link_cmd='echo' | |
7131 | 6973 | |
7132 | 6974 | # Archives containing C++ object files must be created using |
7133 | 6975 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
7196 | 7038 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
7197 | 7039 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7198 | 7040 | fi |
7199 | output_verbose_link_cmd=func_echo_all | |
7041 | output_verbose_link_cmd=echo | |
7200 | 7042 | else |
7201 | 7043 | _LT_TAGVAR(ld_shlibs, $1)=no |
7202 | 7044 | fi |
7231 | 7073 | case $host in |
7232 | 7074 | osf3*) |
7233 | 7075 | _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' | |
7235 | 7077 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
7236 | 7078 | ;; |
7237 | 7079 | *) |
7238 | 7080 | _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' | |
7240 | 7082 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
7241 | 7083 | 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~ | |
7243 | 7085 | $RM $lib.exp' |
7244 | 7086 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
7245 | 7087 | ;; |
7255 | 7097 | # explicitly linking system object files so we need to strip them |
7256 | 7098 | # from the output so that they don't get included in the library |
7257 | 7099 | # 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' | |
7259 | 7101 | ;; |
7260 | 7102 | *) |
7261 | 7103 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
7262 | 7104 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
7263 | 7105 | case $host in |
7264 | 7106 | 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' | |
7266 | 7108 | ;; |
7267 | 7109 | *) |
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' | |
7269 | 7111 | ;; |
7270 | 7112 | esac |
7271 | 7113 | |
7275 | 7117 | # Commands to make compiler produce verbose output that lists |
7276 | 7118 | # what "hidden" libraries, object files and flags are used when |
7277 | 7119 | # 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"' | |
7279 | 7121 | |
7280 | 7122 | else |
7281 | 7123 | # FIXME: insert proper C++ library support |
7311 | 7153 | |
7312 | 7154 | solaris*) |
7313 | 7155 | case $cc_basename in |
7314 | CC* | sunCC*) | |
7156 | CC*) | |
7315 | 7157 | # Sun C++ 4.2, 5.x and Centerline C++ |
7316 | 7158 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes |
7317 | 7159 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
7332 | 7174 | esac |
7333 | 7175 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
7334 | 7176 | |
7335 | output_verbose_link_cmd='func_echo_all' | |
7177 | output_verbose_link_cmd='echo' | |
7336 | 7178 | |
7337 | 7179 | # Archives containing C++ object files must be created using |
7338 | 7180 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
7359 | 7201 | # Commands to make compiler produce verbose output that lists |
7360 | 7202 | # what "hidden" libraries, object files and flags are used when |
7361 | 7203 | # 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"' | |
7363 | 7205 | else |
7364 | 7206 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
7365 | 7207 | # platform. |
7370 | 7212 | # Commands to make compiler produce verbose output that lists |
7371 | 7213 | # what "hidden" libraries, object files and flags are used when |
7372 | 7214 | # 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"' | |
7374 | 7216 | fi |
7375 | 7217 | |
7376 | 7218 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
7424 | 7266 | CC*) |
7425 | 7267 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7426 | 7268 | _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)" | |
7431 | 7269 | ;; |
7432 | 7270 | *) |
7433 | 7271 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
7674 | 7512 | |
7675 | 7513 | solaris*) |
7676 | 7514 | case $cc_basename in |
7677 | CC* | sunCC*) | |
7515 | CC*) | |
7678 | 7516 | # The more standards-conforming stlport4 library is |
7679 | 7517 | # incompatible with the Cstd library. Avoid specifying |
7680 | 7518 | # it if it's in CXXFLAGS. Ignore libCrun as |
7718 | 7556 | ])# _LT_SYS_HIDDEN_LIBDEPS |
7719 | 7557 | |
7720 | 7558 | |
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 | ||
7721 | 7577 | # _LT_LANG_F77_CONFIG([TAG]) |
7722 | 7578 | # -------------------------- |
7723 | 7579 | # Ensure that the configuration variables for a Fortran 77 compiler are |
7724 | 7580 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
7725 | 7581 | # to write the compiler configuration to `libtool'. |
7726 | 7582 | 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) | |
7731 | 7585 | |
7732 | 7586 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7733 | 7587 | _LT_TAGVAR(allow_undefined_flag, $1)= |
7746 | 7600 | _LT_TAGVAR(module_expsym_cmds, $1)= |
7747 | 7601 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
7748 | 7602 | _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 | |
7751 | 7603 | _LT_TAGVAR(no_undefined_flag, $1)= |
7752 | 7604 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
7753 | 7605 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
7847 | 7699 | ])# _LT_LANG_F77_CONFIG |
7848 | 7700 | |
7849 | 7701 | |
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 | ||
7850 | 7720 | # _LT_LANG_FC_CONFIG([TAG]) |
7851 | 7721 | # ------------------------- |
7852 | 7722 | # Ensure that the configuration variables for a Fortran compiler are |
7853 | 7723 | # suitably defined. These variables are subsequently used by _LT_CONFIG |
7854 | 7724 | # to write the compiler configuration to `libtool'. |
7855 | 7725 | 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) | |
7861 | 7728 | |
7862 | 7729 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
7863 | 7730 | _LT_TAGVAR(allow_undefined_flag, $1)= |
7876 | 7743 | _LT_TAGVAR(module_expsym_cmds, $1)= |
7877 | 7744 | _LT_TAGVAR(link_all_deplibs, $1)=unknown |
7878 | 7745 | _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 | |
7881 | 7746 | _LT_TAGVAR(no_undefined_flag, $1)= |
7882 | 7747 | _LT_TAGVAR(whole_archive_flag_spec, $1)= |
7883 | 7748 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
8023 | 7888 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no |
8024 | 7889 | |
8025 | 7890 | _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 | |
8028 | 7891 | |
8029 | 7892 | if test -n "$compiler"; then |
8030 | 7893 | _LT_COMPILER_NO_RTTI($1) |
8386 | 8249 | func_dirname () |
8387 | 8250 | { |
8388 | 8251 | # Extract subdirectory from the argument. |
8389 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
8252 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
8390 | 8253 | if test "X$func_dirname_result" = "X${1}"; then |
8391 | 8254 | func_dirname_result="${3}" |
8392 | 8255 | else |
8397 | 8260 | # func_basename file |
8398 | 8261 | func_basename () |
8399 | 8262 | { |
8400 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
8263 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
8401 | 8264 | } |
8402 | 8265 | |
8403 | 8266 | dnl func_dirname_and_basename |
8413 | 8276 | func_stripname () |
8414 | 8277 | { |
8415 | 8278 | 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}\$%%"`;; | |
8418 | 8283 | esac |
8419 | 8284 | } |
8420 | 8285 | |
8425 | 8290 | # func_opt_split |
8426 | 8291 | func_opt_split () |
8427 | 8292 | { |
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"` | |
8430 | 8295 | } |
8431 | 8296 | |
8432 | 8297 | # func_lo2o object |
8433 | 8298 | func_lo2o () |
8434 | 8299 | { |
8435 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
8300 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
8436 | 8301 | } |
8437 | 8302 | |
8438 | 8303 | # func_xform libobj-or-source |
8439 | 8304 | func_xform () |
8440 | 8305 | { |
8441 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` | |
8306 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` | |
8442 | 8307 | } |
8443 | 8308 | |
8444 | 8309 | # func_arith arithmetic-term... |
8486 | 8351 | |
8487 | 8352 | # Helper functions for option handling. -*- Autoconf -*- |
8488 | 8353 | # |
8489 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
8490 | # Inc. | |
8354 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
8491 | 8355 | # Written by Gary V. Vaughan, 2004 |
8492 | 8356 | # |
8493 | 8357 | # This file is free software; the Free Software Foundation gives |
8494 | 8358 | # unlimited permission to copy and/or distribute it, with or without |
8495 | 8359 | # modifications, as long as this notice is preserved. |
8496 | 8360 | |
8497 | # serial 7 ltoptions.m4 | |
8361 | # serial 6 ltoptions.m4 | |
8498 | 8362 | |
8499 | 8363 | # This is to help aclocal find these macros, as it can't see m4_define. |
8500 | 8364 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) |
8609 | 8473 | [enable_win32_dll=yes |
8610 | 8474 | |
8611 | 8475 | case $host in |
8612 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
8476 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | |
8613 | 8477 | AC_CHECK_TOOL(AS, as, false) |
8614 | 8478 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
8615 | 8479 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
8617 | 8481 | esac |
8618 | 8482 | |
8619 | 8483 | test -z "$AS" && AS=as |
8620 | _LT_DECL([], [AS], [1], [Assembler program])dnl | |
8484 | _LT_DECL([], [AS], [0], [Assembler program])dnl | |
8621 | 8485 | |
8622 | 8486 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
8623 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | |
8487 | _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl | |
8624 | 8488 | |
8625 | 8489 | test -z "$OBJDUMP" && OBJDUMP=objdump |
8626 | _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | |
8490 | _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl | |
8627 | 8491 | ])# win32-dll |
8628 | 8492 | |
8629 | 8493 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], |
8983 | 8847 | |
8984 | 8848 | # Generated from ltversion.in. |
8985 | 8849 | |
8986 | # serial 3175 ltversion.m4 | |
8850 | # serial 3017 ltversion.m4 | |
8987 | 8851 | # This file is part of GNU Libtool |
8988 | 8852 | |
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]) | |
8991 | 8855 | |
8992 | 8856 | 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' | |
8995 | 8859 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
8996 | 8860 | _LT_DECL(, macro_revision, 0) |
8997 | 8861 | ]) |
8998 | 8862 | |
8999 | 8863 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- |
9000 | 8864 | # |
9001 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | |
8865 | # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. | |
9002 | 8866 | # Written by Scott James Remnant, 2004. |
9003 | 8867 | # |
9004 | 8868 | # This file is free software; the Free Software Foundation gives |
9005 | 8869 | # unlimited permission to copy and/or distribute it, with or without |
9006 | 8870 | # modifications, as long as this notice is preserved. |
9007 | 8871 | |
9008 | # serial 5 lt~obsolete.m4 | |
8872 | # serial 4 lt~obsolete.m4 | |
9009 | 8873 | |
9010 | 8874 | # These exist entirely to fool aclocal when bootstrapping libtool. |
9011 | 8875 | # |
9075 | 8939 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) |
9076 | 8940 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) |
9077 | 8941 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) |
8942 | m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) | |
9078 | 8943 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) |
9079 | 8944 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) |
9080 | 8945 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) |
9087 | 8952 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) |
9088 | 8953 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) |
9089 | 8954 | 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 | ]) | |
9097 | 9017 | |
9098 | 9018 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
9099 | # serial 1 (pkg-config-0.24) | |
9100 | 9019 | # |
9101 | 9020 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
9102 | 9021 | # |
9124 | 9043 | AC_DEFUN([PKG_PROG_PKG_CONFIG], |
9125 | 9044 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
9126 | 9045 | 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 | |
9131 | 9047 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
9132 | 9048 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
9133 | 9049 | fi |
9140 | 9056 | AC_MSG_RESULT([no]) |
9141 | 9057 | PKG_CONFIG="" |
9142 | 9058 | fi |
9059 | ||
9143 | 9060 | fi[]dnl |
9144 | 9061 | ])# PKG_PROG_PKG_CONFIG |
9145 | 9062 | |
9148 | 9065 | # Check to see whether a particular set of modules exists. Similar |
9149 | 9066 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. |
9150 | 9067 | # |
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 | |
9155 | 9072 | # -------------------------------------------------------------- |
9156 | 9073 | AC_DEFUN([PKG_CHECK_EXISTS], |
9157 | 9074 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
9158 | 9075 | if test -n "$PKG_CONFIG" && \ |
9159 | 9076 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
9160 | m4_default([$2], [:]) | |
9077 | m4_ifval([$2], [$2], [:]) | |
9161 | 9078 | m4_ifvaln([$3], [else |
9162 | 9079 | $3])dnl |
9163 | 9080 | fi]) |
9081 | ||
9164 | 9082 | |
9165 | 9083 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
9166 | 9084 | # --------------------------------------------- |
9214 | 9132 | See the pkg-config man page for more details.]) |
9215 | 9133 | |
9216 | 9134 | if test $pkg_failed = yes; then |
9217 | AC_MSG_RESULT([no]) | |
9218 | 9135 | _PKG_SHORT_ERRORS_SUPPORTED |
9219 | 9136 | if test $_pkg_short_errors_supported = yes; then |
9220 | 9137 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` |
9224 | 9141 | # Put the nasty error message in config.log where it belongs |
9225 | 9142 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
9226 | 9143 | |
9227 | m4_default([$4], [AC_MSG_ERROR( | |
9144 | ifelse([$4], , [AC_MSG_ERROR(dnl | |
9228 | 9145 | [Package requirements ($2) were not met: |
9229 | 9146 | |
9230 | 9147 | $$1_PKG_ERRORS |
9232 | 9149 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
9233 | 9150 | installed software in a non-standard prefix. |
9234 | 9151 | |
9235 | _PKG_TEXT])dnl | |
9236 | ]) | |
9152 | _PKG_TEXT | |
9153 | ])], | |
9154 | [AC_MSG_RESULT([no]) | |
9155 | $4]) | |
9237 | 9156 | 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 | |
9240 | 9158 | [The pkg-config script could not be found or is too old. Make sure it |
9241 | 9159 | is in your PATH or set the PKG_CONFIG environment variable to the full |
9242 | 9160 | path to pkg-config. |
9243 | 9161 | |
9244 | 9162 | _PKG_TEXT |
9245 | 9163 | |
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]) | |
9248 | 9166 | else |
9249 | 9167 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
9250 | 9168 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
9251 | 9169 | AC_MSG_RESULT([yes]) |
9252 | $3 | |
9170 | ifelse([$3], , :, [$3]) | |
9253 | 9171 | fi[]dnl |
9254 | 9172 | ])# PKG_CHECK_MODULES |
9255 | 9173 |
0 | 0 | #! /bin/sh |
1 | 1 | # Attempt to guess a canonical system name. |
2 | 2 | # 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 | |
4 | 4 | # Free Software Foundation, Inc. |
5 | 5 | |
6 | timestamp='2010-04-03' | |
6 | timestamp='2009-06-10' | |
7 | 7 | |
8 | 8 | # This file is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License as published by |
26 | 26 | # the same distribution terms that you use for the rest of that program. |
27 | 27 | |
28 | 28 | |
29 | # Originally written by Per Bothner. Please send patches (context | |
30 | # diff format) to <config-patches@gnu.org> and include a ChangeLog | |
31 | # entry. | |
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. | |
32 | 32 | # |
33 | 33 | # This script attempts to guess a canonical system name similar to |
34 | 34 | # config.sub. If it succeeds, it prints the system name on stdout, and |
35 | 35 | # exits with 0. Otherwise, it exits with 1. |
36 | 36 | # |
37 | # You can get the latest version of this script from: | |
38 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD | |
37 | # The plan is that this can be called by configure scripts if you | |
38 | # don't specify an explicit build system type. | |
39 | 39 | |
40 | 40 | me=`echo "$0" | sed -e 's,.*/,,'` |
41 | 41 | |
55 | 55 | GNU config.guess ($timestamp) |
56 | 56 | |
57 | 57 | 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. | |
61 | 60 | |
62 | 61 | This is free software; see the source for copying conditions. There is NO |
63 | 62 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
91 | 90 | exit 1 |
92 | 91 | fi |
93 | 92 | |
94 | trap 'exit 1' HUP INT TERM | |
93 | trap 'exit 1' 1 2 15 | |
95 | 94 | |
96 | 95 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
97 | 96 | # compiler to aid in system detection is discouraged as it requires |
105 | 104 | |
106 | 105 | set_cc_for_build=' |
107 | 106 | 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 ; | |
109 | 108 | : ${TMPDIR=/tmp} ; |
110 | 109 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
111 | 110 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
138 | 137 | UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
139 | 138 | UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
140 | 139 | 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 | |
164 | 140 | |
165 | 141 | # Note: order is significant - the case branches are not exclusive. |
166 | 142 | |
356 | 332 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
357 | 333 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
358 | 334 | exit ;; |
359 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) | |
360 | echo i386-pc-auroraux${UNAME_RELEASE} | |
361 | exit ;; | |
362 | 335 | i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) |
363 | 336 | eval $set_cc_for_build |
364 | 337 | SUN_ARCH="i386" |
833 | 806 | i*:PW*:*) |
834 | 807 | echo ${UNAME_MACHINE}-pc-pw32 |
835 | 808 | exit ;; |
836 | *:Interix*:*) | |
809 | *:Interix*:[3456]*) | |
837 | 810 | case ${UNAME_MACHINE} in |
838 | 811 | x86) |
839 | 812 | echo i586-pc-interix${UNAME_RELEASE} |
840 | 813 | exit ;; |
841 | authenticamd | genuineintel | EM64T) | |
814 | EM64T | authenticamd | genuineintel) | |
842 | 815 | echo x86_64-unknown-interix${UNAME_RELEASE} |
843 | 816 | exit ;; |
844 | 817 | IA64) |
871 | 844 | exit ;; |
872 | 845 | *:GNU:*:*) |
873 | 846 | # 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,/.*$,,'` | |
875 | 848 | exit ;; |
876 | 849 | *:GNU/*:*:*) |
877 | 850 | # 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 | |
879 | 852 | exit ;; |
880 | 853 | i*86:Minix:*:*) |
881 | 854 | 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} | |
896 | 855 | exit ;; |
897 | 856 | arm*:Linux:*:*) |
898 | 857 | eval $set_cc_for_build |
899 | 858 | if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
900 | 859 | | grep -q __ARM_EABI__ |
901 | 860 | then |
902 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
861 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
903 | 862 | else |
904 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi | |
863 | echo ${UNAME_MACHINE}-unknown-linux-gnueabi | |
905 | 864 | fi |
906 | 865 | exit ;; |
907 | 866 | avr32*:Linux:*:*) |
908 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
867 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
909 | 868 | exit ;; |
910 | 869 | cris:Linux:*:*) |
911 | echo cris-axis-linux-${LIBC} | |
870 | echo cris-axis-linux-gnu | |
912 | 871 | exit ;; |
913 | 872 | crisv32:Linux:*:*) |
914 | echo crisv32-axis-linux-${LIBC} | |
873 | echo crisv32-axis-linux-gnu | |
915 | 874 | exit ;; |
916 | 875 | 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 | |
921 | 877 | exit ;; |
922 | 878 | ia64:Linux:*:*) |
923 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
879 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
924 | 880 | exit ;; |
925 | 881 | m32r*:Linux:*:*) |
926 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
882 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
927 | 883 | exit ;; |
928 | 884 | m68*:Linux:*:*) |
929 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
885 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
930 | 886 | exit ;; |
931 | 887 | mips:Linux:*:* | mips64:Linux:*:*) |
932 | 888 | eval $set_cc_for_build |
944 | 900 | #endif |
945 | 901 | #endif |
946 | 902 | 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; } | |
949 | 909 | ;; |
950 | 910 | 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} | |
952 | 932 | exit ;; |
953 | 933 | 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 | |
958 | 935 | exit ;; |
959 | 936 | parisc:Linux:*:* | hppa:Linux:*:*) |
960 | 937 | # Look for CPU level |
961 | 938 | 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 ;; | |
965 | 942 | esac |
966 | 943 | 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 | |
972 | 946 | exit ;; |
973 | 947 | s390:Linux:*:* | s390x:Linux:*:*) |
974 | 948 | echo ${UNAME_MACHINE}-ibm-linux |
975 | 949 | exit ;; |
976 | 950 | sh64*:Linux:*:*) |
977 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
951 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
978 | 952 | exit ;; |
979 | 953 | sh*:Linux:*:*) |
980 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
954 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
981 | 955 | exit ;; |
982 | 956 | sparc:Linux:*:* | sparc64:Linux:*:*) |
983 | echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
957 | echo ${UNAME_MACHINE}-unknown-linux-gnu | |
984 | 958 | exit ;; |
985 | 959 | vax:Linux:*:*) |
986 | echo ${UNAME_MACHINE}-dec-linux-${LIBC} | |
960 | echo ${UNAME_MACHINE}-dec-linux-gnu | |
987 | 961 | exit ;; |
988 | 962 | x86_64:Linux:*:*) |
989 | echo x86_64-unknown-linux-${LIBC} | |
963 | echo x86_64-unknown-linux-gnu | |
990 | 964 | exit ;; |
991 | 965 | 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 | ;; | |
994 | 1020 | i*86:DYNIX/ptx:4*:*) |
995 | 1021 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
996 | 1022 | # earlier versions are messed up and put the nodename in both |
1220 | 1246 | *:Darwin:*:*) |
1221 | 1247 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1222 | 1248 | 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 ;; | |
1233 | 1249 | unknown) UNAME_PROCESSOR=powerpc ;; |
1234 | 1250 | esac |
1235 | 1251 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
0 | 0 | #! /bin/sh |
1 | 1 | # Configuration validation subroutine script. |
2 | 2 | # 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 | |
4 | 4 | # Free Software Foundation, Inc. |
5 | 5 | |
6 | timestamp='2010-03-22' | |
6 | timestamp='2009-06-11' | |
7 | 7 | |
8 | 8 | # This file is (in principle) common to ALL GNU software. |
9 | 9 | # The presence of a machine in this file suggests that SOME GNU software |
31 | 31 | |
32 | 32 | |
33 | 33 | # 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. | |
35 | 35 | # |
36 | 36 | # Configuration subroutine to validate and canonicalize a configuration type. |
37 | 37 | # Supply the specified configuration type as an argument. |
38 | 38 | # If it is invalid, we print an error message on stderr and exit with code 1. |
39 | 39 | # Otherwise, we print the canonical config type on stdout and succeed. |
40 | ||
41 | # You can get the latest version of this script from: | |
42 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD | |
43 | 40 | |
44 | 41 | # This file is supposed to be the same for all GNU packages |
45 | 42 | # and recognize all the CPU types, system types and aliases |
74 | 71 | version="\ |
75 | 72 | GNU config.sub ($timestamp) |
76 | 73 | |
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. | |
80 | 76 | |
81 | 77 | This is free software; see the source for copying conditions. There is NO |
82 | 78 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
152 | 148 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
153 | 149 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
154 | 150 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
155 | -apple | -axis | -knuth | -cray | -microblaze) | |
151 | -apple | -axis | -knuth | -cray) | |
156 | 152 | os= |
157 | 153 | basic_machine=$1 |
158 | 154 | ;; |
251 | 247 | | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ |
252 | 248 | | bfin \ |
253 | 249 | | c4x | clipper \ |
254 | | d10v | d30v | dlx | dsp16xx | dvp \ | |
250 | | d10v | d30v | dlx | dsp16xx \ | |
255 | 251 | | fido | fr30 | frv \ |
256 | 252 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
257 | 253 | | i370 | i860 | i960 | ia64 \ |
287 | 283 | | pdp10 | pdp11 | pj | pjl \ |
288 | 284 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
289 | 285 | | pyramid \ |
290 | | rx \ | |
291 | 286 | | score \ |
292 | 287 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
293 | 288 | | sh64 | sh64le \ |
294 | 289 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
295 | 290 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
296 | 291 | | spu | strongarm \ |
297 | | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | |
298 | | ubicom32 \ | |
292 | | tahoe | thumb | tic4x | tic80 | tron \ | |
299 | 293 | | v850 | v850e \ |
300 | 294 | | we32k \ |
301 | 295 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
302 | 296 | | z8k | z80) |
303 | 297 | basic_machine=$basic_machine-unknown |
304 | 298 | ;; |
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) | |
315 | 300 | # Motorola 68HC11/12. |
316 | 301 | basic_machine=$basic_machine-unknown |
317 | 302 | os=-none |
342 | 327 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
343 | 328 | | avr-* | avr32-* \ |
344 | 329 | | bfin-* | bs2000-* \ |
345 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ | |
330 | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | |
346 | 331 | | clipper-* | craynv-* | cydra-* \ |
347 | 332 | | d10v-* | d30v-* | dlx-* \ |
348 | 333 | | elxsi-* \ |
354 | 339 | | lm32-* \ |
355 | 340 | | m32c-* | m32r-* | m32rle-* \ |
356 | 341 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
357 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | |
342 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | |
358 | 343 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
359 | 344 | | mips16-* \ |
360 | 345 | | mips64-* | mips64el-* \ |
382 | 367 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
383 | 368 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
384 | 369 | | pyramid-* \ |
385 | | romp-* | rs6000-* | rx-* \ | |
370 | | romp-* | rs6000-* \ | |
386 | 371 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
387 | 372 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
388 | 373 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
389 | 374 | | sparclite-* \ |
390 | 375 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
391 | 376 | | tahoe-* | thumb-* \ |
392 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | |
393 | | tile-* | tilegx-* \ | |
377 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | |
394 | 378 | | tron-* \ |
395 | | ubicom32-* \ | |
396 | 379 | | v850-* | v850e-* | vax-* \ |
397 | 380 | | we32k-* \ |
398 | 381 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
489 | 472 | bluegene*) |
490 | 473 | basic_machine=powerpc-ibm |
491 | 474 | 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/^[^-]*-//'` | |
501 | 475 | ;; |
502 | 476 | c90) |
503 | 477 | basic_machine=c90-cray |
751 | 725 | basic_machine=ns32k-utek |
752 | 726 | os=-sysv |
753 | 727 | ;; |
754 | microblaze) | |
755 | basic_machine=microblaze-xilinx | |
756 | ;; | |
757 | 728 | mingw32) |
758 | 729 | basic_machine=i386-pc |
759 | 730 | os=-mingw32 |
768 | 739 | *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) |
769 | 740 | basic_machine=m68k-atari |
770 | 741 | 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 | |
789 | 742 | ;; |
790 | 743 | mips3*-*) |
791 | 744 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
1110 | 1063 | basic_machine=t90-cray |
1111 | 1064 | os=-unicos |
1112 | 1065 | ;; |
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 | |
1117 | 1077 | ;; |
1118 | 1078 | tile*) |
1119 | 1079 | basic_machine=tile-unknown |
1286 | 1246 | # First match some system type aliases |
1287 | 1247 | # that might get confused with valid system types. |
1288 | 1248 | # -solaris* is a basic system type, with this one exception. |
1289 | -auroraux) | |
1290 | os=-auroraux | |
1291 | ;; | |
1292 | 1249 | -solaris1 | -solaris1.*) |
1293 | 1250 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1294 | 1251 | ;; |
1310 | 1267 | # -sysv* is not here because it comes later, after sysvr4. |
1311 | 1268 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1312 | 1269 | | -*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* \ | |
1315 | 1272 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1316 | 1273 | | -aos* | -aros* \ |
1317 | 1274 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1328 | 1285 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1329 | 1286 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1330 | 1287 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
1331 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \ | |
1288 | | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | |
1332 | 1289 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1333 | 1290 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1334 | 1291 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1335 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) | |
1292 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) | |
1336 | 1293 | # Remember, each alternative MUST END IN *, to match a version number. |
1337 | 1294 | ;; |
1338 | 1295 | -qnx*) |
1465 | 1422 | -dicos*) |
1466 | 1423 | os=-dicos |
1467 | 1424 | ;; |
1468 | -nacl*) | |
1469 | ;; | |
1470 | 1425 | -none) |
1471 | 1426 | ;; |
1472 | 1427 | *) |
1506 | 1461 | ;; |
1507 | 1462 | c4x-* | tic4x-*) |
1508 | 1463 | os=-coff |
1509 | ;; | |
1510 | tic54x-*) | |
1511 | os=-coff | |
1512 | ;; | |
1513 | tic55x-*) | |
1514 | os=-coff | |
1515 | ;; | |
1516 | tic6x-*) | |
1517 | os=-coff | |
1518 | 1464 | ;; |
1519 | 1465 | # This must come before the *-dec entry. |
1520 | 1466 | pdp10-*) |
0 | 0 | #! /bin/sh |
1 | 1 | # 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. | |
3 | 3 | # |
4 | 4 | # Report bugs to <http://www.gupnp.org/>. |
5 | 5 | # |
172 | 172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
173 | 173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
174 | 174 | 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" | |
184 | 176 | if (eval "$as_required") 2>/dev/null; then : |
185 | 177 | as_have_required=yes |
186 | 178 | else |
535 | 527 | # Sed expression to map a string onto a valid variable name. |
536 | 528 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
537 | 529 | |
530 | ||
531 | ||
532 | # Check that we are running under the correct shell. | |
538 | 533 | 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 | ||
539 | 678 | |
540 | 679 | |
541 | 680 | test -n "$DJDIR" || exec 7<&0 </dev/null |
561 | 700 | # Identity of this package. |
562 | 701 | PACKAGE_NAME='gupnp-dlna' |
563 | 702 | 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' | |
566 | 705 | PACKAGE_BUGREPORT='http://www.gupnp.org/' |
567 | 706 | PACKAGE_URL='' |
568 | 707 | |
633 | 772 | GST_CFLAGS |
634 | 773 | LIBXML_LIBS |
635 | 774 | LIBXML_CFLAGS |
636 | PKG_CONFIG_LIBDIR | |
637 | PKG_CONFIG_PATH | |
638 | 775 | PKG_CONFIG |
639 | 776 | OTOOL64 |
640 | 777 | OTOOL |
641 | 778 | LIPO |
642 | 779 | NMEDIT |
643 | 780 | DSYMUTIL |
781 | lt_ECHO | |
644 | 782 | RANLIB |
645 | 783 | AR |
646 | 784 | LN_S |
771 | 909 | CPPFLAGS |
772 | 910 | CPP |
773 | 911 | PKG_CONFIG |
774 | PKG_CONFIG_PATH | |
775 | PKG_CONFIG_LIBDIR | |
776 | 912 | LIBXML_CFLAGS |
777 | 913 | LIBXML_LIBS |
778 | 914 | GST_CFLAGS |
1324 | 1460 | # Omit some internal or obsolete options to make the list less imposing. |
1325 | 1461 | # This message is too long to be a string in the A/UX 3.1 sh. |
1326 | 1462 | 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. | |
1328 | 1464 | |
1329 | 1465 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1330 | 1466 | |
1394 | 1530 | |
1395 | 1531 | if test -n "$ac_init_help"; then |
1396 | 1532 | 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:";; | |
1398 | 1534 | esac |
1399 | 1535 | cat <<\_ACEOF |
1400 | 1536 | |
1434 | 1570 | you have headers in a nonstandard directory <include dir> |
1435 | 1571 | CPP C preprocessor |
1436 | 1572 | 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 | |
1441 | 1573 | LIBXML_CFLAGS |
1442 | 1574 | C compiler flags for LIBXML, overriding pkg-config |
1443 | 1575 | LIBXML_LIBS linker flags for LIBXML, overriding pkg-config |
1522 | 1654 | test -n "$ac_init_help" && exit $ac_status |
1523 | 1655 | if $ac_init_version; then |
1524 | 1656 | cat <<\_ACEOF |
1525 | gupnp-dlna configure 0.2.1 | |
1657 | gupnp-dlna configure 0.3.0 | |
1526 | 1658 | generated by GNU Autoconf 2.65 |
1527 | 1659 | |
1528 | 1660 | Copyright (C) 2009 Free Software Foundation, Inc. |
1800 | 1932 | This file contains any messages produced by compilers while |
1801 | 1933 | running configure, to aid debugging if configure makes a mistake. |
1802 | 1934 | |
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 | |
1804 | 1936 | generated by GNU Autoconf 2.65. Invocation command line was |
1805 | 1937 | |
1806 | 1938 | $ $0 $@ |
2608 | 2740 | |
2609 | 2741 | # Define the identity of the package. |
2610 | 2742 | PACKAGE='gupnp-dlna' |
2611 | VERSION='0.2.1' | |
2743 | VERSION='0.3.0' | |
2612 | 2744 | |
2613 | 2745 | |
2614 | 2746 | cat >>confdefs.h <<_ACEOF |
4823 | 4955 | enable_win32_dll=yes |
4824 | 4956 | |
4825 | 4957 | case $host in |
4826 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
4958 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) | |
4827 | 4959 | if test -n "$ac_tool_prefix"; then |
4828 | 4960 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
4829 | 4961 | set dummy ${ac_tool_prefix}as; ac_word=$2 |
5131 | 5263 | |
5132 | 5264 | |
5133 | 5265 | |
5134 | macro_version='2.2.10' | |
5135 | macro_revision='1.3175' | |
5266 | macro_version='2.2.6b' | |
5267 | macro_revision='1.3017' | |
5136 | 5268 | |
5137 | 5269 | |
5138 | 5270 | |
5147 | 5279 | |
5148 | 5280 | |
5149 | 5281 | 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 | ||
5219 | 5282 | |
5220 | 5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5221 | 5284 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
5552 | 5615 | NM="$lt_cv_path_NM" |
5553 | 5616 | else |
5554 | 5617 | # 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" | |
5560 | 5620 | do |
5561 | 5621 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5562 | 5622 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5600 | 5660 | fi |
5601 | 5661 | if test -z "$DUMPBIN"; then |
5602 | 5662 | ac_ct_DUMPBIN=$DUMPBIN |
5603 | for ac_prog in dumpbin "link -dump" | |
5663 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5604 | 5664 | do |
5605 | 5665 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5606 | 5666 | set dummy $ac_prog; ac_word=$2 |
5655 | 5715 | fi |
5656 | 5716 | fi |
5657 | 5717 | |
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 | |
5667 | 5718 | |
5668 | 5719 | if test "$DUMPBIN" != ":"; then |
5669 | 5720 | NM="$DUMPBIN" |
5683 | 5734 | else |
5684 | 5735 | lt_cv_nm_interface="BSD nm" |
5685 | 5736 | 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) | |
5687 | 5738 | (eval "$ac_compile" 2>conftest.err) |
5688 | 5739 | 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) | |
5690 | 5741 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5691 | 5742 | cat conftest.err >&5 |
5692 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5743 | (eval echo "\"\$as_me:5744: output\"" >&5) | |
5693 | 5744 | cat conftest.out >&5 |
5694 | 5745 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
5695 | 5746 | lt_cv_nm_interface="MS dumpbin" |
5743 | 5794 | # the test eventually succeeds (with a max line length of 256k). |
5744 | 5795 | # Instead, let's just punt: use the minimum linelength reported by |
5745 | 5796 | # 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. | |
5751 | 5797 | lt_cv_sys_max_cmd_len=8192; |
5752 | 5798 | ;; |
5753 | 5799 | |
5815 | 5861 | # If test is not a shell built-in, we'll probably end up computing a |
5816 | 5862 | # maximum length that is only half of the actual maximum length, but |
5817 | 5863 | # 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 && | |
5820 | 5866 | test $i != 17 # 1/2 MB should be enough |
5821 | 5867 | do |
5822 | 5868 | i=`expr $i + 1` |
6084 | 6130 | # Base MSYS/MinGW do not provide the 'file' command needed by |
6085 | 6131 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
6086 | 6132 | # 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 | |
6089 | 6134 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
6090 | 6135 | lt_cv_file_magic_cmd='func_win32_libid' |
6091 | 6136 | 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)?' | |
6094 | 6138 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6095 | 6139 | fi |
6096 | 6140 | ;; |
6097 | 6141 | |
6098 | cegcc*) | |
6142 | cegcc) | |
6099 | 6143 | # use the weaker test based on 'objdump'. See mingw*. |
6100 | 6144 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
6101 | 6145 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
6125 | 6169 | lt_cv_deplibs_check_method=pass_all |
6126 | 6170 | ;; |
6127 | 6171 | |
6128 | haiku*) | |
6129 | lt_cv_deplibs_check_method=pass_all | |
6130 | ;; | |
6131 | ||
6132 | 6172 | hpux10.20* | hpux11*) |
6133 | 6173 | lt_cv_file_magic_cmd=/usr/bin/file |
6134 | 6174 | case $host_cpu in |
6137 | 6177 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
6138 | 6178 | ;; |
6139 | 6179 | 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]' | |
6141 | 6181 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
6142 | 6182 | ;; |
6143 | 6183 | *) |
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' | |
6145 | 6185 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6146 | 6186 | ;; |
6147 | 6187 | esac |
6167 | 6207 | lt_cv_deplibs_check_method=pass_all |
6168 | 6208 | ;; |
6169 | 6209 | |
6170 | netbsd*) | |
6210 | netbsd* | netbsdelf*-gnu) | |
6171 | 6211 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
6172 | 6212 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
6173 | 6213 | else |
6579 | 6619 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6580 | 6620 | fi |
6581 | 6621 | |
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 | ||
6594 | 6622 | |
6595 | 6623 | |
6596 | 6624 | |
6760 | 6788 | test $ac_status = 0; }; then |
6761 | 6789 | # Now try to grab the symbols. |
6762 | 6790 | 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 | |
6765 | 6793 | ac_status=$? |
6766 | 6794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6767 | 6795 | test $ac_status = 0; } && test -s "$nlist"; then |
6914 | 6942 | ;; |
6915 | 6943 | *-*-irix6*) |
6916 | 6944 | # Find out which ABI we are using. |
6917 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6945 | echo '#line 6946 "configure"' > conftest.$ac_ext | |
6918 | 6946 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
6919 | 6947 | (eval $ac_compile) 2>&5 |
6920 | 6948 | ac_status=$? |
7626 | 7654 | fi |
7627 | 7655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7628 | 7656 | $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; } | |
7661 | 7657 | case $host_os in |
7662 | 7658 | rhapsody* | darwin1.[012]) |
7663 | 7659 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
7685 | 7681 | else |
7686 | 7682 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7687 | 7683 | fi |
7688 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7684 | if test "$DSYMUTIL" != ":"; then | |
7689 | 7685 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7690 | 7686 | else |
7691 | 7687 | _lt_dsymutil= |
7723 | 7719 | fi |
7724 | 7720 | |
7725 | 7721 | done |
7726 | ||
7727 | ||
7728 | 7722 | |
7729 | 7723 | |
7730 | 7724 | |
7878 | 7872 | |
7879 | 7873 | |
7880 | 7874 | |
7881 | ||
7882 | 7875 | test -z "$LN_S" && LN_S="ln -s" |
7883 | 7876 | |
7884 | 7877 | |
7924 | 7917 | cat >>confdefs.h <<_ACEOF |
7925 | 7918 | #define LT_OBJDIR "$lt_cv_objdir/" |
7926 | 7919 | _ACEOF |
7920 | ||
7921 | ||
7922 | ||
7923 | ||
7924 | ||
7925 | ||
7926 | ||
7927 | ||
7928 | ||
7929 | ||
7930 | ||
7931 | ||
7932 | ||
7927 | 7933 | |
7928 | 7934 | |
7929 | 7935 | |
7940 | 7946 | ;; |
7941 | 7947 | esac |
7942 | 7948 | |
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 | ||
7943 | 7966 | # Global variables: |
7944 | 7967 | ofile=libtool |
7945 | 7968 | can_build_shared=yes |
7968 | 7991 | *) break;; |
7969 | 7992 | esac |
7970 | 7993 | 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-%%"` | |
7972 | 7995 | |
7973 | 7996 | |
7974 | 7997 | # Only perform the check for file, if the check method requires it |
8173 | 8196 | lt_prog_compiler_no_builtin_flag= |
8174 | 8197 | |
8175 | 8198 | 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' | |
8182 | 8200 | |
8183 | 8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8184 | 8202 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
8198 | 8216 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8199 | 8217 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8200 | 8218 | -e 's:$: $lt_compiler_flag:'` |
8201 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8219 | (eval echo "\"\$as_me:8220: $lt_compile\"" >&5) | |
8202 | 8220 | (eval "$lt_compile" 2>conftest.err) |
8203 | 8221 | ac_status=$? |
8204 | 8222 | cat conftest.err >&5 |
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8223 | echo "$as_me:8224: \$? = $ac_status" >&5 | |
8206 | 8224 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8207 | 8225 | # The compiler can only warn and ignore the option if not recognized |
8208 | 8226 | # 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 | |
8210 | 8228 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8211 | 8229 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8212 | 8230 | lt_cv_prog_compiler_rtti_exceptions=yes |
8284 | 8302 | lt_prog_compiler_pic='-fno-common' |
8285 | 8303 | ;; |
8286 | 8304 | |
8287 | haiku*) | |
8288 | # PIC is the default for Haiku. | |
8289 | # The "-static" flag exists, but is broken. | |
8290 | lt_prog_compiler_static= | |
8291 | ;; | |
8292 | ||
8293 | 8305 | hpux*) |
8294 | 8306 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8295 | 8307 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
8330 | 8342 | |
8331 | 8343 | *) |
8332 | 8344 | 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' | |
8340 | 8345 | ;; |
8341 | 8346 | esac |
8342 | 8347 | else |
8401 | 8406 | lt_prog_compiler_pic='--shared' |
8402 | 8407 | lt_prog_compiler_static='--static' |
8403 | 8408 | ;; |
8404 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8409 | pgcc* | pgf77* | pgf90* | pgf95*) | |
8405 | 8410 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8406 | 8411 | # which looks to be a dead project) |
8407 | 8412 | lt_prog_compiler_wl='-Wl,' |
8413 | 8418 | # All Alpha code is PIC. |
8414 | 8419 | lt_prog_compiler_static='-non_shared' |
8415 | 8420 | ;; |
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 | |
8418 | 8423 | lt_prog_compiler_wl='-Wl,' |
8419 | 8424 | lt_prog_compiler_pic='-qpic' |
8420 | 8425 | lt_prog_compiler_static='-qstaticlink' |
8421 | 8426 | ;; |
8422 | 8427 | *) |
8423 | 8428 | 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 | ;; | |
8430 | 8429 | *Sun\ C*) |
8431 | 8430 | # Sun C 5.9 |
8432 | 8431 | lt_prog_compiler_pic='-KPIC' |
8433 | 8432 | lt_prog_compiler_static='-Bstatic' |
8434 | 8433 | lt_prog_compiler_wl='-Wl,' |
8435 | 8434 | ;; |
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 | ;; | |
8436 | 8441 | esac |
8437 | 8442 | ;; |
8438 | 8443 | esac |
8463 | 8468 | lt_prog_compiler_pic='-KPIC' |
8464 | 8469 | lt_prog_compiler_static='-Bstatic' |
8465 | 8470 | case $cc_basename in |
8466 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8471 | f77* | f90* | f95*) | |
8467 | 8472 | lt_prog_compiler_wl='-Qoption ld ';; |
8468 | 8473 | *) |
8469 | 8474 | lt_prog_compiler_wl='-Wl,';; |
8550 | 8555 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8551 | 8556 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8552 | 8557 | -e 's:$: $lt_compiler_flag:'` |
8553 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8558 | (eval echo "\"\$as_me:8559: $lt_compile\"" >&5) | |
8554 | 8559 | (eval "$lt_compile" 2>conftest.err) |
8555 | 8560 | ac_status=$? |
8556 | 8561 | cat conftest.err >&5 |
8557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8562 | echo "$as_me:8563: \$? = $ac_status" >&5 | |
8558 | 8563 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8559 | 8564 | # The compiler can only warn and ignore the option if not recognized |
8560 | 8565 | # 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 | |
8562 | 8567 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8563 | 8568 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
8564 | 8569 | lt_cv_prog_compiler_pic_works=yes |
8606 | 8611 | if test -s conftest.err; then |
8607 | 8612 | # Append any errors to the config.log. |
8608 | 8613 | 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 | |
8610 | 8615 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8611 | 8616 | if diff conftest.exp conftest.er2 >/dev/null; then |
8612 | 8617 | lt_cv_prog_compiler_static_works=yes |
8655 | 8660 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8656 | 8661 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8657 | 8662 | -e 's:$: $lt_compiler_flag:'` |
8658 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8663 | (eval echo "\"\$as_me:8664: $lt_compile\"" >&5) | |
8659 | 8664 | (eval "$lt_compile" 2>out/conftest.err) |
8660 | 8665 | ac_status=$? |
8661 | 8666 | cat out/conftest.err >&5 |
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8667 | echo "$as_me:8668: \$? = $ac_status" >&5 | |
8663 | 8668 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8664 | 8669 | then |
8665 | 8670 | # The compiler can only warn and ignore the option if not recognized |
8666 | 8671 | # 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 | |
8668 | 8673 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8669 | 8674 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8670 | 8675 | lt_cv_prog_compiler_c_o=yes |
8710 | 8715 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8711 | 8716 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8712 | 8717 | -e 's:$: $lt_compiler_flag:'` |
8713 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8718 | (eval echo "\"\$as_me:8719: $lt_compile\"" >&5) | |
8714 | 8719 | (eval "$lt_compile" 2>out/conftest.err) |
8715 | 8720 | ac_status=$? |
8716 | 8721 | cat out/conftest.err >&5 |
8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8722 | echo "$as_me:8723: \$? = $ac_status" >&5 | |
8718 | 8723 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8719 | 8724 | then |
8720 | 8725 | # The compiler can only warn and ignore the option if not recognized |
8721 | 8726 | # 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 | |
8723 | 8728 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8724 | 8729 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8725 | 8730 | lt_cv_prog_compiler_c_o=yes |
8829 | 8834 | openbsd*) |
8830 | 8835 | with_gnu_ld=no |
8831 | 8836 | ;; |
8837 | linux* | k*bsd*-gnu) | |
8838 | link_all_deplibs=no | |
8839 | ;; | |
8832 | 8840 | esac |
8833 | 8841 | |
8834 | 8842 | 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 | |
8839 | 8843 | 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 | |
8862 | 8844 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8863 | 8845 | wlarc='${wl}' |
8864 | 8846 | |
8892 | 8874 | ld_shlibs=no |
8893 | 8875 | cat <<_LT_EOF 1>&2 |
8894 | 8876 | |
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 | |
8896 | 8878 | *** to be unable to reliably create shared libraries on AIX. |
8897 | 8879 | *** 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. | |
8901 | 8882 | |
8902 | 8883 | _LT_EOF |
8903 | 8884 | fi |
8933 | 8914 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8934 | 8915 | # as there is no search path for DLLs. |
8935 | 8916 | hardcode_libdir_flag_spec='-L$libdir' |
8936 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8937 | 8917 | allow_undefined_flag=unsupported |
8938 | 8918 | always_export_symbols=no |
8939 | 8919 | enable_shared_with_static_runtimes=yes |
8955 | 8935 | fi |
8956 | 8936 | ;; |
8957 | 8937 | |
8958 | haiku*) | |
8959 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8960 | link_all_deplibs=yes | |
8961 | ;; | |
8962 | ||
8963 | 8938 | interix[3-9]*) |
8964 | 8939 | hardcode_direct=no |
8965 | 8940 | hardcode_shlibpath_var=no |
8989 | 8964 | tmp_sharedflag='-shared' |
8990 | 8965 | case $cc_basename,$host_cpu in |
8991 | 8966 | 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' | |
8993 | 8968 | tmp_addflag=' $pic_flag' |
8994 | 8969 | ;; |
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' | |
8998 | 8972 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8999 | 8973 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
9000 | 8974 | tmp_addflag=' -i_dynamic' ;; |
9005 | 8979 | lf95*) # Lahey Fortran 8.1 |
9006 | 8980 | whole_archive_flag_spec= |
9007 | 8981 | 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) | |
9009 | 8983 | tmp_sharedflag='-qmkshrobj' |
9010 | 8984 | 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 | ;; | |
9015 | 8985 | esac |
9016 | 8986 | case `$CC -V 2>&1 | sed 5q` in |
9017 | 8987 | *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' | |
9019 | 8989 | compiler_needs_object=yes |
9020 | 8990 | tmp_sharedflag='-G' ;; |
9021 | 8991 | *Sun\ F*) # Sun Fortran 8.3 |
9031 | 9001 | fi |
9032 | 9002 | |
9033 | 9003 | case $cc_basename in |
9034 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9004 | xlf*) | |
9035 | 9005 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9036 | 9006 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
9037 | 9007 | hardcode_libdir_flag_spec= |
9038 | 9008 | 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' | |
9040 | 9010 | if test "x$supports_anon_versioning" = xyes; then |
9041 | 9011 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
9042 | 9012 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9043 | 9013 | 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' | |
9045 | 9015 | fi |
9046 | 9016 | ;; |
9047 | 9017 | esac |
9050 | 9020 | fi |
9051 | 9021 | ;; |
9052 | 9022 | |
9053 | netbsd*) | |
9023 | netbsd* | netbsdelf*-gnu) | |
9054 | 9024 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9055 | 9025 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
9056 | 9026 | wlarc= |
9162 | 9132 | else |
9163 | 9133 | # If we're using GNU nm, then we don't want the "-C" option. |
9164 | 9134 | # -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". | |
9167 | 9135 | 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' | |
9169 | 9137 | else |
9170 | 9138 | 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' |
9171 | 9139 | fi |
9227 | 9195 | if test "$aix_use_runtimelinking" = yes; then |
9228 | 9196 | shared_flag="$shared_flag "'${wl}-G' |
9229 | 9197 | fi |
9198 | link_all_deplibs=no | |
9230 | 9199 | else |
9231 | 9200 | # not using gcc |
9232 | 9201 | if test "$host_cpu" = ia64; then |
9283 | 9252 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9284 | 9253 | |
9285 | 9254 | 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" | |
9287 | 9256 | else |
9288 | 9257 | if test "$host_cpu" = ia64; then |
9289 | 9258 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
9327 | 9296 | # -berok will link without error, but may produce a broken library. |
9328 | 9297 | no_undefined_flag=' ${wl}-bernotok' |
9329 | 9298 | 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' | |
9337 | 9301 | archive_cmds_need_lc=yes |
9338 | 9302 | # This is similar to how AIX traditionally builds its shared libraries. |
9339 | 9303 | 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' |
9372 | 9336 | # Tell ltmain to make .dll files, not .so files. |
9373 | 9337 | shrext_cmds=".dll" |
9374 | 9338 | # 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=' | |
9376 | 9340 | # The linker will automatically build a .lib file if we build a DLL. |
9377 | 9341 | old_archive_from_new_cmds='true' |
9378 | 9342 | # FIXME: Should let the user specify the lib program. |
9388 | 9352 | hardcode_direct=no |
9389 | 9353 | hardcode_automatic=yes |
9390 | 9354 | 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='' | |
9396 | 9356 | link_all_deplibs=yes |
9397 | 9357 | allow_undefined_flag="$_lt_dar_allow_undefined" |
9398 | 9358 | case $cc_basename in |
9400 | 9360 | *) _lt_dar_can_shared=$GCC ;; |
9401 | 9361 | esac |
9402 | 9362 | if test "$_lt_dar_can_shared" = "yes"; then |
9403 | output_verbose_link_cmd=func_echo_all | |
9363 | output_verbose_link_cmd=echo | |
9404 | 9364 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9405 | 9365 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
9406 | 9366 | 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}" |
9466 | 9426 | ;; |
9467 | 9427 | |
9468 | 9428 | hpux10*) |
9469 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9429 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9470 | 9430 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9471 | 9431 | else |
9472 | 9432 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
9485 | 9445 | ;; |
9486 | 9446 | |
9487 | 9447 | hpux11*) |
9488 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9448 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9489 | 9449 | case $host_cpu in |
9490 | 9450 | hppa*64*) |
9491 | 9451 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
9506 | 9466 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
9507 | 9467 | ;; |
9508 | 9468 | *) |
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' | |
9549 | 9470 | ;; |
9550 | 9471 | esac |
9551 | 9472 | fi |
9573 | 9494 | |
9574 | 9495 | irix5* | irix6* | nonstopux*) |
9575 | 9496 | 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' | |
9577 | 9498 | # Try to use the -exported_symbol ld option, if it does not |
9578 | 9499 | # work, assume that -exports_file does not work either and |
9579 | 9500 | # implicitly export all symbols. |
9584 | 9505 | int foo(void) {} |
9585 | 9506 | _ACEOF |
9586 | 9507 | 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' | |
9588 | 9509 | |
9589 | 9510 | fi |
9590 | 9511 | rm -f core conftest.err conftest.$ac_objext \ |
9591 | 9512 | conftest$ac_exeext conftest.$ac_ext |
9592 | 9513 | LDFLAGS="$save_LDFLAGS" |
9593 | 9514 | 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' | |
9596 | 9517 | fi |
9597 | 9518 | archive_cmds_need_lc='no' |
9598 | 9519 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9601 | 9522 | link_all_deplibs=yes |
9602 | 9523 | ;; |
9603 | 9524 | |
9604 | netbsd*) | |
9525 | netbsd* | netbsdelf*-gnu) | |
9605 | 9526 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
9606 | 9527 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
9607 | 9528 | else |
9654 | 9575 | hardcode_libdir_flag_spec='-L$libdir' |
9655 | 9576 | hardcode_minus_L=yes |
9656 | 9577 | 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' | |
9658 | 9579 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9659 | 9580 | ;; |
9660 | 9581 | |
9661 | 9582 | osf3*) |
9662 | 9583 | if test "$GCC" = yes; then |
9663 | 9584 | 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' | |
9665 | 9586 | else |
9666 | 9587 | 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' | |
9668 | 9589 | fi |
9669 | 9590 | archive_cmds_need_lc='no' |
9670 | 9591 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9674 | 9595 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9675 | 9596 | if test "$GCC" = yes; then |
9676 | 9597 | 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' | |
9678 | 9599 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9679 | 9600 | else |
9680 | 9601 | 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' | |
9682 | 9603 | 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' | |
9684 | 9605 | |
9685 | 9606 | # Both c and cxx compiler support -rpath directly |
9686 | 9607 | hardcode_libdir_flag_spec='-rpath $libdir' |
9883 | 9804 | # to ld, don't add -lc before -lgcc. |
9884 | 9805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9885 | 9806 | $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 | |
9893 | 9811 | (eval $ac_compile) 2>&5 |
9894 | 9812 | ac_status=$? |
9895 | 9813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9896 | 9814 | 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 | |
9911 | 9829 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9912 | 9830 | ac_status=$? |
9913 | 9831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9914 | 9832 | 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; } | |
9930 | 9845 | ;; |
9931 | 9846 | esac |
9932 | 9847 | fi |
10097 | 10012 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
10098 | 10013 | *) lt_awk_arg="/^libraries:/" ;; |
10099 | 10014 | 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 | |
10107 | 10017 | # if the path contains ";" then we assume it to be the separator |
10108 | 10018 | # otherwise default to the standard path separator (i.e. ":") - it is |
10109 | 10019 | # assumed that no part of a normal pathname contains ";" but that should |
10110 | 10020 | # 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 | |
10117 | 10025 | # Ok, now we have the path, separated by spaces, we can step through it |
10118 | 10026 | # and add multilib dir if necessary. |
10119 | 10027 | lt_tmp_lt_search_path_spec= |
10126 | 10034 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
10127 | 10035 | fi |
10128 | 10036 | 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 ' | |
10130 | 10038 | BEGIN {RS=" "; FS="/|\n";} { |
10131 | 10039 | lt_foo=""; |
10132 | 10040 | lt_count=0; |
10146 | 10054 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
10147 | 10055 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
10148 | 10056 | }'` |
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` | |
10156 | 10058 | else |
10157 | 10059 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
10158 | 10060 | fi |
10240 | 10142 | m68k) |
10241 | 10143 | library_names_spec='$libname.ixlibrary $libname.a' |
10242 | 10144 | # 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' | |
10244 | 10146 | ;; |
10245 | 10147 | esac |
10246 | 10148 | ;; |
10293 | 10195 | cygwin*) |
10294 | 10196 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
10295 | 10197 | 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" | |
10298 | 10199 | ;; |
10299 | 10200 | mingw* | cegcc*) |
10300 | 10201 | # MinGW DLLs use traditional 'lib' prefix |
10301 | 10202 | 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 | |
10302 | 10215 | ;; |
10303 | 10216 | pw32*) |
10304 | 10217 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
10355 | 10268 | *) objformat=elf ;; |
10356 | 10269 | esac |
10357 | 10270 | 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 | |
10366 | 10272 | case $version_type in |
10367 | 10273 | freebsd-elf*) |
10368 | 10274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
10372 | 10278 | freebsd-*) |
10373 | 10279 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
10374 | 10280 | 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 | |
10381 | 10281 | ;; |
10382 | 10282 | esac |
10383 | 10283 | shlibpath_var=LD_LIBRARY_PATH |
10408 | 10308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
10409 | 10309 | soname_spec='${libname}${release}${shared_ext}$major' |
10410 | 10310 | 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' | |
10424 | 10311 | hardcode_into_libs=yes |
10425 | 10312 | ;; |
10426 | 10313 | |
10466 | 10353 | soname_spec='${libname}${release}${shared_ext}$major' |
10467 | 10354 | ;; |
10468 | 10355 | 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. | |
10470 | 10357 | postinstall_cmds='chmod 555 $lib' |
10471 | # or fails outright, so override atomically: | |
10472 | install_override_mode=555 | |
10473 | 10358 | ;; |
10474 | 10359 | |
10475 | 10360 | interix[3-9]*) |
10536 | 10421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
10537 | 10422 | shlibpath_var=LD_LIBRARY_PATH |
10538 | 10423 | shlibpath_overrides_runpath=no |
10539 | ||
10540 | 10424 | # 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 | |
10550 | 10430 | /* end confdefs.h. */ |
10551 | 10431 | |
10552 | 10432 | int |
10559 | 10439 | _ACEOF |
10560 | 10440 | if ac_fn_c_try_link "$LINENO"; then : |
10561 | 10441 | 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 | |
10563 | 10443 | fi |
10564 | 10444 | fi |
10565 | 10445 | rm -f core conftest.err conftest.$ac_objext \ |
10566 | 10446 | 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 | |
10573 | 10449 | |
10574 | 10450 | # This implies no fast_install, which is unacceptable. |
10575 | 10451 | # Some rework will be needed to allow for fast_install |
10578 | 10454 | |
10579 | 10455 | # Append ld.so.conf contents to the search path |
10580 | 10456 | 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' ' '` | |
10582 | 10458 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10583 | 10459 | fi |
10584 | 10460 | |
10589 | 10465 | # people can always --disable-shared, the test was removed, and we |
10590 | 10466 | # assume the GNU/Linux dynamic linker is in use. |
10591 | 10467 | 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' | |
10592 | 10480 | ;; |
10593 | 10481 | |
10594 | 10482 | netbsd*) |
10881 | 10769 | |
10882 | 10770 | |
10883 | 10771 | |
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | 10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10890 | 10773 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
10891 | 10774 | hardcode_action= |
11216 | 11099 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11217 | 11100 | lt_status=$lt_dlunknown |
11218 | 11101 | cat > conftest.$ac_ext <<_LT_EOF |
11219 | #line $LINENO "configure" | |
11102 | #line 11103 "configure" | |
11220 | 11103 | #include "confdefs.h" |
11221 | 11104 | |
11222 | 11105 | #if HAVE_DLFCN_H |
11257 | 11140 | # endif |
11258 | 11141 | #endif |
11259 | 11142 | |
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;} | |
11267 | 11144 | int main () |
11268 | 11145 | { |
11269 | 11146 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11272 | 11149 | if (self) |
11273 | 11150 | { |
11274 | 11151 | 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; | |
11280 | 11153 | /* dlclose (self); */ |
11281 | 11154 | } |
11282 | 11155 | else |
11322 | 11195 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11323 | 11196 | lt_status=$lt_dlunknown |
11324 | 11197 | cat > conftest.$ac_ext <<_LT_EOF |
11325 | #line $LINENO "configure" | |
11198 | #line 11199 "configure" | |
11326 | 11199 | #include "confdefs.h" |
11327 | 11200 | |
11328 | 11201 | #if HAVE_DLFCN_H |
11363 | 11236 | # endif |
11364 | 11237 | #endif |
11365 | 11238 | |
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;} | |
11373 | 11240 | int main () |
11374 | 11241 | { |
11375 | 11242 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11378 | 11245 | if (self) |
11379 | 11246 | { |
11380 | 11247 | 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; | |
11386 | 11249 | /* dlclose (self); */ |
11387 | 11250 | } |
11388 | 11251 | else |
11562 | 11425 | |
11563 | 11426 | |
11564 | 11427 | |
11565 | ||
11566 | ||
11567 | ||
11568 | ||
11569 | 11428 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
11570 | 11429 | if test -n "$ac_tool_prefix"; then |
11571 | 11430 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
11678 | 11537 | $as_echo "no" >&6; } |
11679 | 11538 | PKG_CONFIG="" |
11680 | 11539 | fi |
11540 | ||
11681 | 11541 | fi |
11682 | 11542 | |
11683 | 11543 | pkg_failed=no |
11720 | 11580 | |
11721 | 11581 | |
11722 | 11582 | if test $pkg_failed = yes; then |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11724 | $as_echo "no" >&6; } | |
11725 | 11583 | |
11726 | 11584 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
11727 | 11585 | _pkg_short_errors_supported=yes |
11745 | 11603 | |
11746 | 11604 | Alternatively, you may set the environment variables LIBXML_CFLAGS |
11747 | 11605 | 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 | |
11749 | 11608 | elif test $pkg_failed = untried; then |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11751 | $as_echo "no" >&6; } | |
11752 | 11609 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
11753 | 11610 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
11754 | 11611 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it |
11766 | 11623 | LIBXML_LIBS=$pkg_cv_LIBXML_LIBS |
11767 | 11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11768 | 11625 | $as_echo "yes" >&6; } |
11769 | ||
11626 | : | |
11770 | 11627 | fi |
11771 | 11628 | |
11772 | 11629 | GST_MAJORMINOR=0.10 |
11815 | 11672 | |
11816 | 11673 | |
11817 | 11674 | if test $pkg_failed = yes; then |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11819 | $as_echo "no" >&6; } | |
11820 | 11675 | |
11821 | 11676 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
11822 | 11677 | _pkg_short_errors_supported=yes |
11840 | 11695 | |
11841 | 11696 | Alternatively, you may set the environment variables GST_CFLAGS |
11842 | 11697 | 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 | |
11844 | 11700 | elif test $pkg_failed = untried; then |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11846 | $as_echo "no" >&6; } | |
11847 | 11701 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
11848 | 11702 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
11849 | 11703 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it |
11861 | 11715 | GST_LIBS=$pkg_cv_GST_LIBS |
11862 | 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11863 | 11717 | $as_echo "yes" >&6; } |
11864 | ||
11718 | : | |
11865 | 11719 | fi |
11866 | 11720 | |
11867 | 11721 | pkg_failed=no |
11904 | 11758 | |
11905 | 11759 | |
11906 | 11760 | if test $pkg_failed = yes; then |
11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11908 | $as_echo "no" >&6; } | |
11909 | 11761 | |
11910 | 11762 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
11911 | 11763 | _pkg_short_errors_supported=yes |
11929 | 11781 | |
11930 | 11782 | Alternatively, you may set the environment variables GST_BASE_CFLAGS |
11931 | 11783 | 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 | |
11933 | 11786 | elif test $pkg_failed = untried; then |
11934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11935 | $as_echo "no" >&6; } | |
11936 | 11787 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
11937 | 11788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
11938 | 11789 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it |
11950 | 11801 | GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS |
11951 | 11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11952 | 11803 | $as_echo "yes" >&6; } |
11953 | ||
11804 | : | |
11954 | 11805 | fi |
11955 | 11806 | |
11956 | 11807 | pkg_failed=no |
11993 | 11844 | |
11994 | 11845 | |
11995 | 11846 | if test $pkg_failed = yes; then |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11997 | $as_echo "no" >&6; } | |
11998 | 11847 | |
11999 | 11848 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
12000 | 11849 | _pkg_short_errors_supported=yes |
12018 | 11867 | |
12019 | 11868 | Alternatively, you may set the environment variables GST_VIDEO_CFLAGS |
12020 | 11869 | 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 | |
12022 | 11872 | elif test $pkg_failed = untried; then |
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12024 | $as_echo "no" >&6; } | |
12025 | 11873 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12026 | 11874 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12027 | 11875 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it |
12039 | 11887 | GST_VIDEO_LIBS=$pkg_cv_GST_VIDEO_LIBS |
12040 | 11888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12041 | 11889 | $as_echo "yes" >&6; } |
12042 | ||
11890 | : | |
12043 | 11891 | fi |
12044 | 11892 | |
12045 | 11893 | pkg_failed=no |
12082 | 11930 | |
12083 | 11931 | |
12084 | 11932 | if test $pkg_failed = yes; then |
12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12086 | $as_echo "no" >&6; } | |
12087 | 11933 | |
12088 | 11934 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
12089 | 11935 | _pkg_short_errors_supported=yes |
12107 | 11953 | |
12108 | 11954 | Alternatively, you may set the environment variables GST_PBU_CFLAGS |
12109 | 11955 | 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 | |
12111 | 11958 | elif test $pkg_failed = untried; then |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12113 | $as_echo "no" >&6; } | |
12114 | 11959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
12115 | 11960 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
12116 | 11961 | as_fn_error "The pkg-config script could not be found or is too old. Make sure it |
12128 | 11973 | GST_PBU_LIBS=$pkg_cv_GST_PBU_LIBS |
12129 | 11974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12130 | 11975 | $as_echo "yes" >&6; } |
12131 | ||
11976 | : | |
12132 | 11977 | fi |
12133 | 11978 | |
12134 | 11979 | |
12379 | 12224 | |
12380 | 12225 | |
12381 | 12226 | |
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" | |
12383 | 12228 | |
12384 | 12229 | cat >confcache <<\_ACEOF |
12385 | 12230 | # This file is a shell script that caches the results of configure |
12926 | 12771 | # report actual input values of CONFIG_FILES etc. instead of their |
12927 | 12772 | # values after options handling. |
12928 | 12773 | 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 | |
12930 | 12775 | generated by GNU Autoconf 2.65. Invocation command line was |
12931 | 12776 | |
12932 | 12777 | CONFIG_FILES = $CONFIG_FILES |
12992 | 12837 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12993 | 12838 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
12994 | 12839 | ac_cs_version="\\ |
12995 | gupnp-dlna config.status 0.2.1 | |
12840 | gupnp-dlna config.status 0.3.0 | |
12996 | 12841 | configured by $0, generated by GNU Autoconf 2.65, |
12997 | 12842 | with options \\"\$ac_cs_config\\" |
12998 | 12843 | |
13115 | 12960 | sed_quote_subst='$sed_quote_subst' |
13116 | 12961 | double_quote_subst='$double_quote_subst' |
13117 | 12962 | 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"`' | |
13240 | 13083 | |
13241 | 13084 | LTCC='$LTCC' |
13242 | 13085 | LTCFLAGS='$LTCFLAGS' |
13243 | 13086 | compiler='$compiler_DEFAULT' |
13244 | 13087 | |
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 | ||
13253 | 13088 | # Quote evaled strings. |
13254 | for var in AS \ | |
13255 | DLLTOOL \ | |
13256 | OBJDUMP \ | |
13257 | SHELL \ | |
13258 | ECHO \ | |
13259 | SED \ | |
13089 | for var in SED \ | |
13260 | 13090 | GREP \ |
13261 | 13091 | EGREP \ |
13262 | 13092 | FGREP \ |
13279 | 13109 | lt_cv_sys_global_symbol_to_cdecl \ |
13280 | 13110 | lt_cv_sys_global_symbol_to_c_name_address \ |
13281 | 13111 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
13112 | SHELL \ | |
13113 | ECHO \ | |
13282 | 13114 | lt_prog_compiler_no_builtin_flag \ |
13283 | 13115 | lt_prog_compiler_wl \ |
13284 | 13116 | lt_prog_compiler_pic \ |
13308 | 13140 | libname_spec \ |
13309 | 13141 | library_names_spec \ |
13310 | 13142 | soname_spec \ |
13311 | install_override_mode \ | |
13312 | 13143 | finish_eval \ |
13313 | 13144 | old_striplib \ |
13314 | 13145 | striplib; do |
13315 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13146 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13316 | 13147 | *[\\\\\\\`\\"\\\$]*) |
13317 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13148 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
13318 | 13149 | ;; |
13319 | 13150 | *) |
13320 | 13151 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
13341 | 13172 | finish_cmds \ |
13342 | 13173 | sys_lib_search_path_spec \ |
13343 | 13174 | sys_lib_dlsearch_path_spec; do |
13344 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
13175 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
13345 | 13176 | *[\\\\\\\`\\"\\\$]*) |
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\\"\\\`\\\\\\"" | |
13347 | 13178 | ;; |
13348 | 13179 | *) |
13349 | 13180 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
13350 | 13181 | ;; |
13351 | 13182 | esac |
13352 | 13183 | 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 | |
13353 | 13190 | |
13354 | 13191 | ac_aux_dir='$ac_aux_dir' |
13355 | 13192 | xsi_shell='$xsi_shell' |
13391 | 13228 | "libgupnp-dlna/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-dlna/Makefile" ;; |
13392 | 13229 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
13393 | 13230 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
13231 | "tests/test-discoverer.sh") CONFIG_FILES="$CONFIG_FILES tests/test-discoverer.sh" ;; | |
13394 | 13232 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13395 | 13233 | "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;; |
13396 | 13234 | "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; |
14096 | 13934 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
14097 | 13935 | # |
14098 | 13936 | # 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. | |
14101 | 13938 | # Written by Gordon Matzigkeit, 1996 |
14102 | 13939 | # |
14103 | 13940 | # This file is part of GNU Libtool. |
14130 | 13967 | # ### BEGIN LIBTOOL CONFIG |
14131 | 13968 | |
14132 | 13969 | # Assembler program. |
14133 | AS=$lt_AS | |
13970 | AS=$AS | |
14134 | 13971 | |
14135 | 13972 | # DLL creation program. |
14136 | DLLTOOL=$lt_DLLTOOL | |
13973 | DLLTOOL=$DLLTOOL | |
14137 | 13974 | |
14138 | 13975 | # Object dumper program. |
14139 | OBJDUMP=$lt_OBJDUMP | |
13976 | OBJDUMP=$OBJDUMP | |
14140 | 13977 | |
14141 | 13978 | # Which release of libtool.m4 was used? |
14142 | 13979 | macro_version=$macro_version |
14153 | 13990 | |
14154 | 13991 | # Whether or not to optimize for fast installation. |
14155 | 13992 | 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 | |
14162 | 13993 | |
14163 | 13994 | # The host system. |
14164 | 13995 | host_alias=$host_alias |
14209 | 14040 | # turn newlines into spaces. |
14210 | 14041 | NL2SP=$lt_lt_NL2SP |
14211 | 14042 | |
14043 | # How to create reloadable object files. | |
14044 | reload_flag=$lt_reload_flag | |
14045 | reload_cmds=$lt_reload_cmds | |
14046 | ||
14212 | 14047 | # Method to check whether dependent libraries are shared objects. |
14213 | 14048 | deplibs_check_method=$lt_deplibs_check_method |
14214 | 14049 | |
14227 | 14062 | old_postinstall_cmds=$lt_old_postinstall_cmds |
14228 | 14063 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
14229 | 14064 | |
14230 | # Whether to use a lock for old archive extraction. | |
14231 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14232 | ||
14233 | 14065 | # A C compiler. |
14234 | 14066 | LTCC=$lt_CC |
14235 | 14067 | |
14250 | 14082 | |
14251 | 14083 | # The name of the directory that contains temporary libtool files. |
14252 | 14084 | 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 | |
14253 | 14091 | |
14254 | 14092 | # Used to examine libraries when file_magic_cmd begins with "file". |
14255 | 14093 | MAGIC_CMD=$MAGIC_CMD |
14313 | 14151 | # The coded name of the library, if different from the real name. |
14314 | 14152 | soname_spec=$lt_soname_spec |
14315 | 14153 | |
14316 | # Permission mode override for installation of shared libraries. | |
14317 | install_override_mode=$lt_install_override_mode | |
14318 | ||
14319 | 14154 | # Command to use after installation of a shared archive. |
14320 | 14155 | postinstall_cmds=$lt_postinstall_cmds |
14321 | 14156 | |
14354 | 14189 | |
14355 | 14190 | # The linker used to build libraries. |
14356 | 14191 | LD=$lt_LD |
14357 | ||
14358 | # How to create reloadable object files. | |
14359 | reload_flag=$lt_reload_flag | |
14360 | reload_cmds=$lt_reload_cmds | |
14361 | 14192 | |
14362 | 14193 | # Commands used to build an old-style archive. |
14363 | 14194 | old_archive_cmds=$lt_old_archive_cmds |
14618 | 14449 | func_dirname () |
14619 | 14450 | { |
14620 | 14451 | # Extract subdirectory from the argument. |
14621 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
14452 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
14622 | 14453 | if test "X$func_dirname_result" = "X${1}"; then |
14623 | 14454 | func_dirname_result="${3}" |
14624 | 14455 | else |
14629 | 14460 | # func_basename file |
14630 | 14461 | func_basename () |
14631 | 14462 | { |
14632 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
14463 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
14633 | 14464 | } |
14634 | 14465 | |
14635 | 14466 | |
14642 | 14473 | func_stripname () |
14643 | 14474 | { |
14644 | 14475 | 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}\$%%"`;; | |
14647 | 14480 | esac |
14648 | 14481 | } |
14649 | 14482 | |
14654 | 14487 | # func_opt_split |
14655 | 14488 | func_opt_split () |
14656 | 14489 | { |
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"` | |
14659 | 14492 | } |
14660 | 14493 | |
14661 | 14494 | # func_lo2o object |
14662 | 14495 | func_lo2o () |
14663 | 14496 | { |
14664 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
14497 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
14665 | 14498 | } |
14666 | 14499 | |
14667 | 14500 | # func_xform libobj-or-source |
14668 | 14501 | func_xform () |
14669 | 14502 | { |
14670 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
14503 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
14671 | 14504 | } |
14672 | 14505 | |
14673 | 14506 | # func_arith arithmetic-term... |
0 | 0 | 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/) | |
2 | 2 | AM_INIT_AUTOMAKE() |
3 | 3 | AC_CONFIG_SRCDIR(libgupnp-dlna/gupnp-dlna-profile.h) |
4 | 4 | AM_CONFIG_HEADER(config.h) |
51 | 51 | libgupnp-dlna/Makefile |
52 | 52 | tools/Makefile |
53 | 53 | tests/Makefile |
54 | tests/test-discoverer.sh | |
54 | 55 | doc/Makefile |
55 | 56 | doc/version.xml |
56 | 57 | data/Makefile |
39 | 39 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
40 | 40 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
41 | 41 | $(ACLOCAL_M4) |
42 | mkinstalldirs = $(install_sh) -d | |
42 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
43 | 43 | CONFIG_HEADER = $(top_builddir)/config.h |
44 | 44 | CONFIG_CLEAN_FILES = |
45 | 45 | CONFIG_CLEAN_VPATH_FILES = |
148 | 148 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
149 | 149 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
150 | 150 | PKG_CONFIG = @PKG_CONFIG@ |
151 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
152 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
153 | 151 | RANLIB = @RANLIB@ |
154 | 152 | SED = @SED@ |
155 | 153 | SET_MAKE = @SET_MAKE@ |
192 | 190 | libexecdir = @libexecdir@ |
193 | 191 | localedir = @localedir@ |
194 | 192 | localstatedir = @localstatedir@ |
193 | lt_ECHO = @lt_ECHO@ | |
195 | 194 | mandir = @mandir@ |
196 | 195 | mkdir_p = @mkdir_p@ |
197 | 196 | oldincludedir = @oldincludedir@ |
0 | 0 | <?xml version="1.0"?> |
1 | 1 | |
2 | 2 | <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"> | |
5 | 5 | <field name="name" type="string"> |
6 | 6 | <value>audio/x-ac3</value> |
7 | 7 | </field> |
18 | 18 | <range min="64000" max="640000"/> |
19 | 19 | </field> |
20 | 20 | </restriction> |
21 | </restrictions> | |
22 | ||
23 | <dlna-profile name="AC3" mime="audio/vnd.dolby.dd-raw"> | |
24 | <parent name="AC3" /> | |
21 | 25 | </dlna-profile> |
22 | 26 | </dlna-profiles> |
1 | 1 | |
2 | 2 | <dlna-profiles> |
3 | 3 | <include ref="common.xml" /> |
4 | <include ref="aac.xml" /> | |
5 | <include ref="mp3.xml" /> | |
6 | <include ref="ac3.xml" /> | |
4 | 7 | |
5 | 8 | <restrictions> |
6 | 9 | <restriction id="AVC_BL_L3_AAC" type="audio"> |
54 | 57 | <field name="bitrate" type="int"> |
55 | 58 | <range min="0" max="384000" /> |
56 | 59 | </field> |
57 | <field name="maximum-bitrate" type="int"> | |
58 | <range min="0" max="384000" /> | |
59 | </field> | |
60 | 60 | </restriction> |
61 | 61 | |
62 | 62 | <restriction id="AVC_BL_L3L" type="video"> |
72 | 72 | <value>2.2</value> |
73 | 73 | <value>3</value> |
74 | 74 | </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> | |
75 | 80 | </restriction> |
76 | 81 | |
77 | 82 | <restriction id="AVC_BL_L3" type="video"> |
177 | 182 | <parent name="30fps" /> |
178 | 183 | </restriction> |
179 | 184 | |
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> | |
180 | 254 | </restrictions> |
181 | 255 | |
182 | 256 | <dlna-profile id="AVC_MP4_BL_CIF15"> |
273 | 347 | </restriction> |
274 | 348 | </dlna-profile> |
275 | 349 | |
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"> | |
277 | 351 | <parent name="MP4" /> |
278 | 352 | |
279 | 353 | <parent name="AVC_BL_L3_AAC" /> |
304 | 378 | </restriction> |
305 | 379 | </dlna-profile> |
306 | 380 | |
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"> | |
308 | 382 | <parent name="MP4" /> |
309 | 383 | |
310 | 384 | <parent name="AVC_BL_L3_AAC" /> |
329 | 403 | <parent name="AVC_BL_VGA_16:9" /> |
330 | 404 | </restriction> |
331 | 405 | </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> | |
332 | 622 | </dlna-profiles> |
57 | 57 | </restriction> |
58 | 58 | |
59 | 59 | <!-- 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 | ||
60 | 78 | <restriction id="625_D1" type="video"> |
61 | 79 | <field name="width" type="int"> |
62 | 80 | <value>720</value> |
324 | 342 | <range min="0/1" max="30/1" /> |
325 | 343 | </field> |
326 | 344 | </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> | |
327 | 351 | </restrictions> |
328 | 352 | </dlna-profiles> |
0 | 0 | <?xml version="1.0"?> |
1 | 1 | |
2 | 2 | <dlna-profiles> |
3 | <include ref="common.xml" /> | |
4 | ||
3 | 5 | <restrictions> |
4 | 6 | <restriction id="MPEG_TS" type="container"> |
5 | 7 | <field name="name" type="string"> |
132 | 134 | </restriction> |
133 | 135 | |
134 | 136 | <!-- 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" /> | |
142 | 139 | <field name="framerate" type="fraction"> |
143 | 140 | <value>30000/1001</value> |
144 | 141 | <value>30/1</value> |
151 | 148 | </field> |
152 | 149 | </restriction> |
153 | 150 | |
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 | ||
161 | 154 | <field name="framerate" type="fraction"> |
162 | 155 | <value>30000/1001</value> |
163 | 156 | <value>30/1</value> |
295 | 288 | |
296 | 289 | <restriction type="video"> |
297 | 290 | <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" /> | |
304 | 297 | </restriction> |
305 | 298 | |
306 | 299 | <restriction type="video"> |
64 | 64 | <value>0</value> |
65 | 65 | <value>1</value> |
66 | 66 | </field> |
67 | <field name="maximum-bitrate" type="int"> | |
67 | <field name="bitrate" type="int"> | |
68 | 68 | <range min="1" max="64000" /> |
69 | 69 | </field> |
70 | 70 | </restriction> |
76 | 76 | <value>0b</value> |
77 | 77 | <value>2</value> |
78 | 78 | </field> |
79 | <field name="maximum-bitrate" type="int"> | |
79 | <field name="bitrate" type="int"> | |
80 | 80 | <range min="1" max="128000" /> |
81 | 81 | </field> |
82 | 82 | </restriction> |
87 | 87 | <field name="level" type="string"> |
88 | 88 | <value>3</value> |
89 | 89 | </field> |
90 | <field name="maximum-bitrate" type="int"> | |
90 | <field name="bitrate" type="int"> | |
91 | 91 | <range min="1" max="384000" /> |
92 | 92 | </field> |
93 | 93 | </restriction> |
104 | 104 | <value>1</value> |
105 | 105 | <value>2</value> |
106 | 106 | </field> |
107 | <field name="maximum-bitrate" type="int"> | |
107 | <field name="bitrate" type="int"> | |
108 | 108 | <range min="1" max="128000" /> |
109 | 109 | </field> |
110 | 110 | </restriction> |
111 | 111 | |
112 | 112 | <restriction id="SP_L3_VGA" type="video"> |
113 | 113 | <parent name="MPEG4V" /> |
114 | <parent name="30fps" /> | |
114 | 115 | |
115 | 116 | <field name="profile" type="string"> |
116 | 117 | <value>simple</value> |
122 | 123 | <value>2</value> |
123 | 124 | <value>3</value> |
124 | 125 | </field> |
125 | <field name="maximum-bitrate" type="int"> | |
126 | <field name="bitrate" type="int"> | |
126 | 127 | <range min="1" max="3000000" /> |
127 | 128 | </field> |
128 | 129 | </restriction> |
370 | 371 | |
371 | 372 | <restriction type="audio"> |
372 | 373 | <parent name="AAC" /> |
373 | <field name="maximum-bitrate" type="int"> | |
374 | <field name="bitrate" type="int"> | |
374 | 375 | <range min="1" max="128000" /> |
375 | 376 | </field> |
376 | 377 | </restriction> |
49 | 49 | IGNORE_HFILES= xml-util.h \ |
50 | 50 | gvalue-util.h \ |
51 | 51 | gupnp-dlna-load.h \ |
52 | gupnp-dlna-profile.h \ | |
53 | 52 | gupnp-dlna-marshal.h |
54 | 53 | |
55 | 54 | # Images to copy into HTML directory. |
45 | 45 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
46 | 46 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
47 | 47 | $(ACLOCAL_M4) |
48 | mkinstalldirs = $(install_sh) -d | |
48 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
49 | 49 | CONFIG_HEADER = $(top_builddir)/config.h |
50 | 50 | CONFIG_CLEAN_FILES = version.xml |
51 | 51 | CONFIG_CLEAN_VPATH_FILES = |
131 | 131 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
132 | 132 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
133 | 133 | PKG_CONFIG = @PKG_CONFIG@ |
134 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
135 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
136 | 134 | RANLIB = @RANLIB@ |
137 | 135 | SED = @SED@ |
138 | 136 | SET_MAKE = @SET_MAKE@ |
175 | 173 | libexecdir = @libexecdir@ |
176 | 174 | localedir = @localedir@ |
177 | 175 | localstatedir = @localstatedir@ |
176 | lt_ECHO = @lt_ECHO@ | |
178 | 177 | mandir = @mandir@ |
179 | 178 | mkdir_p = @mkdir_p@ |
180 | 179 | oldincludedir = @oldincludedir@ |
241 | 240 | IGNORE_HFILES = xml-util.h \ |
242 | 241 | gvalue-util.h \ |
243 | 242 | gupnp-dlna-load.h \ |
244 | gupnp-dlna-profile.h \ | |
245 | 243 | gupnp-dlna-marshal.h |
246 | 244 | |
247 | 245 |
52 | 52 | MediaServer implementations, such as DLNA media profile guessing. |
53 | 53 | </para> |
54 | 54 | |
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 | ||
55 | 60 | <xi:include href="xml/gupnp-dlna-discoverer.xml"/> |
56 | 61 | <xi:include href="xml/gupnp-dlna-information.xml"/> |
62 | <xi:include href="xml/gupnp-dlna-profile.xml"/> | |
57 | 63 | |
58 | 64 | </chapter> |
59 | 65 |
3 | 3 | GUPnPDLNAProfile |
4 | 4 | GUPnPDLNAProfileClass |
5 | 5 | gupnp_dlna_profile_new |
6 | gupnp_dlna_profile_get_name | |
7 | gupnp_dlna_profile_get_mime | |
8 | gupnp_dlna_profile_get_encoding_profile | |
6 | 9 | <SUBSECTION Standard> |
7 | 10 | GUPNP_DLNA_PROFILE |
8 | 11 | GUPNP_IS_DLNA_PROFILE |
7 | 7 | <link rel="up" href="ch01.html" title="GUPnP DLNA"> |
8 | 8 | <link rel="prev" href="ch01.html" title="GUPnP DLNA"> |
9 | 9 | <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)"> | |
11 | 11 | <link rel="stylesheet" href="style.css" type="text/css"> |
12 | 12 | </head> |
13 | 13 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
26 | 26 | | |
27 | 27 | <a href="#GUPnPDLNADiscoverer.object-hierarchy" class="shortcut">Object Hierarchy</a> |
28 | 28 | | |
29 | <a href="#GUPnPDLNADiscoverer.properties" class="shortcut">Properties</a> | |
30 | | | |
29 | 31 | <a href="#GUPnPDLNADiscoverer.signals" class="shortcut">Signals</a> |
30 | 32 | </td></tr> |
31 | 33 | </table> |
32 | <div class="refentry" title="GUPnPDLNADiscoverer"> | |
34 | <div class="refentry"> | |
33 | 35 | <a name="GUPnPDLNADiscoverer"></a><div class="titlepage"></div> |
34 | 36 | <div class="refnamediv"><table width="100%"><tr> |
35 | 37 | <td valign="top"> |
39 | 41 | </td> |
40 | 42 | <td valign="top" align="right"></td> |
41 | 43 | </tr></table></div> |
42 | <div class="refsynopsisdiv" title="Synopsis"> | |
44 | <div class="refsynopsisdiv"> | |
43 | 45 | <a name="GUPnPDLNADiscoverer.synopsis"></a><h2>Synopsis</h2> |
44 | 46 | <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>); | |
50 | 54 | <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> |
51 | 55 | (<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>); | |
54 | 58 | </pre> |
55 | 59 | </div> |
56 | <div class="refsect1" title="Object Hierarchy"> | |
60 | <div class="refsect1"> | |
57 | 61 | <a name="GUPnPDLNADiscoverer.object-hierarchy"></a><h2>Object Hierarchy</h2> |
58 | 62 | <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> | |
61 | 65 | +----GUPnPDLNADiscoverer |
62 | 66 | </pre> |
63 | 67 | </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"> | |
65 | 76 | <a name="GUPnPDLNADiscoverer.signals"></a><h2>Signals</h2> |
66 | 77 | <pre class="synopsis"> |
67 | 78 | "<a class="link" href="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done" title='The "done" signal'>done</a>" : Run Last |
68 | 79 | </pre> |
69 | 80 | </div> |
70 | <div class="refsect1" title="Description"> | |
81 | <div class="refsect1"> | |
71 | 82 | <a name="GUPnPDLNADiscoverer.description"></a><h2>Description</h2> |
72 | 83 | <p> |
73 | 84 | 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 | |
75 | 86 | media metadata given a URI. GUPnPDLNADiscoverer extends this API to also |
76 | 87 | provide a DLNA profile name and mime type for the media. |
77 | 88 | </p> |
78 | 89 | <p> |
79 | 90 | 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 | |
81 | 92 | are possible. |
82 | 93 | </p> |
83 | 94 | <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 | |
86 | 97 | URIs to be processed and then asks for the discovery to begin. |
87 | 98 | </p> |
88 | 99 | </div> |
89 | <div class="refsect1" title="Details"> | |
100 | <div class="refsect1"> | |
90 | 101 | <a name="GUPnPDLNADiscoverer.details"></a><h2>Details</h2> |
91 | <div class="refsect2" title="GUPnPDLNADiscoverer"> | |
102 | <div class="refsect2"> | |
92 | 103 | <a name="GUPnPDLNADiscoverer-struct"></a><h3>GUPnPDLNADiscoverer</h3> |
93 | 104 | <pre class="programlisting">typedef struct _GUPnPDLNADiscoverer GUPnPDLNADiscoverer;</pre> |
94 | 105 | <p> |
96 | 107 | </p> |
97 | 108 | </div> |
98 | 109 | <hr> |
99 | <div class="refsect2" title="gupnp_dlna_discoverer_new ()"> | |
110 | <div class="refsect2"> | |
100 | 111 | <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> | |
102 | 115 | <p> |
103 | 116 | Creates a new <a class="link" href="GUPnPDLNADiscoverer.html" title="GUPnPDLNADiscoverer"><span class="type">GUPnPDLNADiscoverer</span></a> object with the given default timeout |
104 | 117 | value. |
120 | 133 | </table></div> |
121 | 134 | </div> |
122 | 135 | <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> | |
126 | 139 | <p> |
127 | 140 | Allows asynchronous discovery of URIs to begin. |
128 | 141 | </p> |
137 | 150 | </table></div> |
138 | 151 | </div> |
139 | 152 | <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> | |
143 | 156 | <p> |
144 | 157 | Stops asynchronous discovery of URIs. |
145 | 158 | </p> |
154 | 167 | </table></div> |
155 | 168 | </div> |
156 | 169 | <hr> |
157 | <div class="refsect2" title="gupnp_dlna_discoverer_discover_uri ()"> | |
170 | <div class="refsect2"> | |
158 | 171 | <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> | |
161 | 174 | <p> |
162 | 175 | Queues <em class="parameter"><code>uri</code></em> for metadata discovery. When discovery is completed, the |
163 | 176 | "discovered" signal is emitted on <em class="parameter"><code>discoverer</code></em>. |
185 | 198 | </table></div> |
186 | 199 | </div> |
187 | 200 | <hr> |
188 | <div class="refsect2" title="gupnp_dlna_discoverer_discover_uri_sync ()"> | |
201 | <div class="refsect2"> | |
189 | 202 | <a name="gupnp-dlna-discoverer-discover-uri-sync"></a><h3>gupnp_dlna_discoverer_discover_uri_sync ()</h3> |
190 | 203 | <pre class="programlisting"><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="returnvalue">GUPnPDLNAInformation</span></a> * gupnp_dlna_discoverer_discover_uri_sync |
191 | 204 | (<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> | |
194 | 207 | <p> |
195 | 208 | Synchronously gathers metadata for <em class="parameter"><code>uri</code></em>. |
196 | 209 | </p> |
223 | 236 | </table></div> |
224 | 237 | </div> |
225 | 238 | </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"> | |
227 | 256 | <a name="GUPnPDLNADiscoverer.signal-details"></a><h2>Signal Details</h2> |
228 | <div class="refsect2" title='The "done" signal'> | |
257 | <div class="refsect2"> | |
229 | 258 | <a name="GUPnPDLNADiscoverer-done"></a><h3>The <code class="literal">"done"</code> signal</h3> |
230 | 259 | <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, |
231 | 260 | <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> | |
234 | 263 | <p> |
235 | 264 | Will be emitted when all information on a URI could be discovered. |
236 | 265 | </p> |
266 | 295 | </div> |
267 | 296 | <div class="footer"> |
268 | 297 | <hr> |
269 | Generated by GTK-Doc V1.15</div> | |
298 | Generated by GTK-Doc V1.15.1</div> | |
270 | 299 | </body> |
271 | 300 | </html>⏎ |
6 | 6 | <link rel="home" href="index.html" title="GUPnP DLNA Reference Manual"> |
7 | 7 | <link rel="up" href="ch01.html" title="GUPnP DLNA"> |
8 | 8 | <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)"> | |
10 | 11 | <link rel="stylesheet" href="style.css" type="text/css"> |
11 | 12 | </head> |
12 | 13 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
16 | 17 | <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> |
17 | 18 | <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> |
18 | 19 | <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> | |
20 | 21 | </tr> |
21 | 22 | <tr><td colspan="5" class="shortcuts"> |
22 | 23 | <a href="#GUPnPDLNAInformation.synopsis" class="shortcut">Top</a> |
28 | 29 | <a href="#GUPnPDLNAInformation.properties" class="shortcut">Properties</a> |
29 | 30 | </td></tr> |
30 | 31 | </table> |
31 | <div class="refentry" title="GUPnPDLNAInformation"> | |
32 | <div class="refentry"> | |
32 | 33 | <a name="GUPnPDLNAInformation"></a><div class="titlepage"></div> |
33 | 34 | <div class="refnamediv"><table width="100%"><tr> |
34 | 35 | <td valign="top"> |
38 | 39 | </td> |
39 | 40 | <td valign="top" align="right"></td> |
40 | 41 | </tr></table></div> |
41 | <div class="refsynopsisdiv" title="Synopsis"> | |
42 | <div class="refsynopsisdiv"> | |
42 | 43 | <a name="GUPnPDLNAInformation.synopsis"></a><h2>Synopsis</h2> |
43 | 44 | <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> | |
50 | 51 | (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>); |
51 | 52 | </pre> |
52 | 53 | </div> |
53 | <div class="refsect1" title="Object Hierarchy"> | |
54 | <div class="refsect1"> | |
54 | 55 | <a name="GUPnPDLNAInformation.object-hierarchy"></a><h2>Object Hierarchy</h2> |
55 | 56 | <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> | |
57 | 58 | +----GUPnPDLNAInformation |
58 | 59 | </pre> |
59 | 60 | </div> |
60 | <div class="refsect1" title="Properties"> | |
61 | <div class="refsect1"> | |
61 | 62 | <a name="GUPnPDLNAInformation.properties"></a><h2>Properties</h2> |
62 | 63 | <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 | |
66 | 67 | </pre> |
67 | 68 | </div> |
68 | <div class="refsect1" title="Description"> | |
69 | <div class="refsect1"> | |
69 | 70 | <a name="GUPnPDLNAInformation.description"></a><h2>Description</h2> |
70 | 71 | <p> |
71 | 72 | The GUPnPDLNAInformation object holds metadata information discovered by the |
74 | 75 | All fields are read-only. |
75 | 76 | </p> |
76 | 77 | </div> |
77 | <div class="refsect1" title="Details"> | |
78 | <div class="refsect1"> | |
78 | 79 | <a name="GUPnPDLNAInformation.details"></a><h2>Details</h2> |
79 | <div class="refsect2" title="GUPnPDLNAInformation"> | |
80 | <div class="refsect2"> | |
80 | 81 | <a name="GUPnPDLNAInformation-struct"></a><h3>GUPnPDLNAInformation</h3> |
81 | 82 | <pre class="programlisting">typedef struct _GUPnPDLNAInformation GUPnPDLNAInformation;</pre> |
82 | 83 | </div> |
83 | 84 | <hr> |
84 | <div class="refsect2" title="gupnp_dlna_information_new ()"> | |
85 | <div class="refsect2"> | |
85 | 86 | <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> | |
89 | 90 | <p> |
90 | 91 | Creates a new <a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> object with the given properties. |
91 | 92 | </p> |
105 | 106 | <tr> |
106 | 107 | <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td> |
107 | 108 | <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 | |
109 | 110 | stream |
110 | 111 | </td> |
111 | 112 | </tr> |
118 | 119 | </table></div> |
119 | 120 | </div> |
120 | 121 | <hr> |
121 | <div class="refsect2" title="gupnp_dlna_information_get_name ()"> | |
122 | <div class="refsect2"> | |
122 | 123 | <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> | |
127 | 134 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
128 | 135 | <td> the DLNA profile name of the stream represented by <em class="parameter"><code>self</code></em>. Do not |
129 | 136 | free this string. |
130 | 137 | </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"> | |
136 | 144 | <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> | |
141 | 155 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
142 | 156 | <td> the DLNA MIME type of the stream represented by <em class="parameter"><code>self</code></em>. Do not |
143 | 157 | free this string. |
144 | 158 | </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"> | |
150 | 165 | <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 | |
152 | 167 | (<em class="parameter"><code><a class="link" href="GUPnPDLNAInformation.html" title="GUPnPDLNAInformation"><span class="type">GUPnPDLNAInformation</span></a> *self</code></em>);</pre> |
153 | 168 | <div class="variablelist"><table border="0"> |
154 | 169 | <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> | |
156 | 177 | <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td> |
157 | 178 | <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"> | |
165 | 187 | <a name="GUPnPDLNAInformation.property-details"></a><h2>Property Details</h2> |
166 | <div class="refsect2" title='The "info" property'> | |
188 | <div class="refsect2"> | |
167 | 189 | <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> | |
169 | 191 | <p>Metadata of the stream in a GstDiscovererInformation structure.</p> |
170 | 192 | </div> |
171 | 193 | <hr> |
172 | <div class="refsect2" title='The "mime" property'> | |
194 | <div class="refsect2"> | |
173 | 195 | <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> | |
175 | 197 | <p>The DLNA MIME type of the stream.</p> |
176 | 198 | <p>Default value: NULL</p> |
177 | 199 | </div> |
178 | 200 | <hr> |
179 | <div class="refsect2" title='The "name" property'> | |
201 | <div class="refsect2"> | |
180 | 202 | <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> | |
182 | 204 | <p>The name of the DLNA profile corresponding to the strream.</p> |
183 | 205 | <p>Default value: NULL</p> |
184 | 206 | </div> |
186 | 208 | </div> |
187 | 209 | <div class="footer"> |
188 | 210 | <hr> |
189 | Generated by GTK-Doc V1.15</div> | |
211 | Generated by GTK-Doc V1.15.1</div> | |
190 | 212 | </body> |
191 | 213 | </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>⏎ |
7 | 7 | <link rel="up" href="index.html" title="GUPnP DLNA Reference Manual"> |
8 | 8 | <link rel="prev" href="index.html" title="GUPnP DLNA Reference Manual"> |
9 | 9 | <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)"> | |
11 | 11 | <link rel="stylesheet" href="style.css" type="text/css"> |
12 | 12 | </head> |
13 | 13 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
18 | 18 | <th width="100%" align="center">GUPnP DLNA Reference Manual</th> |
19 | 19 | <td><a accesskey="n" href="GUPnPDLNADiscoverer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> |
20 | 20 | </tr></table> |
21 | <div class="chapter" title="GUPnP DLNA"> | |
21 | <div class="chapter"> | |
22 | 22 | <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> | |
24 | 24 | <div class="toc"><dl> |
25 | 25 | <dt> |
26 | 26 | <span class="refentrytitle"><a href="GUPnPDLNADiscoverer.html">GUPnPDLNADiscoverer</a></span><span class="refpurpose"> — Utility API for discovering DLNA profile/mime type and |
30 | 30 | <span class="refentrytitle"><a href="GUPnPDLNAInformation.html">GUPnPDLNAInformation</a></span><span class="refpurpose"> — Object containing metadata information returned by the |
31 | 31 | <span class="type">GUPNPDLNADiscoverer</span> API</span> |
32 | 32 | </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> | |
33 | 36 | </dl></div> |
34 | 37 | <p> |
35 | 38 | GUPnP DLNA is a set of utility APIs to simplify DLNA-specific bits of |
36 | 39 | MediaServer implementations, such as DLNA media profile guessing. |
37 | 40 | </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> | |
38 | 45 | </div> |
39 | 46 | <div class="footer"> |
40 | 47 | <hr> |
41 | Generated by GTK-Doc V1.15</div> | |
48 | Generated by GTK-Doc V1.15.1</div> | |
42 | 49 | </body> |
43 | 50 | </html>⏎ |
4 | 4 | <sub name="GUPnP DLNA" link="ch01.html"> |
5 | 5 | <sub name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html"/> |
6 | 6 | <sub name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html"/> |
7 | <sub name="GUPnPDLNAProfile" link="GUPnPDLNAProfile.html"/> | |
7 | 8 | </sub> |
8 | 9 | </chapters> |
9 | 10 | <functions> |
10 | 11 | <function name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-struct"/> |
11 | 12 | <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"/> | |
14 | 15 | <function name="gupnp_dlna_discoverer_discover_uri ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri"/> |
15 | 16 | <function name="gupnp_dlna_discoverer_discover_uri_sync ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri-sync"/> |
17 | <function name="The "extended-mode" property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--extended-mode"/> | |
18 | <function name="The "relaxed-mode" property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--relaxed-mode"/> | |
16 | 19 | <function name="The "done" signal" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done"/> |
17 | 20 | <function name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation-struct"/> |
18 | 21 | <function name="gupnp_dlna_information_new ()" link="GUPnPDLNAInformation.html#gupnp-dlna-information-new"/> |
22 | 25 | <function name="The "info" property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--info"/> |
23 | 26 | <function name="The "mime" property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime"/> |
24 | 27 | <function name="The "name" 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 "encoding-profile" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--encoding-profile"/> | |
35 | <function name="The "extended" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--extended"/> | |
36 | <function name="The "mime" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--mime"/> | |
37 | <function name="The "name" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--name"/> | |
25 | 38 | </functions> |
26 | 39 | </book> |
4 | 4 | <sub name="GUPnP DLNA" link="ch01.html"> |
5 | 5 | <sub name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html"/> |
6 | 6 | <sub name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html"/> |
7 | <sub name="GUPnPDLNAProfile" link="GUPnPDLNAProfile.html"/> | |
7 | 8 | </sub> |
8 | 9 | </chapters> |
9 | 10 | <functions> |
10 | 11 | <keyword type="struct" name="GUPnPDLNADiscoverer" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-struct"/> |
11 | 12 | <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"/> | |
14 | 15 | <keyword type="function" name="gupnp_dlna_discoverer_discover_uri ()" link="GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri"/> |
15 | 16 | <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 "extended-mode" property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--extended-mode"/> | |
18 | <keyword type="property" name="The "relaxed-mode" property" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer--relaxed-mode"/> | |
16 | 19 | <keyword type="signal" name="The "done" signal" link="GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done"/> |
17 | 20 | <keyword type="struct" name="GUPnPDLNAInformation" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation-struct"/> |
18 | 21 | <keyword type="function" name="gupnp_dlna_information_new ()" link="GUPnPDLNAInformation.html#gupnp-dlna-information-new"/> |
22 | 25 | <keyword type="property" name="The "info" property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--info"/> |
23 | 26 | <keyword type="property" name="The "mime" property" link="GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime"/> |
24 | 27 | <keyword type="property" name="The "name" 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 "encoding-profile" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--encoding-profile"/> | |
35 | <keyword type="property" name="The "extended" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--extended"/> | |
36 | <keyword type="property" name="The "mime" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--mime"/> | |
37 | <keyword type="property" name="The "name" property" link="GUPnPDLNAProfile.html#GUPnPDLNAProfile--name"/> | |
25 | 38 | </functions> |
26 | 39 | </book> |
5 | 5 | <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> |
6 | 6 | <link rel="home" href="index.html" title="GUPnP DLNA Reference Manual"> |
7 | 7 | <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)"> | |
9 | 9 | <link rel="stylesheet" href="style.css" type="text/css"> |
10 | 10 | </head> |
11 | 11 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
12 | <div class="book" title="GUPnP DLNA Reference Manual"> | |
12 | <div class="book"> | |
13 | 13 | <div class="titlepage"> |
14 | 14 | <div> |
15 | 15 | <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 | |
17 | 17 | </p></div> |
18 | 18 | <div><p class="copyright">Copyright © 2010 Arun Raghavan <arun.raghavan@collabora.co.uk></p></div> |
19 | 19 | <div><p class="copyright">Copyright © 2010 Collabora Multimedia</p></div> |
20 | 20 | <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> | |
23 | 23 | Permission is granted to copy, distribute and/or modify this |
24 | 24 | document under the terms of the <em class="citetitle">GNU Free |
25 | 25 | Documentation License</em>, Version 1.1 or any later |
54 | 54 | <span class="refentrytitle"><a href="GUPnPDLNAInformation.html">GUPnPDLNAInformation</a></span><span class="refpurpose"> — Object containing metadata information returned by the |
55 | 55 | <span class="type">GUPNPDLNADiscoverer</span> API</span> |
56 | 56 | </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> | |
57 | 60 | </dl></dd> |
58 | 61 | </dl></div> |
59 | 62 | </div> |
60 | 63 | <div class="footer"> |
61 | 64 | <hr> |
62 | Generated by GTK-Doc V1.15</div> | |
65 | Generated by GTK-Doc V1.15.1</div> | |
63 | 66 | </body> |
64 | 67 | </html>⏎ |
0 | 0 | <ANCHOR id="GUPnPDLNADiscoverer" href="gupnp-dlna/GUPnPDLNADiscoverer.html"> |
1 | 1 | <ANCHOR id="GUPnPDLNADiscoverer.synopsis" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.synopsis"> |
2 | 2 | <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"> | |
3 | 4 | <ANCHOR id="GUPnPDLNADiscoverer.signals" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.signals"> |
4 | 5 | <ANCHOR id="GUPnPDLNADiscoverer.description" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.description"> |
5 | 6 | <ANCHOR id="GUPnPDLNADiscoverer.details" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.details"> |
9 | 10 | <ANCHOR id="gupnp-dlna-discoverer-stop" href="gupnp-dlna/GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-stop"> |
10 | 11 | <ANCHOR id="gupnp-dlna-discoverer-discover-uri" href="gupnp-dlna/GUPnPDLNADiscoverer.html#gupnp-dlna-discoverer-discover-uri"> |
11 | 12 | <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"> | |
12 | 16 | <ANCHOR id="GUPnPDLNADiscoverer.signal-details" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer.signal-details"> |
13 | 17 | <ANCHOR id="GUPnPDLNADiscoverer-done" href="gupnp-dlna/GUPnPDLNADiscoverer.html#GUPnPDLNADiscoverer-done"> |
14 | 18 | <ANCHOR id="GUPnPDLNAInformation" href="gupnp-dlna/GUPnPDLNAInformation.html"> |
26 | 30 | <ANCHOR id="GUPnPDLNAInformation--info" href="gupnp-dlna/GUPnPDLNAInformation.html#GUPnPDLNAInformation--info"> |
27 | 31 | <ANCHOR id="GUPnPDLNAInformation--mime" href="gupnp-dlna/GUPnPDLNAInformation.html#GUPnPDLNAInformation--mime"> |
28 | 32 | <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"> |
38 | 38 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
39 | 39 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
40 | 40 | $(ACLOCAL_M4) |
41 | mkinstalldirs = $(install_sh) -d | |
41 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
42 | 42 | CONFIG_HEADER = $(top_builddir)/config.h |
43 | 43 | CONFIG_CLEAN_FILES = |
44 | 44 | CONFIG_CLEAN_VPATH_FILES = |
164 | 164 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
165 | 165 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
166 | 166 | PKG_CONFIG = @PKG_CONFIG@ |
167 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
168 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
169 | 167 | RANLIB = @RANLIB@ |
170 | 168 | SED = @SED@ |
171 | 169 | SET_MAKE = @SET_MAKE@ |
208 | 206 | libexecdir = @libexecdir@ |
209 | 207 | localedir = @localedir@ |
210 | 208 | localstatedir = @localstatedir@ |
209 | lt_ECHO = @lt_ECHO@ | |
211 | 210 | mandir = @mandir@ |
212 | 211 | mkdir_p = @mkdir_p@ |
213 | 212 | oldincludedir = @oldincludedir@ |
38 | 38 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
39 | 39 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
40 | 40 | $(ACLOCAL_M4) |
41 | mkinstalldirs = $(install_sh) -d | |
41 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
42 | 42 | CONFIG_HEADER = $(top_builddir)/config.h |
43 | 43 | CONFIG_CLEAN_FILES = |
44 | 44 | CONFIG_CLEAN_VPATH_FILES = |
164 | 164 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
165 | 165 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
166 | 166 | PKG_CONFIG = @PKG_CONFIG@ |
167 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
168 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
169 | 167 | RANLIB = @RANLIB@ |
170 | 168 | SED = @SED@ |
171 | 169 | SET_MAKE = @SET_MAKE@ |
208 | 206 | libexecdir = @libexecdir@ |
209 | 207 | localedir = @localedir@ |
210 | 208 | localstatedir = @localstatedir@ |
209 | lt_ECHO = @lt_ECHO@ | |
211 | 210 | mandir = @mandir@ |
212 | 211 | mkdir_p = @mkdir_p@ |
213 | 212 | oldincludedir = @oldincludedir@ |
40 | 40 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
41 | 41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
42 | 42 | $(ACLOCAL_M4) |
43 | mkinstalldirs = $(install_sh) -d | |
43 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
44 | 44 | CONFIG_HEADER = $(top_builddir)/config.h |
45 | 45 | CONFIG_CLEAN_FILES = |
46 | 46 | CONFIG_CLEAN_VPATH_FILES = |
167 | 167 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
168 | 168 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
169 | 169 | PKG_CONFIG = @PKG_CONFIG@ |
170 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
171 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
172 | 170 | RANLIB = @RANLIB@ |
173 | 171 | SED = @SED@ |
174 | 172 | SET_MAKE = @SET_MAKE@ |
211 | 209 | libexecdir = @libexecdir@ |
212 | 210 | localedir = @localedir@ |
213 | 211 | localstatedir = @localstatedir@ |
212 | lt_ECHO = @lt_ECHO@ | |
214 | 213 | mandir = @mandir@ |
215 | 214 | mkdir_p = @mkdir_p@ |
216 | 215 | oldincludedir = @oldincludedir@ |
41 | 41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
42 | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
43 | 43 | $(ACLOCAL_M4) |
44 | mkinstalldirs = $(install_sh) -d | |
44 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
45 | 45 | CONFIG_HEADER = $(top_builddir)/config.h |
46 | 46 | CONFIG_CLEAN_FILES = |
47 | 47 | CONFIG_CLEAN_VPATH_FILES = |
203 | 203 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
204 | 204 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
205 | 205 | PKG_CONFIG = @PKG_CONFIG@ |
206 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
207 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
208 | 206 | RANLIB = @RANLIB@ |
209 | 207 | SED = @SED@ |
210 | 208 | SET_MAKE = @SET_MAKE@ |
247 | 245 | libexecdir = @libexecdir@ |
248 | 246 | localedir = @localedir@ |
249 | 247 | localstatedir = @localstatedir@ |
248 | lt_ECHO = @lt_ECHO@ | |
250 | 249 | mandir = @mandir@ |
251 | 250 | mkdir_p = @mkdir_p@ |
252 | 251 | oldincludedir = @oldincludedir@ |
42 | 42 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
43 | 43 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
44 | 44 | $(ACLOCAL_M4) |
45 | mkinstalldirs = $(install_sh) -d | |
45 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
46 | 46 | CONFIG_HEADER = $(top_builddir)/config.h |
47 | 47 | CONFIG_CLEAN_FILES = |
48 | 48 | CONFIG_CLEAN_VPATH_FILES = |
204 | 204 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
205 | 205 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
206 | 206 | PKG_CONFIG = @PKG_CONFIG@ |
207 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
208 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
209 | 207 | RANLIB = @RANLIB@ |
210 | 208 | SED = @SED@ |
211 | 209 | SET_MAKE = @SET_MAKE@ |
248 | 246 | libexecdir = @libexecdir@ |
249 | 247 | localedir = @localedir@ |
250 | 248 | localstatedir = @localstatedir@ |
249 | lt_ECHO = @lt_ECHO@ | |
251 | 250 | mandir = @mandir@ |
252 | 251 | mkdir_p = @mkdir_p@ |
253 | 252 | oldincludedir = @oldincludedir@ |
16 | 16 | $(GST_CFLAGS) \ |
17 | 17 | $(GST_BASE_CFLAGS) \ |
18 | 18 | $(GST_VIDEO_CFLAGS) \ |
19 | -DDATA_DIR='"$(shareddir)"' | |
19 | -DDATA_DIR='"$(shareddir)"' \ | |
20 | -DG_LOG_DOMAIN='"gupnp-dlna"' | |
20 | 21 | |
21 | 22 | lib_LTLIBRARIES = libgupnp-dlna-1.0.la |
22 | 23 |
41 | 41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
42 | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
43 | 43 | $(ACLOCAL_M4) |
44 | mkinstalldirs = $(install_sh) -d | |
44 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
45 | 45 | CONFIG_HEADER = $(top_builddir)/config.h |
46 | 46 | CONFIG_CLEAN_FILES = |
47 | 47 | CONFIG_CLEAN_VPATH_FILES = |
190 | 190 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
191 | 191 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
192 | 192 | PKG_CONFIG = @PKG_CONFIG@ |
193 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
194 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
195 | 193 | RANLIB = @RANLIB@ |
196 | 194 | SED = @SED@ |
197 | 195 | SET_MAKE = @SET_MAKE@ |
234 | 232 | libexecdir = @libexecdir@ |
235 | 233 | localedir = @localedir@ |
236 | 234 | localstatedir = @localstatedir@ |
235 | lt_ECHO = @lt_ECHO@ | |
237 | 236 | mandir = @mandir@ |
238 | 237 | mkdir_p = @mkdir_p@ |
239 | 238 | oldincludedir = @oldincludedir@ |
267 | 266 | $(GST_CFLAGS) \ |
268 | 267 | $(GST_BASE_CFLAGS) \ |
269 | 268 | $(GST_VIDEO_CFLAGS) \ |
270 | -DDATA_DIR='"$(shareddir)"' | |
269 | -DDATA_DIR='"$(shareddir)"' \ | |
270 | -DG_LOG_DOMAIN='"gupnp-dlna"' | |
271 | 271 | |
272 | 272 | lib_LTLIBRARIES = libgupnp-dlna-1.0.la |
273 | 273 | BUILT_SOURCES = gupnp-dlna-marshal.c gupnp-dlna-marshal.h |
20 | 20 | |
21 | 21 | #include "gupnp-dlna-discoverer.h" |
22 | 22 | #include "gupnp-dlna-marshal.h" |
23 | #include "gupnp-dlna-load.h" | |
23 | 24 | |
24 | 25 | /** |
25 | 26 | * SECTION:gupnp-dlna-discoverer |
49 | 50 | |
50 | 51 | G_DEFINE_TYPE (GUPnPDLNADiscoverer, gupnp_dlna_discoverer, GST_TYPE_DISCOVERER) |
51 | 52 | |
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 | ||
52 | 123 | static void |
53 | 124 | gupnp_dlna_discoverer_dispose (GObject *object) |
54 | 125 | { |
66 | 137 | GError *err) |
67 | 138 | { |
68 | 139 | GUPnPDLNAInformation *dlna = NULL; |
140 | GUPnPDLNADiscovererClass *klass = GUPNP_DLNA_DISCOVERER_GET_CLASS (discoverer); | |
69 | 141 | |
70 | 142 | 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); | |
72 | 145 | |
73 | 146 | g_signal_emit (GUPNP_DLNA_DISCOVERER (discoverer), |
74 | 147 | signals[DONE], 0, dlna, err); |
81 | 154 | gupnp_dlna_discoverer_class_init (GUPnPDLNADiscovererClass *klass) |
82 | 155 | { |
83 | 156 | 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; | |
85 | 163 | object_class->dispose = gupnp_dlna_discoverer_dispose; |
86 | 164 | 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); | |
87 | 198 | |
88 | 199 | /** |
89 | 200 | * GUPnPDLNADiscoverer::done: |
103 | 214 | gupnp_dlna_marshal_VOID__OBJECT_BOXED, |
104 | 215 | G_TYPE_NONE, 2, GUPNP_TYPE_DLNA_INFORMATION, |
105 | 216 | 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 | } | |
106 | 227 | } |
107 | 228 | |
108 | 229 | static void |
124 | 245 | * Returns: A new #GUPnPDLNADiscoverer object. |
125 | 246 | */ |
126 | 247 | GUPnPDLNADiscoverer* |
127 | gupnp_dlna_discoverer_new (GstClockTime timeout) | |
248 | gupnp_dlna_discoverer_new (GstClockTime timeout, | |
249 | gboolean relaxed_mode, | |
250 | gboolean extended_mode) | |
128 | 251 | { |
129 | 252 | return g_object_new (GUPNP_TYPE_DLNA_DISCOVERER, |
130 | 253 | "timeout", timeout, |
254 | "relaxed-mode", relaxed_mode, | |
255 | "extended-mode", extended_mode, | |
131 | 256 | NULL); |
132 | 257 | } |
133 | 258 | |
139 | 264 | * |
140 | 265 | * Allows asynchronous discovery of URIs to begin. |
141 | 266 | */ |
142 | void gupnp_dlna_discoverer_start (GUPnPDLNADiscoverer *discoverer) | |
143 | { | |
144 | gst_discoverer_start (GST_DISCOVERER (discoverer)); | |
145 | } | |
146 | 267 | |
147 | 268 | /** |
148 | 269 | * gupnp_dlna_discoverer_stop: |
150 | 271 | * |
151 | 272 | * Stops asynchronous discovery of URIs. |
152 | 273 | */ |
153 | void gupnp_dlna_discoverer_stop (GUPnPDLNADiscoverer *discoverer) | |
154 | { | |
155 | gst_discoverer_stop (GST_DISCOVERER (discoverer)); | |
156 | } | |
157 | 274 | |
158 | 275 | /** |
159 | 276 | * gupnp_dlna_discoverer_discover_uri: |
190 | 307 | GError **err) |
191 | 308 | { |
192 | 309 | GstDiscovererInformation *info; |
310 | GUPnPDLNADiscovererClass *klass = GUPNP_DLNA_DISCOVERER_GET_CLASS (discoverer); | |
193 | 311 | |
194 | 312 | info = gst_discoverer_discover_uri (GST_DISCOVERER (discoverer), |
195 | 313 | uri, |
196 | 314 | err); |
197 | 315 | |
198 | 316 | 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); | |
200 | 319 | |
201 | 320 | return NULL; |
202 | 321 | } |
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 | } |
24 | 24 | #include <glib-object.h> |
25 | 25 | #include <gst/discoverer/gstdiscoverer.h> |
26 | 26 | #include "gupnp-dlna-information.h" |
27 | #include "gupnp-dlna-profile.h" | |
27 | 28 | |
28 | 29 | G_BEGIN_DECLS |
29 | 30 | |
68 | 69 | void (*done) (GUPnPDLNADiscoverer *discoverer, |
69 | 70 | GUPnPDLNAInformation *dlna, |
70 | 71 | GError *err); |
72 | ||
73 | /*< private >*/ | |
74 | GList *profiles_list; | |
75 | ||
71 | 76 | } GUPnPDLNADiscovererClass; |
72 | 77 | |
73 | 78 | GType gupnp_dlna_discoverer_get_type (void); |
74 | 79 | |
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); | |
76 | 84 | |
77 | 85 | /* 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))) | |
80 | 90 | gboolean |
81 | 91 | gupnp_dlna_discoverer_discover_uri (GUPnPDLNADiscoverer *discoverer, |
82 | 92 | gchar *uri); |
87 | 97 | gchar *uri, |
88 | 98 | GError **err); |
89 | 99 | |
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 | ||
90 | 113 | G_END_DECLS |
91 | 114 | |
92 | 115 | #endif /* _GUPNP_DLNA_DISCOVERER */ |
138 | 138 | GObjectClass *object_class = G_OBJECT_CLASS (klass); |
139 | 139 | GParamSpec *pspec; |
140 | 140 | |
141 | g_type_class_add_private (klass, sizeof (GUPnPDLNAInformation)); | |
141 | g_type_class_add_private (klass, sizeof (GUPnPDLNAInformationPrivate)); | |
142 | 142 | |
143 | 143 | object_class->get_property = gupnp_dlna_information_get_property; |
144 | 144 | object_class->set_property = gupnp_dlna_information_set_property; |
206 | 206 | |
207 | 207 | /** |
208 | 208 | * gupnp_dlna_information_get_name: |
209 | * @self: The #GUPnPDLNAInformation object | |
209 | 210 | * |
210 | 211 | * Returns: the DLNA profile name of the stream represented by @self. Do not |
211 | 212 | * free this string. |
219 | 220 | |
220 | 221 | /** |
221 | 222 | * gupnp_dlna_information_get_mime: |
223 | * @self: The #GUPnPDLNAInformation object | |
222 | 224 | * |
223 | 225 | * Returns: the DLNA MIME type of the stream represented by @self. Do not |
224 | 226 | * free this string. |
232 | 234 | |
233 | 235 | /** |
234 | 236 | * gupnp_dlna_information_get_info: |
237 | * @self: The #GUPnPDLNAInformation object | |
235 | 238 | * |
236 | 239 | * Returns: additional stream metadata for @self in the form of a |
237 | 240 | * #GstDiscovererInformation structure. Do not free this structure. |
64 | 64 | gupnp_dlna_information_get_info (GUPnPDLNAInformation *self); |
65 | 65 | |
66 | 66 | 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); | |
68 | 69 | |
69 | 70 | |
70 | 71 | G_END_DECLS |
591 | 591 | |
592 | 592 | profile = gupnp_dlna_profile_new ((gchar *) name, |
593 | 593 | (gchar *) mime, |
594 | enc_profile); | |
594 | enc_profile, | |
595 | FALSE); | |
595 | 596 | *profiles = g_list_append (*profiles, profile); |
596 | 597 | |
597 | 598 | if (id) |
818 | 819 | g_str_equal, |
819 | 820 | g_free, |
820 | 821 | NULL); |
821 | GList *ret; | |
822 | GList *ret, *i; | |
822 | 823 | |
823 | 824 | 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 | } | |
824 | 842 | |
825 | 843 | g_hash_table_unref (files_hash); |
826 | 844 | return ret; |
24 | 24 | #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) |
25 | 25 | #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) |
26 | 26 | #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) | |
28 | 27 | #else /* !G_ENABLE_DEBUG */ |
29 | 28 | /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
30 | 29 | * Do not access GValues directly in your code. Instead, use the |
48 | 47 | #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer |
49 | 48 | #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer |
50 | 49 | #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 | |
52 | 50 | #endif /* !G_ENABLE_DEBUG */ |
53 | 51 | |
54 | 52 |
20 | 20 | |
21 | 21 | #include "gupnp-dlna-profile.h" |
22 | 22 | |
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 | */ | |
23 | 33 | G_DEFINE_TYPE (GUPnPDLNAProfile, gupnp_dlna_profile, G_TYPE_OBJECT) |
24 | 34 | |
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 | } | |
25 | 128 | static void |
26 | 129 | gupnp_dlna_profile_finalize (GObject *object) |
27 | 130 | { |
28 | 131 | 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); | |
36 | 138 | |
37 | 139 | G_OBJECT_CLASS (gupnp_dlna_profile_parent_class)->finalize (object); |
38 | 140 | } |
41 | 143 | gupnp_dlna_profile_class_init (GUPnPDLNAProfileClass *klass) |
42 | 144 | { |
43 | 145 | 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; | |
45 | 152 | 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 | ||
46 | 188 | } |
47 | 189 | |
48 | 190 | static void |
49 | 191 | gupnp_dlna_profile_init (GUPnPDLNAProfile *self) |
50 | 192 | { |
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 | */ | |
56 | 208 | GUPnPDLNAProfile* |
57 | 209 | gupnp_dlna_profile_new (gchar *name, |
58 | 210 | 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 | } |
51 | 51 | |
52 | 52 | typedef struct { |
53 | 53 | GObject parent; |
54 | ||
55 | gchar *name; | |
56 | gchar *mime; | |
57 | GstEncodingProfile *enc_profile; | |
58 | 54 | } GUPnPDLNAProfile; |
59 | 55 | |
60 | 56 | typedef struct { |
65 | 61 | |
66 | 62 | GUPnPDLNAProfile* gupnp_dlna_profile_new (gchar *name, |
67 | 63 | gchar *mime, |
68 | GstEncodingProfile *enc_profile); | |
64 | GstEncodingProfile *enc_profile, | |
65 | gboolean extended); | |
69 | 66 | |
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); | |
71 | 72 | |
72 | 73 | G_END_DECLS |
73 | 74 |
64 | 64 | |
65 | 65 | /* New profile guessing API */ |
66 | 66 | |
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) | |
70 | 77 | { |
71 | 78 | GList *i; |
72 | 79 | |
105 | 112 | for (i = 0; i < gst_structure_n_fields (st2); i++) { |
106 | 113 | const gchar *name = gst_structure_nth_field_name (st2, i); |
107 | 114 | |
108 | if (!gst_structure_has_field(st1, name)) | |
115 | if (!gst_structure_has_field(st1, name)) { | |
116 | gupnp_dlna_debug (" missing field %s", name); | |
109 | 117 | return FALSE; |
118 | } | |
110 | 119 | } |
111 | 120 | |
112 | 121 | return TRUE; |
140 | 149 | } |
141 | 150 | |
142 | 151 | 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) | |
146 | 155 | { |
147 | 156 | GList *i; |
148 | 157 | |
164 | 173 | } |
165 | 174 | |
166 | 175 | static gboolean |
167 | check_container (GstDiscovererInformation *info, GstEncodingProfile *profile) | |
176 | check_container (GstDiscovererInformation *info, | |
177 | const GstEncodingProfile *profile) | |
168 | 178 | { |
169 | 179 | /* Top-level GstStreamInformation in the topology will be |
170 | 180 | * the container */ |
203 | 213 | } |
204 | 214 | |
205 | 215 | static gboolean |
206 | check_audio_profile (GstEncodingProfile *profile, | |
216 | check_audio_profile (const GstEncodingProfile *profile, | |
207 | 217 | GstDiscovererInformation *info) |
208 | 218 | { |
209 | 219 | GstCaps *caps; |
236 | 246 | } |
237 | 247 | |
238 | 248 | 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; | |
242 | 257 | |
243 | 258 | 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)); | |
250 | 273 | break; |
251 | 274 | } |
252 | 275 | } |
279 | 302 | gst_caps_set_simple (caps, "pixel-aspect-ratio", |
280 | 303 | GST_TYPE_FRACTION, n, d, NULL); |
281 | 304 | } |
305 | if (video->interlaced) | |
306 | gst_caps_set_simple (caps, "interlaced", G_TYPE_BOOLEAN, | |
307 | video->interlaced, NULL); | |
282 | 308 | if (video->format != GST_VIDEO_FORMAT_UNKNOWN) |
283 | 309 | gst_caps_set_simple (caps, "format", GST_TYPE_FOURCC, |
284 | 310 | gst_video_format_to_fourcc (video->format), |
298 | 324 | } |
299 | 325 | |
300 | 326 | static gboolean |
301 | check_video_profile (GstEncodingProfile *profile, | |
327 | check_video_profile (const GstEncodingProfile *profile, | |
302 | 328 | GstDiscovererInformation *info) |
303 | 329 | { |
304 | 330 | GList *i; |
321 | 347 | caps, |
322 | 348 | GST_ENCODING_PROFILE_VIDEO)) |
323 | 349 | found_video = TRUE; |
350 | else | |
351 | gupnp_dlna_debug (" Video did not match"); | |
324 | 352 | } else if (!found_audio && |
325 | 353 | stream->streamtype == GST_STREAM_AUDIO) { |
326 | 354 | caps = caps_from_audio_stream_info ( |
329 | 357 | caps, |
330 | 358 | GST_ENCODING_PROFILE_AUDIO)) |
331 | 359 | found_audio = TRUE; |
360 | else | |
361 | gupnp_dlna_debug (" Audio did not match"); | |
332 | 362 | } |
333 | 363 | |
334 | 364 | if (caps) |
339 | 369 | return FALSE; |
340 | 370 | |
341 | 371 | /* Check container restrictions */ |
342 | if (!check_container (info, profile)) | |
372 | if (!check_container (info, profile)) { | |
373 | gupnp_dlna_debug (" Container did not match"); | |
343 | 374 | return FALSE; |
375 | } | |
344 | 376 | |
345 | 377 | return TRUE; |
346 | 378 | } |
347 | 379 | |
348 | 380 | 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) | |
350 | 385 | { |
351 | 386 | GUPnPDLNAProfile *profile = NULL; |
387 | const GstEncodingProfile *enc_profile; | |
352 | 388 | GList *i; |
353 | 389 | |
354 | 390 | for (i = profiles; i; i = i->next) { |
355 | 391 | 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)); | |
360 | 401 | break; |
361 | 402 | } |
362 | 403 | } |
363 | 404 | } |
364 | 405 | |
365 | 406 | 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) | |
367 | 411 | { |
368 | 412 | GstStreamVideoInformation *video = GST_STREAM_VIDEO_INFORMATION (info); |
369 | 413 | GstCaps *caps; |
370 | 414 | GList *i; |
371 | 415 | gboolean found = FALSE; |
416 | GUPnPDLNAProfile *profile; | |
417 | const GstEncodingProfile *enc_profile; | |
372 | 418 | |
373 | 419 | if (!info || info->streamtype != GST_STREAM_IMAGE) |
374 | 420 | return; |
376 | 422 | caps = caps_from_video_stream_info (video); |
377 | 423 | |
378 | 424 | 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); | |
380 | 427 | |
381 | 428 | /* Optimisation TODO: this can be pre-computed */ |
382 | if (is_video_profile (profile->enc_profile)) | |
429 | if (is_video_profile (enc_profile)) | |
383 | 430 | continue; |
384 | 431 | |
385 | if (match_profile (profile->enc_profile, | |
432 | if (match_profile (enc_profile, | |
386 | 433 | caps, |
387 | 434 | GST_ENCODING_PROFILE_IMAGE)) { |
388 | 435 | /* 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)); | |
391 | 440 | break; |
392 | 441 | } |
393 | 442 | } |
396 | 445 | } |
397 | 446 | |
398 | 447 | GUPnPDLNAInformation * |
399 | gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation * info) | |
448 | gupnp_dlna_information_new_from_discoverer_info (GstDiscovererInformation *info, | |
449 | GList *profiles) | |
400 | 450 | { |
401 | 451 | GUPnPDLNAInformation *dlna; |
402 | 452 | GstStreamType type = GST_STREAM_UNKNOWN; |
403 | 453 | GList *tmp = info->stream_list; |
404 | 454 | gchar *name = NULL, *mime = NULL; |
405 | ||
406 | if (!profiles) { | |
407 | profiles = g_list_concat (profiles, | |
408 | gupnp_dlna_load_profiles_from_disk ()); | |
409 | } | |
410 | 455 | |
411 | 456 | while (tmp) { |
412 | 457 | GstStreamInformation *stream_info = |
424 | 469 | } |
425 | 470 | |
426 | 471 | if (type == GST_STREAM_AUDIO) |
427 | guess_audio_profile (info, &name, &mime); | |
472 | guess_audio_profile (info, &name, &mime, profiles); | |
428 | 473 | else if (type == GST_STREAM_VIDEO) |
429 | guess_video_profile (info, &name, &mime); | |
474 | guess_video_profile (info, &name, &mime, profiles); | |
430 | 475 | else if (type == GST_STREAM_IMAGE) |
431 | 476 | /* 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); | |
433 | 478 | |
434 | 479 | dlna = gupnp_dlna_information_new (name, mime, info); |
435 | 480 | |
437 | 482 | g_free (mime); |
438 | 483 | return dlna; |
439 | 484 | } |
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 | } |
0 | 0 | # Generated from ltmain.m4sh. |
1 | 1 | |
2 | # libtool (GNU libtool) 2.2.10 | |
2 | # ltmain.sh (GNU libtool) 2.2.6b | |
3 | 3 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
4 | 4 | |
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. | |
7 | 6 | # This is free software; see the source for copying conditions. There is NO |
8 | 7 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
9 | 8 | |
32 | 31 | # |
33 | 32 | # Provide generalized library-building support services. |
34 | 33 | # |
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 | |
49 | 45 | # |
50 | 46 | # MODE must be one of the following: |
51 | 47 | # |
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 | |
59 | 55 | # |
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. | |
62 | 57 | # Try `$progname --help --mode=MODE' for a more detailed description of MODE. |
63 | 58 | # |
64 | 59 | # When reporting a bug, please describe a test case to reproduce it and |
65 | 60 | # include the following information: |
66 | 61 | # |
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 | |
75 | 70 | # |
76 | 71 | # Report bugs to <bug-libtool@gnu.org>. |
77 | 72 | |
78 | PROGRAM=libtool | |
73 | PROGRAM=ltmain.sh | |
79 | 74 | PACKAGE=libtool |
80 | VERSION=2.2.10 | |
75 | VERSION="2.2.6b Debian-2.2.6b-2ubuntu1" | |
81 | 76 | TIMESTAMP="" |
82 | package_revision=1.3175 | |
77 | package_revision=1.3017 | |
83 | 78 | |
84 | 79 | # Be Bourne compatible |
85 | 80 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
95 | 90 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
96 | 91 | DUALCASE=1; export DUALCASE # for MKS sh |
97 | 92 | |
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 | ||
106 | 93 | # 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). | |
107 | 97 | lt_user_locale= |
108 | 98 | lt_safe_locale= |
109 | 99 | for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES |
116 | 106 | lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" |
117 | 107 | fi" |
118 | 108 | done |
119 | LC_ALL=C | |
120 | LANGUAGE=C | |
121 | export LANGUAGE LC_ALL | |
122 | 109 | |
123 | 110 | $lt_unset CDPATH |
124 | 111 | |
125 | 112 | |
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" | |
132 | 113 | |
133 | 114 | |
134 | 115 | |
135 | 116 | : ${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"} | |
140 | 121 | : ${LN_S="ln -s"} |
141 | 122 | : ${MAKE="make"} |
142 | 123 | : ${MKDIR="mkdir"} |
143 | 124 | : ${MV="mv -f"} |
144 | 125 | : ${RM="rm -f"} |
145 | : ${SED="sed"} | |
126 | : ${SED="/bin/sed"} | |
146 | 127 | : ${SHELL="${CONFIG_SHELL-/bin/sh}"} |
147 | 128 | : ${Xsed="$SED -e 1s/^X//"} |
148 | 129 | |
177 | 158 | func_dirname_and_basename () |
178 | 159 | { |
179 | 160 | # Extract subdirectory from the argument. |
180 | func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | |
161 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
181 | 162 | if test "X$func_dirname_result" = "X${1}"; then |
182 | 163 | func_dirname_result="${3}" |
183 | 164 | else |
184 | 165 | func_dirname_result="$func_dirname_result${2}" |
185 | 166 | fi |
186 | func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | |
167 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
187 | 168 | } |
188 | 169 | |
189 | 170 | # Generated shell functions inserted here. |
190 | 171 | |
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" | |
338 | 178 | |
339 | 179 | # 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: | |
340 | 182 | func_dirname_and_basename "$progpath" |
341 | 183 | progname=$func_basename_result |
184 | case $progname in | |
185 | -*) progname=./$progname ;; | |
186 | esac | |
342 | 187 | |
343 | 188 | # Make sure we have an absolute path for reexecution: |
344 | 189 | case $progpath in |
412 | 257 | : |
413 | 258 | } |
414 | 259 | |
415 | # func_echo_all arg... | |
416 | # Invoke $ECHO with all args, space-separated. | |
417 | func_echo_all () | |
418 | { | |
419 | $ECHO "$*" | |
420 | } | |
421 | ||
422 | 260 | # func_error arg... |
423 | 261 | # Echo program name prefixed message to standard error. |
424 | 262 | func_error () |
487 | 325 | case $my_directory_path in */*) ;; *) break ;; esac |
488 | 326 | |
489 | 327 | # ...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"` | |
491 | 329 | done |
492 | my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'` | |
330 | my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` | |
493 | 331 | |
494 | 332 | save_mkdir_p_IFS="$IFS"; IFS=':' |
495 | 333 | for my_dir in $my_dir_list; do |
539 | 377 | func_fatal_error "cannot create temporary directory \`$my_tmpdir'" |
540 | 378 | fi |
541 | 379 | |
542 | $ECHO "$my_tmpdir" | |
380 | $ECHO "X$my_tmpdir" | $Xsed | |
543 | 381 | } |
544 | 382 | |
545 | 383 | |
553 | 391 | { |
554 | 392 | case $1 in |
555 | 393 | *[\\\`\"\$]*) |
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"` ;; | |
557 | 395 | *) |
558 | 396 | func_quote_for_eval_unquoted_result="$1" ;; |
559 | 397 | esac |
580 | 418 | { |
581 | 419 | case $1 in |
582 | 420 | *[\\\`\"]*) |
583 | my_arg=`$ECHO "$1" | $SED \ | |
421 | my_arg=`$ECHO "X$1" | $Xsed \ | |
584 | 422 | -e "$double_quote_subst" -e "$sed_double_backslash"` ;; |
585 | 423 | *) |
586 | 424 | my_arg="$1" ;; |
650 | 488 | } |
651 | 489 | |
652 | 490 | |
491 | ||
492 | ||
493 | ||
653 | 494 | # func_version |
654 | 495 | # Echo version message to standard output and exit. |
655 | 496 | func_version () |
656 | 497 | { |
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; / { | |
666 | 499 | s/^# // |
667 | 500 | s/^# *$// |
668 | 501 | s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ |
675 | 508 | # Echo short help message to standard output and exit. |
676 | 509 | func_usage () |
677 | 510 | { |
678 | $SED -n '/^# Usage:/,/^# *.*--help/ { | |
511 | $SED -n '/^# Usage:/,/# -h/ { | |
679 | 512 | s/^# // |
680 | 513 | s/^# *$// |
681 | 514 | s/\$progname/'$progname'/ |
682 | 515 | p |
683 | 516 | }' < "$progpath" |
684 | echo | |
517 | $ECHO | |
685 | 518 | $ECHO "run \`$progname --help | more' for full usage" |
686 | 519 | exit $? |
687 | 520 | } |
688 | 521 | |
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. | |
692 | 524 | func_help () |
693 | 525 | { |
694 | 526 | $SED -n '/^# Usage:/,/# Report bugs to/ { |
705 | 537 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ |
706 | 538 | p |
707 | 539 | }' < "$progpath" |
708 | ret=$? | |
709 | if test -z "$1"; then | |
710 | exit $ret | |
711 | fi | |
540 | exit $? | |
712 | 541 | } |
713 | 542 | |
714 | 543 | # func_missing_arg argname |
716 | 545 | # exit_cmd. |
717 | 546 | func_missing_arg () |
718 | 547 | { |
719 | func_error "missing argument for $1." | |
548 | func_error "missing argument for $1" | |
720 | 549 | exit_cmd=exit |
721 | 550 | } |
722 | 551 | |
726 | 555 | |
727 | 556 | |
728 | 557 | |
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 | |
729 | 581 | |
730 | 582 | magic="%%%MAGIC variable%%%" |
731 | 583 | magic_exe="%%%MAGIC EXE variable%%%" |
783 | 635 | # Display the features supported by this script. |
784 | 636 | func_features () |
785 | 637 | { |
786 | echo "host: $host" | |
638 | $ECHO "host: $host" | |
787 | 639 | if test "$build_libtool_libs" = yes; then |
788 | echo "enable shared libraries" | |
640 | $ECHO "enable shared libraries" | |
789 | 641 | else |
790 | echo "disable shared libraries" | |
642 | $ECHO "disable shared libraries" | |
791 | 643 | fi |
792 | 644 | if test "$build_old_libs" = yes; then |
793 | echo "enable static libraries" | |
645 | $ECHO "enable static libraries" | |
794 | 646 | else |
795 | echo "disable static libraries" | |
647 | $ECHO "disable static libraries" | |
796 | 648 | fi |
797 | 649 | |
798 | 650 | exit $? |
919 | 771 | |
920 | 772 | --quiet|--silent) preserve_args="$preserve_args $opt" |
921 | 773 | opt_silent=: |
922 | opt_verbose=false | |
923 | ;; | |
924 | ||
925 | --no-quiet|--no-silent) | |
926 | preserve_args="$preserve_args $opt" | |
927 | opt_silent=false | |
928 | 774 | ;; |
929 | 775 | |
930 | 776 | --verbose| -v) preserve_args="$preserve_args $opt" |
931 | 777 | opt_silent=false |
932 | opt_verbose=: | |
933 | ;; | |
934 | ||
935 | --no-verbose) preserve_args="$preserve_args $opt" | |
936 | opt_verbose=false | |
937 | 778 | ;; |
938 | 779 | |
939 | 780 | --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break |
951 | 792 | |
952 | 793 | -\?|-h) func_usage ;; |
953 | 794 | --help) opt_help=: ;; |
954 | --help-all) opt_help=': help-all' ;; | |
955 | 795 | --version) func_version ;; |
956 | 796 | |
957 | 797 | -*) func_fatal_help "unrecognized option \`$opt'" ;; |
1175 | 1015 | func_quote_for_eval "$arg" |
1176 | 1016 | CC_quoted="$CC_quoted $func_quote_for_eval_result" |
1177 | 1017 | done |
1178 | CC_expanded=`func_echo_all $CC` | |
1179 | CC_quoted_expanded=`func_echo_all $CC_quoted` | |
1180 | 1018 | case $@ in |
1181 | 1019 | # Blanks in the command may have been stripped by the calling shell, |
1182 | 1020 | # 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` "*) ;; | |
1185 | 1022 | # Blanks at the start of $base_compile will cause this to fail |
1186 | 1023 | # if we don't check for them as well. |
1187 | 1024 | *) |
1195 | 1032 | func_quote_for_eval "$arg" |
1196 | 1033 | CC_quoted="$CC_quoted $func_quote_for_eval_result" |
1197 | 1034 | done |
1198 | CC_expanded=`func_echo_all $CC` | |
1199 | CC_quoted_expanded=`func_echo_all $CC_quoted` | |
1200 | 1035 | 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` "*) | |
1203 | 1037 | # The compiler in the base compile command matches |
1204 | 1038 | # the one in the tagged configuration. |
1205 | 1039 | # Assume this is the tagged configuration we want. |
1378 | 1212 | *.[cCFSifmso] | \ |
1379 | 1213 | *.ada | *.adb | *.ads | *.asm | \ |
1380 | 1214 | *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ |
1381 | *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup) | |
1215 | *.[fF][09]? | *.for | *.java | *.obj | *.sx) | |
1382 | 1216 | func_xform "$libobj" |
1383 | 1217 | libobj=$func_xform_result |
1384 | 1218 | ;; |
1453 | 1287 | # Calculate the filename of the output object if compiler does |
1454 | 1288 | # not support -o with -c |
1455 | 1289 | 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} | |
1457 | 1291 | lockfile="$output_obj.lock" |
1458 | 1292 | else |
1459 | 1293 | output_obj= |
1610 | 1444 | } |
1611 | 1445 | |
1612 | 1446 | $opt_help || { |
1613 | test "$mode" = compile && func_mode_compile ${1+"$@"} | |
1447 | test "$mode" = compile && func_mode_compile ${1+"$@"} | |
1614 | 1448 | } |
1615 | 1449 | |
1616 | 1450 | func_mode_help () |
1647 | 1481 | |
1648 | 1482 | -o OUTPUT-FILE set the output file name to OUTPUT-FILE |
1649 | 1483 | -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 | |
1652 | 1486 | -shared do not build a \`.o' file suitable for static linking |
1653 | 1487 | -static only build a \`.o' file suitable for static linking |
1654 | -Wc,FLAG pass FLAG directly to the compiler | |
1655 | 1488 | |
1656 | 1489 | COMPILE-COMMAND is a command to be used in creating a \`standard' object file |
1657 | 1490 | from the given SOURCEFILE. |
1704 | 1537 | |
1705 | 1538 | The following components of INSTALL-COMMAND are treated specially: |
1706 | 1539 | |
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 | |
1708 | 1541 | |
1709 | 1542 | The rest of the components are interpreted as arguments to that command (only |
1710 | 1543 | BSD-compatible install options are recognized)." |
1724 | 1557 | |
1725 | 1558 | -all-static do not do any dynamic linking at all |
1726 | 1559 | -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) | |
1729 | 1560 | -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime |
1730 | 1561 | -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols |
1731 | 1562 | -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) |
1754 | 1585 | -version-info CURRENT[:REVISION[:AGE]] |
1755 | 1586 | specify library version info [each variable defaults to 0] |
1756 | 1587 | -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) | |
1762 | 1588 | |
1763 | 1589 | All other options (arguments beginning with \`-') are ignored. |
1764 | 1590 | |
1796 | 1622 | ;; |
1797 | 1623 | esac |
1798 | 1624 | |
1799 | echo | |
1625 | $ECHO | |
1800 | 1626 | $ECHO "Try \`$progname --help' for more information about other modes." |
1627 | ||
1628 | exit $? | |
1801 | 1629 | } |
1802 | 1630 | |
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 | |
1833 | 1633 | |
1834 | 1634 | |
1835 | 1635 | # func_mode_execute arg... |
1911 | 1711 | for file |
1912 | 1712 | do |
1913 | 1713 | case $file in |
1914 | -* | *.la | *.lo ) ;; | |
1714 | -*) ;; | |
1915 | 1715 | *) |
1916 | 1716 | # Do a test to see if this is really a libtool program. |
1917 | 1717 | if func_ltwrapper_script_p "$file"; then |
1953 | 1753 | # Display what would be done. |
1954 | 1754 | if test -n "$shlibpath_var"; then |
1955 | 1755 | eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" |
1956 | echo "export $shlibpath_var" | |
1756 | $ECHO "export $shlibpath_var" | |
1957 | 1757 | fi |
1958 | 1758 | $ECHO "$cmd$args" |
1959 | 1759 | exit $EXIT_SUCCESS |
1994 | 1794 | # Exit here if they wanted silent mode. |
1995 | 1795 | $opt_silent && exit $EXIT_SUCCESS |
1996 | 1796 | |
1997 | echo "----------------------------------------------------------------------" | |
1998 | echo "Libraries have been installed in:" | |
1797 | $ECHO "X----------------------------------------------------------------------" | $Xsed | |
1798 | $ECHO "Libraries have been installed in:" | |
1999 | 1799 | for libdir in $libdirs; do |
2000 | 1800 | $ECHO " $libdir" |
2001 | 1801 | 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:" | |
2007 | 1807 | 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" | |
2010 | 1810 | fi |
2011 | 1811 | 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" | |
2014 | 1814 | fi |
2015 | 1815 | if test -n "$hardcode_libdir_flag_spec"; then |
2016 | 1816 | libdir=LIBDIR |
2022 | 1822 | $ECHO " - have your system administrator run these commands:$admincmds" |
2023 | 1823 | fi |
2024 | 1824 | 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'" | |
2026 | 1826 | 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" | |
2030 | 1830 | case $host in |
2031 | 1831 | 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." | |
2034 | 1834 | ;; |
2035 | 1835 | *) |
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." | |
2037 | 1837 | ;; |
2038 | 1838 | esac |
2039 | echo "----------------------------------------------------------------------" | |
1839 | $ECHO "X----------------------------------------------------------------------" | $Xsed | |
2040 | 1840 | exit $EXIT_SUCCESS |
2041 | 1841 | } |
2042 | 1842 | |
2051 | 1851 | # install_prog (especially on Windows NT). |
2052 | 1852 | if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || |
2053 | 1853 | # 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 | |
2055 | 1855 | # Aesthetically quote it. |
2056 | 1856 | func_quote_for_eval "$nonopt" |
2057 | 1857 | install_prog="$func_quote_for_eval_result " |
2066 | 1866 | # Aesthetically quote it. |
2067 | 1867 | func_quote_for_eval "$arg" |
2068 | 1868 | 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 | |
2074 | 1869 | |
2075 | 1870 | # We need to accept at least all the BSD install flags. |
2076 | 1871 | dest= |
2080 | 1875 | install_type= |
2081 | 1876 | isdir=no |
2082 | 1877 | stripme= |
2083 | no_mode=: | |
2084 | 1878 | for arg |
2085 | 1879 | do |
2086 | arg2= | |
2087 | 1880 | if test -n "$dest"; then |
2088 | 1881 | files="$files $dest" |
2089 | 1882 | dest=$arg |
2093 | 1886 | case $arg in |
2094 | 1887 | -d) isdir=yes ;; |
2095 | 1888 | -f) |
2096 | if $install_cp; then :; else | |
2097 | prev=$arg | |
2098 | fi | |
1889 | case " $install_prog " in | |
1890 | *[\\\ /]cp\ *) ;; | |
1891 | *) prev=$arg ;; | |
1892 | esac | |
2099 | 1893 | ;; |
2100 | 1894 | -g | -m | -o) |
2101 | 1895 | prev=$arg |
2109 | 1903 | *) |
2110 | 1904 | # If the previous option needed an argument, then skip it. |
2111 | 1905 | 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 | |
2116 | 1906 | prev= |
2117 | 1907 | else |
2118 | 1908 | dest=$arg |
2124 | 1914 | # Aesthetically quote the argument. |
2125 | 1915 | func_quote_for_eval "$arg" |
2126 | 1916 | 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" | |
2131 | 1917 | done |
2132 | 1918 | |
2133 | 1919 | test -z "$install_prog" && \ |
2135 | 1921 | |
2136 | 1922 | test -n "$prev" && \ |
2137 | 1923 | 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 | |
2145 | 1924 | |
2146 | 1925 | if test -z "$files"; then |
2147 | 1926 | if test -z "$dest"; then |
2230 | 2009 | |
2231 | 2010 | if test -n "$relink_command"; then |
2232 | 2011 | # 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\$%%"` | |
2234 | 2013 | |
2235 | 2014 | # Don't allow the user to place us outside of our expected |
2236 | 2015 | # location b/c this prevents finding dependent libraries that |
2243 | 2022 | |
2244 | 2023 | if test -n "$inst_prefix_dir"; then |
2245 | 2024 | # 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%"` | |
2247 | 2026 | 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@%%"` | |
2249 | 2028 | fi |
2250 | 2029 | |
2251 | 2030 | func_warning "relinking \`$file'" |
2263 | 2042 | test -n "$relink_command" && srcname="$realname"T |
2264 | 2043 | |
2265 | 2044 | # 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" \ | |
2267 | 2046 | 'exit $?' |
2268 | 2047 | tstripme="$stripme" |
2269 | 2048 | case $host_os in |
2403 | 2182 | if test -f "$lib"; then |
2404 | 2183 | func_source "$lib" |
2405 | 2184 | 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 | |
2407 | 2186 | if test -n "$libdir" && test ! -f "$libfile"; then |
2408 | 2187 | func_warning "\`$lib' has not been installed in \`$libdir'" |
2409 | 2188 | finalize=no |
2422 | 2201 | file="$func_basename_result" |
2423 | 2202 | outputname="$tmpdir/$file" |
2424 | 2203 | # 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'` | |
2426 | 2205 | |
2427 | 2206 | $opt_silent || { |
2428 | 2207 | func_quote_for_expand "$relink_command" |
2441 | 2220 | } |
2442 | 2221 | else |
2443 | 2222 | # 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%"` | |
2445 | 2224 | fi |
2446 | 2225 | fi |
2447 | 2226 | |
2543 | 2322 | extern \"C\" { |
2544 | 2323 | #endif |
2545 | 2324 | |
2546 | #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) | |
2547 | #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" | |
2548 | #endif | |
2549 | ||
2550 | 2325 | /* External symbol declarations for the compiler. */\ |
2551 | 2326 | " |
2552 | 2327 | |
2556 | 2331 | $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" |
2557 | 2332 | |
2558 | 2333 | # 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` | |
2560 | 2335 | for progfile in $progfiles; do |
2561 | 2336 | func_verbose "extracting global C symbols from \`$progfile'" |
2562 | 2337 | $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" |
2595 | 2370 | eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' |
2596 | 2371 | eval '$MV "$nlist"T "$nlist"' |
2597 | 2372 | case $host in |
2598 | *cygwin* | *mingw* | *cegcc* ) | |
2373 | *cygwin | *mingw* | *cegcc* ) | |
2599 | 2374 | eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' |
2600 | 2375 | eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' |
2601 | 2376 | ;; |
2639 | 2414 | if test -f "$nlist"S; then |
2640 | 2415 | eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' |
2641 | 2416 | else |
2642 | echo '/* NONE */' >> "$output_objdir/$my_dlsyms" | |
2417 | $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" | |
2643 | 2418 | fi |
2644 | 2419 | |
2645 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2420 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2646 | 2421 | |
2647 | 2422 | /* The mapping between symbol names and symbols. */ |
2648 | 2423 | typedef struct { |
2652 | 2427 | " |
2653 | 2428 | case $host in |
2654 | 2429 | *cygwin* | *mingw* | *cegcc* ) |
2655 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2430 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2656 | 2431 | /* DATA imports from DLLs on WIN32 con't be const, because |
2657 | 2432 | runtime relocations are performed -- see ld's documentation |
2658 | 2433 | on pseudo-relocs. */" |
2665 | 2440 | lt_dlsym_const=const ;; |
2666 | 2441 | esac |
2667 | 2442 | |
2668 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2443 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2669 | 2444 | extern $lt_dlsym_const lt_dlsymlist |
2670 | 2445 | lt_${my_prefix}_LTX_preloaded_symbols[]; |
2671 | 2446 | $lt_dlsym_const lt_dlsymlist |
2681 | 2456 | eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" |
2682 | 2457 | ;; |
2683 | 2458 | esac |
2684 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2459 | $ECHO >> "$output_objdir/$my_dlsyms" "\ | |
2685 | 2460 | {0, (void *) 0} |
2686 | 2461 | }; |
2687 | 2462 | |
2739 | 2514 | case $host in |
2740 | 2515 | *cygwin* | *mingw* | *cegcc* ) |
2741 | 2516 | 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%"` | |
2744 | 2519 | 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%"` | |
2747 | 2522 | fi |
2748 | 2523 | ;; |
2749 | 2524 | *) |
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%"` | |
2752 | 2527 | ;; |
2753 | 2528 | esac |
2754 | 2529 | ;; |
2762 | 2537 | # really was required. |
2763 | 2538 | |
2764 | 2539 | # 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@%%"` | |
2767 | 2542 | fi |
2768 | 2543 | } |
2769 | 2544 | |
2773 | 2548 | # Need a lot of goo to handle *both* DLLs and import libs |
2774 | 2549 | # Has to be a shell function in order to 'eat' the argument |
2775 | 2550 | # that is supplied when $file_magic_command is called. |
2776 | # Despite the name, also deal with 64 bit binaries. | |
2777 | 2551 | func_win32_libid () |
2778 | 2552 | { |
2779 | 2553 | $opt_debug |
2784 | 2558 | win32_libid_type="x86 archive import" |
2785 | 2559 | ;; |
2786 | 2560 | *ar\ archive*) # could be an import, or static |
2787 | # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. | |
2788 | 2561 | 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 | |
2790 | 2563 | win32_nmres=`eval $NM -f posix -A $1 | |
2791 | 2564 | $SED -n -e ' |
2792 | 2565 | 1,100{ |
2824 | 2597 | $opt_debug |
2825 | 2598 | f_ex_an_ar_dir="$1"; shift |
2826 | 2599 | 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 $?' | |
2839 | 2601 | if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then |
2840 | 2602 | : |
2841 | 2603 | else |
2906 | 2668 | darwin_file= |
2907 | 2669 | darwin_files= |
2908 | 2670 | 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` | |
2910 | 2672 | $LIPO -create -output "$darwin_file" $darwin_files |
2911 | 2673 | done # $darwin_filelist |
2912 | 2674 | $RM -rf unfat-$$ |
2921 | 2683 | func_extract_an_archive "$my_xdir" "$my_xabs" |
2922 | 2684 | ;; |
2923 | 2685 | 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` | |
2925 | 2687 | done |
2926 | 2688 | |
2927 | 2689 | func_extract_archives_result="$my_oldobjs" |
2928 | 2690 | } |
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 | |
2929 | 2926 | |
2930 | 2927 | |
2931 | 2928 | # func_emit_wrapper [arg=no] |
2944 | 2941 | # behavior. |
2945 | 2942 | func_emit_wrapper () |
2946 | 2943 | { |
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 | |
3191 | 2947 | fi |
3192 | 2948 | |
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}" | |
3233 | 2953 | } |
3234 | 2954 | |
3235 | 2955 | |
3257 | 2977 | func_to_host_path () |
3258 | 2978 | { |
3259 | 2979 | func_to_host_path_result="$1" |
3260 | if test -n "$1"; then | |
2980 | if test -n "$1" ; then | |
3261 | 2981 | case $host in |
3262 | 2982 | *mingw* ) |
3263 | 2983 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' |
3264 | 2984 | case $build in |
3265 | 2985 | *mingw* ) # actually, msys |
3266 | 2986 | # 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"` | |
3269 | 2992 | ;; |
3270 | 2993 | *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"` | |
3273 | 2997 | ;; |
3274 | 2998 | * ) |
3275 | 2999 | # Unfortunately, winepath does not exit with a non-zero |
3281 | 3005 | # the odd construction: |
3282 | 3006 | func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` |
3283 | 3007 | 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" |\ | |
3285 | 3009 | $SED -e "$lt_sed_naive_backslashify"` |
3286 | 3010 | else |
3287 | 3011 | # Allow warning below. |
3288 | func_to_host_path_result= | |
3012 | func_to_host_path_result="" | |
3289 | 3013 | fi |
3290 | 3014 | ;; |
3291 | 3015 | esac |
3292 | 3016 | if test -z "$func_to_host_path_result" ; then |
3293 | 3017 | func_error "Could not determine host path corresponding to" |
3294 | func_error " \`$1'" | |
3018 | func_error " '$1'" | |
3295 | 3019 | func_error "Continuing, but uninstalled executables may not work." |
3296 | 3020 | # Fallback: |
3297 | 3021 | func_to_host_path_result="$1" |
3324 | 3048 | func_to_host_pathlist () |
3325 | 3049 | { |
3326 | 3050 | func_to_host_pathlist_result="$1" |
3327 | if test -n "$1"; then | |
3051 | if test -n "$1" ; then | |
3328 | 3052 | case $host in |
3329 | 3053 | *mingw* ) |
3330 | 3054 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' |
3331 | 3055 | # Remove leading and trailing path separator characters from |
3332 | 3056 | # ARG. msys behavior is inconsistent here, cygpath turns them |
3333 | 3057 | # 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|:*$||'` | |
3336 | 3063 | case $build in |
3337 | 3064 | *mingw* ) # Actually, msys. |
3338 | 3065 | # 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"` | |
3342 | 3071 | ;; |
3343 | 3072 | *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" |\ | |
3345 | 3075 | $SED -e "$lt_sed_naive_backslashify"` |
3346 | 3076 | ;; |
3347 | 3077 | * ) |
3357 | 3087 | if test -z "$func_to_host_pathlist_result" ; then |
3358 | 3088 | func_to_host_pathlist_result="$func_to_host_path_result" |
3359 | 3089 | 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" | |
3361 | 3091 | fi |
3362 | 3092 | fi |
3363 | 3093 | fi |
3094 | IFS=: | |
3364 | 3095 | done |
3365 | 3096 | IFS=$func_to_host_pathlist_oldIFS |
3366 | 3097 | ;; |
3367 | 3098 | esac |
3368 | if test -z "$func_to_host_pathlist_result"; then | |
3099 | if test -z "$func_to_host_pathlist_result" ; then | |
3369 | 3100 | func_error "Could not determine the host path(s) corresponding to" |
3370 | func_error " \`$1'" | |
3101 | func_error " '$1'" | |
3371 | 3102 | func_error "Continuing, but uninstalled executables may not work." |
3372 | 3103 | # Fallback. This may break if $1 contains DOS-style drive |
3373 | 3104 | # specifications. The fix is not to complicate the expression |
3384 | 3115 | ;; |
3385 | 3116 | esac |
3386 | 3117 | case "$1" in |
3387 | *: ) func_append func_to_host_pathlist_result ";" | |
3118 | *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" | |
3388 | 3119 | ;; |
3389 | 3120 | esac |
3390 | 3121 | ;; |
3409 | 3140 | |
3410 | 3141 | This wrapper executable should never be moved out of the build directory. |
3411 | 3142 | 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. | |
3412 | 3147 | */ |
3413 | 3148 | EOF |
3414 | 3149 | cat <<"EOF" |
3415 | #ifdef _MSC_VER | |
3416 | # define _CRT_SECURE_NO_DEPRECATE 1 | |
3417 | #endif | |
3418 | 3150 | #include <stdio.h> |
3419 | 3151 | #include <stdlib.h> |
3420 | 3152 | #ifdef _MSC_VER |
3421 | 3153 | # include <direct.h> |
3422 | 3154 | # include <process.h> |
3423 | 3155 | # include <io.h> |
3156 | # define setmode _setmode | |
3424 | 3157 | #else |
3425 | 3158 | # include <unistd.h> |
3426 | 3159 | # include <stdint.h> |
3427 | 3160 | # ifdef __CYGWIN__ |
3428 | 3161 | # 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 | |
3429 | 3168 | # endif |
3430 | 3169 | #endif |
3431 | 3170 | #include <malloc.h> |
3437 | 3176 | #include <fcntl.h> |
3438 | 3177 | #include <sys/stat.h> |
3439 | 3178 | |
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 | ||
3478 | 3179 | #if defined(PATH_MAX) |
3479 | 3180 | # define LT_PATHMAX PATH_MAX |
3480 | 3181 | #elif defined(MAXPATHLEN) |
3490 | 3191 | # define S_IXGRP 0 |
3491 | 3192 | #endif |
3492 | 3193 | |
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 | ||
3494 | 3202 | #ifndef DIR_SEPARATOR |
3495 | 3203 | # define DIR_SEPARATOR '/' |
3496 | 3204 | # define PATH_SEPARATOR ':' |
3521 | 3229 | # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) |
3522 | 3230 | #endif /* PATH_SEPARATOR_2 */ |
3523 | 3231 | |
3232 | #ifdef __CYGWIN__ | |
3233 | # define FOPEN_WB "wb" | |
3234 | #endif | |
3235 | ||
3524 | 3236 | #ifndef FOPEN_WB |
3525 | 3237 | # define FOPEN_WB "w" |
3526 | 3238 | #endif |
3533 | 3245 | if (stale) { free ((void *) stale); stale = 0; } \ |
3534 | 3246 | } while (0) |
3535 | 3247 | |
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 | } | |
3538 | 3259 | #else |
3539 | static int lt_debug = 0; | |
3260 | # define LTWRAPPER_DEBUGPRINTF(args) | |
3540 | 3261 | #endif |
3541 | 3262 | |
3542 | const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ | |
3263 | const char *program_name = NULL; | |
3543 | 3264 | |
3544 | 3265 | void *xmalloc (size_t num); |
3545 | 3266 | char *xstrdup (const char *string); |
3549 | 3270 | int make_executable (const char *path); |
3550 | 3271 | int check_executable (const char *path); |
3551 | 3272 | 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, ...); | |
3556 | 3274 | void lt_setenv (const char *name, const char *value); |
3557 | 3275 | 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); | |
3558 | 3280 | void lt_update_exe_path (const char *name, const char *value); |
3559 | 3281 | 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 = | |
3562 | 3284 | 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 ";" | |
3563 | 3298 | |
3564 | 3299 | cat <<EOF |
3565 | 3300 | const char * MAGIC_EXE = "$magic_exe"; |
3604 | 3339 | cat <<"EOF" |
3605 | 3340 | |
3606 | 3341 | #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; | |
3608 | 3345 | static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; |
3346 | ||
3609 | 3347 | 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 */ | |
3611 | 3360 | |
3612 | 3361 | int |
3613 | 3362 | main (int argc, char *argv[]) |
3624 | 3373 | int i; |
3625 | 3374 | |
3626 | 3375 | 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 */ | |
3634 | 3380 | for (i = 1; i < argc; i++) |
3635 | 3381 | { |
3636 | 3382 | if (strcmp (argv[i], dumpscript_opt) == 0) |
3644 | 3390 | esac |
3645 | 3391 | |
3646 | 3392 | cat <<"EOF" |
3647 | lt_dump_script (stdout); | |
3393 | printf ("%s", script_text_part1); | |
3394 | printf ("%s", script_text_part2); | |
3648 | 3395 | return 0; |
3649 | 3396 | } |
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]); | |
3672 | 3397 | } |
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); | |
3684 | 3400 | tmp_pathspec = find_executable (argv[0]); |
3685 | 3401 | 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)); | |
3690 | 3405 | |
3691 | 3406 | 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)); | |
3695 | 3409 | XFREE (tmp_pathspec); |
3696 | 3410 | |
3697 | actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path)); | |
3411 | actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); | |
3698 | 3412 | strendzap (actual_cwrapper_path, actual_cwrapper_name); |
3699 | 3413 | |
3700 | 3414 | /* wrapper name transforms */ |
3712 | 3426 | target_name = tmp_pathspec; |
3713 | 3427 | tmp_pathspec = 0; |
3714 | 3428 | |
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)); | |
3718 | 3431 | EOF |
3719 | 3432 | |
3720 | 3433 | cat <<EOF |
3767 | 3480 | lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); |
3768 | 3481 | lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); |
3769 | 3482 | |
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>"))); | |
3772 | 3551 | for (i = 0; i < newargc; i++) |
3773 | 3552 | { |
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>"))); | |
3776 | 3554 | } |
3777 | 3555 | |
3778 | 3556 | EOF |
3781 | 3559 | mingw*) |
3782 | 3560 | cat <<"EOF" |
3783 | 3561 | /* execv doesn't actually work on mingw as expected on unix */ |
3784 | newargz = prepare_spawn (newargz); | |
3785 | 3562 | rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); |
3786 | 3563 | if (rval == -1) |
3787 | 3564 | { |
3788 | 3565 | /* 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)); | |
3792 | 3567 | return 127; |
3793 | 3568 | } |
3794 | 3569 | return rval; |
3810 | 3585 | { |
3811 | 3586 | void *p = (void *) malloc (num); |
3812 | 3587 | if (!p) |
3813 | lt_fatal (__FILE__, __LINE__, "memory exhausted"); | |
3588 | lt_fatal ("Memory exhausted"); | |
3814 | 3589 | |
3815 | 3590 | return p; |
3816 | 3591 | } |
3844 | 3619 | { |
3845 | 3620 | struct stat st; |
3846 | 3621 | |
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!")); | |
3849 | 3624 | if ((!path) || (!*path)) |
3850 | 3625 | return 0; |
3851 | 3626 | |
3862 | 3637 | int rval = 0; |
3863 | 3638 | struct stat st; |
3864 | 3639 | |
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!")); | |
3867 | 3642 | if ((!path) || (!*path)) |
3868 | 3643 | return 0; |
3869 | 3644 | |
3889 | 3664 | int tmp_len; |
3890 | 3665 | char *concat_name; |
3891 | 3666 | |
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!")); | |
3894 | 3669 | |
3895 | 3670 | if ((wrapper == NULL) || (*wrapper == '\0')) |
3896 | 3671 | return NULL; |
3943 | 3718 | { |
3944 | 3719 | /* empty path: current directory */ |
3945 | 3720 | if (getcwd (tmp, LT_PATHMAX) == NULL) |
3946 | lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | |
3947 | nonnull (strerror (errno))); | |
3721 | lt_fatal ("getcwd failed"); | |
3948 | 3722 | tmp_len = strlen (tmp); |
3949 | 3723 | concat_name = |
3950 | 3724 | XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); |
3969 | 3743 | } |
3970 | 3744 | /* Relative path | not found in path: prepend cwd */ |
3971 | 3745 | if (getcwd (tmp, LT_PATHMAX) == NULL) |
3972 | lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", | |
3973 | nonnull (strerror (errno))); | |
3746 | lt_fatal ("getcwd failed"); | |
3974 | 3747 | tmp_len = strlen (tmp); |
3975 | 3748 | concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); |
3976 | 3749 | memcpy (concat_name, tmp, tmp_len); |
3996 | 3769 | int has_symlinks = 0; |
3997 | 3770 | while (strlen (tmp_pathspec) && !has_symlinks) |
3998 | 3771 | { |
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)); | |
4002 | 3774 | if (lstat (tmp_pathspec, &s) == 0) |
4003 | 3775 | { |
4004 | 3776 | if (S_ISLNK (s.st_mode) != 0) |
4020 | 3792 | } |
4021 | 3793 | else |
4022 | 3794 | { |
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); | |
4026 | 3797 | } |
4027 | 3798 | } |
4028 | 3799 | XFREE (tmp_pathspec); |
4035 | 3806 | tmp_pathspec = realpath (pathspec, buf); |
4036 | 3807 | if (tmp_pathspec == 0) |
4037 | 3808 | { |
4038 | lt_fatal (__FILE__, __LINE__, | |
4039 | "could not follow symlinks for %s", pathspec); | |
3809 | lt_fatal ("Could not follow symlinks for %s", pathspec); | |
4040 | 3810 | } |
4041 | 3811 | return xstrdup (tmp_pathspec); |
4042 | 3812 | #endif |
4062 | 3832 | return str; |
4063 | 3833 | } |
4064 | 3834 | |
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 | ||
4078 | 3835 | 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, | |
4081 | 3837 | const char *message, va_list ap) |
4082 | 3838 | { |
4083 | fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); | |
3839 | fprintf (stderr, "%s: %s: ", program_name, mode); | |
4084 | 3840 | vfprintf (stderr, message, ap); |
4085 | 3841 | fprintf (stderr, ".\n"); |
4086 | 3842 | |
4089 | 3845 | } |
4090 | 3846 | |
4091 | 3847 | void |
4092 | lt_fatal (const char *file, int line, const char *message, ...) | |
3848 | lt_fatal (const char *message, ...) | |
4093 | 3849 | { |
4094 | 3850 | va_list ap; |
4095 | 3851 | va_start (ap, message); |
4096 | lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); | |
3852 | lt_error_core (EXIT_FAILURE, "FATAL", message, ap); | |
4097 | 3853 | 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); | |
4110 | 3854 | } |
4111 | 3855 | |
4112 | 3856 | void |
4113 | 3857 | lt_setenv (const char *name, const char *value) |
4114 | 3858 | { |
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>"))); | |
4118 | 3862 | { |
4119 | 3863 | #ifdef HAVE_SETENV |
4120 | 3864 | /* always make a copy, for consistency with !HAVE_SETENV */ |
4159 | 3903 | return new_value; |
4160 | 3904 | } |
4161 | 3905 | |
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 | ||
4162 | 3989 | void |
4163 | 3990 | lt_update_exe_path (const char *name, const char *value) |
4164 | 3991 | { |
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>"))); | |
4168 | 3995 | |
4169 | 3996 | if (name && *name && value && *value) |
4170 | 3997 | { |
4183 | 4010 | void |
4184 | 4011 | lt_update_lib_path (const char *name, const char *value) |
4185 | 4012 | { |
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>"))); | |
4189 | 4016 | |
4190 | 4017 | if (name && *name && value && *value) |
4191 | 4018 | { |
4195 | 4022 | } |
4196 | 4023 | } |
4197 | 4024 | |
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 | ||
4329 | 4026 | EOF |
4330 | 4027 | } |
4331 | 4028 | # 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 | } | |
4343 | 4029 | |
4344 | 4030 | # func_mode_link arg... |
4345 | 4031 | func_mode_link () |
4385 | 4071 | new_inherited_linker_flags= |
4386 | 4072 | |
4387 | 4073 | avoid_version=no |
4388 | bindir= | |
4389 | 4074 | dlfiles= |
4390 | 4075 | dlprefiles= |
4391 | 4076 | dlself=no |
4478 | 4163 | esac |
4479 | 4164 | |
4480 | 4165 | case $prev in |
4481 | bindir) | |
4482 | bindir="$arg" | |
4483 | prev= | |
4484 | continue | |
4485 | ;; | |
4486 | 4166 | dlfiles|dlprefiles) |
4487 | 4167 | if test "$preload" = no; then |
4488 | 4168 | # Add the symbol object into the linking commands. |
4744 | 4424 | continue |
4745 | 4425 | ;; |
4746 | 4426 | |
4747 | -bindir) | |
4748 | prev=bindir | |
4749 | continue | |
4750 | ;; | |
4751 | ||
4752 | 4427 | -dlopen) |
4753 | 4428 | prev=dlfiles |
4754 | 4429 | continue |
4827 | 4502 | esac |
4828 | 4503 | case $host in |
4829 | 4504 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) |
4830 | testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` | |
4505 | testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` | |
4831 | 4506 | case :$dllsearchpath: in |
4832 | 4507 | *":$dir:"*) ;; |
4833 | 4508 | ::) dllsearchpath=$dir;; |
4846 | 4521 | -l*) |
4847 | 4522 | if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then |
4848 | 4523 | case $host in |
4849 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) | |
4524 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) | |
4850 | 4525 | # These systems don't actually have a C or math library (as such) |
4851 | 4526 | continue |
4852 | 4527 | ;; |
5032 | 4707 | for flag in $args; do |
5033 | 4708 | IFS="$save_ifs" |
5034 | 4709 | func_quote_for_eval "$flag" |
5035 | arg="$arg $func_quote_for_eval_result" | |
4710 | arg="$arg $wl$func_quote_for_eval_result" | |
5036 | 4711 | compiler_flags="$compiler_flags $func_quote_for_eval_result" |
5037 | 4712 | done |
5038 | 4713 | IFS="$save_ifs" |
5078 | 4753 | arg="$func_quote_for_eval_result" |
5079 | 4754 | ;; |
5080 | 4755 | |
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 | |
5092 | 4766 | -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*|@*) | |
5094 | 4768 | func_quote_for_eval "$arg" |
5095 | 4769 | arg="$func_quote_for_eval_result" |
5096 | 4770 | func_append compile_command " $arg" |
5250 | 4924 | |
5251 | 4925 | if test -n "$shlibpath_var"; then |
5252 | 4926 | # 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\'\` | |
5254 | 4928 | else |
5255 | 4929 | shlib_search_path= |
5256 | 4930 | fi |
5358 | 5032 | case $pass in |
5359 | 5033 | dlopen) libs="$dlfiles" ;; |
5360 | 5034 | 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 | ;; | |
5362 | 5039 | esac |
5363 | 5040 | fi |
5364 | 5041 | if test "$linkmode,$pass" = "lib,dlpreopen"; then |
5373 | 5050 | # Collect preopened libtool deplibs, except any this library |
5374 | 5051 | # has declared as weak libs |
5375 | 5052 | 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"` | |
5378 | 5054 | case " $weak_libs " in |
5379 | 5055 | *" $deplib_base "*) ;; |
5380 | 5056 | *) deplibs="$deplibs $deplib" ;; |
5553 | 5229 | match_pattern*) |
5554 | 5230 | set dummy $deplibs_check_method; shift |
5555 | 5231 | 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 \ | |
5557 | 5233 | | $EGREP "$match_pattern_regex" > /dev/null; then |
5558 | 5234 | valid_a_lib=yes |
5559 | 5235 | fi |
5563 | 5239 | ;; |
5564 | 5240 | esac |
5565 | 5241 | if test "$valid_a_lib" != yes; then |
5566 | echo | |
5242 | $ECHO | |
5567 | 5243 | $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." | |
5573 | 5249 | else |
5574 | echo | |
5250 | $ECHO | |
5575 | 5251 | $ECHO "*** Warning: Linking the shared library $output against the" |
5576 | 5252 | $ECHO "*** static library $deplib is not portable!" |
5577 | 5253 | deplibs="$deplib $deplibs" |
5644 | 5320 | |
5645 | 5321 | # Convert "-framework foo" to "foo.ltframework" |
5646 | 5322 | 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'` | |
5648 | 5324 | for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do |
5649 | 5325 | case " $new_inherited_linker_flags " in |
5650 | 5326 | *" $tmp_inherited_linker_flag "*) ;; |
5652 | 5328 | esac |
5653 | 5329 | done |
5654 | 5330 | 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'` | |
5656 | 5332 | if test "$linkmode,$pass" = "lib,link" || |
5657 | 5333 | test "$linkmode,$pass" = "prog,scan" || |
5658 | 5334 | { test "$linkmode" != prog && test "$linkmode" != lib; }; then |
5670 | 5346 | # It is a libtool convenience library, so add in its objects. |
5671 | 5347 | convenience="$convenience $ladir/$objdir/$old_library" |
5672 | 5348 | 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 | |
5673 | 5359 | elif test "$linkmode" != prog && test "$linkmode" != lib; then |
5674 | 5360 | func_fatal_error "\`$lib' is not a convenience library" |
5675 | 5361 | 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 | |
5686 | 5362 | continue |
5687 | 5363 | fi # $pass = conv |
5688 | 5364 | |
5906 | 5582 | fi |
5907 | 5583 | done |
5908 | 5584 | if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then |
5909 | echo | |
5585 | $ECHO | |
5910 | 5586 | if test "$linkmode" = prog; then |
5911 | 5587 | $ECHO "*** Warning: Linking the executable $output against the loadable module" |
5912 | 5588 | else |
6009 | 5685 | if test "X$dlopenmodule" != "X$lib"; then |
6010 | 5686 | $ECHO "*** Warning: lib $linklib is a module, not a shared library" |
6011 | 5687 | 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" | |
6015 | 5691 | else |
6016 | 5692 | add="$dir/$old_library" |
6017 | 5693 | fi |
6151 | 5827 | |
6152 | 5828 | # Just print a warning and add the library to dependency_libs so |
6153 | 5829 | # that the program can be linked against the static library. |
6154 | echo | |
5830 | $ECHO | |
6155 | 5831 | $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." | |
6159 | 5835 | 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." | |
6163 | 5839 | 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." | |
6169 | 5845 | fi |
6170 | 5846 | if test "$build_old_libs" = no; then |
6171 | 5847 | build_libtool_libs=module |
6285 | 5961 | compile_deplibs="$new_inherited_linker_flags $compile_deplibs" |
6286 | 5962 | finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" |
6287 | 5963 | 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'` | |
6289 | 5965 | fi |
6290 | 5966 | fi |
6291 | 5967 | dependency_libs="$newdependency_libs" |
6453 | 6129 | if test "$deplibs_check_method" != pass_all; then |
6454 | 6130 | func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" |
6455 | 6131 | else |
6456 | echo | |
6132 | $ECHO | |
6457 | 6133 | $ECHO "*** Warning: Linking the shared library $output against the non-libtool" |
6458 | 6134 | $ECHO "*** objects $objs is not portable!" |
6459 | 6135 | libobjs="$libobjs $objs" |
6521 | 6197 | age="$number_minor" |
6522 | 6198 | revision="$number_revision" |
6523 | 6199 | ;; |
6524 | freebsd-aout|freebsd-elf|qnx|sunos) | |
6200 | freebsd-aout|freebsd-elf|sunos) | |
6525 | 6201 | current="$number_major" |
6526 | 6202 | revision="$number_minor" |
6527 | 6203 | age="0" |
6532 | 6208 | age="$number_minor" |
6533 | 6209 | revision="$number_minor" |
6534 | 6210 | lt_irix_increment=no |
6211 | ;; | |
6212 | *) | |
6213 | func_fatal_configuration "$modename: unknown library version type \`$version_type'" | |
6535 | 6214 | ;; |
6536 | 6215 | esac |
6537 | 6216 | ;; |
6755 | 6434 | oldlibs="$oldlibs $output_objdir/$libname.$libext" |
6756 | 6435 | |
6757 | 6436 | # 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` | |
6759 | 6438 | fi |
6760 | 6439 | |
6761 | 6440 | # Eliminate all temporary directories. |
6762 | 6441 | #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"` | |
6766 | 6445 | #done |
6767 | 6446 | |
6768 | 6447 | if test -n "$xrpath"; then |
6803 | 6482 | if test "$build_libtool_libs" = yes; then |
6804 | 6483 | if test -n "$rpath"; then |
6805 | 6484 | case $host in |
6806 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) | |
6485 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) | |
6807 | 6486 | # these systems don't actually have a c library (as such)! |
6808 | 6487 | ;; |
6809 | 6488 | *-*-rhapsody* | *-*-darwin1.[012]) |
6888 | 6567 | newdeplibs="$newdeplibs $i" |
6889 | 6568 | else |
6890 | 6569 | droppeddeps=yes |
6891 | echo | |
6570 | $ECHO | |
6892 | 6571 | $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." | |
6898 | 6577 | fi |
6899 | 6578 | fi |
6900 | 6579 | ;; |
6931 | 6610 | newdeplibs="$newdeplibs $i" |
6932 | 6611 | else |
6933 | 6612 | droppeddeps=yes |
6934 | echo | |
6613 | $ECHO | |
6935 | 6614 | $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." | |
6941 | 6620 | fi |
6942 | 6621 | fi |
6943 | 6622 | else |
6944 | 6623 | droppeddeps=yes |
6945 | echo | |
6624 | $ECHO | |
6946 | 6625 | $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." | |
6950 | 6629 | fi |
6951 | 6630 | ;; |
6952 | 6631 | *) |
6992 | 6671 | potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` |
6993 | 6672 | case $potliblink in |
6994 | 6673 | [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; |
6995 | *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";; | |
6674 | *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; | |
6996 | 6675 | esac |
6997 | 6676 | done |
6998 | 6677 | if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | |
7007 | 6686 | fi |
7008 | 6687 | if test -n "$a_deplib" ; then |
7009 | 6688 | droppeddeps=yes |
7010 | echo | |
6689 | $ECHO | |
7011 | 6690 | $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" | |
7016 | 6695 | if test -z "$potlib" ; then |
7017 | 6696 | $ECHO "*** with $libname but no candidates were found. (...for file magic test)" |
7018 | 6697 | else |
7050 | 6729 | potential_libs=`ls $i/$libname[.-]* 2>/dev/null` |
7051 | 6730 | for potent_lib in $potential_libs; do |
7052 | 6731 | 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 | \ | |
7054 | 6733 | $EGREP "$match_pattern_regex" > /dev/null; then |
7055 | 6734 | newdeplibs="$newdeplibs $a_deplib" |
7056 | 6735 | a_deplib="" |
7061 | 6740 | fi |
7062 | 6741 | if test -n "$a_deplib" ; then |
7063 | 6742 | droppeddeps=yes |
7064 | echo | |
6743 | $ECHO | |
7065 | 6744 | $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" | |
7070 | 6749 | if test -z "$potlib" ; then |
7071 | 6750 | $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" |
7072 | 6751 | else |
7084 | 6763 | ;; |
7085 | 6764 | none | unknown | *) |
7086 | 6765 | 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'` | |
7088 | 6768 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
7089 | 6769 | for i in $predeps $postdeps ; do |
7090 | 6770 | # 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,,"` | |
7092 | 6772 | done |
7093 | 6773 | 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 | |
7097 | 6777 | 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." | |
7099 | 6779 | 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." | |
7101 | 6781 | fi |
7102 | echo "*** All declared inter-library dependencies are being dropped." | |
6782 | $ECHO "*** All declared inter-library dependencies are being dropped." | |
7103 | 6783 | droppeddeps=yes |
7104 | ;; | |
7105 | esac | |
6784 | fi | |
7106 | 6785 | ;; |
7107 | 6786 | esac |
7108 | 6787 | versuffix=$versuffix_save |
7114 | 6793 | case $host in |
7115 | 6794 | *-*-rhapsody* | *-*-darwin1.[012]) |
7116 | 6795 | # 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 /'` | |
7118 | 6797 | ;; |
7119 | 6798 | esac |
7120 | 6799 | |
7121 | 6800 | if test "$droppeddeps" = yes; then |
7122 | 6801 | 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" | |
7125 | 6804 | $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." | |
7128 | 6807 | 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." | |
7134 | 6813 | fi |
7135 | 6814 | if test "$build_old_libs" = no; then |
7136 | 6815 | oldlibs="$output_objdir/$libname.$libext" |
7140 | 6819 | build_libtool_libs=no |
7141 | 6820 | fi |
7142 | 6821 | 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." | |
7146 | 6825 | |
7147 | 6826 | 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." | |
7153 | 6832 | if test "$build_old_libs" = no; then |
7154 | 6833 | oldlibs="$output_objdir/$libname.$libext" |
7155 | 6834 | build_libtool_libs=module |
7166 | 6845 | # Time to change all our "foo.ltframework" stuff back to "-framework foo" |
7167 | 6846 | case $host in |
7168 | 6847 | *-*-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'` | |
7172 | 6851 | ;; |
7173 | 6852 | esac |
7174 | 6853 | |
7290 | 6969 | done |
7291 | 6970 | |
7292 | 6971 | # 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` | |
7294 | 6973 | test "X$libobjs" = "X " && libobjs= |
7295 | 6974 | |
7296 | 6975 | delfiles= |
7356 | 7035 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7357 | 7036 | tmp_export_symbols="$export_symbols" |
7358 | 7037 | 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"' | |
7360 | 7039 | fi |
7361 | 7040 | |
7362 | 7041 | if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then |
7457 | 7136 | save_libobjs=$libobjs |
7458 | 7137 | fi |
7459 | 7138 | save_output=$output |
7460 | func_basename "$output" | |
7461 | output_la=$func_basename_result | |
7139 | output_la=`$ECHO "X$output" | $Xsed -e "$basename"` | |
7462 | 7140 | |
7463 | 7141 | # Clear the reloadable object creation command queue and |
7464 | 7142 | # initialize k to one. |
7471 | 7149 | if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then |
7472 | 7150 | output=${output_objdir}/${output_la}.lnkscript |
7473 | 7151 | func_verbose "creating GNU ld script: $output" |
7474 | echo 'INPUT (' > $output | |
7152 | $ECHO 'INPUT (' > $output | |
7475 | 7153 | for obj in $save_libobjs |
7476 | 7154 | do |
7477 | 7155 | $ECHO "$obj" >> $output |
7478 | 7156 | done |
7479 | echo ')' >> $output | |
7157 | $ECHO ')' >> $output | |
7480 | 7158 | delfiles="$delfiles $output" |
7481 | 7159 | elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then |
7482 | 7160 | output=${output_objdir}/${output_la}.lnk |
7518 | 7196 | # command to the queue. |
7519 | 7197 | if test "$k" -eq 1 ; then |
7520 | 7198 | # 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\" | |
7523 | 7200 | else |
7524 | 7201 | # All subsequent reloadable object files will link in |
7525 | 7202 | # 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\" | |
7528 | 7204 | fi |
7529 | 7205 | last_robj=$output_objdir/$output_la-${k}.$objext |
7530 | 7206 | func_arith $k + 1 |
7531 | 7207 | k=$func_arith_result |
7532 | 7208 | output=$output_objdir/$output_la-${k}.$objext |
7533 | objlist=" $obj" | |
7209 | objlist=$obj | |
7534 | 7210 | func_len " $last_robj" |
7535 | 7211 | func_arith $len0 + $func_len_result |
7536 | 7212 | len=$func_arith_result |
7540 | 7216 | # reloadable object file. All subsequent reloadable object |
7541 | 7217 | # files will link in the last one created. |
7542 | 7218 | 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\" | |
7545 | 7220 | if test -n "$last_robj"; then |
7546 | 7221 | eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" |
7547 | 7222 | fi |
7600 | 7275 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7601 | 7276 | tmp_export_symbols="$export_symbols" |
7602 | 7277 | 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"' | |
7604 | 7279 | fi |
7605 | 7280 | |
7606 | 7281 | if test -n "$orig_export_symbols"; then |
7765 | 7440 | if test -n "$convenience"; then |
7766 | 7441 | if test -n "$whole_archive_flag_spec"; then |
7767 | 7442 | 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'` | |
7769 | 7444 | else |
7770 | 7445 | gentop="$output_objdir/${obj}x" |
7771 | 7446 | generated="$generated $gentop" |
7776 | 7451 | fi |
7777 | 7452 | |
7778 | 7453 | # 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 | |
7780 | 7455 | |
7781 | 7456 | output="$obj" |
7782 | 7457 | func_execute_cmds "$reload_cmds" 'exit $?' |
7836 | 7511 | case $host in |
7837 | 7512 | *-*-rhapsody* | *-*-darwin1.[012]) |
7838 | 7513 | # 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 /'` | |
7841 | 7516 | ;; |
7842 | 7517 | esac |
7843 | 7518 | |
7854 | 7529 | esac |
7855 | 7530 | fi |
7856 | 7531 | # 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'` | |
7859 | 7534 | ;; |
7860 | 7535 | esac |
7861 | 7536 | |
7992 | 7667 | |
7993 | 7668 | if test -n "$libobjs" && test "$build_old_libs" = yes; then |
7994 | 7669 | # 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` | |
7997 | 7672 | fi |
7998 | 7673 | |
7999 | 7674 | func_generate_dlsyms "$outputname" "@PROGRAM@" "no" |
8005 | 7680 | |
8006 | 7681 | wrappers_required=yes |
8007 | 7682 | case $host in |
8008 | *cegcc* | *mingw32ce*) | |
8009 | # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. | |
8010 | wrappers_required=no | |
8011 | ;; | |
8012 | 7683 | *cygwin* | *mingw* ) |
8013 | 7684 | if test "$build_libtool_libs" != yes; then |
8014 | 7685 | wrappers_required=no |
8015 | 7686 | fi |
7687 | ;; | |
7688 | *cegcc) | |
7689 | # Disable wrappers for cegcc, we are cross compiling anyway. | |
7690 | wrappers_required=no | |
8016 | 7691 | ;; |
8017 | 7692 | *) |
8018 | 7693 | if test "$need_relink" = no || test "$build_libtool_libs" != yes; then |
8022 | 7697 | esac |
8023 | 7698 | if test "$wrappers_required" = no; then |
8024 | 7699 | # 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'` | |
8026 | 7701 | link_command="$compile_command$compile_rpath" |
8027 | 7702 | |
8028 | 7703 | # We have no uninstalled library dependencies, so finalize right now. |
8069 | 7744 | # We don't need to create a wrapper script. |
8070 | 7745 | link_command="$compile_var$compile_command$compile_rpath" |
8071 | 7746 | # 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'` | |
8073 | 7748 | # Delete the old output file. |
8074 | 7749 | $opt_dry_run || $RM $output |
8075 | 7750 | # Link the executable and exit |
8088 | 7763 | if test "$fast_install" != no; then |
8089 | 7764 | link_command="$finalize_var$compile_command$finalize_rpath" |
8090 | 7765 | 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'` | |
8092 | 7767 | else |
8093 | 7768 | # fast_install is set to needless |
8094 | 7769 | relink_command= |
8100 | 7775 | fi |
8101 | 7776 | |
8102 | 7777 | # 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'` | |
8104 | 7779 | |
8105 | 7780 | # Delete the old output files. |
8106 | 7781 | $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname |
8124 | 7799 | fi |
8125 | 7800 | done |
8126 | 7801 | 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"` | |
8128 | 7814 | fi |
8129 | 7815 | |
8130 | 7816 | # Only actually do things if not in dry run mode. |
8245 | 7931 | done | sort | sort -uc >/dev/null 2>&1); then |
8246 | 7932 | : |
8247 | 7933 | else |
8248 | echo "copying selected object files to avoid basename conflicts..." | |
7934 | $ECHO "copying selected object files to avoid basename conflicts..." | |
8249 | 7935 | gentop="$output_objdir/${outputname}x" |
8250 | 7936 | generated="$generated $gentop" |
8251 | 7937 | func_mkdir_p "$gentop" |
8356 | 8042 | done |
8357 | 8043 | # Quote the link command for shipping. |
8358 | 8044 | 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"` | |
8360 | 8046 | if test "$hardcode_automatic" = yes ; then |
8361 | 8047 | relink_command= |
8362 | 8048 | fi |
8441 | 8127 | fi |
8442 | 8128 | $RM $output |
8443 | 8129 | # 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. | |
8452 | 8130 | tdlname=$dlname |
8453 | 8131 | 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 ;; | |
8465 | 8133 | esac |
8466 | 8134 | $ECHO > $output "\ |
8467 | 8135 | # $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 |
4 | 4 | |
5 | 5 | dlna_profile_parser_SOURCES = dlna-profile-parser.c |
6 | 6 | 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 |
35 | 35 | host_triplet = @host@ |
36 | 36 | noinst_PROGRAMS = dlna-profile-parser$(EXEEXT) dlna-encoding$(EXEEXT) |
37 | 37 | 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 | |
39 | 40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
40 | 41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
41 | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
42 | 43 | $(ACLOCAL_M4) |
43 | mkinstalldirs = $(install_sh) -d | |
44 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
44 | 45 | CONFIG_HEADER = $(top_builddir)/config.h |
45 | CONFIG_CLEAN_FILES = | |
46 | CONFIG_CLEAN_FILES = test-discoverer.sh | |
46 | 47 | CONFIG_CLEAN_VPATH_FILES = |
47 | 48 | PROGRAMS = $(noinst_PROGRAMS) |
48 | 49 | am_dlna_encoding_OBJECTS = dlna-encoding.$(OBJEXT) |
84 | 85 | DIST_SOURCES = $(dlna_encoding_SOURCES) $(dlna_profile_parser_SOURCES) |
85 | 86 | ETAGS = etags |
86 | 87 | CTAGS = ctags |
88 | am__tty_colors = \ | |
89 | red=; grn=; lgn=; blu=; std= | |
87 | 90 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
88 | 91 | ACLOCAL = @ACLOCAL@ |
89 | 92 | AMTAR = @AMTAR@ |
158 | 161 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
159 | 162 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
160 | 163 | PKG_CONFIG = @PKG_CONFIG@ |
161 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
162 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
163 | 164 | RANLIB = @RANLIB@ |
164 | 165 | SED = @SED@ |
165 | 166 | SET_MAKE = @SET_MAKE@ |
202 | 203 | libexecdir = @libexecdir@ |
203 | 204 | localedir = @localedir@ |
204 | 205 | localstatedir = @localstatedir@ |
206 | lt_ECHO = @lt_ECHO@ | |
205 | 207 | mandir = @mandir@ |
206 | 208 | mkdir_p = @mkdir_p@ |
207 | 209 | oldincludedir = @oldincludedir@ |
221 | 223 | 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 |
222 | 224 | dlna_profile_parser_SOURCES = dlna-profile-parser.c |
223 | 225 | 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 | |
224 | 228 | all: all-am |
225 | 229 | |
226 | 230 | .SUFFIXES: |
255 | 259 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) |
256 | 260 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh |
257 | 261 | $(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)/$@ | |
258 | 264 | |
259 | 265 | clean-noinstPROGRAMS: |
260 | 266 | @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \ |
362 | 368 | distclean-tags: |
363 | 369 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
364 | 370 | |
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 | ||
365 | 463 | distdir: $(DISTFILES) |
366 | 464 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
367 | 465 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
393 | 491 | fi; \ |
394 | 492 | done |
395 | 493 | check-am: all-am |
494 | $(MAKE) $(AM_MAKEFLAGS) check-TESTS | |
396 | 495 | check: check-am |
397 | 496 | all-am: Makefile $(PROGRAMS) |
398 | 497 | installdirs: |
492 | 591 | |
493 | 592 | uninstall-am: |
494 | 593 | |
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 | |
509 | 609 | |
510 | 610 | |
511 | 611 | # Tell versions [3.59,3.63) of GNU make to not export all variables. |
25 | 25 | #include <gst/gst.h> |
26 | 26 | #include <gst/profile/gstprofile.h> |
27 | 27 | #include <gst/pbutils/pbutils.h> |
28 | #include <libgupnp-dlna/gupnp-dlna-profile.h> | |
28 | #include <libgupnp-dlna/gupnp-dlna-discoverer.h> | |
29 | 29 | |
30 | 30 | static gboolean silent = FALSE; |
31 | 31 | |
90 | 90 | } |
91 | 91 | |
92 | 92 | static void |
93 | transcode_file (gchar * uri, gchar * outputuri, GstEncodingProfile * prof) | |
93 | transcode_file (gchar * uri, gchar * outputuri, const GstEncodingProfile * prof) | |
94 | 94 | { |
95 | 95 | GstElement *pipeline; |
96 | 96 | GstElement *src; |
118 | 118 | /* Figure out the streams that can be passed as-is to encodebin */ |
119 | 119 | g_object_get (src, "caps", &rescaps, NULL); |
120 | 120 | rescaps = gst_caps_copy (rescaps); |
121 | profilecaps = gst_encoding_profile_get_codec_caps (prof); | |
121 | profilecaps = gst_encoding_profile_get_codec_caps ((GstEncodingProfile *) prof); | |
122 | 122 | gst_caps_append (rescaps, profilecaps); |
123 | 123 | |
124 | 124 | /* Set properties */ |
193 | 193 | {NULL} |
194 | 194 | }; |
195 | 195 | GOptionContext *ctx; |
196 | GUPnPDLNADiscoverer *discoverer; | |
196 | 197 | GUPnPDLNAProfile *profile; |
197 | 198 | gchar *inputuri; |
198 | 199 | |
216 | 217 | exit (-1); |
217 | 218 | } |
218 | 219 | |
220 | gst_init(&argc, &argv); | |
221 | ||
219 | 222 | /* 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); | |
221 | 227 | if (G_UNLIKELY (profile == NULL)) { |
222 | 228 | g_print ("Encoding arguments are not valid !\n"); |
223 | 229 | return 1; |
228 | 234 | outputuri = ensure_uri (outputuri); |
229 | 235 | |
230 | 236 | /* Trancode file */ |
231 | transcode_file (inputuri, outputuri, profile->enc_profile); | |
237 | transcode_file (inputuri, | |
238 | outputuri, | |
239 | gupnp_dlna_profile_get_encoding_profile (profile)); | |
232 | 240 | |
233 | 241 | /* cleanup */ |
234 | 242 | g_object_unref (profile); |
243 | g_object_unref (discoverer); | |
235 | 244 | |
236 | 245 | return 0; |
237 | 246 | } |
44 | 44 | |
45 | 45 | static void print_profile (GUPnPDLNAProfile *profile, gpointer unused) |
46 | 46 | { |
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); | |
49 | 54 | |
50 | 55 | 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), | |
53 | 58 | caps_str); |
54 | 59 | |
55 | 60 | 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 | |
1 | 1 | |
2 | 2 | AM_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/gst-convenience/gst-libs $(GST_CFLAGS) |
3 | 3 | 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) |
33 | 33 | POST_UNINSTALL = : |
34 | 34 | build_triplet = @build@ |
35 | 35 | host_triplet = @host@ |
36 | bin_PROGRAMS = gupnp-dlna-info$(EXEEXT) | |
36 | bin_PROGRAMS = gupnp-dlna-info$(EXEEXT) \ | |
37 | gupnp-dlna-ls-profiles$(EXEEXT) | |
37 | 38 | subdir = tools |
38 | 39 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in |
39 | 40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
40 | 41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
41 | 42 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
42 | 43 | $(ACLOCAL_M4) |
43 | mkinstalldirs = $(install_sh) -d | |
44 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | |
44 | 45 | CONFIG_HEADER = $(top_builddir)/config.h |
45 | 46 | CONFIG_CLEAN_FILES = |
46 | 47 | CONFIG_CLEAN_VPATH_FILES = |
52 | 53 | AM_V_lt = $(am__v_lt_$(V)) |
53 | 54 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) |
54 | 55 | 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) | |
55 | 59 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) |
56 | 60 | depcomp = $(SHELL) $(top_srcdir)/depcomp |
57 | 61 | am__depfiles_maybe = depfiles |
78 | 82 | AM_V_GEN = $(am__v_GEN_$(V)) |
79 | 83 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) |
80 | 84 | 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 | |
83 | 87 | ETAGS = etags |
84 | 88 | CTAGS = ctags |
85 | 89 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
156 | 160 | PACKAGE_VERSION = @PACKAGE_VERSION@ |
157 | 161 | PATH_SEPARATOR = @PATH_SEPARATOR@ |
158 | 162 | PKG_CONFIG = @PKG_CONFIG@ |
159 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | |
160 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | |
161 | 163 | RANLIB = @RANLIB@ |
162 | 164 | SED = @SED@ |
163 | 165 | SET_MAKE = @SET_MAKE@ |
200 | 202 | libexecdir = @libexecdir@ |
201 | 203 | localedir = @localedir@ |
202 | 204 | localstatedir = @localstatedir@ |
205 | lt_ECHO = @lt_ECHO@ | |
203 | 206 | mandir = @mandir@ |
204 | 207 | mkdir_p = @mkdir_p@ |
205 | 208 | oldincludedir = @oldincludedir@ |
297 | 300 | gupnp-dlna-info$(EXEEXT): $(gupnp_dlna_info_OBJECTS) $(gupnp_dlna_info_DEPENDENCIES) |
298 | 301 | @rm -f gupnp-dlna-info$(EXEEXT) |
299 | 302 | $(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) | |
300 | 306 | |
301 | 307 | mostlyclean-compile: |
302 | 308 | -rm -f *.$(OBJEXT) |
305 | 311 | -rm -f *.tab.c |
306 | 312 | |
307 | 313 | @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@ | |
308 | 315 | |
309 | 316 | .c.o: |
310 | 317 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
246 | 246 | } |
247 | 247 | |
248 | 248 | 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 | |
249 | 272 | print_duration (const GstDiscovererInformation * info, gint tab) |
250 | 273 | { |
251 | 274 | g_print ("%*s%" GST_TIME_FORMAT "\n", tab + 1, " ", |
252 | 275 | 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)); | |
263 | 276 | } |
264 | 277 | |
265 | 278 | static void |
286 | 299 | if (verbose) { |
287 | 300 | if (!(info->result & |
288 | 301 | (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); | |
291 | 304 | g_print ("\nDuration:\n"); |
292 | 305 | print_duration (info, 1); |
293 | 306 | } |
450 | 463 | |
451 | 464 | |
452 | 465 | discover = gupnp_dlna_discoverer_new ((GstClockTime) |
453 | (timeout * GST_SECOND)); | |
466 | (timeout * GST_SECOND), | |
467 | FALSE, | |
468 | FALSE); | |
454 | 469 | |
455 | 470 | if (async == FALSE) { |
456 | 471 | 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 | } |